InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBaselineGridPrefs.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 #ifndef __IBaselineGridPrefs__
25 #define __IBaselineGridPrefs__
26 
27 #define kMinBaselineStart 0
28 #define kMaxBaselineStart 1000
29 #define kMinBaselineDivision 1
30 #define kMaxBaselineDivision 8640
31 #define kMinBaselineViewLimit 5
32 #define kMaxBaselineViewLimit 4000
33 
34 #ifndef __ODFRC__ // when used for core resource compilation, provide just the parameter range constants
35 
36 #include "IPMUnknown.h"
37 #include "SpreadID.h"
38 
40 {
41 public:
42  enum { kDefaultIID = IID_IBASELINEGRIDPREFERENCES };
43 
47 
48  typedef enum { kRelativeToTopOfPage, kRelativeToTopOfMargin } BaselineGridRelativeOption;
49 
50  // Is BaselineGrid shown or hidden by default
51  virtual void SetBaselineGridShown(bool16 bShown) = 0;
52  virtual bool16 GetBaselineGridShown() const = 0;
53 
54  // BaselineGrid division
55  virtual void SetBaselineGridDivision(const PMReal& division) = 0;
56  virtual PMReal GetBaselineGridDivision() const = 0;
57 
58  // BaselineGrid start (offset from top of page)
59  virtual void SetBaselineGridStart(const PMReal& start) = 0;
60  virtual PMReal GetBaselineGridStart() const = 0;
61 
62  // BaselineGrid relative to options
63  virtual void SetBaselineGridRelativeOption(const IBaselineGridPrefs::BaselineGridRelativeOption& relativeOption) = 0;
64  virtual IBaselineGridPrefs::BaselineGridRelativeOption GetBaselineGridRelativeOption() const = 0;
65 
66  // BaselineGrid view percentage limit
67  virtual void SetBaselineGridViewLimit(const PMReal& limit) = 0;
68  virtual PMReal GetBaselineGridViewLimit() const = 0;
69 
70  virtual void SetBaselineGridColor(UID uiColorUID) = 0;
71  virtual UIDRef GetBaselineGridColor() const = 0;
72 
75  virtual bool16 GetBaselineGridShown_DURING_CONVERSION_ONLY() const = 0;
76 
79  virtual int32 GetBaselineGridColorIndex_DURING_CONVERSION_ONLY() const = 0;
80 };
81 #endif
82 
83 #endif