InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinesToRedrawData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 __ILinesToRedrawData__
25 #define __ILinesToRedrawData__
26 
27 #include "IPMUnknown.h"
28 #include "IGraphicsContext.h"
29 #include "IWaxStrand.h"
30 
31 #include "WritingModeUIID.h"
32 #include "PMRect.h"
33 #include "PMString.h"
34 
39 {
40  public:
41  enum { kDefaultIID = IID_ILINESTOREDRAWDATA };
42 
49  virtual void SetShouldErase(bool16 erase) = 0;
50 
55  virtual bool16 ShouldErase() = 0;
56 
57 #ifdef ID_DEPRECATED
58  virtual void SetEraseCaret(bool16 eraseCaret) = 0;
59  virtual bool16 ShouldEraseCaret() = 0;
60 
61  // Not used
62  virtual void DrawOk(bool8 drawOK) = 0;
63  virtual bool8 IsDrawOk() = 0;
64 
65  // Not used
66  virtual void SetRangeToRedraw(int32 first, int32 last) = 0;
67  virtual int32 GetFirstLineToRedraw() = 0;
68  virtual int32 GetLastLineToRedraw() = 0;
69 
70  // Not used
71  virtual void SetDrawStartTextOffset(TextIndex textOffset) = 0;
72  virtual TextIndex GetDrawStartTextOffset() = 0;
73 
74  // Not used
75  virtual void SetDrawingFromInval(bool16 invalRedraw) = 0;
76  virtual bool16 GetDrawingFromInval() = 0;
77 
78  // Not used
79  virtual void SetForceRedrawRect(PMRect rect) = 0;
80  virtual PMRect GetForceRedrawRect() = 0;
81 
82  // Not used
83  virtual void SetToNone() = 0;
84  virtual bool8 IsNone() = 0;
85  virtual void ClearTypingInval() = 0;
86  virtual void SetIsTypingInval(bool8 typing) = 0;
87  virtual bool8 IsTypingInval() = 0;
88  virtual PMRect GetRedrawRect(IGraphicsContext* gc, int32 flags, IWaxStrand *waxStrand) = 0;
89  virtual bool8 DrawThisLine(int32 lineNumber) = 0;
90  virtual bool8 RedrawEveryThing() = 0;
91  virtual void SetRedrawEveryThing(bool8 redraw = kTrue) = 0;
92  virtual void SetNumberOfLines(int32 lines) = 0;
93  virtual int32 GetNumberOfLines() = 0;
94 #endif
95 };
96 
97 #endif // __ILinesToRedrawData__