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

Public Types | |
| enum | { kDefaultIID = IID_IGRAPHICSTATEUTILS } |
Public Member Functions | |
| virtual ErrorCode | ProcessGfxStateApplyAttribute (IPMUnknown *iNewAttribute, ISelectionManager *iSelectionMgr=nil)=0 |
| virtual ErrorCode | ProcessGfxStateApplyAttribute (IPMUnknown *iNewAttribute, IGraphicAttributeSuite *iGraphicAttrSuite=nil)=0 |
| virtual ErrorCode | ProcessGfxStateAddMultAttributes (IGraphicStyleAttributeBossList *iNewAttrList, IGraphicAttributeSuite *iGraphicAttrSuite=nil)=0 |
| virtual ErrorCode | ProcessGfxStateRemoveAttributes (ClassID *pClassList, uint16 attributeCount, IGraphicAttributeSuite *iGraphicAttrSuite=nil)=0 |
| virtual ICommand * | CreateAttributeCommand (const IPMUnknown *attribute, const UIDList *pTargetItemList, bool16 doPrePost, bool16 enableDoNotify)=0 |
| virtual ICommand * | CreateGfxClearOverrideCommand (ClassID attributeClassID, const UIDList *targetItemList, bool16 enableDoNotify)=0 |
| virtual ICommand * | CreateGfxApplyOverrideCommand (ClassID renderObjectClassID, UID renderUID, ClassID attributeClassID, const UIDList &targetItemList, bool16 doPrePost, bool16 enableDoNotify)=0 |
| virtual ICommand * | CreateGfxSwapStrokeAndFillCommand (const UIDList &targetItemList)=0 |
| virtual ICommand * | CreateTextSwapStrokeAndFillCommand (ITextModel *iTextModel, ITextFocus *iTextFocus)=0 |
| virtual void | TransferAttributesModified (ICommand *iSourceCommand, IClassIDListData *iDestAttrModified)=0 |
| virtual void | AppendAttributesModified (ClassID attributeModified, IClassIDListData *iDestAttrModified)=0 |
| virtual ErrorCode | ProcessApplyTargetAttributesToPageItems (IGraphicStyleAttributeBossList *iNewAttrList, ClassID *pClassList, int32 attrCount, const UIDList &targetItemList, bool16 doPrePost=kTrue, bool16 enableDoNotify=kTrue)=0 |
| virtual ErrorCode | ProcessSwapStrokeAndFillCmdSequence (IGraphicAttributeSuite *iGraphicAttrSuite=nil)=0 |
| virtual ErrorCode | ProcessDefaultStrokeAndFillCmdSequence (IGraphicAttributeSuite *=nil)=0 |
| virtual ErrorCode | ProcessToggleStrokeAndFillCmd (void)=0 |
| virtual ErrorCode | ProcessUpdateDefinitionRenderDataCmdSequence (ClassID renderObjectClassID, UID renderUID, bool16 isFill, IGraphicAttributeSuite *iGfxAttrSuite=nil)=0 |
| virtual IPMUnknown * | QueryActiveGraphicState (const PMIID &requestedIID=IID_IUNKNOWN, IActiveContext *iActiveContext=nil)=0 |
| virtual IPMUnknown * | QueryGraphicState (IDataBase *iDataBase, const PMIID &requestedIID=IID_IUNKNOWN)=0 |
| virtual IWorkspace * | QueryDataBaseWorkspace (IDataBase *iDataBase)=0 |
| virtual UIDList * | CreateFlattenedPageItemList (const UIDList *pItemList, const PMIID &interestedIID, bool16 onlyIncludeGfxStateSelection)=0 |
| virtual bool16 | IsStrokeActive (void)=0 |
| virtual bool16 | IsFillActive (void)=0 |
| virtual IGraphicAttributeSuite * | QueryActiveGraphicAttrSuite (ISelectionManager *iSelectionMgr=nil)=0 |
| virtual void | UpdateGfxStateRenderObjectsRenderData (ClassID renderObjectClassID, IGraphicAttributeSuite *iGfxAttrSuite, IGraphicStateRenderObjects *iGfxStateRenderObjects, bool16 doNotify)=0 |
| virtual const K2Vector< ClassID > * | GetInstalledRenderingTypes (void)=0 |
| virtual bool16 | CanSwapActiveProxyType (IGraphicAttrProxySuite::ActiveProxyType proxyType)=0 |
| virtual void | SwapActiveProxyType (IGraphicAttrProxySuite::ActiveProxyType proxyType)=0 |
| virtual IGraphicAttrProxySuite::ActiveProxyType | GetActiveProxyType ()=0 |
| virtual GraphicAttrMessage * | CreateGraphicAttrMessage (const IGraphicAttrMessage::MessageType &messageID, const K2Vector< ClassID > &pClassList)=0 |
| virtual GraphicAttrCacheMessage * | CreateGraphicAttrCacheMessage (const PMIID &messageID, const IGraphicAttrMessage::MessageType &messageType, const K2Vector< ClassID > *attrClassList)=0 |
| virtual IRenderObjectService * | QueryRenderObjectService (ClassID renderClassID)=0 |
| virtual IRenderingObject * | CreateTemporaryRenderObject (ClassID, const IRenderingObject *iSourceRenderObject=nil)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Graphic state related utility functions.
| pure virtual |
Append the attribute class to the class list interface, "iDestAttrModified".
| attributeModified | specifies attribute class ID. |
| iDestAttrModified | specifies the class list interface receiving the attribute class. |
| pure virtual |
Return whether or not the specified proxy type can be swapped.
| proxyType | is the proxy type. |
| pure virtual |
Create an apply attribute command that applies "attribute" to the specified page items. Optionally, the attribute Pre/Post mechanism can be disabled. And the command's DoNotify() can be disabled.
| attribute | specifies the attribute to apply. |
| pTargetItemList | specifies the list of page items to apply attribute to. |
| doPrePost | is true if attribute prepost action is enabled. |
| enableDoNotify | is true if command notification is enabled. |
| pure virtual |
This function is used by the graphic state and its commands to modify the selection list as necessary for the processing of the selection. (a) Remove any page item that does not have a GfxSelection interface (b) Expand all containers so their children are in the returned list (c) Filter out any page items that do not support "interfaceID" (optional) (d) Any duplicates are removed from the list
| pItemList | specifies the page items from which to create the flattened list. |
| interestedIID | specifies the interface IID to collect. |
| onlyIncludeGfxStateSelection | is true it will only include items that have an IGraphicStateSelection interface. |
| pure virtual |
Create an apply rendering object attribute command that applies the render UID to the specified page items. Optionally, the attribute Pre/Post mechanism can be disabled. And the command's DoNotify() can be disabled.
| renderObjectClassID | specifies the rendering object class to apply. |
| renderUID | specifies the corresponding rendering object UID to apply. |
| attributeClassID | specifies the rendering attribute class. |
| targetItemList | specifies the list of page items to apply attribute to. |
| doPrePost | is true if attribute prepost action is enabled. |
| enableDoNotify | is true if command notification is enabled. |
| pure virtual |
Create clear attribute override command that removes an attribute of the specified class from the specified page items. Optionally, the command's DoNotify() can be disabled.
| attributeClassID | specifies the attribute class to to remove. |
| pTargetItemList | specifies the list of page items to clear attribute. |
| enableDoNotify | is true if command notification is enabled. |
| pure virtual |
Create a swap stroke and fill command for the page items.
| targetItemList | specifies the page items whose stroke and fill are swapped. |
| pure virtual |
Create a graphic attribute cache message based of the given data.
| messageID | is the PMIID of the suite sending the message. |
| messageType | is the cache message type. |
| pClassList | s a list of affected class ID. These are attribute class IDs or rendering class IDs. |
| pure virtual |
Create a graphic attribute suite message based of the given data.
| messageType | is the attribute message type. |
| pClassList | s a list of affected class ID. These are attribute class IDs or rendering class IDs. |
| pure virtual |
Create a temporary (in-memory) rendering object for the given rendering class ID. There is no database or UID associated with a temporary rendering object.
| renderClassID | specifies the rendering class ID. |
| iSourceRenderObject | specifies the source rendering object to use for constructing the in-memory rendering object. If this is nil, default values are used. |
| pure virtual |
Create a swap stroke and fill command for the text.
| iTextModel | specifies text model. |
| iTextFocus | specifies the affected text focus. |
| pure virtual |
Returns the active proxy type.
Returns a list of the installed rendering types.
| pure virtual |
Return true if fill proxy is active.
| pure virtual |
Return true if stroke proxy is active.
| pure virtual |
Apply a list of attributes to the specified page items. Only those attributes whose class is in the given class list are applied. Optionally, the attribute Pre/Post mechanism can be disabled. And the command's DoNotify() can be disabled.
| iNewAttrList | specifies the list of attributes to apply. |
| pClassList | specifies the list of attribute classes in iNewAttrList to apply. If pClassList is nil, then all attributes are applied. |
| attrCount | specifies the number of attributes in pClassList. If attrCount is 0, then all attributes are applied. |
| targetItemList | specifies the list of page items to apply attributes to. |
| doPrePost | is true if attribute prepost action is enabled. |
| enableDoNotify | is true if command notification is enabled. |
| pure virtual |
Swap default stroke and fill for the selection specified by the graphic attribute suite.
| iGraphicAttrSuite | specifies graphic attribute suite to use. |
| pure virtual |
Apply multiple attributes to the graphic attribute suite. Depending on the state the attribute, will affect defaults or the current selection.
| iNewAttrList | specifies the list of attributes to apply. |
| iGraphicAttrSuite | specifies the graphic attribute suite to use. |
| pure virtual |
Process either an Add or Change attribute command that is sent to the graphic state. Depending on the state the attribute, will affect defaults or the current selection.
| iNewAttribute | specifies the new attribute to apply. |
| iSelectionMgr | specifies the selection manager to use. |
| pure virtual |
Process either an Add or Change attribute command that is sent to the graphic state. Depending on the state the attribute, will affect defaults or the current selection.
| iNewAttribute | specifies the new attribute to apply. |
| iGraphicAttrSuite | specifies the graphic attribute suite to use. |
| pure virtual |
Remove multiple attributes from the graphic attribute suite. Depending on the state the attribute, will affect defaults or the current selection.
| pClassList | specifies the list of attribute classes to remove. |
| attributeCount | specifies the number of attribute classes in the list. |
| iGraphicAttrSuite | specifies the graphic attribute suite to use. |
| pure virtual |
Swap stroke and fill for the selection specified by the graphic attribute suite.
| iGraphicAttrSuite | specifies graphic attribute suite to use. |
| pure virtual |
Taggle stroke and fill proxy.
| pure virtual |
Update rendering data in the given graphic state. The render data to be updated is specified by (a) stroke or fill and (b) by render UID. The change will be forwarded to the Graphic State Rendering Objects if necessary.
| renderObjectClassID | specifies rendering class to update. |
| renderUID | specifies rendering UID. |
| isFill | is true if updating the fill proxy. |
| iGfxAttrSuite | specifies graphic attribute suite. |
| pure virtual |
Query the graphic attribute suite from the given selection manager or the active selection manager is ISelectionManager is nil.
| iSelectionMgr | specifies the selection manager to use. |
| pure virtual |
Return the active graphic state object pointer.
| requestedIID | specifies requested interface IID. |
| iActiveContext | specifies the active context. |
| pure virtual |
Return the workspace of the specified database.
| iDataBase | specifies the database for the graphic state object. |
| pure virtual |
Return the graphic state object pointer for the specified database.
| iDataBase | specifies the database for the graphic state object. |
| requestedIID | specifies requested interface IID. |
| pure virtual |
Return the rendering object service interface for the given rendering class ID.
| renderClassID | specifies the rendering class ID. |
| pure virtual |
Swap the specified proxy type as active proxy type.
| proxyType | is the proxy type. |
| pure virtual |
Transfer the list of attributes modified in "iSourceCommand" into the class list interface, "iDestAttrModified".
| iSourceCommand | specifies source command. |
| iDestAttrModified | specifies the class list interface receiving the attribute classes. |
| pure virtual |
Use the state of the stroke/fill proxy to copy either the stroke or fill render data from the specified target into the render object's render data object. This is called when the underlying definition has changed and the Render Objects Interface needs to be updated.
| renderObjectClassID | is the rendering class to update. If this is kInvalidClass, the target's current setting is used. |
| iGfxAttrSuite | specifies the affected graphic attribute suite. |
| iGfxStateRenderObjects | specifies the corresponding graphic state render objects. |
| doNotify | is true if graphic state should broadcast changed message. |