wxPageSetupDialogData(3)

NAME
wxPageSetupDialogData - Functions for wxPageSetupDialogData class

DESCRIPTION

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

DATA TYPES
wxPageSetupDialogData() = wx:wx_object()

EXPORTS

new() -> wxPageSetupDialogData()

    Default constructor.

new(PrintData) -> wxPageSetupDialogData()

    Types:
        PrintData =
            wxPrintData:wxPrintData() |
            wxPageSetupDialogData:wxPageSetupDialogData()

    Construct an object from a print data object.

destroy(This :: wxPageSetupDialogData()) -> ok

    Destructor.

enableHelp(This, Flag) -> ok

    Types:
        This = wxPageSetupDialogData()
        Flag = boolean()

    Enables or disables the "Help" button (Windows only).

enableMargins(This, Flag) -> ok

    Types:
        This = wxPageSetupDialogData()
        Flag = boolean()

    Enables or disables the margin controls (Windows only).

enableOrientation(This, Flag) -> ok

    Types:
        This = wxPageSetupDialogData()
        Flag = boolean()

    Enables or disables the orientation control (Windows only).

enablePaper(This, Flag) -> ok

    Types:
        This = wxPageSetupDialogData()
        Flag = boolean()

    Enables or disables the paper size control (Windows only).

enablePrinter(This, Flag) -> ok

    Types:
        This = wxPageSetupDialogData()
        Flag = boolean()

    Enables or disables the "Printer" button, which invokes a printer setup dialog.

getDefaultMinMargins(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).

getEnableMargins(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the margin controls are enabled (Windows only).

getEnableOrientation(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the orientation control is enabled (Windows only).

getEnablePaper(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the paper size control is enabled (Windows only).

getEnablePrinter(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the printer setup button is enabled.

getEnableHelp(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the printer setup button is enabled.

getDefaultInfo(This) -> boolean()

    Types:
        This = wxPageSetupDialogData()

    Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).

getMarginTopLeft(This) -> {X :: integer(), Y :: integer()}

    Types:
        This = wxPageSetupDialogData()

    Returns the left (x) and top (y) margins in millimetres.

getMarginBottomRight(This) -> {X :: integer(), Y :: integer()}

    Types:
        This = wxPageSetupDialogData()

    Returns the right (x) and bottom (y) margins in millimetres.

getMinMarginTopLeft(This) -> {X :: integer(), Y :: integer()}

    Types:
        This = wxPageSetupDialogData()

    Returns the left (x) and top (y) minimum margins the user can enter (Windows only).

    Units are in millimetres.

getMinMarginBottomRight(This) -> {X :: integer(), Y :: integer()}

    Types:
        This = wxPageSetupDialogData()

    Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).

    Units are in millimetres.

getPaperId(This) -> wx:wx_enum()

    Types:
        This = wxPageSetupDialogData()

    Returns the paper id (stored in the internal wxPrintData object).

    See: wxPrintData:setPaperId/2

getPaperSize(This) -> {W :: integer(), H :: integer()}

    Types:
        This = wxPageSetupDialogData()

    Returns the paper size in millimetres.

getPrintData(This) -> wxPrintData:wxPrintData()

    Types:
        This = wxPageSetupDialogData()

isOk(This) -> boolean()

    Types:
        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.

setDefaultInfo(This, Flag) -> ok

    Types:
        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).

setDefaultMinMargins(This, Flag) -> ok

    Types:
        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.

setMarginTopLeft(This, Pt) -> ok

    Types:
        This = wxPageSetupDialogData()
        Pt = {X :: integer(), Y :: integer()}

    Sets the left (x) and top (y) margins in millimetres.

setMarginBottomRight(This, Pt) -> ok

    Types:
        This = wxPageSetupDialogData()
        Pt = {X :: integer(), Y :: integer()}

    Sets the right (x) and bottom (y) margins in millimetres.

setMinMarginTopLeft(This, Pt) -> ok

    Types:
        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.

setMinMarginBottomRight(This, Pt) -> ok

    Types:
        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.

setPaperId(This, Id) -> ok

    Types:
        This = wxPageSetupDialogData()
        Id = wx:wx_enum()

    Sets the paper size id.

    Calling this function overrides the explicit paper dimensions passed in setPaperSize/2.

    See: wxPrintData:setPaperId/2

setPaperSize(This, Size) -> ok

    Types:
        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.

setPrintData(This, PrintData) -> ok

    Types:
        This = wxPageSetupDialogData()
        PrintData = wxPrintData:wxPrintData()

    Sets the print data associated with this object.