InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CHMLFiltTextHelper.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __CHMLFiltTextHelper_H_DEFINED__
25 #define __CHMLFiltTextHelper_H_DEFINED__
26 
27 #include "K2SmartPtr.h"
28 #include "RangeData.h"
29 #include "AttributeBossList.h"
30 #include "ICompositionStyle.h"
31 
39 
40 public:
41 
46  CHMLFiltTextHelper(const UIDRef& textModelUIDRef, const RangeData& targetRangeData);
47 
51  CHMLFiltTextHelper(const UIDRef& textModelUIDRef);
52 
54  virtual ~CHMLFiltTextHelper();
55 
64  ErrorCode InsertText(const WideString& wstr);
65 
66 
76  ErrorCode Apply();
77 
78 
84  void AddUnderline();
85 
86 
92  void AddNonUnderline();
93 
94 
102 
103 
109  void AddBold();
110 
111 
117  void AddDefaultFont();
118 
119 
126  void AddPointSize(const PMReal& pointSize);
127 
128 
135  void AddFont(const PMString& fontName);
136 
137 
142  void Reset(const RangeData& targetRangeData);
143 
144 
151  void Reset(const TextIndex& position);
152 
153 
154 
155 
156 protected:
157  void checkInvariant();
158  ErrorCode doApplyAttributes(boost::shared_ptr<AttributeBossList>& attrList, const ClassID& which);
159 
160 private:
161 
162  UIDRef fTextModelUIDRef;
163  RangeData fRangeData;
164  boost::shared_ptr<AttributeBossList> fCharAttributeBossList;
165  boost::shared_ptr<AttributeBossList> fParaAttributeBossList;
166 
167 };
168 
169 
170 
171 #endif // __CHMLFiltTextHelper_H_DEFINED__
172 
173 
174 // Code generated by DollyXS code generator