InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyTableContext.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jeff Argast
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 __IInCopyTableContext__
25 #define __IInCopyTableContext__
26 
27 #include "IPMUnknown.h"
28 
29 #include "InCopyWorkflowID.h"
30 
31 class ITableAttrReport;
32 class ColRange;
33 class RowRange;
34 
36 {
37  public:
38  enum { kDefaultIID = IID_IINCOPYTABLECONTEXT };
39 
40 
41  //----------------------------------------------------------------------------------------
42  virtual void Initialize(
43  const UIDRef& storyRef
44  ) = 0;
45 
46  //----------------------------------------------------------------------------------------
47  virtual void BeginTable(
48  const TextIndex insertPosition,
49  const int32 rows,
50  const int32 columns,
51  const int32 headers,
52  const int32 footers
53  ) = 0;
54 
55  //----------------------------------------------------------------------------------------
56  virtual void EndTable() = 0;
57 
58  //----------------------------------------------------------------------------------------
59  virtual UIDRef GetTable() = 0;
60 
61  //----------------------------------------------------------------------------------------
62  virtual void BeginTableAttr() = 0;
63 
64  //----------------------------------------------------------------------------------------
65  virtual void EndTableAttr() = 0;
66 
67  //----------------------------------------------------------------------------------------
68  virtual void BeginRowAttr(
69  RowRange rows
70  ) = 0;
71 
72  //----------------------------------------------------------------------------------------
73  virtual void EndRowAttr() = 0;
74 
75  //----------------------------------------------------------------------------------------
76  virtual void BeginColumnAttr(
77  ColRange cols
78  ) = 0;
79 
80  //----------------------------------------------------------------------------------------
81  virtual void EndColumnAttr() = 0;
82 
83  //----------------------------------------------------------------------------------------
84  virtual void AddAttribute(
85  ITableAttrReport* attr
86  ) = 0;
87 
88  virtual void SetTableDir(int32 tableDir) = 0;
89 
90  virtual int32 GetTableDir() const = 0;
91 
92 };
93 
94 
95 #endif // __IInCopyTableContext__
96 
97 
98