InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICursorProvider.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard
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 __ICursorProvider__
25 #define __ICursorProvider__
26 
27 #include "IPMUnknown.h"
28 #include "ShuksanID.h"
29 #include "CursorDefs.h"
30 #include "CursorID.h"
31 #include "ICursorMgr.h"
32 
33 class IWindow;
34 
43 {
44 public:
45  enum { kDefaultIID = IID_ICURSORPROVIDER };
46 
56  virtual CursorSpec GetCursor( IControlView* viewUnderMouse, const SysPoint globalLocation, ICursorMgr::eCursorModifierState modifiers) const =0;
57 
58 
66  virtual bool16 LocationAffectsCursor(SysRgn cursorRgn) const =0;
67 
68 
77  virtual bool16 ModifiersAffectCursor(SysRgn cursorRgn) const =0;
78 
79 
85  virtual bool16 HasLockedState() const =0;
86 
87 
92  virtual void SetSingleCursor(const CursorSpec&) = 0;
93 
94 };
95 
96 #endif // __ICursorProvider__