Class: Wx::PRT::PageSetupDialogData
- Defined in:
- lib/wx/doc/gen/prt/print_data.rb
Overview
This class is untracked and should not be derived from nor instances extended!
This class holds a variety of information related to PageSetupDialog.
It contains a PrintData member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by PageSetupDialogData).
Category: Printing Framework, Data Structures
Instance Method Summary collapse
-
#enable_help(flag) ⇒ void
Enables or disables the “Help” button (Windows only).
-
#enable_margins(flag) ⇒ void
Enables or disables the margin controls (Windows only).
-
#enable_orientation(flag) ⇒ void
Enables or disables the orientation control (Windows only).
-
#enable_paper(flag) ⇒ void
Enables or disables the paper size control (Windows only).
-
#enable_printer(flag) ⇒ void
Enables or disables the “Printer” button, which invokes a printer setup dialog.
-
#get_default_info ⇒ Boolean
(also: #default_info)
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
-
#get_default_min_margins ⇒ Boolean
(also: #default_min_margins)
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
-
#get_enable_help ⇒ Boolean
Returns true if the printer setup button is enabled.
-
#get_enable_margins ⇒ Boolean
Returns true if the margin controls are enabled (Windows only).
-
#get_enable_orientation ⇒ Boolean
Returns true if the orientation control is enabled (Windows only).
-
#get_enable_paper ⇒ Boolean
Returns true if the paper size control is enabled (Windows only).
-
#get_enable_printer ⇒ Boolean
Returns true if the printer setup button is enabled.
-
#get_margin_bottom_right ⇒ Wx::Point
(also: #margin_bottom_right)
Returns the right (x) and bottom (y) margins in millimetres.
-
#get_margin_top_left ⇒ Wx::Point
(also: #margin_top_left)
Returns the left (x) and top (y) margins in millimetres.
-
#get_min_margin_bottom_right ⇒ Wx::Point
(also: #min_margin_bottom_right)
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
-
#get_min_margin_top_left ⇒ Wx::Point
(also: #min_margin_top_left)
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
-
#get_paper_id ⇒ Wx::PaperSize
(also: #paper_id)
Returns the paper id (stored in the internal PrintData object).
-
#get_paper_size ⇒ Wx::Size
(also: #paper_size)
Returns the paper size in millimetres.
- #get_print_data ⇒ Wx::PRT::PrintData (also: #print_data)
-
#initialize(*args) ⇒ PageSetupDialogData
constructor
A new instance of PageSetupDialogData.
-
#is_ok ⇒ Boolean
(also: #ok?)
Returns true if the print data associated with the dialog data is valid.
-
#set_default_info(flag) ⇒ void
(also: #default_info=)
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
-
#set_default_min_margins(flag) ⇒ void
(also: #default_min_margins=)
Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
-
#set_margin_bottom_right(pt) ⇒ void
(also: #margin_bottom_right=)
Sets the right (x) and bottom (y) margins in millimetres.
-
#set_margin_top_left(pt) ⇒ void
(also: #margin_top_left=)
Sets the left (x) and top (y) margins in millimetres.
-
#set_min_margin_bottom_right(pt) ⇒ void
(also: #min_margin_bottom_right=)
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
-
#set_min_margin_top_left(pt) ⇒ void
(also: #min_margin_top_left=)
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
-
#set_paper_id(id) ⇒ void
(also: #paper_id=)
Sets the paper size id.
-
#set_paper_size(size) ⇒ void
(also: #paper_size=)
Sets the paper size in millimetres.
-
#set_print_data(printData) ⇒ void
(also: #print_data=)
Sets the print data associated with this object.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::PRT::PageSetupDialogData #initialize(data) ⇒ Wx::PRT::PageSetupDialogData #initialize(printData) ⇒ Wx::PRT::PageSetupDialogData
Returns a new instance of PageSetupDialogData.
472 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 472 def initialize(*args) end |
Instance Method Details
#enable_help(flag) ⇒ void
This method returns an undefined value.
Enables or disables the “Help” button (Windows only).
477 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 477 def enable_help(flag) end |
#enable_margins(flag) ⇒ void
This method returns an undefined value.
Enables or disables the margin controls (Windows only).
482 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 482 def enable_margins(flag) end |
#enable_orientation(flag) ⇒ void
This method returns an undefined value.
Enables or disables the orientation control (Windows only).
487 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 487 def enable_orientation(flag) end |
#enable_paper(flag) ⇒ void
This method returns an undefined value.
Enables or disables the paper size control (Windows only).
492 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 492 def enable_paper(flag) end |
#enable_printer(flag) ⇒ void
This method returns an undefined value.
Enables or disables the “Printer” button, which invokes a printer setup dialog.
497 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 497 def enable_printer(flag) end |
#get_default_info ⇒ Boolean Also known as: default_info
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
501 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 501 def get_default_info; end |
#get_default_min_margins ⇒ Boolean Also known as: default_min_margins
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
506 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 506 def get_default_min_margins; end |
#get_enable_help ⇒ Boolean
Returns true if the printer setup button is enabled.
511 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 511 def get_enable_help; end |
#get_enable_margins ⇒ Boolean
Returns true if the margin controls are enabled (Windows only).
515 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 515 def get_enable_margins; end |
#get_enable_orientation ⇒ Boolean
Returns true if the orientation control is enabled (Windows only).
519 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 519 def get_enable_orientation; end |
#get_enable_paper ⇒ Boolean
Returns true if the paper size control is enabled (Windows only).
523 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 523 def get_enable_paper; end |
#get_enable_printer ⇒ Boolean
Returns true if the printer setup button is enabled.
527 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 527 def get_enable_printer; end |
#get_margin_bottom_right ⇒ Wx::Point Also known as: margin_bottom_right
Returns the right (x) and bottom (y) margins in millimetres.
531 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 531 def get_margin_bottom_right; end |
#get_margin_top_left ⇒ Wx::Point Also known as: margin_top_left
Returns the left (x) and top (y) margins in millimetres.
536 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 536 def get_margin_top_left; end |
#get_min_margin_bottom_right ⇒ Wx::Point Also known as: min_margin_bottom_right
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
543 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 543 def get_min_margin_bottom_right; end |
#get_min_margin_top_left ⇒ Wx::Point Also known as: min_margin_top_left
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
550 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 550 def get_min_margin_top_left; end |
#get_paper_id ⇒ Wx::PaperSize Also known as: paper_id
Returns the paper id (stored in the internal Wx::PRT::PrintData object).
558 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 558 def get_paper_id; end |
#get_paper_size ⇒ Wx::Size Also known as: paper_size
Returns the paper size in millimetres.
563 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 563 def get_paper_size; end |
#get_print_data ⇒ Wx::PRT::PrintData Also known as: print_data
567 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 567 def get_print_data; end |
#is_ok ⇒ Boolean Also known as: ok?
Returns true if the print data associated with the dialog data is valid.
This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
574 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 574 def is_ok; end |
#set_default_info(flag) ⇒ void Also known as: default_info=
This method returns an undefined value.
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
580 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 580 def set_default_info(flag) end |
#set_default_min_margins(flag) ⇒ void Also known as: default_min_margins=
This method returns an undefined value.
Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
Units are in millimetres.
588 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 588 def set_default_min_margins(flag) end |
#set_margin_bottom_right(pt) ⇒ void Also known as: margin_bottom_right=
This method returns an undefined value.
Sets the right (x) and bottom (y) margins in millimetres.
594 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 594 def set_margin_bottom_right(pt) end |
#set_margin_top_left(pt) ⇒ void Also known as: margin_top_left=
This method returns an undefined value.
Sets the left (x) and top (y) margins in millimetres.
600 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 600 def set_margin_top_left(pt) end |
#set_min_margin_bottom_right(pt) ⇒ void Also known as: min_margin_bottom_right=
This method returns an undefined value.
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
608 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 608 def set_min_margin_bottom_right(pt) end |
#set_min_margin_top_left(pt) ⇒ void Also known as: min_margin_top_left=
This method returns an undefined value.
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
616 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 616 def set_min_margin_top_left(pt) end |
#set_paper_id(id) ⇒ void Also known as: paper_id=
This method returns an undefined value.
Sets the paper size id.
Calling this function overrides the explicit paper dimensions passed in #set_paper_size.
625 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 625 def set_paper_id(id) end |
#set_paper_size(size) ⇒ void Also known as: paper_size=
This method returns an undefined value.
Sets the paper size in millimetres.
If a corresponding paper id is found, it will be set in the internal Wx::PRT::PrintData object, otherwise the paper size overrides the paper id.
633 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 633 def set_paper_size(size) end |
#set_print_data(printData) ⇒ void Also known as: print_data=
This method returns an undefined value.
Sets the print data associated with this object.
639 |
# File 'lib/wx/doc/gen/prt/print_data.rb', line 639 def set_print_data(printData) end |