InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISnapToPrefs.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 __ISnapToPrefs__
25 #define __ISnapToPrefs__
26 
27 // Min and Max values in pixels
28 #define kMinSnapZone 1
29 #define kMaxSnapZone 36
30 
31 #ifndef __ODFRC__ // when used for core resource compilation, provide just the parameter range constants
32 
33 #include "IPMUnknown.h"
34 #include "PMReal.h"
35 
36 class ISnapToPrefs : public IPMUnknown
37 {
38 public:
42 
43  // Is SnapTo guides on or off by default
44  virtual void SetSnapToGuides(bool16 bSnapTo) = 0;
45  virtual bool16 GetSnapToGuides() = 0;
46 
47  // Is SnapTo grid on or off by default
48  virtual void SetSnapToGrid(bool16 bSnapTo) = 0;
49  virtual bool16 GetSnapToGrid() = 0;
50 
51  // Default snap zone (in pixels)
52  virtual void SetSnapToZone(const PMReal& zone) = 0;
53  virtual PMReal GetSnapToZone() = 0;
54 
55 };
56 
57 #endif
58 #endif