![]() | InDesign SDK 20.5 |
Public Member Functions | |
| ErrorCode | ChangeStructureViewState (IActiveContext *activeContext, bool16 setVisible) |
| bool16 | IsStructureViewSelectionNonEmpty (IActiveContext *activeContext) |
| bool16 | IsStructureViewShowing (const UIDRef &documentUIDRef) |
| ErrorCode | SetExplicitStructureViewSelection (IActiveContext *activeContext, const XMLReference &xmlReference) |
| ErrorCode | SetExplicitStructureViewRootSelected (IActiveContext *activeContext) |
Manipulate the state of the structure-view:
These methods mainly take IActiveContext, implicitly meaning they are likely to be useful when writing your user interface, that is, client code.
| ErrorCode SnpManipulateStructureView::ChangeStructureViewState | ( | IActiveContext * | activeContext, |
| bool16 | setVisible | ||
| ) |
Show or hide the structure-view
| activeContext | specifies current active context |
| setVisible | kTrue to show, kFalse to hide |
| bool16 SnpManipulateStructureView::IsStructureViewSelectionNonEmpty | ( | IActiveContext * | activeContext | ) |
Determine if nodes are selected in the structure-view
| activeContext | specifies current active context |
| bool16 SnpManipulateStructureView::IsStructureViewShowing | ( | const UIDRef & | documentUIDRef | ) |
Determine if structure-view window is showing
| documentUIDRef | specifies document of interest |
| ErrorCode SnpManipulateStructureView::SetExplicitStructureViewRootSelected | ( | IActiveContext * | activeContext | ) |
Explicitly set the root element in the structure-view to be selected.
| activeContext | specifies current active context |
| ErrorCode SnpManipulateStructureView::SetExplicitStructureViewSelection | ( | IActiveContext * | activeContext, |
| const XMLReference & | xmlReference | ||
| ) |
Set a selection in the structure-view explicitly
| activeContext | specifies current active context |
| xmlReference | specifies the element to select |