InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISnapToSelectionSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 // Note:
24 //
25 //========================================================================================
26 
27 #ifndef __ISnapToSelectionSuite__
28 #define __ISnapToSelectionSuite__
29 
30 #include "ISnapTo.h"
31 #include "SpreadUIID.h"
32 
33 class IDocument;
34 class ILayoutControlData;
35 
36 //________________________________________________________________________________________________
37 // INCLUDES
38 //________________________________________________________________________________________________
39 
40 //================================================================================================
41 //________________________________________________________________________________________________
42 // CLASS DECLARATION
43 //________________________________________________________________________________________________
44 
49 {
50  //____________________________________________________________________________________________
51  // Data Types
52  //____________________________________________________________________________________________
53  public:
54  enum { kDefaultIID = IID_ISNAPTOSELECTIONSUITE };
55 
56  //____________________________________________________________________________________________
57  // Member functions
58  //____________________________________________________________________________________________
59  public:
65  virtual bool16 CanDoSnapTo(IDocument *document, SnapFlags flags) const = 0;
66 
77  virtual SnapType SnapToPoint(ISnapTo* snapTo,
78  IControlView* theView,
79  PMPoint& thePoint,
80  const PMRect* theRect,
81  SnapType snapType,
82  PMReal snapToZone,
83  ILayoutControlData* layoutData) = 0;
84 };
85 
86 #endif // __ISnapToSelectionSuite__