![]() | InDesign SDK 20.5 |
#include <CDialogController.h>

Public Member Functions | |
| CDialogController (IPMUnknown *boss) | |
| virtual void | UserCancelled () |
| virtual void | ClosingDialog (IActiveContext *lastChanceToUseMyContext) |
| virtual bool16 | HasBeenInitialized () const |
| virtual void | SetInitialized (bool16 initialized) |
| virtual void | SetOwner (IControlView *ownerPanel) |
| virtual IControlView * | GetOwner () const |
| virtual void | GetName (PMString &name) |
Dialog helper methods | |
| virtual void | SetTextControlData (const WidgetID &widgetId, const PMString &text, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual PMString | GetTextControlData (const WidgetID &widgetId, const IPanelControlData *panel=nil) const |
| virtual void | SetTextValue (const WidgetID &widgetId, const PMReal &value, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual PMReal | GetTextValue (const WidgetID &widgetId, const IPanelControlData *panel=nil, bool16 *outParsingError=nil, bool16 *outIsBlank=nil) const |
| virtual void | SetTextValueControlState (const WidgetID &widgetId, ITextValue::TextControlState controlState, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual ITextValue::TextControlState | GetTextValueControlState (const WidgetID &widgetId, const IPanelControlData *panel=nil) const |
| virtual void | SetBooleanControlData (const WidgetID &widgetId, bool16 isChecked, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual bool16 | GetBooleanControlData (const WidgetID &widgetId, const IPanelControlData *panel=nil) const |
| virtual void | SetTriStateControlData (const WidgetID &widgetId, bool16 isSelected, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual void | SetTriStateControlData (const WidgetID &widgetId, ITriStateControlData::TriState triState, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual ITriStateControlData::TriState | GetTriStateControlData (const WidgetID &widgetId, const IPanelControlData *panel=nil) const |
| virtual WidgetID | GetSelectedClusterWidget (WidgetID cluster, const IPanelControlData *panel=nil) |
| virtual void | SetSelectedClusterWidget (WidgetID clusterId, WidgetID widgetToSelect, const IPanelControlData *panel=nil, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue) |
| virtual IStringListControlData * | QueryListControlDataInterface (const WidgetID &widgetId, const IPanelControlData *panel=nil) const |
| virtual IPanelControlData * | QueryIfNilElseAddRef (const IPanelControlData *panel) const |
| virtual void | SelectDialogWidget (const WidgetID &widgetId) |
| virtual bool16 | GetPreviewModeOn () |
| virtual void | SetPreviewModeOn (bool16 bOn) |
| virtual IActiveContext * | QueryDialogContext () |
Public Member Functions inherited from CPMUnknown< IDialogController > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Dialog protocol | |
Dialog query methods | |
Owner query methods | |
Previewable dialog methods | |
Dialog helper methods | |
Protected Member Functions | |
| virtual void | InitializeDialogFields (IActiveContext *context) |
| virtual WidgetID | ValidateDialogFields (IActiveContext *myContext) |
| virtual void | ApplyDialogFields (IActiveContext *myContext, const WidgetID &widgetId) |
| virtual void | ResetDialogFields (IActiveContext *myContext) |
Protected Member Functions inherited from CPMUnknown< IDialogController > | |
| CPMUnknown (IPMUnknown *boss) | |
Friends | |
| class | QAFontDlgController |
Additional Inherited Members | |
Public Types inherited from IDialogController | |
| enum | { kDefaultIID = IID_IDIALOGCONTROLLER } |
Protected Attributes inherited from CPMUnknown< IDialogController > | |
| HelperInterface | fHelperInterface |
Basic implementation of the IDialogController interface, used to control dialogs. Implementors of IDialogController should derive from CDialogController.
| protectedvirtual |
Override to retrieve data from the widgets in the dialog and apply it. By default the widget with id kOKButtonWidgetID causes an apply. Override Update to have others call "ApplyDialog"
| myContext | IN the active context |
| widgetId | IN the widget that triggered the "apply" |
Reimplemented in SnapDialogController, PDFVTUIDialogController, SnipRunDialogController, CusDtLnkUIBrowsDialogController, TxtExpDialogController, WatermarkUIDialogController, FrmLblUIDialogController, BscL10NDialogController, BscDlgDialogController, TranFxUIDialogController, WFPDialogController, XDocBkUIDialogController, PstLstUIDlgController, BPIDlgController, TblBscDialogController, HidTxtEdDlgController, and CSelectableDialogController.
| virtual |
Override to be called during the process of closing the dialog, an opportunity to do some special cleanup. Default implementation is empty.
Reimplemented in SnipRunDialogController, XDocBkUIDialogController, and CSelectableDialogController.
| virtual |
Get the value of a widget that has boolean control data.
Implements IDialogController.
| virtual |
Override to supply the undo/redo name for the dialog. This appears in the edit menu if the user hits "OK" in a previewable dialog. Default implementation returns the window title of the dialog window.
Implements IDialogController.
| virtual |
Get the owner panel of this dialog
Implements IDialogController.
| virtual |
Get the value of the "Preview Mode On" flag (used to be in CDialogObserver).
Implements IDialogController.
| virtual |
Get the selected widget in a cluster
Implements IDialogController.
| virtual |
Get the text of a widget that has text control data.
Implements IDialogController.
| virtual |
Get the value of a widget with an ITextValue interface.
Implements IDialogController.
| virtual |
Get the control-state of a widget with an ITextValue interface.
Implements IDialogController.
| virtual |
Get the value of a widget that has tristate control data.
Implements IDialogController.
| virtual |
Returns kTrue if InitializeFields() has been called.
Implements IDialogController.
| protectedvirtual |
Should be overriden to initialize each widget in the dialog with its default value. Default implementation is empty.
| context | IN the active context |
Reimplemented in SnapDialogController, PDFVTUIDialogController, SnipRunDialogController, WatermarkUIDialogController, TxtExpDialogController, CusDtLnkUIBrowsDialogController, FrmLblUIDialogController, BPIDlgController, PstLstUIDlgController, TranFxUIDialogController, TblBscDialogController, BscL10NDialogController, HidTxtEdDlgController, WFPDialogController, XDocBkUIDialogController, and BscDlgDialogController.
| virtual |
Query for the dialog context established when the dialog was initialized
Implements IDialogController.
| virtual |
Internal utility routine to do what it sez.
Implements IDialogController.
| virtual |
Query for the list control data from a widget
Implements IDialogController.
| protectedvirtual |
Override to modify the default Reset behavior. Called when the user holds down the option/alt key and the cancel button changes to "Reset" and then clicks on the reset button. By default, this function simply calls InitializeDialogFields. For most dialogs, this results in the correct behavior.
| myContext | IN the active context |
Reimplemented in CSelectableDialogController.
| virtual |
This method is typically used in conjuntion with Validate() to select the widget that has "illegal" values.
Implements IDialogController.
Reimplemented in CSelectableDialogController.
| virtual |
Set the value of a widget that has boolean control data.
Implements IDialogController.
| virtual |
Subclasses can call this to set the initialized state, instead of calling the inherited Initialize functions.
Implements IDialogController.
| virtual |
Set the owner panel of this dialog.
| ownerPanel | IN the owner panel |
Implements IDialogController.
| virtual |
Set the value of the "Preview Mode On" flag (used to be in CDialogObserver).
Implements IDialogController.
| virtual |
Set the selected widget in a cluster
Implements IDialogController.
| virtual |
Set the text of a widget that has text control data.
Implements IDialogController.
| virtual |
Set the value of a widget with an ITextValue interface.
Implements IDialogController.
| virtual |
Set the control-state of a widget with an ITextValue interface.
Implements IDialogController.
| virtual |
Set the value of a widget that has tristate control data.
Implements IDialogController.
| virtual |
Set the value of a widget that has tristate control data.
Implements IDialogController.
| virtual |
Override to be called when the user clicks the "cancel" button. Default implementation is empty.
Implements IDialogController.
Reimplemented in SnipRunDialogController, TxtExpDialogController, and CSelectableDialogController.
| protectedvirtual |
Override to be called when the user clicks the "ok" (or equivalent) button. Use ValidateFields to check that the data in each dialog control is valid and within limits. It's up to the subclass to display an alert if invalid data is found. If one or more of the fields have invalid data, return the WidgetID of the dialog item to select. If all fields are valid, return kDefaultWidgetId. When all fields are valid, the "ApplyDialogFields" function will be called.
| myContext | IN the active context |
Reimplemented in SnapDialogController, PDFVTUIDialogController, SnipRunDialogController, TxtExpDialogController, WatermarkUIDialogController, CusDtLnkUIBrowsDialogController, FrmLblUIDialogController, BscL10NDialogController, TranFxUIDialogController, BscDlgDialogController, WFPDialogController, XDocBkUIDialogController, and CSelectableDialogController.