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

Public Member Functions | |
| CXMLImportMatchMaker (IPMUnknown *boss) | |
| virtual void | Register (IPMUnknown *xmlImporter) |
| virtual ErrorCode | MatchDocument (const IDXMLDOMGraph &leftGraph, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | PostMatchDocument (const IDXMLDOMGraph &leftGraph, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | Match (const IDXMLDOMGraph &leftGraph, const IDXMLDOMStructureOnlyIterator &leftIter, const IDXMLDOMStructureOnlyIterator &leftIterEnd, const XMLReferenceGraph &rightGraph, const XMLOutEdgeIterator &rightIter, const XMLOutEdgeIterator &rightIterEnd, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | PostMatch (const IDXMLDOMGraph &leftGraph, const IDXMLDOMStructureOnlyIterator &leftIter, const IDXMLDOMStructureOnlyIterator &leftIterEnd, const XMLReferenceGraph &rightGraph, const XMLOutEdgeIterator &rightIter, const XMLOutEdgeIterator &rightIterEnd, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | NoMatchMade (const IDXMLDOMGraph &leftGraph, const IDXMLDOMStructureOnlyIterator &leftIter, const IDXMLDOMStructureOnlyIterator &leftIterEnd, const XMLReferenceGraph &rightGraph, const XMLOutEdgeIterator &rightIter, const XMLOutEdgeIterator &rightIterEnd, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | MatchPhaseComplete (const IDXMLDOMGraph &leftGraph, const XMLReferenceGraph &rightGraph, IXMLImportMatchRecorder *matchRecorder) |
| virtual ErrorCode | NoMatchMadeOnRoot (const IDXMLDOMGraph &leftGraph, const IDXMLDOMStructureOnlyIterator &leftIter, const IDXMLDOMStructureOnlyIterator &leftIterEnd, const XMLReference &importIntoXMLRef, XMLReference &elementToMatch) |
Public Member Functions inherited from CPMUnknown< IXMLImportMatchMaker > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Protected Types | |
| enum | ElementType { kElementType_Normal = 0, kElementType_Table, kElementType_TableGrid, kElementType_TableCell } |
| enum | CellType { kUnknown = 0, kHeader, kBody, kFooter } |
Protected Member Functions | |
| ErrorCode | GetTagUID (const IIDXMLDOMNode *leftNode, const UIDRef &tagList, UID &tagUID) const |
| ElementType | GetElementType (const IIDXMLDOMNode *leftNode) const |
| ElementType | GetElementType (const IIDXMLElement *rightElement) const |
| bool16 | MatchType (IIDXMLDOMNode *leftNode, IIDXMLElement *rightElement, IXMLImportMatchRecorder *matchRecorder) const |
| bool16 | IsElementNew (const IIDXMLElement *element, const IXMLImportMatchRecorder *matchRecorder) const |
| bool16 | CheckTableNode (IIDXMLDOMNode *node, bool16 bCheckGrid) const |
| CellType | GetCellType (const IIDXMLDOMNode *leftNode) const |
| CellType | GetCellType (const IIDXMLElement *rightElement) const |
Protected Member Functions inherited from CPMUnknown< IXMLImportMatchMaker > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes | |
| bool16 | fMatchTextToTable |
| WideString | fURI |
Protected Attributes inherited from CPMUnknown< IXMLImportMatchMaker > | |
| HelperInterface | fHelperInterface |
Additional Inherited Members | |
Public Types inherited from IXMLImportMatchMaker | |
| enum | { kDefaultIID = IID_IXMLIMPORTMATCHMAKER } |
An empty base class implementation of IXMLImportMatchMaker. Clients who wish to add a XML import match maker serevice provider should implement new classes derived from this class.
| protected |
| protected |
| protected |
Given an IIDXMLDOMNode, return its cell type by by checking its attributes The IIDXMLDOMNode must have ElementType kElementType_TableCell.
| protected |
Given a table cell element, get its type.
| protected |
Given an IIDXMLDOMNode, return its element type by by checking its attributes
| protected |
Given an element, return its type
| protected |
Get the UID of the node's tag.
| protected |
Given an element, return whether it is a new element created during this import session
| virtual |
called for kXMLImportMatchMakerSignalService to perform a match service
| leftGraph | graph of incoming XML |
| leftIter | left tree iterator |
| leftIterEnd | left tree end iterator |
| rightGraph | graph of existing XML |
| rightIter | right tree iterator |
| rightIterEnd | right tree end iterator |
| matchRecorder | MatchRecorder. If the service decides to make a match, it must make appropriate calls in this functor class. Do not call the match recording method of this data if the service decides to not handle the match. |
Implements IXMLImportMatchMaker.
| virtual |
this is the first match call. It asks the match maker to match the incoming XML's
document node to a XMLReference in the existing document. Use the match recorder to indicate whether the match was handled
| leftGraph | graph of incoming XML |
| matchRecorder | MatchRecorder. If the service decides to make a match, it must make appropriate calls in this functor class. Do not call the match recording method of this data if the service decides to not handle the match. |
Implements IXMLImportMatchMaker.
| virtual |
called at the end of the entire match making phase
| leftGraph | graph of incoming XML |
| leftIter | left tree iterator |
| leftIterEnd | left tree end iterator |
| rightGraph | graph of existing XML |
| rightIter | right tree iterator |
| rightIterEnd | right tree end iterator |
Implements IXMLImportMatchMaker.
| protected |
Check if the left node's type matches rightElement.
| virtual |
called by the default match maker. This is called after all match makers have been
called, including the default match maker, and none of the services made a match. The default match maker is about to insert a new element and make a match to it. The match maker service being called is allow to make a last attempt at making a match. If still no match is made, then the default match maker will insert a new element
| leftGraph | graph of incoming XML |
| leftIter | left tree iterator |
| leftIterEnd | left tree end iterator |
| rightGraph | graph of existing XML |
| rightIter | right tree iterator |
| rightIterEnd | right tree end iterator |
Implements IXMLImportMatchMaker.
| virtual |
called by the default match maker. This is called after all match makers have been
called, including the default match maker, and none of the services made a match on the incoming root node. The default match maker is about to insert a new element and make a match to it. The match maker service being called is allowed to make a last attempt at making a match. If still no match is made, then the default match maker will insert a new element
| leftGraph | graph of incoming XML |
| leftIter | left tree iterator |
| leftIterEnd | left tree end iterator |
| importIntoXMLRef | the element to import into |
| elementToMatch | returns the created element that the incoming root element should match to |
Implements IXMLImportMatchMaker.
| virtual |
called as part of kXMLImportMatchMakerSignalService after a match as been performed
| leftGraph | graph of incoming XML |
| leftIter | left tree iterator |
| leftIterEnd | left tree end iterator |
| rightGraph | graph of existing XML |
| rightIter | right tree iterator |
| rightIterEnd | right tree end iterator |
Implements IXMLImportMatchMaker.
| virtual |
this is called after MatchDocument(). It is a notification for document element match
| leftGraph | graph of incoming XML |
| matchRecorder | MatchRecorder. If the service decides to make a match, it must make appropriate calls in this functor class. Do not call the match recording method of this data if the service decides to not handle the match. |
Implements IXMLImportMatchMaker.
| virtual |
Initializes some preferences. Clients that implement this fuction should call the implementation in the base class.
Implements IXMLImportMatchMaker.
| protected |
Import option "Import text elements into tables if tags match". Default is kTrue. Initialized in Register().