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

#include <IDVRenderingObject.h>

Inheritance diagram for IDVRenderingObject:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IDVRENDERINGOBJECT }
 
enum  InstallAction { kInstallStroke, kInstallFill, kInstallGap }
 

Public Member Functions

virtual void Install (dvaui::drawbot::Drawbot *drawbotP, IGraphicStyleDescriptor *iGSDesc, InstallAction theAction) const =0
 
virtual void Install (dvaui::drawbot::Drawbot *drawbotP, IWaxRenderData *iWaxData, InstallAction theAction) const =0
 
virtual void Install (dvaui::drawbot::Drawbot *drawbotP, IGraphicAttributeSuite *iGfxAttrSuite, InstallAction theAction, const PMRect &r) const =0
 
virtual void Install (dvaui::drawbot::Drawbot *drawbotP, const AttributeBossList &attrs, const PMRect &r, InstallAction theAction) const =0
 
virtual void Install (dvaui::drawbot::Drawbot *drawbotP, const PMRect &r) const =0
 
virtual void Install (dvaui::drawbot::Drawbot *drawbotP, RenderingObjectInstallData *data, const PMRect &r, InstallAction theAction) const =0
 
virtual const PMStringGetSwatchUIName () const =0
 
virtual PMString GetTipText () const =0
 
virtual PMString GetTipText (const int32 &colorSpace, const ColorArray &colorComponents) const =0
 
virtual const PMStringGetSwatchName () const =0
 
virtual bool16 GetVisibility () const =0
 
virtual bool16 GetCanDelete () const =0
 
virtual bool16 GetCanEdit () const =0
 
virtual bool16 IsGlobal () const =0
 
virtual UID GetSwatchAliasUID () const =0
 
virtual void SetSwatchName (const PMString &newName)=0
 
virtual void SetVisibility (const bool16 visible)=0
 
virtual void SetCanDelete (const bool16 canDelete)=0
 
virtual void SetCanEdit (const bool16 canEdit)=0
 
virtual void SetSwatchAliasUID (UID newAliasUID)=0
 
virtual int32 GetCreatorID () const =0
 
virtual void SetCreatorID (int32 newCreatorID)=0
 
virtual int32 GetSpecialEditInfo () const =0
 
virtual void SetSpecialEditInfo (const int32 newEditInfo)=0
 
virtual bool16 NeedUpdate (UID interestedUID) const =0
 
virtual UID DuplicateAsLocal (const IGraphicStyleDescriptor *overrideAttrs, InstallAction theAction) const =0
 
virtual UID DuplicateAsLocal (const AttributeBossList *overrideAttrs, InstallAction theAction) const =0
 
virtual UID DuplicateAsLocal (const PMReal &tint) const =0
 
virtual ClassID GetRenderClass () const =0
 
virtual bool16 IsEqual (const IRenderingObject *iRenderObject2) 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

A reqruied interface for all InDesign rendering objects. All rendering objects are represented by swatches. ISwatchList

Member Enumeration Documentation

Specifies how the rendering object are being installed.
Enumerator
kInstallStroke 

Indicate installing the rendering object for stroke.

kInstallFill 

Indicate installing the rendering object for fill.

kInstallGap 

Indicate installing the rendering object for stroke gap. Gap color is currently not valid for text.

Member Function Documentation

virtual UID IDVRenderingObject::DuplicateAsLocal (const IGraphicStyleDescriptoroverrideAttrs,
InstallAction theAction 
) const
pure virtual

Duplicate this rendering object as a new unnamed rendering object taking into account any stroke or fill's overriding attributes if any. Returns the new UID that it created. "overrideAttrs" is either a graphic attribute boss list or a text attribute boss list. DuplicateAsLocal must be called within a command sequence in order for the Undo/Redo to be performed correctly.

virtual UID IDVRenderingObject::DuplicateAsLocal (const AttributeBossListoverrideAttrs,
InstallAction theAction 
) const
pure virtual
virtual UID IDVRenderingObject::DuplicateAsLocal (const PMRealtint) const
pure virtual
virtual bool16 IDVRenderingObject::GetCanDelete () const
pure virtual

Returns kTrue if swtach can be deleted.

Returns
kTrue if swtach can be deleted.
virtual bool16 IDVRenderingObject::GetCanEdit () const
pure virtual

Returns kTrue if swtach can be edited.

Returns
kTrue if swtach can be edited.
virtual int32 IDVRenderingObject::GetCreatorID () const
pure virtual

Returns the swatch's creator ID. By default, swatch creator ID is set to kInDesignNativeSwatchCreatorID.

Returns
the creator ID.
virtual ClassID IDVRenderingObject::GetRenderClass () const
pure virtual

Returns the rendering class.

Returns
the rendering class.
virtual int32 IDVRenderingObject::GetSpecialEditInfo () const
pure virtual

Used to get/set special edit info about the render object. Using 0 to mean normal edit condition. Example: for a solid color, it can indicate which data elements can be edited which can't.

Returns
the four byte containing special edit info.
virtual UID IDVRenderingObject::GetSwatchAliasUID () const
pure virtual

Returns the swatch's alias swatch UID.

Returns
the swatch's alias swatch UID.
virtual const PMString& IDVRenderingObject::GetSwatchName () const
pure virtual

Returns the swatch name associated with this rendering object.

Returns
a PMString reference that is the rendering object' swatch name. Make sure that you do not use the reference to the name after the pointer to the IRenderingObject goes out of scope.
virtual const PMString& IDVRenderingObject::GetSwatchUIName () const
pure virtual

Returns the string that includes the name as well as other information that appears in various UI elements such as tint percentage.

Returns
a PMString reference that is the rendering object's UI name. Make sure that you do not use the reference to the name after the pointer to the IRenderingObject goes out of scope.
virtual PMString IDVRenderingObject::GetTipText () const
pure virtual

Returns the string that contains color info which is used as tip.

Returns
a PMString that is the rendering object tip text.
virtual PMString IDVRenderingObject::GetTipText (const int32 & colorSpace,
const ColorArraycolorComponents 
) const
pure virtual

Returns the string that contains color info which is used as tip using the specified color space and values.

Parameters
colorSpacethe color space to format.
colorComponentsthe color values to format.
Returns
a PMString that is the rendering object tip text.
virtual bool16 IDVRenderingObject::GetVisibility () const
pure virtual

Returns kTrue if swtach is visible in the swatches panel and other UI elements.

Returns
kTrue if swtach is visible in UI.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
IGraphicStyleDescriptoriGSDesc,
InstallAction theAction 
) const
pure virtual

Install the rendering object for a pageitem with graphic attributes

Parameters
drawbotPdrawbot in which to install the rendering object.
iGSDescthe graphic style descriptor.
theActionspecifies which install action to do.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
IWaxRenderDataiWaxData,
InstallAction theAction 
) const
pure virtual

Install the rendering object for text.

Parameters
drawbotPdrawbot the graphic port in which to install the rendering object.
iGSDescthe graphic style descriptor.
theActionspecifies which install action to do.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
IGraphicAttributeSuiteiGfxAttrSuite,
InstallAction theAction,
const PMRectr 
) const
pure virtual

Install the rendering object for graphic state definition.

Parameters
drawbotPdrawbot the graphic port in which to install the rendering object.
iWaxDatathe text wax data containing the related rendering attributes.
theActionspecifies which install action to do.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
const AttributeBossListattrs,
const PMRectr,
InstallAction theAction 
) const
pure virtual

Install the rendering object for tables

Parameters
drawbotPdrawbot the graphic port in which to install the rendering object.
attrsthe table attribute list.
rthe rectangle
theActionspecifies which install action to do.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
const PMRectr 
) const
pure virtual

Install the rendering object for a simple rectangular area.

Parameters
drawbotPdrawbot the graphic port in which to install the rendering object.
rthe affected rectangular area
theActionspecifies which install action to do.
virtual void IDVRenderingObject::Install (dvaui::drawbot::Drawbot * drawbotP,
RenderingObjectInstallDatadata,
const PMRectr,
InstallAction theAction 
) const
pure virtual

Install the rendering object for using the RenderingObjectInstallData.

Parameters
drawbotPdrawbot the graphic port in which to install the rendering object.
datathe rendering object related install data.
rthe affected rectangular area
theActionspecifies which install action to do.
virtual bool16 IDVRenderingObject::IsEqual (const IRenderingObjectiRenderObject2) const
pure virtual

Two rendering objects are equal if all their persisten data (except swatch name) and rendering data are equal. Swatch names ARE NOT compared.

Parameters
iRenderObject2the rendering object to compare with.
Returns
kTrue if two rendering objects are equal.
virtual bool16 IDVRenderingObject::IsGlobal () const
pure virtual

Returns kTrue if swtach is a global swatch.

Returns
kTrue if swtach is a global swatch.
virtual bool16 IDVRenderingObject::NeedUpdate (UID interestedUID) const
pure virtual

Given an UID, determined if that UID caused any changes in the rendering object.

Returns
kTrue, if updates will be required. Otherwise, return kFalse.
virtual void IDVRenderingObject::SetCanDelete (const bool16 canDelete)
pure virtual

Sets the new delete flag. By default, all custom swatches are deletable.

Parameters
canDeletekTrue if swatch can be deleted.
virtual void IDVRenderingObject::SetCanEdit (const bool16 canEdit)
pure virtual

Sets the new edit flag. By default, all custom swatches are editable.

Parameters
canEditkTrue if swatch can be edited.
virtual void IDVRenderingObject::SetCreatorID (int32 newCreatorID)
pure virtual

Sets the new creator ID.

Parameters
newCreatorIDthe new creator ID to set.
virtual void IDVRenderingObject::SetSpecialEditInfo (const int32 newEditInfo)
pure virtual

Sets the new special edit info.

Parameters
newEditInfothe new edit info to set.
virtual void IDVRenderingObject::SetSwatchAliasUID (UID newAliasUID)
pure virtual

Sets the swatch's new alias swatch UID. kInvalidUID means swatch is not aliased.

Parameters
newAliasUIDthe new alias swatch UID to set.
virtual void IDVRenderingObject::SetSwatchName (const PMStringnewName)
pure virtual

Sets the new swatch name.

Parameters
newNamethe new swatch name to set.
virtual void IDVRenderingObject::SetVisibility (const bool16 visible)
pure virtual

Sets the visibility flag. By default, unnamed swtach must not be visible.

Parameters
visiblekTrue if swatch is visible.