2 * Copyright 2006 Juan Lang
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 cpp_quote
("#ifdef WINE_NO_UNICODE_MACROS")
23 cpp_quote
("#undef FindText")
26 typedef enum tagTomConstants
30 tomUndefined
= (int) -9999999,
31 tomToggle
= (int) -9999998,
32 tomAutoColor
= (int) -9999997,
33 tomDefault
= (int) -9999996,
34 tomSuspend
= (int) -9999995,
35 tomResume
= (int) -9999994,
37 /* ITextFont::Reset() modes */
38 tomApplyNow
= (int) 0,
39 tomApplyLater
= (int) 1,
40 tomTrackParms
= (int) 2,
41 tomCacheParms
= (int) 3,
42 tomApplyTmp
= (int) 4,
43 tomDisableSmartFont
= (int) 8,
44 tomEnableSmartFont
= (int) 9,
45 tomUsePoints
= (int) 10,
46 tomUseTwips
= (int) 11,
48 tomBackward
= (int) 0xc0000001,
49 tomForward
= (int) 0x3fffffff,
52 tomNoSelection
= (int) 0,
53 tomSelectionIP
= (int) 1,
54 tomSelectionNormal
= (int) 2,
55 tomSelectionFrame
= (int) 3,
56 tomSelectionColumn
= (int) 4,
57 tomSelectionRow
= (int) 5,
58 tomSelectionBlock
= (int) 6,
59 tomSelectionInlineShape
= (int) 7,
60 tomSelectionShape
= (int) 8,
61 tomSelStartActive
= (int) 1,
62 tomSelAtEOL
= (int) 2,
63 tomSelOvertype
= (int) 4,
64 tomSelActive
= (int) 8,
65 tomSelReplace
= (int) 16,
68 tomCollapseEnd
= (int) 0,
69 tomCollapseStart
= (int) 1,
70 tomClientCoord
= (int) 256,
78 tomDashDotDot
= (int) 7,
82 tomLineSpaceSingle
= (int) 0,
83 tomLineSpace1pt5
= (int) 1,
84 tomLineSpaceDouble
= (int) 2,
85 tomLineSpaceAtLeast
= (int) 3,
86 tomLineSpaceExactly
= (int) 4,
87 tomLineSpaceMultiple
= (int) 5,
88 tomAlignLeft
= (int) 0,
89 tomAlignCenter
= (int) 1,
90 tomAlignRight
= (int) 2,
91 tomAlignJustify
= (int) 3,
92 tomAlignDecimal
= (int) 3,
93 tomAlignBar
= (int) 4,
94 tomAlignInterWord
= (int) 3,
95 tomAlignInterLetter
= (int) 4,
96 tomAlignScaled
= (int) 5,
97 tomAlignGlyphs
= (int) 6,
98 tomAlignSnapGrid
= (int) 7,
103 tomThickLines
= (int) 4,
105 tomTabBack
= (int) -3,
106 tomTabNext
= (int) -2,
107 tomTabHere
= (int) -1,
108 tomListBullet
= (int) 1,
109 tomListNumberAsArabic
= (int) 2,
110 tomListNumberAsLCLetter
= (int) 3,
111 tomListNumberAsUCLetter
= (int) 4,
112 tomListNumberAsLCRoman
= (int) 5,
113 tomListNumberAsUCRoman
= (int) 6,
114 tomListNumberAsSequence
= (int) 7,
115 tomListParentheses
= (int) 0x10000,
116 tomListPeriod
= (int) 0x20000,
117 tomListPlain
= (int) 0x30000,
118 tomCharacter
= (int) 1,
120 tomSentence
= (int) 3,
121 tomParagraph
= (int) 4,
125 tomSection
= (int) 8,
128 tomWindow
= (int) 11,
130 tomCharFormat
= (int) 13,
131 tomParaFormat
= (int) 14,
133 tomObject
= (int) 16,
134 tomMatchWord
= (int) 2,
135 tomMatchCase
= (int) 4,
136 tomMatchPattern
= (int) 8,
138 /* ITextRange story type values */
139 tomUnknownStory
= (int) 0,
140 tomMainTextStory
= (int) 1,
141 tomFootnotesStory
= (int) 2,
142 tomEndnotesStory
= (int) 3,
143 tomCommentsStory
= (int) 4,
144 tomTextFrameStory
= (int) 5,
145 tomEvenPagesHeaderStory
= (int) 6,
146 tomPrimaryHeaderStory
= (int) 7,
147 tomEvenPagesFooterStory
= (int) 8,
148 tomPrimaryFooterStory
= (int) 9,
149 tomFirstPageHeaderStory
= (int) 10,
150 tomFirstPageFooterStory
= (int) 11,
152 /* ITextFont animation property */
153 tomNoAnimation
= (int) 0,
154 tomLasVegasLights
= (int) 1,
155 tomBlinkingBackground
= (int) 2,
156 tomSparkleText
= (int) 3,
157 tomMarchingBlackAnts
= (int) 4,
158 tomMarchingRedAnts
= (int) 5,
159 tomShimmer
= (int) 6,
160 tomWipeDown
= (int) 7,
161 tomWipeRight
= (int) 8,
162 tomAnimationMax
= (int) 8,
164 tomLowerCase
= (int) 0,
165 tomUpperCase
= (int) 1,
166 tomTitleCase
= (int) 2,
167 tomSentenceCase
= (int) 4,
168 tomToggleCase
= (int) 5,
169 tomReadOnly
= (int) 0x100,
170 tomShareDenyRead
= (int) 0x200,
171 tomShareDenyWrite
= (int) 0x400,
172 tomPasteFile
= (int) 0x1000,
173 tomCreateNew
= (int) 0x10,
174 tomCreateAlways
= (int) 0x20,
175 tomOpenExisting
= (int) 0x30,
176 tomOpenAlways
= (int) 0x40,
177 tomTruncateExisting
= (int) 0x50,
181 tomWordDocument
= (int) 0x4,
182 tomBold
= (int) 0x80000001,
183 tomItalic
= (int) 0x80000002,
184 tomUnderline
= (int) 0x80000004,
185 tomStrikeout
= (int) 0x80000008,
186 tomProtected
= (int) 0x80000010,
187 tomLink
= (int) 0x80000020,
188 tomSmallCaps
= (int) 0x80000040,
189 tomAllCaps
= (int) 0x80000080,
190 tomHidden
= (int) 0x80000100,
191 tomOutline
= (int) 0x80000200,
192 tomShadow
= (int) 0x80000400,
193 tomEmboss
= (int) 0x80000800,
194 tomImprint
= (int) 0x80001000,
195 tomDisabled
= (int) 0x80002000,
196 tomRevised
= (int) 0x80004000,
197 tomNormalCaret
= (int) 0,
198 tomKoreanBlockCaret
= (int) 0x1,
199 tomIncludeInset
= (int) 0x1,
200 tomIgnoreCurrentFont
= (int) 0,
201 tomMatchFontCharset
= (int) 0x1,
202 tomMatchFontSignature
= (int) 0x2,
203 tomCharset
= (int) 0x80000000,
204 tomRE10Mode
= (int) 0x1,
205 tomNoIME
= (int) 0x80000,
206 tomSelfIME
= (int) 0x40000
209 interface ITextRange
;
210 interface ITextSelection
;
211 interface ITextStoryRanges
;
215 uuid(8cc497c0
-a1df
-11ce
-8098-00aa0047be5d
)
217 interface ITextDocument
: IDispatch
219 HRESULT GetName
([retval, out]BSTR *pName
);
220 HRESULT GetSelection
([retval, out]ITextSelection
**ppSel
);
221 HRESULT GetStoryCount
([retval, out]LONG *pCount
);
222 HRESULT GetStoryRanges
([retval, out]ITextStoryRanges
**ppStories
);
223 HRESULT GetSaved
([retval, out]LONG *pValue
);
224 HRESULT SetSaved
([in]LONG Value
);
225 HRESULT GetDefaultTabStop
([retval, out]float *pValue
);
226 HRESULT SetDefaultTabStop
([in]float Value
);
228 HRESULT Open
([in]VARIANT *pVar
, [in]LONG Flags
, [in]LONG CodePage
);
229 HRESULT Save
([in]VARIANT *pVar
, [in]LONG Flags
, [in]LONG CodePage
);
230 HRESULT Freeze
([retval, out]LONG *pCount
);
231 HRESULT Unfreeze
([retval, out]LONG *pCount
);
232 HRESULT BeginEditCollection
();
233 HRESULT EndEditCollection
();
234 HRESULT Undo
([in]LONG Count
, [retval, out]LONG *prop
);
235 HRESULT Redo
([in]LONG Count
, [retval, out]LONG *prop
);
236 HRESULT Range([in]LONG cp1
, [in]LONG cp2
, [retval, out]ITextRange
**ppRange
);
237 HRESULT RangeFromPoint
([in]LONG x
, [in]LONG y
, [retval, out]ITextRange
**ppRange
);
242 uuid(01c25500
-4268-11d1
-883a
-3c8b00c10000
)
244 interface ITextDocument2Old
: ITextDocument
246 HRESULT AttachMsgFilter
([in]IUnknown
*filter
);
247 HRESULT SetEffectColor
([in]LONG index
, [in]COLORREF cr
);
248 HRESULT GetEffectColor
([in]LONG index
, [out]COLORREF
*cr
);
249 HRESULT GetCaretType
([retval, out]LONG *type
);
250 HRESULT SetCaretType
([in]LONG type
);
251 HRESULT GetImmContext
([retval, out]LONG *context
);
252 HRESULT ReleaseImmContext
([in]LONG context
);
253 HRESULT GetPreferredFont
([in]LONG cp
, [in]LONG codepage
, [in]LONG option
, [in]LONG current_codepage
, [in]LONG current_fontsize
,
254 [out]BSTR *bstr, [out]LONG *pitch_family
, [out]LONG *new_fontsize
);
255 HRESULT GetNotificationMode
([retval, out]LONG *mode
);
256 HRESULT SetNotificationMode
([in]LONG mode
);
257 HRESULT GetClientRect
([in]LONG type
, [out]LONG *left
, [out]LONG *top
, [out]LONG *right
, [out]LONG *bottom
);
258 HRESULT GetSelectionEx
([retval, out]ITextSelection
**selection
);
259 HRESULT GetWindow
([out]LONG *hwnd
);
260 HRESULT GetFEFlags
([out]LONG *flags
);
261 HRESULT UpdateWindow
();
262 HRESULT CheckTextLimit
([in]LONG cch
, [out]LONG *exceed
);
263 HRESULT IMEInProgress
([in]LONG mode
);
265 HRESULT Update
([in]LONG mode
);
266 HRESULT Notify
([in]LONG notify
);
269 interface ITextDisplays
;
270 interface ITextFont2
;
271 interface ITextPara2
;
272 interface ITextStory
;
273 interface ITextStoryRanges2
;
274 interface ITextStrings
;
278 uuid(c241f5ef
-7206-11d8
-a2c7
-00a0d1d6c6b3
)
280 interface ITextRow
: IDispatch
282 HRESULT GetAlignment
([retval, out] LONG *value
);
283 HRESULT SetAlignment
([in] LONG value
);
284 HRESULT GetCellCount
([retval, out] LONG *value
);
285 HRESULT SetCellCount
([in] LONG value
);
286 HRESULT GetCellCountCache
([retval, out] LONG *value
);
287 HRESULT SetCellCountCache
([in] LONG value
);
288 HRESULT GetCellIndex
([retval, out] LONG *value
);
289 HRESULT SetCellIndex
([in] LONG value
);
290 HRESULT GetCellMargin
([retval, out] LONG *value
);
291 HRESULT SetCellMargin
([in] LONG value
);
292 HRESULT GetHeight
([retval, out] LONG *value
);
293 HRESULT SetHeight
([in] LONG value
);
294 HRESULT GetIndent
([retval, out] LONG *value
);
295 HRESULT SetIndent
([in] LONG value
);
296 HRESULT GetKeepTogether
([retval, out] LONG *value
);
297 HRESULT SetKeepTogether
([in] LONG value
);
298 HRESULT GetKeepWithNext
([retval, out] LONG *value
);
299 HRESULT SetKeepWithNext
([in] LONG value
);
300 HRESULT GetNestLevel
([retval, out] LONG *value
);
301 HRESULT GetRTL
([retval, out] LONG *value
);
302 HRESULT SetRTL
([in] LONG value
);
303 HRESULT GetCellAlignment
([retval, out] LONG *value
);
304 HRESULT SetCellAlignment
([in] LONG value
);
305 HRESULT GetCellColorBack
([retval, out] LONG *value
);
306 HRESULT SetCellColorBack
([in] LONG value
);
307 HRESULT GetCellColorFore
([retval, out] LONG *value
);
308 HRESULT SetCellColorFore
([in] LONG value
);
309 HRESULT GetCellMergeFlags
([retval, out] LONG *value
);
310 HRESULT SetCellMergeFlags
([in] LONG value
);
311 HRESULT GetCellShading
([retval, out] LONG *value
);
312 HRESULT SetCellShading
([in] LONG value
);
313 HRESULT GetCellVerticalText
([retval, out] LONG *value
);
314 HRESULT SetCellVerticalText
([in] LONG value
);
315 HRESULT GetCellWidth
([retval, out] LONG *value
);
316 HRESULT SetCellWidth
([in] LONG value
);
317 HRESULT GetCellBorderColors
([out] LONG *left
, [out] LONG *top
,
318 [out] LONG *right
, [out] LONG *bottom
);
319 HRESULT GetCellBorderWidths
([out] LONG *left
, [out] LONG *top
,
320 [out] LONG *right
, [out] LONG *bottom
);
321 HRESULT SetCellBorderColors
([in] LONG left
, [in] LONG top
,
322 [in] LONG right
, [in] LONG bottom
);
323 HRESULT SetCellBorderWidths
([in] LONG left
, [in] LONG top
,
324 [in] LONG right
, [in] LONG bottom
);
325 HRESULT Apply
([in] LONG row
, [in] LONG flags
);
326 HRESULT CanChange
([retval, out] LONG *value
);
327 HRESULT GetProperty
([in] LONG type
, [out] LONG *value
);
328 HRESULT Insert
([in] LONG row
);
329 HRESULT IsEqual
([in] ITextRow
*row
, [retval, out] LONG *r
);
330 HRESULT Reset
([in] LONG value
);
331 HRESULT SetProperty
([in] LONG type
, [in] LONG value
);
336 uuid(c241f5e2
-7206-11d8
-a2c7
-00a0d1d6c6b3
)
338 interface ITextRange2
: ITextSelection
340 HRESULT GetCch
([retval, out] LONG *count
);
341 HRESULT GetCells
([retval, out] IUnknown
**cells
);
342 HRESULT GetColumn
([retval, out] IUnknown
**column
);
343 HRESULT GetCount
([retval, out] LONG *count
);
344 HRESULT GetDuplicate2
([retval, out] ITextRange2
**range);
345 HRESULT GetFont2
([retval, out] ITextFont2
**font
);
346 HRESULT SetFont2
([in] ITextFont2
*font
);
347 HRESULT GetFormattedText2
([retval, out] ITextRange2
**range);
348 HRESULT SetFormattedText2
([in] ITextRange2
*range);
349 HRESULT GetGravity
([retval, out] LONG *value
);
350 HRESULT SetGravity
([in] LONG value
);
351 HRESULT GetPara2
([retval, out] ITextPara2
**para
);
352 HRESULT SetPara2
([in] ITextPara2
*para
);
353 HRESULT GetRow
([retval, out] ITextRow
**row
);
354 HRESULT GetStartPara
([retval, out] LONG *value
);
355 HRESULT GetTable
([retval, out] IUnknown
**table
);
356 HRESULT GetURL
([retval, out] BSTR *url
);
357 HRESULT SetURL
([in] BSTR url
);
358 HRESULT AddSubrange
([in] LONG cp1
, [in] LONG cp2
, [in] LONG activate
);
359 HRESULT BuildUpMath
([in] LONG flags
);
360 HRESULT DeleteSubrange
([in] LONG first
, [in] LONG lim
);
361 HRESULT Find
([in] ITextRange2
*range, [in] LONG count
, [in] LONG flags
, [out] LONG *delta
);
362 HRESULT GetChar2
([out] LONG *ch
, [in] LONG offset
);
363 HRESULT GetDropCap
([out] LONG *line
, [out] LONG *pos
);
364 HRESULT GetInlineObject
([out] LONG *type
, [out] LONG *align
, [out] LONG *ch
,
365 [out] LONG *ch1
, [out] LONG *ch2
, [out] LONG *count
, [out] LONG *texstyle
,
366 [out] LONG *ccol
, [out] LONG *level
);
367 HRESULT GetProperty
([in] LONG type
, [out] LONG *value
);
368 HRESULT GetRect
([in] LONG type
, [out] LONG *left
, [out] LONG *top
,
369 [out] LONG *right
, [out] LONG *bottom
, [out] LONG *hit
);
370 HRESULT GetSubrange
([in] LONG subrange
, [out] LONG *first
, [out] LONG *limit
);
371 HRESULT GetText2
([in] LONG flags
, [out] BSTR *str
);
372 HRESULT HexToUnicode
();
373 HRESULT InsertTable
([in] LONG col
, [in] LONG row
, [in] LONG autofit
);
374 HRESULT Linearize
([in] LONG flags
);
375 HRESULT SetActiveSubrange
([in] LONG anchor
, [in] LONG active
);
376 HRESULT SetDropCap
([in] LONG line
, [in] LONG pos
);
377 HRESULT SetProperty
([in] LONG type
, [in] LONG value
);
378 HRESULT SetText2
([in] LONG flags
, [in] BSTR str
);
379 HRESULT UnicodeToHex
();
380 HRESULT SetInlineObject
([in] LONG type
, [in] LONG align
, [in] LONG ch
,
381 [in] LONG ch1
, [in] LONG ch2
, [in] LONG count
, [in] LONG texstyle
,
383 HRESULT GetMathFunctionType
([in] BSTR str
, [out] LONG *value
);
384 HRESULT InsertImage
([in] LONG width
, [in] LONG height
, [in] LONG ascent
,
385 [in] LONG type
, [in] BSTR alttext
, [in] IStream
*stream
);
390 uuid(c241f5e1
-7206-11d8
-a2c7
-00a0d1d6c6b3
)
392 interface ITextSelection2
: ITextRange2
399 uuid(c241f5e0
-7206-11d8
-a2c7
-00a0d1d6c6b3
)
401 interface ITextDocument2
: ITextDocument
403 HRESULT GetCaretType
([retval, out]LONG *value
);
404 HRESULT SetCaretType
([in]LONG value
);
405 HRESULT GetDisplays
([retval, out]ITextDisplays
**displays
);
406 HRESULT GetDocumentFont
([retval, out]ITextFont2
**font
);
407 HRESULT SetDocumentFont
([in]ITextFont2
*font
);
408 HRESULT GetDocumentPara
([retval, out]ITextPara2
**para
);
409 HRESULT SetDocumentPara
([in]ITextPara2
*para
);
410 HRESULT GetEastAsianFlags
([retval, out]LONG *flags
);
411 HRESULT GetGenerator
([retval, out]BSTR *bstr);
412 HRESULT SetIMEInProgress
([in]LONG value
);
413 HRESULT GetNotificationMode
([retval, out]LONG *mode
);
414 HRESULT SetNotificationMode
([in]LONG mode
);
415 HRESULT GetSelection2
([retval, out]ITextSelection2
**selection
);
416 HRESULT GetStoryRanges2
([retval, out]ITextStoryRanges2
**stories
);
417 HRESULT GetTypographyOptions
([retval, out]LONG *options
);
418 HRESULT GetVersion
([retval, out]LONG *value
);
419 HRESULT GetWindow
([retval, out]LONG *hwnd
);
420 HRESULT AttachMsgFilter
([in]IUnknown
*filter
);
421 HRESULT CheckTextLimit
([in]LONG cch
, [out]LONG *exceed
);
422 HRESULT GetCallManager
([retval, out]IUnknown
**manager
);
423 HRESULT GetClientRect
([in]LONG type
, [out]LONG *left
, [out]LONG *top
, [out]LONG *right
, [out]LONG *bottom
);
424 HRESULT GetEffectColor
([in]LONG index
, [out]COLORREF
*cr
);
425 HRESULT GetImmContext
([retval, out]LONG *context
);
426 HRESULT GetPreferredFont
([in]LONG cp
, [in]LONG codepage
, [in]LONG option
, [in]LONG current_codepage
, [in]LONG current_fontsize
,
427 [out]BSTR *bstr, [out]LONG *pitch_family
, [out]LONG *new_fontsize
);
428 HRESULT GetProperty
([in]LONG type
, [out]LONG *value
);
429 HRESULT GetStrings
([out]ITextStrings
**strings
);
430 HRESULT Notify
([in]LONG notify
);
431 HRESULT Range2
([in]LONG cp_active
, [in]LONG cp_anchor
, [retval, out]ITextRange2
**range);
432 HRESULT RangeFromPoint2
([in]LONG x
, [in]LONG y
, [in]LONG type
, [retval, out]ITextRange2
**range);
433 HRESULT ReleaseCallManager
([in]IUnknown
*manager
);
434 HRESULT ReleaseImmContext
([in]LONG context
);
435 HRESULT SetEffectColor
([in]LONG index
, [in]LONG value
);
436 HRESULT SetProperty
([in]LONG type
, [in]LONG value
);
437 HRESULT SetTypographyOptions
([in]LONG options
, [in]LONG mask
);
439 HRESULT Update
([in]LONG value
);
440 HRESULT UpdateWindow
();
441 HRESULT GetMathProperties
([out]LONG *options
);
442 HRESULT SetMathProperties
([in]LONG options
, [in]LONG mask
);
443 HRESULT GetActiveStory
([retval, out]ITextStory
**story
);
444 HRESULT SetActiveStory
([in]ITextStory
*story
);
445 HRESULT GetMainStory
([retval, out]ITextStory
**story
);
446 HRESULT GetNewStory
([retval, out]ITextStory
**story
);
447 HRESULT GetStory
([in]LONG index
, [retval, out]ITextStory
**story
);
455 uuid(8cc497c2
-a1df
-11ce
-8098-00aa0047be5d
)
457 interface ITextRange
: IDispatch
459 HRESULT GetText
([retval, out]BSTR *pbstr
);
460 HRESULT SetText
([in]BSTR bstr);
461 HRESULT GetChar
([retval, out]LONG *pch
);
462 HRESULT SetChar
([in]LONG ch
);
463 HRESULT GetDuplicate
([retval, out]ITextRange
**ppRange
);
464 HRESULT GetFormattedText
([retval, out]ITextRange
**ppRange
);
465 HRESULT SetFormattedText
([in]ITextRange
*pRange
);
466 HRESULT GetStart
([retval, out]LONG *pcpFirst
);
467 HRESULT SetStart
([in]LONG cpFirst
);
468 HRESULT GetEnd
([retval, out]LONG *pcpLim
);
469 HRESULT SetEnd
([in]LONG cpLim
);
470 HRESULT GetFont
([retval, out]ITextFont
**pFont
);
471 HRESULT SetFont
([in]ITextFont
*pFont
);
472 HRESULT GetPara
([retval, out]ITextPara
**ppPara
);
473 HRESULT SetPara
([in]ITextPara
*pPara
);
474 HRESULT GetStoryLength
([retval, out]LONG *pcch
);
475 HRESULT GetStoryType
([retval, out]LONG *pValue
);
476 HRESULT Collapse
([in]LONG bStart
);
477 HRESULT Expand
([in]LONG Unit
, [retval, out]LONG *pDelta
);
478 HRESULT GetIndex
([in]LONG Unit
, [retval, out]LONG *pIndex
);
479 HRESULT SetIndex
([in]LONG Unit
, [in]LONG Index
, [in]LONG Extend
);
480 HRESULT SetRange
([in]LONG anchor
, [in]LONG active
);
481 HRESULT InRange
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
482 HRESULT InStory
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
483 HRESULT IsEqual
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
485 HRESULT StartOf
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
486 HRESULT EndOf
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
487 HRESULT Move
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
488 HRESULT MoveStart
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
489 HRESULT MoveEnd
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
490 HRESULT MoveWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
491 HRESULT MoveStartWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
492 HRESULT MoveEndWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
493 HRESULT MoveUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
494 HRESULT MoveStartUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
495 HRESULT MoveEndUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
496 HRESULT FindText
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
497 HRESULT FindTextStart
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
498 HRESULT FindTextEnd
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
499 HRESULT Delete
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
500 HRESULT Cut
([out]VARIANT *pVar
);
501 HRESULT Copy
([out]VARIANT *pVar
);
502 HRESULT Paste
([in]VARIANT *pVar
, [in]LONG Format
);
503 HRESULT CanPaste
([in]VARIANT *pVar
, [in]LONG Format
, [retval, out]LONG *pb
);
504 HRESULT CanEdit
([retval, out]LONG *pb
);
505 HRESULT ChangeCase
([in]LONG Type
);
506 HRESULT GetPoint
([in]LONG Type
, [out]LONG *cx
, [out]LONG *cy
);
507 HRESULT SetPoint
([in]LONG x
, [in]LONG y
, [in]LONG Type
, [in]LONG Extend
);
508 HRESULT ScrollIntoView
([in]LONG Value
);
509 HRESULT GetEmbeddedObject
([retval, out]IUnknown
**ppv
);
514 uuid(8cc497c1
-a1df
-11ce
-8098-00aa0047be5d
)
516 interface ITextSelection
: ITextRange
518 HRESULT GetFlags
([retval, out]LONG *pFlags
);
519 HRESULT SetFlags
([in]LONG Flags
);
520 HRESULT GetType
([retval, out]LONG *pType
);
521 HRESULT MoveLeft
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
522 HRESULT MoveRight
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
523 HRESULT MoveUp
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
524 HRESULT MoveDown
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
525 HRESULT HomeKey
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
526 HRESULT EndKey
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
527 HRESULT TypeText
([in]BSTR bstr);
532 uuid(8cc497c3
-a1df
-11ce
-8098-00aa0047be5d
)
534 interface ITextFont
: IDispatch
536 HRESULT GetDuplicate
([retval, out]ITextFont
**ppFont
);
537 HRESULT SetDuplicate
([in]ITextFont
*pFont
);
538 HRESULT CanChange
([out]LONG *pB
);
539 HRESULT IsEqual
([in]ITextFont
*pFont
, [retval, out]LONG *pB
);
540 HRESULT Reset
([in]LONG Value
);
541 HRESULT GetStyle
([retval, out]LONG *pValue
);
542 HRESULT SetStyle
([in]LONG Value
);
543 HRESULT GetAllCaps
([retval, out]LONG *pValue
);
544 HRESULT SetAllCaps
([in]LONG Value
);
545 HRESULT GetAnimation
([retval, out]LONG *pValue
);
546 HRESULT SetAnimation
([in]LONG Value
);
547 HRESULT GetBackColor
([retval, out]LONG *pValue
);
548 HRESULT SetBackColor
([in]LONG Value
);
549 HRESULT GetBold
([retval, out]LONG *pValue
);
550 HRESULT SetBold
([in]LONG Value
);
551 HRESULT GetEmboss
([retval, out]LONG *pValue
);
552 HRESULT SetEmboss
([in]LONG Value
);
553 HRESULT GetForeColor
([retval, out]LONG *pValue
);
554 HRESULT SetForeColor
([in]LONG Value
);
555 HRESULT GetHidden
([retval, out]LONG *pValue
);
556 HRESULT SetHidden
([in]LONG Value
);
557 HRESULT GetEngrave
([retval, out]LONG *pValue
);
558 HRESULT SetEngrave
([in]LONG Value
);
559 HRESULT GetItalic
([retval, out]LONG *pValue
);
560 HRESULT SetItalic
([in]LONG Value
);
561 HRESULT GetKerning
([retval, out]float *pValue
);
562 HRESULT SetKerning
([in]float Value
);
563 HRESULT GetLanguageID
([retval, out]LONG *pValue
);
564 HRESULT SetLanguageID
([in]LONG Value
);
565 HRESULT GetName
([retval, out]BSTR *pValue
);
566 HRESULT SetName
([in]BSTR Value
);
567 HRESULT GetOutline
([retval, out]LONG *pValue
);
568 HRESULT SetOutline
([in]LONG Value
);
569 HRESULT GetPosition
([retval, out]float *pValue
);
570 HRESULT SetPosition
([in]float Value
);
571 HRESULT GetProtected
([retval, out]LONG *pValue
);
572 HRESULT SetProtected
([in]LONG Value
);
573 HRESULT GetShadow
([retval, out]LONG *pValue
);
574 HRESULT SetShadow
([in]LONG Value
);
575 HRESULT GetSize
([retval, out]float *pValue
);
576 HRESULT SetSize
([in]float Value
);
577 HRESULT GetSmallCaps
([retval, out]LONG *pValue
);
578 HRESULT SetSmallCaps
([in]LONG Value
);
579 HRESULT GetSpacing
([retval, out]float *pValue
);
580 HRESULT SetSpacing
([in]float Value
);
581 HRESULT GetStrikeThrough
([retval, out]LONG *pValue
);
582 HRESULT SetStrikeThrough
([in]LONG Value
);
583 HRESULT GetSubscript
([retval, out]LONG *pValue
);
584 HRESULT SetSubscript
([in]LONG Value
);
585 HRESULT GetSuperscript
([retval, out]LONG *pValue
);
586 HRESULT SetSuperscript
([in]LONG Value
);
587 HRESULT GetUnderline
([retval, out]LONG *pValue
);
588 HRESULT SetUnderline
([in]LONG Value
);
589 HRESULT GetWeight
([retval, out]LONG *pValue
);
590 HRESULT SetWeight
([in]LONG Value
);
595 uuid(8cc497c4
-a1df
-11ce
-8098-00aa0047be5d
)
597 interface ITextPara
: IDispatch
599 HRESULT GetDuplicate
([retval, out]ITextPara
**ppPara
);
600 HRESULT SetDuplicate
([in]ITextPara
*pPara
);
601 HRESULT CanChange
([out]LONG *pB
);
602 HRESULT IsEqual
([in]ITextPara
*pPara
, [retval, out]LONG *pB
);
603 HRESULT Reset
([in]LONG Value
);
604 HRESULT GetStyle
([retval, out]LONG *pValue
);
605 HRESULT SetStyle
([in]LONG Value
);
606 HRESULT GetAlignment
([retval, out]LONG *pValue
);
607 HRESULT SetAlignment
([in]LONG Value
);
608 HRESULT GetHyphenation
([retval, out]LONG *pValue
);
609 HRESULT SetHyphenation
([in]LONG Value
);
610 HRESULT GetFirstLineIndent
([retval, out]float *pValue
);
611 HRESULT GetKeepTogether
([retval, out]LONG *pValue
);
612 HRESULT SetKeepTogether
([in]LONG Value
);
613 HRESULT GetKeepWithNext
([retval, out]LONG *pValue
);
614 HRESULT SetKeepWithNext
([in]LONG Value
);
615 HRESULT GetLeftIndent
([retval, out]float *pValue
);
616 HRESULT GetLineSpacing
([retval, out]float *pValue
);
617 HRESULT GetLineSpacingRule
([retval, out]LONG *pValue
);
618 HRESULT GetListAlignment
([retval, out]LONG *pValue
);
619 HRESULT SetListAlignment
([in]LONG Value
);
620 HRESULT GetListLevelIndex
([retval, out]LONG *pValue
);
621 HRESULT SetListLevelIndex
([in]LONG Value
);
622 HRESULT GetListStart
([retval, out]LONG *pValue
);
623 HRESULT SetListStart
([in]LONG Value
);
624 HRESULT GetListTab
([retval, out]float *pValue
);
625 HRESULT SetListTab
([in]float Value
);
626 HRESULT GetListType
([retval, out]LONG *pValue
);
627 HRESULT SetListType
([in]LONG Value
);
628 HRESULT GetNoLineNumber
([retval, out]LONG *pValue
);
629 HRESULT SetNoLineNumber
([in]LONG Value
);
630 HRESULT GetPageBreakBefore
([retval, out]LONG *pValue
);
631 HRESULT SetPageBreakBefore
([in]LONG Value
);
632 HRESULT GetRightIndent
([retval, out]float *pValue
);
633 HRESULT SetRightIndent
([in]float Value
);
634 HRESULT SetIndents
([in]float StartIndent
, [in]float LeftIndent
, [in]float RightIndent
);
635 HRESULT SetLineSpacing
([in]LONG LineSpacingRule
, [in]float LineSpacing
);
636 HRESULT GetSpaceAfter
([retval, out]float *pValue
);
637 HRESULT SetSpaceAfter
([in]float Value
);
638 HRESULT GetSpaceBefore
([retval, out]float *pValue
);
639 HRESULT SetSpaceBefore
([in]float Value
);
640 HRESULT GetWidowControl
([retval, out]LONG *pValue
);
641 HRESULT SetWidowControl
([in]LONG Value
);
642 HRESULT GetTabCount
([retval, out]LONG *pCount
);
643 HRESULT AddTab
([in]float tbPos
, [in]LONG tbAlign
, [in]LONG tbLeader
);
644 HRESULT ClearAllTabs
();
645 HRESULT DeleteTab
([in]float tbPos
);
646 HRESULT GetTab
([in]LONG iTab
, [out]float *ptbPos
, [out]LONG *ptbAlign
, [out]LONG *ptbLeader
);
651 uuid(8cc497c5
-a1df
-11ce
-8098-00aa0047be5d
)
653 interface ITextStoryRanges
: IDispatch
655 HRESULT _NewEnum
([retval, out]IUnknown
**ppUnkEnum
);
656 HRESULT Item
([in]LONG Index
, [retval, out]ITextRange
**ppRange
);
657 HRESULT GetCount
([retval, out]LONG *pCount
);