InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreflightAggregatedResults.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 
25 #include "IPreflightObject.h"
26 #include "IPMUnknown.h"
27 #include "IPreflightResultNodeInfo.h"
28 #include "PackageAndPreflightID.h"
29 
31 
50 {
51 public:
52  enum { kDefaultIID = IID_IPREFLIGHTAGGREGATEDRESULTS };
53 
54  typedef uint32 NodeID;
56 
57 public:
62  virtual bool IsValidID(NodeID node) const = 0;
63 
67  virtual NodeID GetRoot() const = 0;
68 
71  virtual void Clear() = 0;
72 
81  virtual NodeID AddNode(NodeID parentNode, IPreflightResultNodeInfo* iInfo) = 0;
82 
93  virtual void DeleteNode(NodeID node) = 0;
94 
99  virtual NodeID GetParent(NodeID child) const = 0;
100 
105  virtual int32 GetNumChildren(NodeID parent) const = 0;
106 
111  virtual NodeID GetFirstChild(NodeID node) const = 0;
112 
117  virtual NodeID GetNextSibling(NodeID node) const = 0;
118 
126  virtual int32 GetChildIndex(NodeID parent, NodeID child) const = 0;
127 
133  virtual int32 GetHierarchyDepth(NodeID node) const = 0;
134 
143  virtual IPreflightResultNodeInfo* QueryNodeInfo(NodeID node) const = 0;
144 
154  virtual uint32 GetChildren
155  (
156  IPreflightAggregatedResults::NodeID parentNode,
158  bool recursive = kFalse,
159  NodeIDVector* pNodes = nil
160  ) const = 0;
161 
172  virtual int32 CopyNodesFrom
173  (
174  IPreflightAggregatedResults::NodeID dstParentNode,
175  const IPreflightAggregatedResults* iSrcResults,
176  IPreflightAggregatedResults::NodeID srcRootNode,
177  bool copyRootNode
178  ) = 0;
179 };
180