InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableStyleSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Danielle Darling
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 ITABLESTYLESUITE_H
25 #define ITABLESTYLESUITE_H
26 
27 #include "IPMUnknown.h"
28 
29 #include "TabStyID.h"
30 
31 class AttributeBossList;
32 class GridArea;
33 
40 {
41 public:
42 
43  enum {kDefaultIID = IID_ITABLESTYLESUITE};
44 
56  virtual bool16 CanApplyTableStyle(const UID& whichStyle) const = 0;
57 
66  virtual bool16 AreTableStylesEnabled() const = 0;
67 
75  virtual bool16 CanGetSelectedRegionalCellStyles() const = 0;
76 
86  virtual ErrorCode GetSelectedRegionalCellStyles(UIDList& out_SelectedStyles) const = 0;
87 
96  virtual bool16 CanApplyTableStyle() const = 0;
97 
116  virtual ErrorCode ApplyTableStyle(const UIDRef& tableStyleRef,
117  const bool16 removeOverrides = kFalse,
118  const bool16 removeCellStyle = kFalse) const = 0;
119 
127  virtual bool16 CanClearOverrides() const = 0;
128 
138  virtual ErrorCode ClearLocalOverrides(const bool16 clearCellStyles = kFalse) const = 0;
139 
147  virtual bool16 CanBreakLinkWithStyle() const = 0;
148 
160  virtual ErrorCode BreakLinkWithTableStyle() const = 0;
161 
171  virtual bool16 CanGetTableStyle() const = 0;
172 
182  virtual ErrorCode GetSelectedTableStyle(UID& out_UID) const = 0;
183 
192  virtual bool16 CanRedefineTableStyle() const = 0;
193 
194 
204  virtual bool16 CanClearLocalCellStyleFormatting() const = 0;
205 
216  virtual ErrorCode RedefineStyle() const = 0;
217 
224  virtual bool16 CanCreateTableStyle() const = 0;
225 
238  virtual ErrorCode CreateTableStyle(const UID* parentHier = nil,
239  const int32 position = -1,
240  const UID* basedOn = nil) = 0;
241 
248  virtual bool16 CanGetOverrides() const = 0;
249 
259  virtual ErrorCode GetLocalOverrides(AttributeBossList& outLocalOverrides) const = 0;
260 };
261 
262 #endif
263