InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AcquireModalCursor.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 __AcquireModalCursor__
25 #define __AcquireModalCursor__
26 
27 #include "CursorSpec.h"
28 #include "ICursorMgr.h"
29 
30 #ifdef PUBLIC_BUILD
31 #endif
32 
34 {
35  public:
36  virtual ~BaseAcquireModalCursor();
37  virtual void ChangeCursor(const CursorSpec& newspec) = 0;
38 
39 };
40 
41 //========================================================================================
42 // CLASS AcquireModalCursor
43 
51 {
52  public:
54  AcquireModalCursor(const CursorSpec& newspec, int16 restoreCursor = ICursorMgr::kRecomputeNewCursor);
58  virtual ~AcquireModalCursor();
59 
61  virtual void ChangeCursor(const CursorSpec& newspec);
62 
63  protected:
64  ModalCursorTicket fTicket;
65  ICursorMgr* fCursorMgr;
66 };
67 
68 //========================================================================================
69 // CLASS AcquireWaitCursor
70 
80 {
81  public:
85  virtual ~AcquireWaitCursor();
86 
88  virtual void ChangeCursor(const CursorSpec& newspec);
90  void Animate();
91 
92  protected:
93  ModalCursorTicket fTicket;
94  ICursorMgr* fCursorMgr;
95 };
96 
97 //========================================================================================
98 // CLASS AcquireDelayedBusyCursor
99 
112 {
113  public:
117  virtual ~AcquireDelayedBusyCursor();
118 
120  virtual void ChangeCursor(const CursorSpec& newspec);
122  void Animate();
123 
124  protected:
125  ModalCursorTicket fTicket;
126  ICursorMgr* fCursorMgr;
127 };
128 
129 //========================================================================================
130 // CLASS AcquireModalDialogCursor
131 
144 {
145  public:
147  AcquireModalDialogCursor(const CursorSpec& newspec, int16 restoreCursor = ICursorMgr::kRestorePreviousCursor);
151  virtual ~AcquireModalDialogCursor();
152 
154  virtual void ChangeCursor(const CursorSpec& newspec);
155 
156  protected:
157  ModalCursorTicket fTicket;
158  ICursorMgr* fCursorMgr;
159 };
160 
161 
162 
163 
164 #endif