24 #ifndef __IXMLElementCommands__ 25 #define __IXMLElementCommands__ 28 #include "XMLReference.h" 29 #include "TableTypes.h" 30 #include "TableTagData.h" 35 class XMLDTDInsertElement;
36 class XMLDTDReplaceElement;
48 enum {kDefaultIID = IID_IXMLELEMENTCOMMANDS};
69 virtual ErrorCode
CreateElement(
const WideString& tagToApply,
UIDRef storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex,
const XMLReference& parentXMLR = kInvalidXMLReference,
XMLReference *createdElement = nil, bool16 doVerify = kTrue, bool16 useExistingMarkers = kFalse) = 0;
130 virtual ErrorCode
CreateElement(
UID tagToApply,
UIDRef storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex,
const XMLReference& parentXMLRef = kInvalidXMLReference,
XMLReference *createdElement = nil, bool16 doVerify = kTrue, bool16 useExistingMarkers = kFalse) = 0;
144 virtual ICommand*
CreateElementCommand(
UID tagToApply,
UIDRef storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex,
const XMLReference& parentXMLRef = kInvalidXMLReference, bool16 doVerify = kTrue, bool16 useExistingMarkers = kFalse) = 0;
233 virtual ErrorCode
CreateElement(
const XMLDTDInsertElement& xmlDTDInsertElement,
XMLReference *createdElement = nil, bool16 doVerify = kTrue) = 0;
246 virtual ErrorCode
CreateElement(
UID tagToApply,
const UIDRef& storyUIDRef,
UID contentItem, bool16 addToDocRefList,
XMLReference *createdElement = nil, bool16 doVerify = kTrue) = 0;
393 virtual ErrorCode
DeleteElement(
const XMLReference& deleteElementXMLRef, bool16 deleteChildren, bool16 deleteInSameStoryOnly = kFalse, bool16 reconnectChildren = kFalse, bool16 doVerify = kTrue) = 0;
407 virtual ICommand *
DeleteElementCommand(
const XMLReference& deleteElementXMLRef, bool16 deleteChildren, bool16 deleteInSameStoryOnly = kFalse, bool16 reconnectChildren = kFalse, bool16 doVerify = kTrue) = 0;
418 virtual ErrorCode
RangeDeleteElement(
const UIDRef& storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex) = 0;
456 virtual ErrorCode
MoveElement(
const XMLReference& moveElementXMLRef,
const XMLReference& newParentXMLRef, int32 newIndexInParent, TextIndex contentOffset, bool16 doVerify = kTrue) = 0;
504 virtual ErrorCode
SetElement(
const XMLDTDReplaceElement& replaceElement) = 0;
542 #endif // __IXMLElementCommands__