![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CGenStyleListMgr (IPMUnknown *pBoss) | |
| virtual int32 | GetNumStyles () |
| virtual ErrorCode | GetNthStyleName (int32 index, PMString *pName) |
| virtual ErrorCode | GetNthStyleDescription (int32 index, PMString *pDesc) |
| virtual bool32 | IsNthStyleEditable (int32 index) |
| virtual bool32 | IsNthStyleDeleteable (int32 index) |
| virtual int32 | GetStyleIndexByName (const PMString &pName) |
| virtual ErrorCode | AddStyle (PMString &name) |
| virtual ErrorCode | CopyNthStyle (int32 srcIndex, PMString &newName) |
| virtual ErrorCode | DeleteNthStyle (int32 index) |
| virtual PMString | GetUniqueStyleName (PMString &baseName) |
| virtual PMString | GetConformingStyleName (PMString &baseName) |
| virtual ErrorCode | SetNthStyleName (int32 index, PMString &name) |
| virtual bool32 | CustomImport (const IDFile *theFile) |
| virtual bool32 | CustomExport (const IDFile *theFile, K2Vector< int32 > &indexList) |
| virtual ErrorCode | ImportStyles (UIDRef uidrefFrom) |
| virtual ErrorCode | ExportStyles (UIDRef uidrefTo, K2Vector< int32 > &indexList) |
| virtual void | GetImportExportFileMagicByte (DBUtils::MagicBytes magicBytes) |
| virtual UIDRef | GetNthStyleRef (int32 index) |
| virtual void | ReadWrite (IPMStream *s, ImplementationID prop) |
| virtual void | ListInsert (UID uid, int32 index=-1) |
| virtual void | ListRemove (int32 index) |
| virtual void | ListReplace (UID uid, int32 index) |
| ErrorCode | ImportFlattenerStyle (int32 nOwningStyle, const PMString &strOwningStyle, IGenStlEdtListMgr *pStyleMgr) |
| ErrorCode | AddFlattenerStyle (int32 nSrcIndex, const PMString &strNewName, IGenStlEdtListMgr *pSrc, IGenStlEdtListMgr *pDst) |
| virtual bool16 | ReferencesFlattenerStyle () |
| virtual UIDRef | GetReferencedFlattenerStyle (int32 nIndex) |
| virtual PMString | GetFlattenerStyleName (int32 nIndex) |
| virtual void | SetFlattenerStyleName (int32 nIndex, const PMString &strName) |
| virtual bool16 | EnabledInNoPubState () |
Public Member Functions inherited from IGenStlEdtListMgr | |
| virtual bool32 | GetUIString (GenStlEdtUIStringID whichString, PMString *pName)=0 |
| virtual ClassID | GetExportFileRootBossClassID ()=0 |
| virtual void | GetExportFileCreatorAndType (OSType *pCreator, OSType *pType)=0 |
| virtual void | GetExportFileExtension (PMString *pExt)=0 |
| virtual bool32 | EditNthStyle (int32 index, bool16 bNew)=0 |
| virtual ErrorCode | CopyStyleData (UIDRef srcStyle, UIDRef dstStyle)=0 |
| virtual ErrorCode | InvokeNthStyle (int32 index, bool32 displayUI=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 |
Protected Member Functions | |
| virtual IGenericSettings * | QuerySettings (int32 nIndex)=0 |
| virtual PMString | GetDefaultName ()=0 |
| virtual ClassID | GetAddStyleCmdBossID ()=0 |
| virtual ClassID | GetSetStyleNameCmdBossID ()=0 |
| virtual ClassID | GetDeleteStyleCmdBossID ()=0 |
| virtual ClassID | GetStyleBossID ()=0 |
| virtual PMIID | GetListMgrIID ()=0 |
| virtual PMIID | GetLockInfoIID () |
| UIDRef | GetSelfUIDRef () const |
| PMString | GetNextUniqueStyleName (int32 i, const PMString &baseName) |
Protected Attributes | |
| PersistUIDList | fStyleUIDList |
Additional Inherited Members | |
Public Types inherited from IGenStlEdtListMgr | |
| enum | GenStlEdtUIStringID { kDialogTitle, kStyleListTitle, kNewStyleNameTitle, kRenameStyleTitle, kNameConflictPrompt, kNameRequiredPrompt, kImportTitle, kExportTitle, kExportFileClassName, kExportDefaultFileName, kAlertCannotLoadStyles, kNameReservedPrompt, kLastGenStlEdtUIStringID } |
| virtual |
Adds a new style with specified initial name. If the name is already in the list, the function fails.
| name | IN The name of the new style. |
Implements IGenStlEdtListMgr.
| virtual |
Makes a copy of the specified style. Fails if newName already exists in the style list.
| srcIndex | IN The index of the style to copy. |
| newName | IN The name of the new style. |
Implements IGenStlEdtListMgr.
| inlinevirtual |
If you have a custom export (i.e., you don't want to use the default implementation provided by GenericStyleEditor) then do your export in here and return kTrue. Otherwise, return kFalse and the standard implemenation (which calls ImportStyles/ExportStyles below) will be used.
| theFile | IN If null, you should bring up UI to pick the file. Otherwise, should be used as the source or destination export file. |
| indexList | IN A list of the style indices that should be copied (corresponds to the user's selection when they clicked Export). |
Implements IGenStlEdtListMgr.
| inlinevirtual |
If you have a custom import (i.e., you don't want to use the default implementation provided by GenericStyleEditor) then do your import in here and return kTrue. Otherwise, return kFalse and the standard implemenation (which calls ImportStyles/ExportStyles below) will be used.
| theFile | IN If null, you should bring up UI to pick the file. Otherwise, should be used as the source or destination import file. |
Implements IGenStlEdtListMgr.
| virtual |
Deletes a style.
| index | IN The index of the style to delete. |
Implements IGenStlEdtListMgr.
| inlinevirtual |
Tells whether items of this list are enabled in no-pub state. kFalse by default.
Implements IGenStlEdtListMgr.
| virtual |
Exports styles to an open export file. The selected styles are copied from the defaults to the indicated database.
| uidrefTo | IN The root of a new export document into which the styles will be copied. |
| indexList | IN A list of the style indices that should be copied (corresponds to the user's selection when they clicked Export). |
Implements IGenStlEdtListMgr.
| inlinevirtual |
For flattener-style-referring lists, obtains the flattener style to which a particular style refers.
| index | IN The index of the style. |
Implements IGenStlEdtListMgr.
| virtual |
Get the magic byte of the export/import file. This is a special unique series of characters that you come up with that ensures that the database won't be accidentally imported as a "real" document.
| magicBytes | OUT Receives the magic bytes to use for the import/export file. |
Implements IGenStlEdtListMgr.
| virtual |
Obtains the description of the Nth style.
| index | IN The index of the style you're interested in. |
| pDesc | OUT Receives the description of the style. |
Implements IGenStlEdtListMgr.
| virtual |
Obtains the name of the Nth style.
| index | IN The index of the style you're interested in. |
| pName | OUT Receives the name of the style. |
Implements IGenStlEdtListMgr.
| virtual |
Internal use only. Obtains the UID of the Nth style object. From this you can get/set the client items. Note that this only is used by style lists that use UIDList-based storage.
| index | IN The style to obtain the UIDRef for. |
Implements IGenStlEdtListMgr.
| virtual |
Returns the number of styles in the list.
Implements IGenStlEdtListMgr.
| inlinevirtual |
For flattener-style-referring lists, obtains the flattener style to which a particular style refers.
| index | IN The index of the style. |
Implements IGenStlEdtListMgr.
| virtual |
Searches the list for a style with the specified name.
| name | IN The name of the style to look for. |
Implements IGenStlEdtListMgr.
Generate a unique style name. If the base string is empty, the the new will look something like: style 1, style 2. If the base string contains an exisiting style name, then the new name will look something like: <original name>=""> copy 1, <original name>=""> copy 2.
| baseName | IN The base name for which you want a unique name. |
Implements IGenStlEdtListMgr.
| virtual |
Imports styles from an open database.
| uidrefFrom | IN Points to the UID in another database from which we can obtain a corresponding list manager interface and therefore query for the list of styles in that database. Typically this is the root UID in a style import/export file, but technically any database that can be used to pull styles will do. The key is that we can query for IGenStlEdtListMgr on the boss. |
Implements IGenStlEdtListMgr.
| virtual |
Returns whether a particular style can be deleted.
| index | IN The index of the style you're interested in. |
Implements IGenStlEdtListMgr.
| virtual |
Returns whether a particular style is editable.
| index | IN The index of the style you're interested in. |
Implements IGenStlEdtListMgr.
| virtual |
Internal use only. Helper function that inserts a list element when lists are UIDList based. This is a direct window into the UIDList and should not be used except by a style list manager itself.
| uid | IN The UID to insert. |
| index | IN The index before which to insert the UID, or -1 to append. |
Implements IGenStlEdtListMgr.
| virtual |
Internal use only. Helper function that removes a list element when lists are UIDList based. This is a direct window into the UIDList and should not be used except by a style list manager itself.
| index | IN The index of the UID to remove. |
Implements IGenStlEdtListMgr.
| virtual |
Internal use only. Helper function that replaces a list element when lists are UIDList based. This is a direct window into the UIDList and should not be used except by a style list manager itself.
| uid | IN The UID to replace the existing one with. |
| index | IN The index of the element to replace. |
Implements IGenStlEdtListMgr.
| inlinevirtual |
Indicates whether this style list type refers to flattener styles as "child" entities (for example, printer styles and pdf export styles). If true, the flattener styles will be included as part of the export/import process.
Implements IGenStlEdtListMgr.
| inlinevirtual |
For flattener-style-referring lists, associates a flattener style with a list element.
| index | IN The index of the element. |
| strName | IN The name of the flattener style with which to associate the element. |
Implements IGenStlEdtListMgr.
| virtual |
Changes the name of the specified style. Will fail if the name already exists in the style list. N.B.: Because the list is always maintained in alphabetical order, this function will generally cause reordering.
| index | IN The index of the style that you want to change the name of. |
| name | IN The name of the new style. |
Implements IGenStlEdtListMgr.