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

Public Types | |
| enum | { kDefaultIID = IID_ISTRUCTUREMARKS } |
| enum | TableRowType { kBodyRow = 0, kHeaderRow, kFooterRow } |
| enum | ListType { kNone = 0, kBulleted, kNumbered } |
Public Member Functions | |
| virtual ErrorCode | BeginBook (int32 docInfoIndex, DocPageIndexList docIndexList, bool16 readerSpreads)=0 |
| virtual ErrorCode | EndBook ()=0 |
| virtual ErrorCode | BeginDocument (IDataBase *db)=0 |
| virtual ErrorCode | EndDocument ()=0 |
| virtual ErrorCode | BeginPage (int32 indexPageInfo, UID pageUID)=0 |
| virtual ErrorCode | EndPage ()=0 |
| virtual ErrorCode | BeginNestedContent ()=0 |
| virtual ErrorCode | EndNestedContent ()=0 |
| virtual ErrorCode | BeginTextFrame (const IMultiColumnTextFrame *mcFrame)=0 |
| virtual ErrorCode | EndTextFrame (const IMultiColumnTextFrame *mcFrame)=0 |
| virtual ErrorCode | BeginParagraph (ICompositionStyle *compositionStyle, IWaxLine *waxLine, const IWaxRun *waxRun, IStyleInfo *styleInfo, IDrawingStyle *drawingStyle, IStructureMarks::ListType listType=IStructureMarks::kNone, int32 listLevel=0, bool isStartWithEndnote=false, UID endnoteUID=kInvalidUID)=0 |
| virtual ErrorCode | BeginHyperlink ()=0 |
| virtual ErrorCode | AddLinkAnnotation (int32 annotation)=0 |
| virtual ErrorCode | EndHyperlink ()=0 |
| virtual ErrorCode | BeginTextRun (IWaxRun *waxRun, IDrawingStyle *drawingStyle, LanguageID languageID, bool32 oneCharSpan, textchar oneChar, UID paragraphStyleUID)=0 |
| virtual ErrorCode | AddTextElement (int32 element)=0 |
| virtual ErrorCode | EndTextRun ()=0 |
| virtual ErrorCode | BeginFigure ()=0 |
| virtual ErrorCode | EndFigure (IDataBase *db, UID pageItemUID)=0 |
| virtual ErrorCode | BeginTableFrame (PMRect &bbox, bool32 firstTableFrame, bool32 oneFrameTable)=0 |
| virtual ErrorCode | BeginTableRow (IStructureMarks::TableRowType rowType=IStructureMarks::kBodyRow)=0 |
| virtual ErrorCode | BeginTableCell (int32 spanWidth, int32 spanHeight)=0 |
| virtual ErrorCode | EndTableFrame (bool32 lastTableFrame, IDataBase *db, UID pageItemUID)=0 |
| virtual void | BeginPageItemDrawing (IPMUnknown *pageItem, const PMMatrix &matrix)=0 |
| virtual void | EndPageItemDrawing (IPMUnknown *pageItem)=0 |
| virtual void | BeginArtifacts ()=0 |
| virtual void | EndArtifacts ()=0 |
| virtual ErrorCode | BeginLayer (CosObj layerInfo)=0 |
| virtual ErrorCode | EndLayer ()=0 |
| virtual bool32 | RecordingStructure ()=0 |
| virtual bool32 | RecordingHyperlinks ()=0 |
| virtual ErrorCode | BeginFootnoteReference ()=0 |
| virtual ErrorCode | EndFootnoteReference ()=0 |
| virtual ErrorCode | BeginEndnoteReference ()=0 |
| virtual ErrorCode | EndEndnoteReference ()=0 |
| virtual ErrorCode | BeginFootnote ()=0 |
| virtual ErrorCode | EndFootnote ()=0 |
| virtual ErrorCode | BeginTableCellHyperlink ()=0 |
| virtual void | SetTagIndexOnce (bool16 setValue)=0 |
| virtual void | BeginAnchoredObject (IDataBase *db, UID pageItemUID)=0 |
| virtual void | EndAnchoredObject (IDataBase *db, UID pagetItemUID)=0 |
| virtual ErrorCode | BeginEndnote ()=0 |
| virtual ErrorCode | EndEndnote ()=0 |
| virtual bool | IsEndnoteRun ()=0 |
| virtual void | AddAnchoredObjectMarker (const IPMUnknown *inlineData, TextIndex textIndex)=0 |
| virtual ErrorCode | AddEndnoteLinkAnnotation (int32 annotation)=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 interface contains methods to watch important events during PDF export. You can get this interface from a IGraphicsPort (gPort) using this: InterfacePtr<IStructureMarks> structureMarks(gPort, IID_ISTRUCTUREMARKS);
| pure virtual |
This method is called when an anchored object marker (anchor) is encountered.
| IPMUnknown | *inlineData: The anchored object's IInlineData interface. |
| TextIndex | textIndex: The position in the parent story where the object is anchored. |
| pure virtual |
This method is called in order to add an endnote link annotation.
| int32 | annotation: The endnote annotation. |
| pure virtual |
This method is called when a link annotation is added to the current hyperlink.
| int32 | annotation: index of the annotation. |
| pure virtual |
This method is called when a text element is added to the current text run.
| int32 | element: index of the text element. |
This method is called at the beginning of exporting an anchored object.
| pure virtual |
This method is called at the beginning of exporting artifacts. Artifacts are page items or text that is not tagged in the PDF file.
| pure virtual |
This method is called at the beginning of export. It is called even for the one document case.
| int32 | docInfoIndex: index to the document information. |
| DocPageIndexList | docIndexList: index to the document page list. |
| bool16 | readerSpreads: kTrue when exporting reader spreads. |
| pure virtual |
This method is called at the beginning of a exporting a document.
| IDataBase | *db: the document being exported. |
| pure virtual |
This method is called at the beginning of exporting an endnote text.
| pure virtual |
This method is called at the beginning of exporting an endnote reference.
| pure virtual |
This method is called at the beginning of PDF Figure. A figure is an inline or pageitems with IFigureElement interface.
| pure virtual |
This method is called at the beginning of exporting a footnote item.
| pure virtual |
This method is called at the beginning of exporting a footnote reference.
| pure virtual |
This method is called at the beginning of exporting a hyperlink.
| pure virtual |
This method is called at the beginning of exporting a layer.
| pure virtual |
This method is called when a new PDF content stream is started.
| pure virtual |
This method is called at the beginning of a exporting a page.
| int32 | indexPageInfo: |
| UID | pageUID: the page UID or spread UID being exported. |
| pure virtual |
This method is called at the beginning of exporting a page item.
| IPMUnknown | *pageItem: the page item being exported. |
| const | PMMatrix &matrix: the matrix of the page item. |
| pure virtual |
This method is called at the beginning of exporting a paragraph. BeginParagraph will not be called when the export starts in the middle of a paragraph. There is no EndParagraph because it wouldn't necessarily match up with the BeginParagraph.
| ICompositionStyle | *compositionStyle: composition style of the paragraph. |
| IWaxLine | *waxLine: wax for the paragraph. |
| IStyleInfo | *styleInfo: style info of the paragraph. |
| IDrawingStyle | *drawingStyle: drawing style of the paragraph. |
| IStructureMarks::ListType | listType: list type - none, bulleted or numbered. |
| int32 | listLevel: Paragraph nesting level inside a list structure. 0 stands for top level list paragraph. Can run upto any level. |
| bool | isStartWithEndnote: true if we want to start endnote before paragraph. |
| UID | endnoteUID: the UID of the endnote. |
| pure virtual |
This method is called at the beginning of a table cell.
| int32 | spanWidth: the number of columns that this cells spans. |
| int32 | spanHeight: the number of rows that this cells spans. |
| pure virtual |
This method is called at the beginning of exporting a hyperlink inside a table cell.
| pure virtual |
This method is called at the beginning of a table frame. A figure is an inline or pageitems with IFigureElement or IFigureElementOptional interface.
| PMRect | &bbox: the bounding box of the table frame. |
| bool32 | firstTableFrame: true when this table contains the first table frame. |
| bool32 | oneFrameTable: true when the table is in only one frame. |
| pure virtual |
This method is called at the beginning of a table row.
| IStructureMarks::TableRowType | rowType: type of the row - body, header or footer. |
| pure virtual |
This method is called at the beginning of exporting a text frame.
| IMultiColumnTextFrame* | mcFrame: the text frame being exported. |
| pure virtual |
This method is called at the beginning of exporting a text run.
| IWaxRun | *waxRun: waw run pointer. |
| IDrawingStyle | *drawingStyle: drawing style pointer. |
| LanguageID | languageID: Language ID of the run. |
| bool32 | oneCharSpan: true when the run is a special one character run. |
| textchar | oneChar: the special character when oneCharSpan is true. |
| UID | paragraphStyleUID: the paragraph style UID for the run. |
This method is called at the end of exporting an anchored object. There are matching BeginAnchoredObject and EndAnchoredObject calls.
| pure virtual |
This method is called at the end of exporting artifacts. There are matching BeginArtifacts and EndArtifacts calls.
| pure virtual |
This method is called at the end of export. It is called even for the one document case. There are matching BeginBook and EndBook calls.
| pure virtual |
This method is called at the end of exporting a document. There are matching BeginDocument and EndDocument calls.
| pure virtual |
This method is called at the end of exporting an endnote text. There are matching BeginEndnote and EndEndnote calls.
| pure virtual |
This method is called at the end of exporting an endnote reference. There are matching BeginEndnoteReference and EndEndnoteReference calls.
This method is called at the end of exporting a PDF Figure. There are matching BeginFigure and EndFigure calls.
| IDataBase | *db: the document being exported. |
| UID | pageItemUID: the page item UID of the figure. |
| pure virtual |
This method is called at the end of exporting a footnote item. There are matching BeginFootnote and EndFootnote calls.
| pure virtual |
This method is called at the end of exporting a footnote reference. There are matching BeginFootnoteReference and EndFootnoteReference calls.
| pure virtual |
This method is called at the end of exporting a hyperlink. There are matching BeginHyperlink and EndHyperlink calls.
| pure virtual |
This method is called at the end of exporting a layer. There are matching BeginLayer and EndLayer calls.
| pure virtual |
This method is called when a new PDF content stream is finished. There are matching BeginNestedContent and EndNestedContent calls.
| pure virtual |
This method is called at the end of exporting a page. There are matching BeginPage and EndPage calls.
| pure virtual |
This method is called at the end of exporting a page item. There are matching BeginPageItemDrawing and EndPageItemDrawing calls.
| IPMUnknown | *pageItem: the page item being exported. |
| pure virtual |
This method is called at the end of exporting a table frame. There are matching BeginTableFrame and EndTableFrame calls.
| bool32 | lastTableFrame: true when this is the last frame of this table. |
| IDataBase | *db: document being exported. |
| UID | pageItemUID: the text frame page item UID. |
| pure virtual |
This method is called at the end of exporting a text frame. There are matching BeginTextFrame and EndTextFrame calls.
| IMultiColumnTextFrame* | mcFrame: the text frame being exported. |
| pure virtual |
This method is called at the end of exporting a text run. There are matching BeginTextRun and EndTextRun calls.
| pure virtual |
Is this an endnote text run?
| pure virtual |
This method returns true when hyperlinks are being recorded.
| pure virtual |
This method returns true when structure is being recorded.
| pure virtual |
This method is called to specify that the first paragraph of the text frame needs to be tagged as an index.
| setValue,: | if kTrue, the first paragraph is tagged as an index and the flag is then reset, so that rest of the paragraphs are tagged as list items. |