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

Public Types | |
| enum | { kDefaultIID = IID_ISWATCHLIBRARYPANELHELPER } |
Public Member Functions | |
| virtual ErrorCode | PreLoadLibraryList (void)=0 |
| virtual IControlView * | NewPanel (PMString *pPanelName=nil)=0 |
| virtual ErrorCode | BuildPanel (IControlView *iLibPanelView)=0 |
| virtual bool16 | ValidatePanel (IControlView *iLibPanelView)=0 |
| virtual IControlView * | LoadOtherLibrary (WidgetID &widgetID, PMString *pPanelName=nil)=0 |
| virtual bool16 | RescanLibraryList (IPanelControlData *iPanelData, K2Vector< WidgetID > *pInvalPanelList=nil)=0 |
| virtual PMString | GetLibraryNameFromCreatorID (IPanelControlData *iPanelData, int32 creatorID)=0 |
| virtual PMString | GetLibraryNameFromCreatorID (int32)=0 |
| virtual void | SelectLibraryPanelSwatch (IControlView *iLibPanel, const PMString &swatchName)=0 |
| virtual ErrorCode | IsLibraryPanelSwatchSelectionValid (IControlView *iLibPanel, const UIDList &selectList, UIDList &validList, UIDList &conflictList)=0 |
| virtual void | GetLibraryPanelSwatchSelections (IControlView *iLibPanel, UIDList &selectList)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A helper interface for managing the loading, unloading, selecting, adding, and replacing swatches from the Adobe swatch libraries within the InDesign swatch option dialog.
| pure virtual |
Build the library panel by populating the panel with the swatch list. This is usually called when the panel is to be shown.
| iLibPanelView | specifies the library panel view. |
| pure virtual |
Returns the swatch library's panel name from the library's creator ID.
| iPanelData | contains the currently loaded library panels. |
| creatorID | specifies the creator ID. |
| pure virtual |
Returns the swatch library's panel name from the library's creator ID.
| creatorID | specifies the creator ID. |
| pure virtual |
Returns a list of library swatches selected.
| iLibPanel | specifies a library panel. |
| selectList | is the list of new library swatch selection returned. |
| pure virtual |
Load and build a library panel the user has explicitly selected via "Other..."
| widgetID | will contain the new widget ID for this panel. |
| pPanelName | the panel's name is returned if pPanelName is not nil. |
| pure virtual |
Create a new panel base on the preloaded swatch library list. Caller should keep the creation process going until all panels are created. Must call preloadLibraryList () first. Note also the panel is not populated with swatch list until it is actually shown.
| pPanelName | the panel's name is returned if pPanelName is not nil. |
| pure virtual |
Preload the swatch library list from the preset folder.
| pure virtual |
Rescan the designated swatch library panel for new library files and return kTrue if at least one new library is found. Only rescan if library files already preloaded.
If K2Vector<WidgetID>* is not nil, then it also returns a list of library panel widget ID that must be revalidated to ensure the library panel is up-to-date.
Caller should call NewPanel to create a new panel based on the rescanned list. Continue until NewPanel returns an IControlView* = nil.
If a non-empty K2Vector<WidgetID>* is returned, the caller should call Validate for each of the panel in the list. The validatation must be make by the caller since the caller has knowledge regarding how the library panel is being used.
| iPanelData | contains the currently loaded library panels. |
| pInvalPanelList | If pInvalPanelList is not nil, then it also returns a list of library panel widget ID that must be revalidated to ensure the library panel is up-to-date. |
| pure virtual |
Select the swatch with swatchName in the specified swatch library's panel.
| iLibPanel | specifies a library panel. |
| swatchName | is the swatch name to select. |
| pure virtual |
Validate the library panel. This make sure that the library file associated with the panel still exists. (User might have moved or deleted the file.)
| iLibPanelView | specifies the library panel view. |