![]() | InDesign SDK 20.5 |
#include <XMLContentReference.h>
Public Types | |
| enum | ContentType { kContentType_Text = 0, kContentType_PageItem, kContentType_Table, kContentType_TableGrid, kContentType_TableCell, kContentType_NoContent } |
| typedef base_type | data_type |
Public Member Functions | |
| XMLContentReference () | |
| XMLContentReference (const UIDRef &baseUIDRef, const GridID &gridID=kInvalidGridID) | |
| XMLContentReference (const UIDRef &baseUIDRef, const GridID &startGrid, const GridSpan &span) | |
| XMLContentReference (const XMLContentReference &other) | |
| ContentType | GetContentType () const |
| const UIDRef & | GetUIDRef () const |
| void | SetUIDRef (const UIDRef &uidRef) |
| UID | GetUID () const |
| void | SetUID (UID uid) |
| IDataBase * | GetDataBase () const |
| void | SetDataBase (IDataBase *db) |
| GridAddress | GetGridAddress (const ITableModel *tableModel) const |
| const GridID & | GetGridID () const |
| void | SetGridID (GridID gridID) |
| const GridSpan & | GetSpan () const |
| void | SetSpan (const GridSpan &span) |
| GridArea | GetGridArea (ITableModel *tableModel) const |
| void | SetNoContent (void) |
| IXMLReferenceData * | Instantiate () const |
| bool16 | IsInline () const |
| bool16 | IsTable () const |
| bool16 | IsTableCell () const |
| bool16 | IsTableGrid () const |
| bool16 | IsNoContent () const |
| bool16 | IsTableCellPlacedPageItem () const |
| void | ReadWrite (IPMStream *s, IDataBase *db=nil) |
| bool16 | operator== (const XMLContentReference &other) const |
| bool16 | operator!= (const XMLContentReference &compareAgainst) const |
| bool16 | operator< (const XMLContentReference &compareAgainst) const |
| void | SetTableTagPreference (IXMLElementCommands::TableTagPreference newSetting) |
| IXMLElementCommands::TableTagPreference | GetTableTagPreference () const |
Represents the content information for a XML structure element. A XML structure element may be associated with a specific content item. This class contains information about the content item.
no specialized copy semantics required for K2Vector
the type of the content
| XMLContentReference::XMLContentReference | ( | ) |
constructors Default constructor
| XMLContentReference::XMLContentReference | ( | const UIDRef & | baseUIDRef, |
| const GridID & | gridID = kInvalidGridID | ||
| ) |
Constructor
| baseUIDRef |
| XMLContentReference::XMLContentReference | ( | const UIDRef & | baseUIDRef, |
| const GridID & | startGrid, | ||
| const GridSpan & | span | ||
| ) |
Constructor
| baseUIDRef |
| XMLContentReference::XMLContentReference | ( | const XMLContentReference & | other | ) |
Copy constructor
| other | object to cpy state from |
| ContentType XMLContentReference::GetContentType | ( | ) | const |
accessors and mutators for member data Get the content's type
| IDataBase* XMLContentReference::GetDataBase | ( | ) | const |
| GridAddress XMLContentReference::GetGridAddress | ( | const ITableModel * | tableModel | ) | const |
Accessor for the table cell by GridAddress return GridAddress
| GridArea XMLContentReference::GetGridArea | ( | ITableModel * | tableModel | ) | const |
| const GridID& XMLContentReference::GetGridID | ( | ) | const |
| UID XMLContentReference::GetUID | ( | ) | const |
| IXMLReferenceData* XMLContentReference::Instantiate | ( | ) | const |
methods for accessing associated content Instantiate the XMLReferenceData of the content item from the database
| bool16 XMLContentReference::IsInline | ( | ) | const |
determine whether the content is an inline page item
| bool16 XMLContentReference::IsNoContent | ( | ) | const |
determine whether the content is a no content
| bool16 XMLContentReference::IsTable | ( | ) | const |
determine whether the content is a table
| bool16 XMLContentReference::IsTableCell | ( | ) | const |
determine whether the content is a table cell
| bool16 XMLContentReference::IsTableCellPlacedPageItem | ( | ) | const |
determine whether the content is a pageitem placed inside table cell
| bool16 XMLContentReference::IsTableGrid | ( | ) | const |
determine whether the content is a table grid
| inline |
Inequality operator
| compareAgainst | comparand |
| bool16 XMLContentReference::operator< | ( | const XMLContentReference & | compareAgainst | ) | const |
Less than operator
| compareAgainst | comparand |
| bool16 XMLContentReference::operator== | ( | const XMLContentReference & | other | ) | const |
Equality operator
| other | comparand |
misc utilities Method to serialise object to or deserialise object from given stream
| s | stream to read state from or write state to |
| db |
| void XMLContentReference::SetDataBase | ( | IDataBase * | db | ) |
Mutator for database of base UIDRef
| db | data base of content |
| void XMLContentReference::SetGridID | ( | GridID | gridID | ) |
Mutator for the table cell grid ID
| gridID | GridID of the table cell |
| void XMLContentReference::SetNoContent | ( | void | ) |
Mutator for marking this as having no content
| void XMLContentReference::SetSpan | ( | const GridSpan & | span | ) |
Mutator for the grid extent
| GridSpan | of the table grid element |
| void XMLContentReference::SetUID | ( | UID | uid | ) |
Mutator for content base UIDRef's UID
| uid | new content UID |