InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICellStyleSuite.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 ICELLSTYLESUITE_H
25 #define ICELLSTYLESUITE_H
26 
27 #include "IPMUnknown.h"
28 
29 #include "CelStyID.h"
30 
31 class AttributeBossList;
32 class GridArea;
33 
41 {
42 public:
43  enum {kDefaultIID = IID_ICELLSTYLESUITE};
44 
51  virtual bool16 CanCreateCellStyle() const = 0;
52 
70  virtual ErrorCode CreateCellStyle(const UID* parentHier = nil,
71  const int32 position = -1,
72  const UID* basedOn = nil) = 0;
73 
83  virtual bool16 CanBreakLinkWithCellStyle() const = 0;
84 
96  virtual ErrorCode BreakLinkWithCellStyle() const = 0;
97 
106  virtual bool16 CanApplyCellStyle() const = 0;
107 
119  virtual bool16 CanApplyCellStyle(const UID& whichStyle) const = 0;
120 
136  virtual ErrorCode ApplyCellStyle(const UIDRef& cellStyle,
137  const bool16 removeOverrides = kFalse) const = 0;
138 
149  virtual ErrorCode ApplyCellStyleAndClearAllFormatting(const UIDRef& cellStyle) const = 0;
150 
157  virtual bool16 CanGetCellStyle() const = 0;
158 
172  virtual ErrorCode GetSelectedCellStyles(UIDList& out_SelectedStyles) const = 0;
173 
184  virtual bool16 CanGetOverridingParagraphStyles() const = 0;
185 
197  virtual ErrorCode GetOverridingParagraphStyles(UIDList& out_OverridingParaStyles) const = 0;
198 
210  virtual bool16 CanRedefineCellStyle() const = 0;
211 
224  virtual ErrorCode RedefineCellStyle() const = 0;
225 
239  virtual bool16 CanClearOverrides(const UIDRef& styleToCheck = UIDRef::gNull) const = 0;
240 
248  virtual bool16 CanClearAllOverrides() const = 0;
249 
256  virtual ErrorCode ClearAllOverrides() const = 0;
257 
267  virtual ErrorCode ClearOverrides() const = 0;
268 
285  virtual ErrorCode GetLocalOverrides(AttributeBossList& outLocalOverrides,
286  bool16* out_IsMixed = nil) const = 0;
287 
295  virtual bool16 CanGetCellStyleOverrides() const = 0;
296 
302  virtual bool16 CanGetAllOverrides() const = 0;
303 
313  virtual ErrorCode GetAllOverrides(AttributeBossList& outLocalOverrides) const = 0;
314 };
315 
316 #endif