InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGridPrefsCmdData.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 Grid prefs commands.
24 // includes : Grids drawn in front or back, shown or hidden and
25 // intervals between gridlines.
26 //
27 //========================================================================================
28 
29 #ifndef __IGridPrefsCmdData__
30 #define __IGridPrefsCmdData__
31 
32 #include "IPMUnknown.h"
33 #include "SpreadID.h"
34 #include "UIDRef.h"
35 #include "PMRect.h"
36 
37 class IDataBase;
38 
40 {
41 public:
42  virtual void Set( const UIDRef& doc, /* which document to affect */
43  const bool16 shown, /* Grids shown or hidden */
44  const PMReal& division, /* Interval between main gridlines, -1 to leave unchanged */
45  const int32& subdivisions, /* Number of subdivisions, -1 to leave unchanged */
46  const int32& colorIndex = -1) = 0;
47  virtual const UIDRef& GetDocument() const = 0;
48  virtual const bool16 GetGridShown() const = 0;
49  virtual const PMReal& GetGridDivision() const = 0;
50  virtual const int32& GetGridSubdivisions() const = 0;
51  virtual const int32& GetGridColorIndex() const = 0;
52 
53  virtual const void SetGridsInBack(bool16 bInBack) = 0;
54  virtual const bool16 GetGridsInBack() const = 0;
55 
56  // Value of -1 will leave unchanged.
57  virtual void SetGridHorizontalDivision(const PMReal& horizontalDivision) = 0;
58  virtual void SetGridVerticalDivision(const PMReal& verticalDivision) = 0;
59  virtual const PMReal& GetGridHorizontalDivision() = 0;
60  virtual const PMReal& GetGridVerticalDivision() = 0;
61 
62  // Value of -1 will leave unchanged.
63  virtual void SetGridHorizontalSubdivisions(const int32& horizontalSubdivisions) = 0;
64  virtual void SetGridVerticalSubdivisions(const int32& verticalSubdivisions) = 0;
65  virtual const int32& GetGridHorizontalSubdivisions() = 0;
66  virtual const int32& GetGridVerticalSubdivisions() = 0;
67 };
68 
69 #endif // __IGridPrefsCmdData__