InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGraphicStyleNameTable Class Referenceabstract

#include <IGraphicStyleNameTable.h>

Inheritance diagram for IGraphicStyleNameTable:
IPMUnknown

Public Member Functions

virtual UID FindByName (const PMString &styleName) const =0
 
virtual uint32 FindByUID (const UID &styleUID) const =0
 
virtual uint32 GetStyleCount (void) const =0
 
virtual UID GetNoStyleUID (void) const =0
 
virtual void AddStyle (const UID &newStyleUID)=0
 
virtual ErrorCode AddNoStyle (const UID &noStyleUID)=0
 
virtual void RemoveStyle (const UID &styleUID)=0
 
virtual UID GetNthStyle (uint32 index) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

The graphic style name table interface manages a list of graphic styles for a workspace. Each name table has one special style, the "[No Style]" graphic style. A graphic style is a kGraphicStyleBoss object.

Member Function Documentation

virtual ErrorCode IGraphicStyleNameTable::AddNoStyle (const UIDnoStyleUID)
pure virtual

Add the specified [No Style] to the style name table.

Parameters
noStyleUIDspecifies the [No Style] UID to add.
Returns
an error code if [No Style] is already in the list.
virtual void IGraphicStyleNameTable::AddStyle (const UIDnewStyleUID)
pure virtual

Add the specified new style to the style name table.

Parameters
newStyleUIDspecifies the new style UID to add.
virtual UID IGraphicStyleNameTable::FindByName (const PMStringstyleName) const
pure virtual

Find a graphic style in the style name table with the specified style name.

Parameters
styleNamespecifies the style name to find.
Returns
a style UID with the style name. Returns kInvalidUID if no style is found.
virtual uint32 IGraphicStyleNameTable::FindByUID (const UIDstyleUID) const
pure virtual

Find a graphic style in the style name table with the specified style UID.

Parameters
styleUIDspecifies the style UID to find.
Returns
an index in the table with the style name. Returns a -1 if not style with the UID is found.
virtual UID IGraphicStyleNameTable::GetNoStyleUID (void ) const
pure virtual

Returns the UID of the [No Style] graphic style in the style name table.

virtual UID IGraphicStyleNameTable::GetNthStyle (uint32 index) const
pure virtual

Return the nth style from the style name table.

Parameters
indexspecifies the nth style.
Returns
the style UID that is the nth style.
virtual uint32 IGraphicStyleNameTable::GetStyleCount (void ) const
pure virtual

Returns the number of graphic styles in the style name table.

virtual void IGraphicStyleNameTable::RemoveStyle (const UIDstyleUID)
pure virtual

Remove the specified style from the style name table.

Parameters
styleUIDspecifies the style UID to remove.