InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextOffscreen.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __ITextOffscreen__
25 #define __ITextOffscreen__
26 
27 #include "IPMUnknown.h"
28 #include "DVAForwardDeclarations.h"
29 
30 class IGraphicsContext;
31 class PMRect;
32 
33 //----------------------------------------------------------------------------------------
34 // Interface ITextOffscreen
35 //----------------------------------------------------------------------------------------
36 
44 class ITextOffscreen : public IPMUnknown
45 {
46 public:
55  virtual bool16 CreateOffscreen( IPMUnknown *pShape, IGraphicsContext* gc ) = 0;
56 
62  virtual bool16 Draw( IPMUnknown *pShape, IGraphicsContext* gc ) = 0;
63 
68  virtual bool16 IsSupported( const IPMUnknown *pShape ) const = 0;
69 
74  virtual bool16 Clear( const IPMUnknown *pShape = 0 ) = 0;
75 
79  virtual void Enable( bool16 bOn = kTrue ) = 0;
80 
83  virtual bool16 IsEnabled() const = 0;
84 
89  virtual void SetLowMemory( bool16 bOn = kTrue ) = 0;
90 
93  virtual bool16 IsLowMemory() const = 0;
94 
98  virtual void SetTypingMode( bool16 bOn = kTrue ) = 0;
99 
102  virtual bool16 IsInTypingMode() const = 0;
103 
106  virtual bool16 IsInDrawingMode() const = 0;
107 
110  virtual bool16 HasPendingInvals() const = 0;
111 
115  virtual IPMUnknown *GetTargetTextFrame() const = 0;
116 
125  virtual bool16 Draw( IPMUnknown *pShape, IGraphicsContext* gc, dvaui::drawbot::Drawbot* drawbotP ) = 0;
126 };
127 
128 #endif