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

Public Types | |
| enum | { kDefaultIID = IID_IPALETTEPANELUTILS } |
Public Member Functions | |
| virtual int32 | GetNumPanelsInTabGroup (IControlView *panel)=0 |
| virtual ICommand * | CreateDestroyPanelCmd (UID panelUID)=0 |
| virtual ErrorCode | ScheduleDestroyPanelCmd (UID panelUID)=0 |
| virtual ICommand * | CreateHidePanelCmd (UID panelUID)=0 |
| virtual ErrorCode | ScheduleHidePanelCmd (UID panelUID)=0 |
| virtual IPanelControlData * | QueryPanelByWidgetID (WidgetID widgetID)=0 |
| virtual void | ShowNextDetailLevel (WidgetID panelWidgetID)=0 |
| virtual PMString | GetCurrentOptionString (WidgetID panelWidgetID)=0 |
| virtual WidgetID | GetCurrentListBoxID (const WidgetID panelID, RsrcID *itemWidgetRsrcID=nil)=0 |
| virtual WidgetID | GetCurrentListBoxID (const IPanelControlData *panelData, RsrcID *itemWidgetRsrcID=nil)=0 |
| virtual void | ShowHideOptions (WidgetID panelWidgetID)=0 |
| virtual GSysRect | GetMaxDocAreaRectAvoidingPalettes (bool16 onlyConsiderStashed=kFalse)=0 |
| virtual void | ResizePalettePanel (IControlView *panelView, const PMPoint &delta)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Utility interface for palette and panel related methods.
Create a command to destroy a panel
Create a command to hide a panel (currently works by hiding the palette)
| pure virtual |
Get the current list box ID in the given panel. Used for Small palette rows.
NOTE: The GetCurrentListBoxID variants assume a rather simplistic panel organization, requiring that only one listbox in the panels entire subview hierarchy be visible at a time. When designing new panels, keep this in mind. Caveat Emptor. IMPORTANT NOTE: This method will fail to find the proper listbox if the panel is not shown. If you are calling from the panels code, then get it's panel data and call the second variant of this method. If you are calling from somewhere else and all you have is a panelID, then call this one, but handle failure gracefully. (You should probably call panelMgr->IsPanelWithWidgetIDShown(panelID) first.)
| panelID | IN which panel |
| itemWidgetRsrcID | OUT returns the rsrcID to use for elements in the current listbox. See IListBoxAttributes::GetItemWidgetID |
| pure virtual |
Get the current list box ID in the given panel. Used for Small palette rows.
NOTE: The GetCurrentListBoxID variants assume a rather simplistic panel organization, requiring that only one listbox in the panels entire subview hierarchy be visible at a time. When designing new panels, keep this in mind. Caveat Emptor.
| panelID | IN which panel |
| itemWidgetRsrcID | OUT returns the rsrcID to use for elements in the current listbox. See IListBoxAttributes::GetItemWidgetID |
Get string corresponding to the panels current detail level, if it has a panel detail controller. Either "Show Options" or "Hide Options"
| pure virtual |
Adjust the bbox of the max document window, considering the current palette locations.
| pure virtual |
| pure virtual |
Get a panel from a widget id. Used mostly by menus/actions that want to do something to a panel (find/update a specific widget).
Note: If the panel is not visible, this method will return nil. This is because the PanelMgr is optimized to purge panels that are not shown, so we don't want to hand out pointers to them.
| pure virtual |
resizes the panel view in palette
| panelView | IN panel to resize |
| delta | IN delta amount to resize. these are the relative dimensions i.e. delta = (5,-5) represents increase the width by 5 and reduce the height by 5. |
| pure virtual |
Create and schedule a command to destroy a panel
| pure virtual |
Create and schedule a command to hide a panel
| pure virtual |
Show or hide panel options for panels with panel detail controllers.
| pure virtual |
Switch the panel to it's next detail level, if it has a panel detail controller.