InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IQuickComposer.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 __IQuickComposer__
25 #define __IQuickComposer__
26 
27 #include "IPMUnknown.h"
28 
29 #include "WritingModeUIID2.h"
30 #include "LineDescription.h"
31 
32 class IdleTimer;
33 
37 class IQuickComposer : public IPMUnknown
38 {
39  public:
40  enum { kDefaultIID = IID_IQUICKCOMPOSER };
41 
54  virtual void Compose(const UIDRef& textModelRef, int32 startLineIndex, TextIndex textStartPosition, int32 numCharsAdded,
55  bool16 clearLines, bool16 isGalleyDisplayStartPosition = kFalse, bool16 startNewStory = kFalse,
57 
66  virtual bool16 InitializeRange(const UIDRef &textModelRef, TextIndex textStartPosition, TextIndex textEndPosition) = 0;
67 
77  virtual void CreatePsuedoRange(const UIDRef &textModelRef, TextIndex startIndex, int32 length) = 0;
78 
86  virtual bool16 UnPsuedoLine(const UIDRef &textModelRef, int32 startLineIndex, IdleTimer* timeCheck) = 0;
87 
98  virtual TextIndex ComposeRange(const UIDRef &textModelRef, int32 startLineIndex, TextIndex textStartPosition,
99  TextIndex textEndPosition, int32 numCharsAdded, bool16 ownedItemDamage = kFalse) = 0;
100 
111  virtual bool16 ComposeLine(const UIDRef& textModelRef, int32 at, TextIndex textStartPosition, int32 numCharsAdded,
112  bool16 isGalleyDisplayStartPosition = kFalse, bool16 startNewStory = kFalse, bool16 ownedItemDamage = kFalse) = 0;
113 
125  virtual void ComposeOversetAle(const UIDRef& textModelRef, int32 startLineIndex, TextIndex textStartPosition, int32 numCharsAdded, int32 startLineNumber) = 0;
126 
134  virtual int32 ComposeAleLine(const UIDRef &textModelRef, int32 at, LineDescription &description, bool16 layoutLineIsHyphenated = kFalse) = 0;
135 
139  virtual void SetInstantDraw(bool16 instantDraw) = 0;
140 
144  virtual bool16 CompositionEnabled() = 0;
145 
146 };
147 
148 
149 #endif // __IQuickComposer__