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

Public Types | |
| enum | { kDefaultIID = IID_IGLOBALRECOMPOSE } |
Public Member Functions | |
| virtual void | RecomposeAllStories (bool16 clearModelCaches=kFalse)=0 |
| virtual bool16 | SelectiveRecompose (const AttributeChecker &whichAttribute, UID singleStory=kInvalidUID)=0 |
| virtual bool16 | SelectiveRecompose (const WaxLineChecker &whichAttribute, UID singleStory=kInvalidUID)=0 |
| virtual bool16 | SelectiveRecompose (const ModelChecker &whichAttribute, UID singleStory=kInvalidUID)=0 |
| virtual bool16 | SelectiveRecompose (const StoryOptionsChecker &whichAttribute, UID singleStory=kInvalidUID)=0 |
| virtual void | ForceRecompositionToComplete ()=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 class is designed to cause damages to stories in a
document, hence making the entire document or portion of it to recompose when it is needed to. The damages can be set to the entire document, or it can be set according to specified attributes
The following is a sample code on how to use this interface:
InterfacePtr<IGlobalRecompose> globalRecompose(theFrontDoc, IID_IGLOBALRECOMPOSE); MyAttribute attributeAffected; globalRecompose->GlobalAttributeDamage(&attributeAffected);
where MyAttribute is a derived class from AttributeChecker containing implementations to check if the front document contains a specifed attributes.
| pure virtual |
Force the entire document to be fully composed. (The above calls just mark composition damage.)
| pure virtual |
Causes damages to all stories in this document.
| clearModelCaches | can be used to automatically clear the ITextReferences cache and the IComposeScanner cache. However, this isn't usually necessary, because those interfaces are caches of MODEL data, not composition data. |
| pure virtual |
Causes damages to stories containing specified attributes.
| singleStory | specifies the UID of a single text model if only one story should be examined. kInvalidUID means all stories. |
| pure virtual |
Causes damages to lines containing specified attributes.
| singleStory | specifies the UID of a single text model if only one story should be examined. kInvalidUID means all stories. |
| pure virtual |
Causes damages to stories containing specified styles and overrides.
| singleStory | specifies the UID of a single text model if only one story should be examined. kInvalidUID means all stories. |
| pure virtual |
Causes damages to stories containing specified story options.
| singleStory | specifies the UID of a single text model if only one story should be examined. kInvalidUID means all stories. |