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

Public Types | |
| enum | { kDefaultIID = IID_ISWATCHESPANELATTRIBUTES } |
Public Member Functions | |
| virtual bool16 | GetGraphicStateInteraction () const =0 |
| virtual bool16 | GetShowButtons () const =0 |
| virtual bool16 | GetListItemsEditable () const =0 |
| virtual bool16 | GetAddUnnamedColorFlag () const =0 |
| virtual bool16 | AllowAllReferencedUnnamedColors () const =0 |
| virtual bool16 | AllowAnySwatchEntry () const =0 |
| virtual ClassID | GetViewFilterClassID () const =0 |
| virtual bool16 | ShouldObserveRenderingObjectChange () const =0 |
| virtual void | SetViewFilterClassID (const ClassID &newClassId)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface reads a set of attributes from a resource file. These attributes control how the "Swatch List" widget will configure itself (graphic state interaction, button visibility, swatch editability etc.) and which color items in the model it will display. Adding all referenced unnamed colors to color list might have performance issues.
"Any Swatch" entry can be added to swatch list. This entry essentially means no color. This is used for no particular selection.
| pure virtual |
Should the "Swatch List" widget show all referenced unnamed colors For large documents there might be performance issues with this.
| pure virtual |
Should the "Swatch List" widget show an entry named "Any Swatch"
| pure virtual |
Returns true if swatch list widget is allowed to display the currently selected unnamed swatch.
| pure virtual |
Returns true if swatch list widget has interaction with the graphic state objects.
| pure virtual |
Returns true if swatch list item can be edited directly by double-clicking.
| pure virtual |
Returns true if swatch list widget should include show swatch buttons.
| pure virtual |
Return the rendering object class ID the swatch list widget is filtered with. If kInvalidClass is returned then all rendering types in the swatch list is shown.
| pure virtual |
Set the swatch list view filter class ID.
| newClassId | specifies the new list view filter class ID. |
| pure virtual |
Returns a bool indicating if this instance of swatches panel should observe IID_IRENDERINGOBJECT protocol. Attaching to this protocol ensures that the swatches list gets updated as soon as we add/delete a swatch