InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStyleUnpacker Class Referenceabstract
Inheritance diagram for IStyleUnpacker:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ISTYLEUNPACKER }
 

Public Member Functions

virtual AttributeBossListCreateUnpackedStyle (UID styleID)=0
 
virtual void ApplyUnpackedStyle (UID styleID, AttributeBossList *attributeList)=0
 
virtual void QueryCondensedStyle (IDrawingStyle **fill, UID styleID, const AttributeBossList *overrides)=0
 
virtual void QueryCondensedStyle (IDrawingStyle **fill, UID storyThreadStyle, UID styleID, const AttributeBossList *overrides)=0
 
virtual void TossCachedStyleData (UID styleID)=0
 
virtual void ReleaseSomeMemory (bool16 everything)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual void IStyleUnpacker::ApplyUnpackedStyle (UID styleID,
AttributeBossListattributeList 
)
pure virtual
 Applies all attributes available in the specified style to the passed in AttributeBossList.

Parameters
styleIDIN UID of style to unpack.
INOUTDESCRIPTION.
Precondition
Callers should supply a valid AttributeBossList *.
virtual AttributeBossList* IStyleUnpacker::CreateUnpackedStyle (UID styleID)
pure virtual
 Allocates an AttributeBossList and applies all atttributes available in the specified style.

Parameters
styleIDIN UID of style to unpack.
Precondition
styleID should be the UID of an object that implements ITextAttributes/IID_ITEXTATTRIBUTES.
Postcondition
Caller is responsible for deleting returned AttributeBossList
virtual void IStyleUnpacker::QueryCondensedStyle (IDrawingStyle ** fill,
UID styleID,
const AttributeBossListoverrides 
)
pure virtual
 Queries or fills out a kComposeStyleBoss from the specified style and overrides.

Parameters
fillIN OUT The resulting IDrawingStyle.
styleIDIN The style to draw attributes from.
overridesIN Applies these overrides after style attributes.
Precondition
fill can be nil. If so a ref counted object is returned. Otherwise the passed in boss is used.
Postcondition
Caller will need to release a ref counted fill.
virtual void IStyleUnpacker::QueryCondensedStyle (IDrawingStyle ** fill,
UID storyThreadStyle,
UID styleID,
const AttributeBossListoverrides 
)
pure virtual
 Queries or fills out a kComposeStyleBoss from the specified story thread style, style and overrides.

Parameters
fillIN OUT The resulting IDrawingStyle.
storyThreadStyleIN The style to draw story thread attributes from.
styleIDIN The style to draw attributes from.
overridesIN Applies these overrides after style attributes.
Precondition
fill can be nil. If so a ref counted object is returned. Otherwise the passed in boss is used.
Postcondition
Caller will need to release a ref counted fill.
virtual void IStyleUnpacker::ReleaseSomeMemory (bool16 everything)
pure virtual
 Releases some memory from Style Unpacker cache.

Parameters
everythingIN Release entire cache.
virtual void IStyleUnpacker::TossCachedStyleData (UID styleID)
pure virtual
 Tosses cached style data for given UID.

Parameters
styleIDIN The UID you want to toss cached data for.