View Source wxPageSetupDialogData (wx v2.4.2)
Functions for wxPageSetupDialogData class
This class holds a variety of information related to wxPageSetupDialog
.
It contains a wxPrintData
member which is used to hold basic printer
configuration data (as opposed to the user-interface configuration settings
stored by wxPageSetupDialogData
).
See:
Overview printing,
wxPageSetupDialog
wxWidgets docs: wxPageSetupDialogData
Summary
Functions
Destructor.
Enables or disables the "Help" button (Windows only).
Enables or disables the margin controls (Windows only).
Enables or disables the orientation control (Windows only).
Enables or disables the paper size control (Windows only).
Enables or disables the "Printer" button, which invokes a printer setup dialog.
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
Returns true if the printer setup button is enabled.
Returns true if the margin controls are enabled (Windows only).
Returns true if the orientation control is enabled (Windows only).
Returns true if the paper size control is enabled (Windows only).
Returns true if the printer setup button is enabled.
Returns the right (x) and bottom (y) margins in millimetres.
Returns the left (x) and top (y) margins in millimetres.
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
Returns the paper id (stored in the internal wxPrintData
object).
Returns the paper size in millimetres.
Returns true if the print data associated with the dialog data is valid.
Default constructor.
Construct an object from a print data object.
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
Sets the right (x) and bottom (y) margins in millimetres.
Sets the left (x) and top (y) margins in millimetres.
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
Sets the paper size id.
Sets the paper size in millimetres.
Sets the print data associated with this object.
Types
-type wxPageSetupDialogData() :: wx:wx_object().
Functions
-spec destroy(This :: wxPageSetupDialogData()) -> ok.
Destructor.
-spec enableHelp(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Enables or disables the "Help" button (Windows only).
-spec enableMargins(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Enables or disables the margin controls (Windows only).
-spec enableOrientation(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Enables or disables the orientation control (Windows only).
-spec enablePaper(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Enables or disables the paper size control (Windows only).
-spec enablePrinter(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Enables or disables the "Printer" button, which invokes a printer setup dialog.
-spec getDefaultInfo(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
-spec getDefaultMinMargins(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
-spec getEnableHelp(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the printer setup button is enabled.
-spec getEnableMargins(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the margin controls are enabled (Windows only).
-spec getEnableOrientation(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the orientation control is enabled (Windows only).
-spec getEnablePaper(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the paper size control is enabled (Windows only).
-spec getEnablePrinter(This) -> boolean() when This :: wxPageSetupDialogData().
Returns true if the printer setup button is enabled.
-spec getMarginBottomRight(This) -> {X :: integer(), Y :: integer()} when This :: wxPageSetupDialogData().
Returns the right (x) and bottom (y) margins in millimetres.
-spec getMarginTopLeft(This) -> {X :: integer(), Y :: integer()} when This :: wxPageSetupDialogData().
Returns the left (x) and top (y) margins in millimetres.
-spec getMinMarginBottomRight(This) -> {X :: integer(), Y :: integer()} when This :: wxPageSetupDialogData().
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
-spec getMinMarginTopLeft(This) -> {X :: integer(), Y :: integer()} when This :: wxPageSetupDialogData().
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
-spec getPaperId(This) -> wx:wx_enum() when This :: wxPageSetupDialogData().
Returns the paper id (stored in the internal wxPrintData
object).
-spec getPaperSize(This) -> {W :: integer(), H :: integer()} when This :: wxPageSetupDialogData().
Returns the paper size in millimetres.
-spec getPrintData(This) -> wxPrintData:wxPrintData() when This :: wxPageSetupDialogData().
-spec isOk(This) -> boolean() when This :: wxPageSetupDialogData().
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.
-spec new() -> wxPageSetupDialogData().
Default constructor.
-spec new(PrintData) -> wxPageSetupDialogData() when PrintData :: wxPrintData:wxPrintData() | wxPageSetupDialogData:wxPageSetupDialogData().
Construct an object from a print data object.
-spec setDefaultInfo(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
-spec setDefaultMinMargins(This, Flag) -> ok when This :: wxPageSetupDialogData(), Flag :: boolean().
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.
-spec setMarginBottomRight(This, Pt) -> ok when This :: wxPageSetupDialogData(), Pt :: {X :: integer(), Y :: integer()}.
Sets the right (x) and bottom (y) margins in millimetres.
-spec setMarginTopLeft(This, Pt) -> ok when This :: wxPageSetupDialogData(), Pt :: {X :: integer(), Y :: integer()}.
Sets the left (x) and top (y) margins in millimetres.
-spec setMinMarginBottomRight(This, Pt) -> ok when This :: wxPageSetupDialogData(), Pt :: {X :: integer(), Y :: integer()}.
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
-spec setMinMarginTopLeft(This, Pt) -> ok when This :: wxPageSetupDialogData(), Pt :: {X :: integer(), Y :: integer()}.
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
-spec setPaperId(This, Id) -> ok when This :: wxPageSetupDialogData(), Id :: wx:wx_enum().
Sets the paper size id.
Calling this function overrides the explicit paper dimensions passed in
setPaperSize/2
.
-spec setPaperSize(This, Size) -> ok when This :: wxPageSetupDialogData(), Size :: {W :: integer(), H :: integer()}.
Sets the paper size in millimetres.
If a corresponding paper id is found, it will be set in the internal
wxPrintData
object, otherwise the paper size overrides the paper id.
-spec setPrintData(This, PrintData) -> ok when This :: wxPageSetupDialogData(), PrintData :: wxPrintData:wxPrintData().
Sets the print data associated with this object.