![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpShowPalette () | |
| virtual | ~SnpShowPalette () |
| ErrorCode | ShowHide (const PaletteRef &palRef, bool16 isShow) |
| ErrorCode | ShowHideByAction (const ActionID &actionID, bool16 isShow) |
| ErrorCode | GetPanelsRegistered (std::map< PMString, PaletteRef > &outNameUIDMap) |
| bool16 | IsShowing (const PaletteRef &palRef) |
| bool16 | IsShowingByAction (const ActionID &actionID) |
| bool16 | IsShowingByWidget (const WidgetID &widgetID) |
| ErrorCode | ShowHideByWidget (const WidgetID &widgetID, bool16 isShowing) |
| ErrorCode | RunScenario (IActiveContext *activeContext) |
Shows how to:
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode SnpShowPalette::GetPanelsRegistered | ( | std::map< PMString, PaletteRef > & | outNameUIDMap | ) |
Acquire collection of palette-panel widgets, as mapping from names to UIDs.
| outNameUIDMap | map that contains name to UID map for known palette-panels |
| bool16 SnpShowPalette::IsShowing | ( | const PaletteRef & | palRef | ) |
Determine if specified palette is showing
| palRef | specifies the palette-panel of interest |
| bool16 SnpShowPalette::IsShowingByAction | ( | const ActionID & | actionID | ) |
Determine if specified panel is showing
| actionID | specifies panel of interest |
| bool16 SnpShowPalette::IsShowingByWidget | ( | const WidgetID & | widgetID | ) |
Determine if specified panel is showing
| widgetID | specifies panel of interest |
| ErrorCode SnpShowPalette::RunScenario | ( | IActiveContext * | activeContext | ) |
Implements scenario that exercises the code in this snippet.
| activeContext |
| ErrorCode SnpShowPalette::ShowHide | ( | const PaletteRef & | palRef, |
| bool16 | isShow | ||
| ) |
Show or hide panel widget by its UID.
| palRef | the palette-panel to show or hide |
| isShow | specifies whether to show (if kTrue) or hide (if kFalse) |
| ErrorCode SnpShowPalette::ShowHideByAction | ( | const ActionID & | actionID, |
| bool16 | isShow | ||
| ) |
Show or hide palette-panel widget by associated ActionID.
| actionID | identifies the action to show the palette |
| isShow | specifies whether to show (if kTrue) or hide (if kFalse) |
| ErrorCode SnpShowPalette::ShowHideByWidget | ( | const WidgetID & | widgetID, |
| bool16 | isShowing | ||
| ) |
Show or hide by WidgetID
| widgetID | specifies which widget |
| isShowing | kTrue to show the panel, kFalse to hide it |