InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextRun.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 __ITextRun__
25 #define __ITextRun__
26 
27 #include "IPMUnknown.h"
28 
29 #include "WritingModeUIID2.h"
30 #include "PMRect.h"
31 #include "IInterfaceColors.h"
32 #include "LineDescription.h"
33 
34 class IGraphicsPort;
35 class ITextModel;
36 class WideString;
37 
46 class ITextRun : public IPMUnknown
47 {
48 public:
53  virtual void InitializeForDraw() = 0;
54 
60  virtual bool16 IsVisible(const RunDescription &description) = 0;
61 
66  virtual bool16 DrawsText() = 0;
67 
78  virtual bool16 GetRunThreadData(const RunDescription &description, ITextModel *primaryTextModel,
79  UID &threadDictUID, uint32 &threadDictKey,
80  TextIndex &threadStart, int32 &threadSpan) = 0;
81 
95  virtual PMReal DrawRun(IGraphicsPort *gPort, int32 at, const RunDescription &description, PMRect &runRect,
96  const PMPoint &textDrawPt, int32 runDrawLength, int32 runIndex,
97  bool16 showInvisibles, const PMRect &highlightRect) = 0;
98 
106  virtual void DrawHilite(int32 at, IGraphicsPort *gPort, const PMPoint &scrollCompensationValue) = 0;
107 
114  virtual void DrawHilite(const TextIndex textModelStart, const TextIndex textModelEnd) = 0;
115 
127  virtual void DrawRunOverlap(IGraphicsPort *gPort, int32 at, const RunDescription &description, PMRect &runRect,
128  int32 runIndex) = 0;
129 };
130 
131 #endif // __ITextRun__