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

Public Types | |
| enum | { kDefaultIID = IID_IPANELMGR } |
Public Member Functions | |
| virtual void | Startup ()=0 |
| virtual void | ShutDown ()=0 |
| virtual void | UpdatePanelIcon (const WidgetID &widgetId, PluginID pluginId=kInvalidPlugin, RsrcID resourceId=kInvalidRsrcID)=0 |
| virtual IControlView * | CreatePanel (const PMLocaleId &localeId, RsrcID panelID, const PluginID &pluginID)=0 |
| virtual void | RegisterPanel (PaletteRefType paletteType, IControlView *panel, bool16 isResizable, const PMString &panelName, ActionID actionID, const PMString &altMenu, PMReal altPos, const ScriptID &scriptID, PluginID paletteIconPluginID, RsrcID paletteIconRsrcID)=0 |
| virtual void | MovePanel (PaletteRef parentPalette, IControlView *panel)=0 |
| virtual void | DestroyPanel (const UID &panelUID)=0 |
| virtual IControlView * | GetPanelFromWidgetID (const WidgetID &widgetId) const =0 |
| virtual IControlView * | GetPanelFromActionID (const ActionID &actionId) const =0 |
| virtual IControlView * | GetVisiblePanel (const WidgetID &widgetId) const =0 |
| virtual IControlView * | GetVisiblePanelFromActionID (const ActionID &actionId) const =0 |
| virtual bool16 | DoesPanelExist (const WidgetID &widgetId) const =0 |
| virtual bool16 | DoesPanelExistFromActionID (const ActionID &actionId) const =0 |
| virtual void | ShowPanelByMenuID (const ActionID &id, bool16 giveKeyFocus=kTrue)=0 |
| virtual void | ShowPanelByWidgetID (const WidgetID &widgetId, bool16 giveKeyFocus=kTrue)=0 |
| virtual void | HidePanelByMenuID (const ActionID &id)=0 |
| virtual void | HidePanelByWidgetID (const WidgetID &widgetId)=0 |
| virtual bool16 | IsPanelWithMenuIDShown (const ActionID &id) const =0 |
| virtual bool16 | IsPanelWithWidgetIDShown (const WidgetID &widgetId) const =0 |
| virtual void | ArePanelsWithMenuIDMostlyVisible (const K2Vector< ActionID > &inActionList, K2Vector< bool16 > &outMostlyVisibleList) const =0 |
| virtual bool16 | IsPanelWithMenuIDMostlyVisible (const ActionID &id) const =0 |
| virtual PMString | GetPanelMenuName (const ActionID &id) const =0 |
| virtual void | SetPanelMenuName (const ActionID &id, const PMString &menustr)=0 |
| virtual IControlView * | GetPanelFromPaletteContainer (PaletteRef palette) const =0 |
| virtual PaletteRef | GetPaletteRefContainingPanel (const IPMUnknown *panel) const =0 |
| virtual uint32 | GetPanelCount () const =0 |
| virtual bool16 | GetNthPanelInfo (uint32 index, UID &panelUID, ActionID *actionID=nil, WidgetID *widgetID=nil, PMString *panelName=nil, ScriptID *scriptID=nil) const =0 |
| virtual void | SetPanelResizabilityByWidgetID (const WidgetID &widgetId, bool16 isResizable)=0 |
| virtual bool16 | IsPanelWithWidgetIDResizable (const WidgetID &widgetId) const =0 |
| virtual void | FitPaletteToPanel (const IControlView *panel)=0 |
| virtual void | FixupPanelOrigin (IControlView *panel, PaletteRef parentPalette) const =0 |
| virtual void | SetPanelPopupMenuName (IControlView *panel, const PMString &popupMenuName)=0 |
| virtual PMString | GetPanelPopupMenuName (IControlView *panel) const =0 |
| virtual IControlView * | GetPanelFromPanelName (const PMString &panelName) const =0 |
| virtual void | UsageTracking_PanelClosed (const PaletteRef &paletteRef) const =0 |
| virtual void | LogPanelUsage () const =0 |
| virtual void | ShowPanelByExtensionID (const PMString &extensionId, const PMString &panelId, bool16 giveKeyFocus=kTrue)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface representing the Panel manager, which holds a collection of panels, and provides access to those panels. A panel (in this context) is the topmost InDesign boss object that users may think of as a palette, such as the stroke panel. Above the panel are various objects that act as containers to group panels together in various ways. These are represented by PaletteRef objects.
| pure virtual |
Are these panels visible(and not mostly covered by some other window. The version that takes a list is more efficient if you need to ask about several panels at once.
| inActionList | IN actionIDs of the panels |
| outMostlyVisibleList | OUT bools indicating the mostlyvisible state of the panels. |
| pure virtual |
Create a panel without adding it to the Panel manager.
| localeId | IN |
| panelID | IN resource id of the panel to be created |
| pluginID | IN plugin id of plugin that contains the panel resource |
| pure virtual |
Remove a panel from its palette and destroy it. Typically invoked through kDestroyPanelCmdBoss
| panelUID | IN UID for the panel to be destroyed |
| pure virtual |
Does the panel manager know about a specific panel.
| widgetId | IN widgetID of the desired panel |
| pure virtual |
Resize the parent palette of the given panel to accomodate the panels new size. Usually called internally by the panelmgr. This API may be removed in the future.
| pure virtual |
Fixup the the origin of a panel used in a toolbar or controlbar. (Called by framework. Client code should not need to call this.)
| pure virtual |
Query for the PaletteRef holding a panel.
| pure virtual |
Return the entries in the panel list
| pure virtual |
Query for the panel based on it's palette container. Should only pass in the immediate parent of a panel, such as a kToolbarType, kControlBarType, or kTabPanelContainerType
| pure virtual |
Get a panel by its widgetId or actionId.
You can use IsPanelWithWidgetIDShown or DoesPanelExist for related info.
| widgetId | IN widgetID of the desired panel |
Get/Set the menu string associated with a panel.
| pure virtual |
Retrieve the current popup menu name, if any, from the panel
| panel | IN the panel |
| pure virtual |
Get a panel by its widgetId or actionId. If the panel is not currently visible, this will return nil. You can use IsPanelWithWidgetIDShown or DoesPanelExist for related info. It is not safe to hand out pointers to panels that are not shown, PanelMgr may purge them and their contents
| widgetId | IN widgetID of the desired panel |
| pure virtual |
Hide a panel. May also hide containing PaletteRef objects, depending on their contents.
| id | IN actionID of the panel |
| pure virtual |
Hide a panel (by hiding the palette that contains the panel).
| widgetId | IN widgetId of the panel |
| pure virtual |
Is the panel visible onscreen (OK if panel is collapsed or obscured).
| id | IN actionID of the panel |
| pure virtual |
Is the panel and its palette shown. Note: Will return kFalse for a minimized palette (panel's control view is hidden in this case). Use IsPanelWithMenuIDVisible instead if you need to know if it's on the screen at all.
| id | IN actionID of the panel |
| pure virtual |
Is the panel resizable. Resizable panels have a resize widget in the bottom right corner to enable the user to drag resize them.
| widgetId | IN widgetId of the panel |
| pure virtual |
for_internal_use_only To log any open/close panel usage.
| pure virtual |
Move a panel to a palette (removing it from it's current location). See PaletteRefUtils for more variations on this theme.
| parentPalette | IN destination palette window. For a regular tabbed palette, this is expected to be a tabgroup. |
| panel | IN the panel to be moved |
| pure virtual |
Add an already created and loaded panel to the Panel manager.
| paletteType | IN which kind of palette this panel goes in. Usually one of (kTabPanelContainerType | kToolbarType | kControlBarType) |
| panel | IN the panel to be added to the Panel manager. PanelMgr will AddRef the panel, and not release until app shutdown. |
| isResizable | IN indicates if the panel should have a resize box. |
| panelName | IN name of the panel (used as menu name in window menu), or empty string if altMenu is used |
| actionID | IN the action id to associate with the panel |
| altMenu | IN full path of panel menu if it appears somewhere other than the window menu |
| altPos | IN menu position to go along with altMenu |
| scriptID | IN which script object to use for this panel |
| paletteIconPluginID | IN plugin id for palette icon |
| paletteIconRsrcID | IN resource id for palette icon |
| pure virtual |
Add a popup menu to the panel and set its name. Pass the empty string to remove a popup menu from the panel.
| panel | IN the panel |
| popupMenuName | IN the name of the popup menu |
| pure virtual |
Set if the panel is resizable. Resizable panels have a resize widget in the bottom right corner to enable the user to drag resize them. Most panels are either resizable or not all the time, but a few
have different modes, some of which are resizable, and some of which are not. This provides a way to switch between being a resizable panel and not.
| widgetId | IN widgetId of the panel |
| resizable | is the panel resizable |
| pure virtual |
for_internal_use_only Show a UXP panel. Calling this should make the panel appear onscreen.
| extensionId | IN extension Id of the UXP plugin |
| giveKeyFocus | IN give key focus to panel |
| pure virtual |
Show a panel. This may cause one or more containing PaletteRef objects to show as well. Calling this should make the panel appear onscreen.
| id | IN actionID of the panel |
| giveKeyFocus | IN give key focus to panel |
| pure virtual |
Show a panel. This may cause one or more containing PaletteRef objects to show as well. Calling this should make the panel appear onscreen.
| widgetId | IN widgetId of the panel |
| giveKeyFocus | IN give key focus to panel |
| pure virtual |
Update palette icon of the panel.
| widgetID | IN widgetID of the desired panel |
| pluginId | IN palette icon pluginId. |
| resourceId | IN palette icon resourceId. |
| pure virtual |
for_internal_use_only To log any open/close panel usage.