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

Public Types | |
| enum | { kDefaultIID = IID_IDOCUMENTUISTATE } |
Public Member Functions | |
| virtual PMRect | GetPresentationFrame () const =0 |
| virtual void | GetScaleFactor_ (PMReal &xScaleFactor, PMReal &yScaleFactor) const =0 |
| virtual void | SetScaleFactor_ (PMReal &xScaleFactor, PMReal &yScaleFactor)=0 |
| virtual PMPoint | GetScrollOffset () const =0 |
| virtual void | SetScrollOffset (PMPoint &p)=0 |
| virtual ILayoutControlData::FitSetting | GetFitSetting () const =0 |
| virtual void | SetFitSetting (ILayoutControlData::FitSetting fit)=0 |
| virtual IWindow::VisibleState | GetVisibleSetting () const =0 |
| virtual PMRect | GetSavedMonitorRect () const =0 |
| virtual IDocumentPresentation::CreationParentingPrefs | GetParentingPreferenceForCreation () const =0 |
| virtual void | UpdateUIState (IPresentationList *docPresentationList)=0 |
| virtual void | UpdateUIState (ILayoutControlData *layoutControlData)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
An interface off the document workspace (kDocWorkspaceBoss) that captures the ui state of a document. Currently this is only used on layout views in order to save and restore view size, position, scroll location, zoom factor, maximize/minimize state, etc when reopening a layout views. Replaces the IDocWindowState.h interface.
All the Set methods in this class are already called automatically in response to window size, zoom, etc events, so they are probably of limited use to third parties.
| pure virtual |
Return the 'fit' setting for the window.
| pure virtual |
Return a presentation's floating vs docked creation pref.
| pure virtual |
Return a presentation's view size.
| pure virtual |
Return the main monitor rect when the document was saved. Used when reopening a document to see if the current monitor is dramatically different than the one in use when the document was saved.
| pure virtual |
Return the scale factor for a presentation. xScaleFactor and yScaleFactor are generally the same.
| IN/OUT | xScaleFactor the x scaling factor for this view |
| IN/OUT | yScaleFactor the y scaling factor for this view |
| pure virtual |
Return the scroll offset for a view.
| pure virtual |
| pure virtual |
Set the 'fit' setting for the window. Called in response to zoom changes on the layout window.
| fit | the new fitting setting |
| pure virtual |
Set the x and y scale factors for a window. Called in response to zoom changes on the layout window.
| xScaleFactor | |
| yScaleFactor |
| pure virtual |
Set the scroll offset for a view. Called in response to scroll changes on the layout window.
| p | a PMPoint value representing the offset |
| pure virtual |
Capture the ui state for layout views for a document. This is saved persistently so when the document is reopened, the zoom factor, fit setting, scroll offset and view size are restored. This method is called internally in response to various size, zoom, scroll changes.
| *docPresentationList | the document's presentation list. |
| pure virtual |
Capture the ui state for layout views for a document. This is saved so when the document is reopened, the zoom factor, fit setting, scroll offset and view size are restored. This method is called internally in response to various size, zoom, scroll changes.
| *layoutControlData | of the front document. |