InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBaselineFrameGridData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: psorrick
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 #ifndef __IBaselineFrameGridData__
26 #define __IBaselineFrameGridData__
27 
28 #include "IPMUnknown.h"
29 #include "TextID.h"
30 
32 {
33  public:
34  enum { kDefaultIID = IID_IBASELINEFRAMEGRIDDATA };
35 
36  typedef enum { kTopOfPage, kTopOfMargin, kTopOfFrame, kTopOfInset } RelativeOption;
37 
42  virtual void SetUseCustomBaselineGridFlag(const bool16& flag) = 0;
43 
48  virtual bool16 GetUseCustomBaselineGridFlag() const = 0;
49 
54  virtual void SetStartingOffset(const PMReal& startingOffset) = 0;
55 
60  virtual PMReal GetStartingOffset() const = 0;
61 
66  virtual void SetRelativeOption(IBaselineFrameGridData::RelativeOption& relativeOption) = 0;
67 
72  virtual IBaselineFrameGridData::RelativeOption GetRelativeOption() const = 0;
73 
78  virtual void SetIncrement(const PMReal& increment) = 0;
79 
84  virtual PMReal GetIncrement() const = 0;
85 
90  virtual bool16 GetBaselineFrameGridShown() const = 0;
91 
96  virtual UIDRef GetBaselineFrameGridColor() = 0;
97 
102  virtual void SetBaselineFrameGridColor(const UID& colorUID) = 0;
103 
109  virtual PMReal GetBaselineFrameGridViewThreshold() const = 0;
110 
115  enum SetValueID{ kSetNone = 0,
116  kSetUseBaselineGrid = 1,
117  kSetStartingOffset = 2,
118  kSetRelativeOption = 4,
119  kSetIncrement = 8,
120  kSetBaselineFrameGridColor = 16 };
121 
122  virtual void SetValue(const IBaselineFrameGridData::SetValueID& val) = 0;
126  virtual void ClearSetValues() = 0;
127 
131  virtual bool16 ApplyValue(const IBaselineFrameGridData::SetValueID& val) const = 0;
132 
133 };
134 
135 #endif