InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableModelStorage.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ???
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 __ITableModelStorage__
25 #define __ITableModelStorage__
26 
27 #include "TableTypes.h"
28 #include "TablesID.h"
29 
30 //===================================================================================
35 //===================================================================================
36 
37 class ITableStrand;
38 class ITableNotificationStrand;
39 class ICellContentMgr;
40 
42 
43 public:
44 
46  enum { kDefaultIID = IID_ITABLEMODELSTORAGE };
47 
48  //-------------------------------------------------------------------------------
51 
52 
54  virtual void RegisterStrand (UID strandUID) = 0;
55 
57  virtual void UnregisterStrand(UID strandUID) = 0;
58 
59 
60  enum ETableStrand { eRow, eColumn, eCell };
61 
63  virtual int32 GetStrandCount(void) const = 0;
64 
68  virtual ITableStrand* QueryNthStrand(int32 n) const = 0;
69 
72  virtual ITableStrand* QueryStrand(ETableStrand which) const = 0;
73 
76  virtual ITableStrand* QueryStrand(ClassID which) const = 0;
77 
79  virtual int32 GetNotificationStrandCount() const = 0;
80 
84  virtual ITableNotificationStrand* QueryNthNotificationStrand(int32 n) const = 0;
85 
86  //-------------------------------------------------------------------------------
89 
90 
92  virtual void RegisterContentMgr (CellType type, UID contentMgrUID) = 0;
93 
95  virtual void UnregisterContentMgr(CellType type, UID contentMgrUID) = 0;
96 
98  virtual int32 GetContentMgrCount(void) const = 0;
99 
103  virtual ICellContentMgr* QueryNthContentMgr(int32 n) const = 0;
104 
107  virtual ICellContentMgr* QueryContentMgr (CellType type) const = 0;
108 
110 };
111 
112 #endif // __ITableModelStorage__