InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRulerCaret.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 __IRULERCARET__
25 #define __IRULERCARET__
26 
27 //========================================================================================
28 // Forward declarations
29 //========================================================================================
30 #include "RulerID.h"
31 
32 class IControlView;
33 class IViewPort;
34 
35 #if ID_NO_DIRECT_DRAWING_ALLOWED
36 #include "DVAForwardDeclarations.h"
37 #endif
38 
39 //========================================================================================
40 // CLASS IRulerCaret
41 //========================================================================================
42 
43 class IRulerCaret : public IPMUnknown
44 {
45 // ----- Constructors/destructors
46 public:
47  enum { kDefaultIID = IID_IRULERCARET };
48 
49  virtual void InitRulerCaret(IControlView* constrainingView) = 0;
50  inline void ShowRulerCaret() { ShowRulerCaret___( true);}
51  inline void HideRulerCaret() { HideRulerCaret___( true);}
52  virtual void MoveRulerCaretTo(const SysPoint& position) = 0;
53  virtual void MoveRulerCaretTo(const SysPoint& position1, const SysPoint& position2) = 0;
54  virtual bool16 RulerCaretShowing() = 0;
55 
56 protected:
57  friend class CAbstractRulerView; //for now--these members are going away
58  virtual void ShowRulerCaret___(bool doInval /* = true*/) = 0;
59  virtual void HideRulerCaret___(bool doInval /* = true*/) = 0;
60  virtual void DrawRulerCaret___(dvaui::drawbot::Drawbot* drawbotP) =0;
61 
62 };
63 
64 #endif
65 
66