INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Standard dialog box to specify the properties of a ", "particular print job. ", "WEL: library of reusable components for Eiffel. ", "Based on WEL library for ISE Eiffel, used with permission. "
project: "Windows Eiffel Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
cluster: wel
class WEL_PRINT_DIALOG
inherit

WEL_STANDARD_DIALOG
rename
make as standard_dialog_make
end

WEL_PD_CONSTANTS
export
{NONE}
all
end

WEL_BIT_OPERATIONS
export
{NONE}
all
end
creation

make
feature {NONE}-- Initialization

make
-- Make and setup the structure
feature -- Access

from_page: INTEGER
-- Value for the starting page edit control
ensure
positive_result: Result >= 0

to_page: INTEGER
-- Value for the ending page edit control
ensure
positive_result: Result >= 0

minimum_page: INTEGER
-- Minimum value for the range of pages specified
-- in the From and To page edit controls

maximum_page: INTEGER
-- Maximum value for the range of pages specified
-- in the From and To page edit controls

copies: INTEGER
-- Number of copies for the Copies edit control

flags: INTEGER
-- Dialog box creation flags.
-- Can be a combination of the values defined in
-- class WEL_PD_CONSTANTS.

dc: WEL_PRINTER_DC
-- Device context associated to the selected printer
require
selected: selected
ensure
result_not_void: Result /= void
feature -- Element change

set_flags (a_flags: INTEGER)
-- Set `flags' with `a_flags'.
-- See class WEL_PD_CONSTANTS for `a_flags' values.
ensure
flags_set: flags = a_flags

add_flag (a_flags: INTEGER)
-- Add `a_flags' to `flags'.
-- See class WEL_PD_CONSTANTS for `a_flags' values.
ensure
has_flag: has_flag (a_flags)

remove_flag (a_flags: INTEGER)
-- Remove `a_flags' from `flags'.
-- See class WEL_PD_CONSTANTS for `a_flags' values.
ensure
has_not_flag: not has_flag (a_flags)

set_from_page (page: INTEGER)
-- Set `from_page' with `page'.
ensure
from_page_set: from_page = page

set_to_page (page: INTEGER)
-- Set `to_page' with `page'.
ensure
to_page_set: to_page = page

set_minimum_page (page: INTEGER)
-- Set `minimum_page' with `page'.
ensure
minimum_page_set: minimum_page = page

set_maximum_page (page: INTEGER)
-- Set `maximum_page' with `page'.
ensure
maximum_page_set: maximum_page = page

set_copies (number: INTEGER)
-- Set `copies' with `number'.
ensure
copies_set: copies = number
feature -- Status report

has_flag (a_flags: INTEGER): BOOLEAN
-- Is `a_flags' set in `flags'?
-- See class WEL_PD_CONSTANTS for `a_flags'
-- values.

all_pages_selected: BOOLEAN
-- Is the "All pages" radio button selected?

page_numbers_selected: BOOLEAN
-- Is the "Page" radio button selected?

selection_selected: BOOLEAN
-- Is the "Selection" radio box selected?

page_numbers_enabled: BOOLEAN
-- Is the "Page numbers" radio button enabled?

selection_enabled: BOOLEAN
-- Is the "Selection" radio button enabled?

collate_checked: BOOLEAN
-- Is the "Collate" check box checked?

print_to_file_enabled: BOOLEAN
-- Is the "Print to file" check box enabled?

print_to_file_shown: BOOLEAN
-- Is the "Print to file" check box shown?

print_to_file_checked: BOOLEAN
-- Is the "Print to file" check box checked?

warning_enabled: BOOLEAN
-- Is the warning message from being displayed when
-- there is no default printer enabled?

print_setup_enabled: BOOLEAN
-- Is the Print setup dialog box enabled?
feature -- Status setting

select_all_pages
-- Select the "All pages" radio button.
ensure
all_pages_selected: all_pages_selected

select_page_numbers
-- Select the "Page numbers" radio button.
ensure
page_numbers_selected: page_numbers_selected

select_selection
-- Select the "Selection" radio button.
ensure
selection_selected: selection_selected

enable_page_numbers
-- Enable the "Page numbers" radio button.
ensure
page_numbers_enabled: page_numbers_enabled

disable_page_numbers
-- Disable the "Page numbers" radio button.
ensure
page_numbers_disabled: not page_numbers_enabled

enable_selection
-- Enable the "Selection" radio button.
ensure
selection_enabled: selection_enabled

disable_selection
-- Disable the "Selection" radio button.
ensure
selection_disabled: not selection_enabled

check_collate
-- Check the "Collate" check box.
ensure
collate_checked: collate_checked

uncheck_collate
-- Uncheck the "Collate" check box.
ensure
collate_unchecked: not collate_checked

enable_print_to_file
-- Enable the "Print to file" check box.
ensure
print_to_file_enabled: print_to_file_enabled

disable_print_to_file
-- Disable the "Print to file" check box.
ensure
print_to_file_disabled: not print_to_file_enabled

show_print_to_file
-- Show the "Print to file" check box.
ensure
print_to_file_shown: print_to_file_shown

hide_print_to_file
-- Hide the "Print to file" check box.
ensure
print_to_file_hidden: not print_to_file_shown

check_print_to_file
-- Check the "Print to file" check box.
ensure
print_to_file_checked: print_to_file_checked

uncheck_print_to_file
-- Uncheck the "Print to file" check box.
ensure
print_to_file_unchecked: not print_to_file_checked

enable_warning
-- Enable the warning message from being displayed when
-- there is no default printer.
ensure
warning_enabled: warning_enabled

disable_warning
-- Disable the warning message from being displayed when
-- there is no default printer.
ensure
warning_disabled: not warning_enabled

enable_print_setup
-- Enable the system to display the Print setup dialog
-- box rather than the Print dialog box.
ensure
print_setup_enabled: print_setup_enabled

disable_print_setup
-- Disable the system to display the Print setup dialog
-- box rather than the Print dialog box.
ensure
print_setup_disabled: not print_setup_enabled
feature -- Basic operations

activate (a_parent: WEL_COMPOSITE_WINDOW)
-- Activate the dialog box (modal mode) with
-- `a_parent' as owner.
feature -- Measurement

structure_size: INTEGER
-- Size to allocate (in bytes)
end -- class WEL_PRINT_DIALOG

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES