InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLDeleteElementCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Will Lin
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IXMLDeleteElementCmdData__
25 #define __IXMLDeleteElementCmdData__
26 
27 #include "IPMUnknown.h"
28 #include "XMLID.h"
29 #include "XMLReference.h"
30 
35 {
36 public:
37  enum { kDefaultIID = IID_IXMLDELETEELEMENTCMDDATA };
38 
45  virtual void Set(const XMLReference& deleteElementXMLRef, bool16 deleteChildren, bool16 deleteInSameStoryOnly = kFalse, bool16 reconnectChildren = kFalse) = 0;
46 
52  virtual void SetDTDProperties(bool16 ignoreDTD = kFalse) = 0;
53 
58  virtual void SetTableProperties(bool16 deleteTableWithCell = kTrue) = 0;
59 
60  //
64  virtual const XMLReference& GetDeleteElement(void) const = 0;
65 
71  virtual const K2Vector<XMLReference>& GetElementsToBeDeleted(void) const = 0;
72 
76  virtual bool16 DeleteChildren(void) const = 0;
77 
78 
82  virtual bool16 DeleteInSameStoryOnly(void) const = 0;
83 
87  virtual bool16 ReconnectChildren(void) const = 0;
88 
92  virtual bool16 IgnoreDTD(void) const = 0;
93 
98  virtual bool16 DeleteTableWithCell(void) const = 0;
99 
105  virtual void SetNumOfMarkersDeleted(int32 numOfMarkersDeleted) = 0;
106 
107 
111  virtual int32 GetNumOfMarkersDeleted(void) const = 0;
112 
116  virtual void SetElementsToBeDeleted(const K2Vector<XMLReference>& elementsList) = 0;
117 
123  virtual void SetDeleteMarkers(bool16 deleteMarkers) = 0;
124 
129  virtual bool16 GetDeleteMarkers(void) const = 0;
130 };
131 
132 #endif // __IXMLDeleteElementCmdData__
133