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

Public Types | |
| enum | { kDefaultIID = IID_IDRAWTAG } |
Public Member Functions | |
| virtual void | Draw (const RunDescription &description, int32 lineIndex, IGraphicsPort *gPort, PMReal *runWidth, int32 flags, UID textThreadUID=kInvalidUID)=0 |
| virtual void | ComputeTagWidth (const RunDescription &description, PMReal *runWidth, UID textThreadUID=kInvalidUID)=0 |
| virtual void | DrawPngIcon (const PMPoint &topLeft, const PluginID &pid, const RsrcID &rid, IGraphicsPort *gPort)=0 |
| virtual PMReal | GetPngIconWidth (const PluginID &pid, const RsrcID &rid)=0 |
| virtual PMReal | GetPngIconHeight (const PluginID &pid, const RsrcID &rid)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IDrawTag an interface to draw tags such as inline notes, xml, and inline footnotes in galley and story view.
| pure virtual |
Compute tag width of the specified run
| IN | description a run description to get a cooresponding ITextRun for |
| OUT | runWidth the width of the tag that is drawn |
| IN | textThreadUID UID of the thread or kInvalidUID if primary story thread |
| pure virtual |
Draw tag associated with the specified run.
| IN | description a run description to get a cooresponding ITextRun for |
| IN | lineIndex a line index to get access the run |
| IN | gPort the port to draw into |
| OUT | runWidth the width of the tag that is drawn |
| IN | flags 0==normal mode (draw top and bottom borders), 1==draw in overlap mode (just draw bottom border) |
| IN | textThreadUID UID of the thread or kInvalidUID if primary story thread |
| pure virtual |
Draw png icon.
| IN | topLeft the point at which to draw |
| IN | pid plugin id with the png art |
| IN | rid resource id of the png art |
| IN | gPort the port to draw into |
Gets the height of the png specified.
| IN | pid plugin id with the png art |
| IN | rid resource id of the png art |