InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBaselineGridPrefsCmdData.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 // Data interface for BaselineGrid prefs commands.
24 // includes : BaselineGrids drawn in front or back, shown or hidden,
25 // intervals between each baseline grid line,
26 // offset from top of page, and view limit percentage.
27 //
28 //========================================================================================
29 
30 #ifndef __IBaselineGridPrefsCmdData__
31 #define __IBaselineGridPrefsCmdData__
32 
33 #include "IPMUnknown.h"
34 #include "SpreadID.h"
35 #include "UIDRef.h"
36 #include "PMReal.h"
37 #include "IBaselineGridPrefs.h"
38 
39 class IDataBase;
40 
41 
42 
43 
45 {
46 public:
47  enum { kDefaultIID = IID_IBASELINEGRIDPREFSCMDDATA };
48 
49  virtual void Set( const UIDRef& gridPrefs, /* which document or story grid prefs to affect */
50  bool16 shown, /* BaselineGrids shown or hidden */
51  PMReal division, /* Interval between main BaselineGridlines */
52  PMReal start, /* Offset from top of page */
53  PMReal viewLimit, /* View percentage limit */
54  UID colorUID = kInvalidUID) = 0;
55  virtual UIDRef GetDocument() const = 0;
56  virtual UIDRef GetGridPrefs() const = 0;
57  virtual bool16 GetBaselineGridShown() const = 0;
58  virtual PMReal GetBaselineGridDivision() const = 0;
59  virtual PMReal GetBaselineGridStart() const = 0;
60  virtual PMReal GetBaselineGridViewLimit() const = 0;
61  virtual UID GetBaselineGridColorUID() const = 0;
62 
63  virtual void SetBaselineGridRelativeOption(const IBaselineGridPrefs::BaselineGridRelativeOption relativeOption) = 0;
64  virtual IBaselineGridPrefs::BaselineGridRelativeOption GetBaselineGridRelativeOption() const = 0;
65 };
66 
67 
68 #endif // __IBaselineGridPrefsCmdData__