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

Public Types | |
| enum | { kDefaultIID = IID_IPREFLIGHTARTWORKTABLECONTEXT } |
Public Member Functions | |
| virtual bool | IsTableNode () const =0 |
| virtual int32 | GetDepth (bool stopAtOne=kFalse) const =0 |
| virtual IPreflightArtworkTableContext * | QueryParent () const =0 |
| virtual UIDRef | GetTableModelRef () const =0 |
| virtual UIDRef | GetTableFrameRef () const =0 |
| virtual GridArea | GetGridArea () const =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 provides context for a marking operation, group, or context. That is,
IPreflightArtworkMarkInfo and IPreflightArtworkGroupInfo can tell you all about the specifics
of the marking operation but this interface tells you what "high level" (ie table
or table cell) drawing operation it's associated with.
Typical use is something like this:
MyRule::Visit(IPreflightVisitInfo* iVisit)
{
if (iVisit->GetObjectID().GetClass() == kPrefligthOM_ArtworkMark)
{
InterfacePtr<IPreflightObject> iObj(iVisit->QueryObject());
Is this drawn as part of a table? InterfacePtr<IPreflightArtworkContext> iContext(iObj, UseDefaultIID()); InterfacePtr<IPreflightArtworkTableContext> iTableContext(iContext->QueryParentTableContext());
if (iTableContext) { Yes, part of a table.. InterfacePtr<ITableModel> iModel(iTableContext->GetTableModelRef(), UseDefaultIID()); ... } } }
| pure virtual |
Get the text and text-subpart depth. Since text and subparts can be nested the artwork node may be "under" more than one context. This method returns the number of text parent nodes in the tree walking up to the root.
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Returns whether this node is a metadata (context) node representing the table information for a bunch of child marking operations. This is not usually that useful unless you're inspecting the tree in a relatively advanced way. Typically you would use GetDepth() to see if this is being drawn as part of a table, and GetInfo() to get the innermost information.
| pure virtual |
Walks toward the root node looking for a node for which IsTextNode() is true. When it finds one, returns a refcounted context pointer to it.