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
= -9999999,
32 tomAutoColor
= -9999997,
33 tomDefault
= -9999996,
34 tomSuspend
= -9999995,
37 /* ITextFont::Reset() modes */
43 tomDisableSmartFont
= 8,
44 tomEnableSmartFont
= 9,
48 tomBackward
= 0xc0000001,
49 tomForward
= 0x3fffffff,
54 tomSelectionNormal
= 2,
55 tomSelectionFrame
= 3,
56 tomSelectionColumn
= 4,
58 tomSelectionBlock
= 6,
59 tomSelectionInlineShape
= 7,
60 tomSelectionShape
= 8,
61 tomSelStartActive
= 1,
82 tomLineSpaceSingle
= 0,
84 tomLineSpaceDouble
= 2,
85 tomLineSpaceAtLeast
= 3,
86 tomLineSpaceExactly
= 4,
87 tomLineSpaceMultiple
= 5,
94 tomAlignInterWord
= 3,
95 tomAlignInterLetter
= 4,
109 tomListNumberAsArabic
= 2,
110 tomListNumberAsLCLetter
= 3,
111 tomListNumberAsUCLetter
= 4,
112 tomListNumberAsLCRoman
= 5,
113 tomListNumberAsUCRoman
= 6,
114 tomListNumberAsSequence
= 7,
115 tomListParentheses
= 0x10000,
116 tomListPeriod
= 0x20000,
117 tomListPlain
= 0x30000,
138 /* ITextRange story type values */
140 tomMainTextStory
= 1,
141 tomFootnotesStory
= 2,
142 tomEndnotesStory
= 3,
143 tomCommentsStory
= 4,
144 tomTextFrameStory
= 5,
145 tomEvenPagesHeaderStory
= 6,
146 tomPrimaryHeaderStory
= 7,
147 tomEvenPagesFooterStory
= 8,
148 tomPrimaryFooterStory
= 9,
149 tomFirstPageHeaderStory
= 10,
150 tomFirstPageFooterStory
= 11,
152 /* ITextFont animation property */
154 tomLasVegasLights
= 1,
155 tomBlinkingBackground
= 2,
157 tomMarchingBlackAnts
= 4,
158 tomMarchingRedAnts
= 5,
170 tomShareDenyRead
= 0x200,
171 tomShareDenyWrite
= 0x400,
172 tomPasteFile
= 0x1000,
174 tomCreateAlways
= 0x20,
175 tomOpenExisting
= 0x30,
176 tomOpenAlways
= 0x40,
177 tomTruncateExisting
= 0x50,
181 tomWordDocument
= 0x4,
182 tomBold
= 0x80000001,
183 tomItalic
= 0x80000002,
184 tomUnderline
= 0x80000004,
185 tomStrikeout
= 0x80000008,
186 tomProtected
= 0x80000010,
187 tomLink
= 0x80000020,
188 tomSmallCaps
= 0x80000040,
189 tomAllCaps
= 0x80000080,
190 tomHidden
= 0x80000100,
191 tomOutline
= 0x80000200,
192 tomShadow
= 0x80000400,
193 tomEmboss
= 0x80000800,
194 tomImprint
= 0x80001000,
195 tomDisabled
= 0x80002000,
196 tomRevised
= 0x80004000,
198 tomKoreanBlockCaret
= 0x1,
199 tomIncludeInset
= 0x1,
200 tomIgnoreCurrentFont
= 0,
201 tomMatchFontCharset
= 0x1,
202 tomMatchFontSignature
= 0x2,
203 tomCharset
= 0x80000000,
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 ITextRange2
;
273 interface ITextSelection2
;
274 interface ITextStory
;
275 interface ITextStoryRanges2
;
276 interface ITextStrings
;
280 uuid(c241f5e0
-7206-11d8
-a2c7
-00a0d1d6c6b3
)
282 interface ITextDocument2
: ITextDocument
284 HRESULT GetCaretType
([retval, out]LONG *value
);
285 HRESULT SetCaretType
([in]LONG value
);
286 HRESULT GetDisplays
([retval, out]ITextDisplays
**displays
);
287 HRESULT GetDocumentFont
([retval, out]ITextFont2
**font
);
288 HRESULT SetDocumentFont
([in]ITextFont2
*font
);
289 HRESULT GetDocumentPara
([retval, out]ITextPara2
**para
);
290 HRESULT SetDocumentPara
([in]ITextPara2
*para
);
291 HRESULT GetEastAsianFlags
([retval, out]LONG *flags
);
292 HRESULT GetGenerator
([retval, out]BSTR *bstr);
293 HRESULT SetIMEInProgress
([in]LONG value
);
294 HRESULT GetNotificationMode
([retval, out]LONG *mode
);
295 HRESULT SetNotificationMode
([in]LONG mode
);
296 HRESULT GetSelection2
([retval, out]ITextSelection2
**selection
);
297 HRESULT GetStoryRanges2
([retval, out]ITextStoryRanges2
**stories
);
298 HRESULT GetTypographyOptions
([retval, out]LONG *options
);
299 HRESULT GetVersion
([retval, out]LONG *value
);
300 HRESULT GetWindow
([retval, out]LONG *hwnd
);
301 HRESULT AttachMsgFilter
([in]IUnknown
*filter
);
302 HRESULT CheckTextLimit
([in]LONG cch
, [out]LONG *exceed
);
303 HRESULT GetCallManager
([retval, out]IUnknown
**manager
);
304 HRESULT GetClientRect
([in]LONG type
, [out]LONG *left
, [out]LONG *top
, [out]LONG *right
, [out]LONG *bottom
);
305 HRESULT GetEffectColor
([in]LONG index
, [out]COLORREF
*cr
);
306 HRESULT GetImmContext
([retval, out]LONG *context
);
307 HRESULT GetPreferredFont
([in]LONG cp
, [in]LONG codepage
, [in]LONG option
, [in]LONG current_codepage
, [in]LONG current_fontsize
,
308 [out]BSTR *bstr, [out]LONG *pitch_family
, [out]LONG *new_fontsize
);
309 HRESULT GetProperty
([in]LONG type
, [out]LONG *value
);
310 HRESULT GetStrings
([out]ITextStrings
**strings
);
311 HRESULT Notify
([in]LONG notify
);
312 HRESULT Range2
([in]LONG cp_active
, [in]LONG cp_anchor
, [retval, out]ITextRange2
**range);
313 HRESULT RangeFromPoint2
([in]LONG x
, [in]LONG y
, [in]LONG type
, [retval, out]ITextRange2
**range);
314 HRESULT ReleaseCallManager
([in]IUnknown
*manager
);
315 HRESULT ReleaseImmContext
([in]LONG context
);
316 HRESULT SetEffectColor
([in]LONG index
, [in]LONG value
);
317 HRESULT SetProperty
([in]LONG type
, [in]LONG value
);
318 HRESULT SetTypographyOptions
([in]LONG options
, [in]LONG mask
);
320 HRESULT Update
([in]LONG value
);
321 HRESULT UpdateWindow
();
322 HRESULT GetMathProperties
([out]LONG *options
);
323 HRESULT SetMathProperties
([in]LONG options
, [in]LONG mask
);
324 HRESULT GetActiveStory
([retval, out]ITextStory
**story
);
325 HRESULT SetActiveStory
([in]ITextStory
*story
);
326 HRESULT GetMainStory
([retval, out]ITextStory
**story
);
327 HRESULT GetNewStory
([retval, out]ITextStory
**story
);
328 HRESULT GetStory
([in]LONG index
, [retval, out]ITextStory
**story
);
336 uuid(8cc497c2
-a1df
-11ce
-8098-00aa0047be5d
)
338 interface ITextRange
: IDispatch
340 HRESULT GetText
([retval, out]BSTR *pbstr
);
341 HRESULT SetText
([in]BSTR bstr);
342 HRESULT GetChar
([retval, out]LONG *pch
);
343 HRESULT SetChar
([in]LONG ch
);
344 HRESULT GetDuplicate
([retval, out]ITextRange
**ppRange
);
345 HRESULT GetFormattedText
([retval, out]ITextRange
**ppRange
);
346 HRESULT SetFormattedText
([in]ITextRange
*pRange
);
347 HRESULT GetStart
([retval, out]LONG *pcpFirst
);
348 HRESULT SetStart
([in]LONG cpFirst
);
349 HRESULT GetEnd
([retval, out]LONG *pcpLim
);
350 HRESULT SetEnd
([in]LONG cpLim
);
351 HRESULT GetFont
([retval, out]ITextFont
**pFont
);
352 HRESULT SetFont
([in]ITextFont
*pFont
);
353 HRESULT GetPara
([retval, out]ITextPara
**ppPara
);
354 HRESULT SetPara
([in]ITextPara
*pPara
);
355 HRESULT GetStoryLength
([retval, out]LONG *pcch
);
356 HRESULT GetStoryType
([retval, out]LONG *pValue
);
357 HRESULT Collapse
([in]LONG bStart
);
358 HRESULT Expand
([in]LONG Unit
, [retval, out]LONG *pDelta
);
359 HRESULT GetIndex
([in]LONG Unit
, [retval, out]LONG *pIndex
);
360 HRESULT SetIndex
([in]LONG Unit
, [in]LONG Index
, [in]LONG Extend
);
361 HRESULT SetRange
([in]LONG anchor
, [in]LONG active
);
362 HRESULT InRange
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
363 HRESULT InStory
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
364 HRESULT IsEqual
([in]ITextRange
*pRange
, [retval, out]LONG *pb
);
366 HRESULT StartOf
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
367 HRESULT EndOf
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
368 HRESULT Move
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
369 HRESULT MoveStart
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
370 HRESULT MoveEnd
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
371 HRESULT MoveWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
372 HRESULT MoveStartWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
373 HRESULT MoveEndWhile
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
374 HRESULT MoveUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
375 HRESULT MoveStartUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
376 HRESULT MoveEndUntil
([in]VARIANT *Cset
, [in]LONG Count
, [retval, out]LONG *pDelta
);
377 HRESULT FindText
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
378 HRESULT FindTextStart
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
379 HRESULT FindTextEnd
([in]BSTR bstr, [in]LONG cch
, [in]LONG Flags
, [retval, out]LONG *pLength
);
380 HRESULT Delete
([in]LONG Unit
, [in]LONG Count
, [retval, out]LONG *pDelta
);
381 HRESULT Cut
([out]VARIANT *pVar
);
382 HRESULT Copy
([out]VARIANT *pVar
);
383 HRESULT Paste
([in]VARIANT *pVar
, [in]LONG Format
);
384 HRESULT CanPaste
([in]VARIANT *pVar
, [in]LONG Format
, [retval, out]LONG *pb
);
385 HRESULT CanEdit
([retval, out]LONG *pb
);
386 HRESULT ChangeCase
([in]LONG Type
);
387 HRESULT GetPoint
([in]LONG Type
, [out]LONG *cx
, [out]LONG *cy
);
388 HRESULT SetPoint
([in]LONG x
, [in]LONG y
, [in]LONG Type
, [in]LONG Extend
);
389 HRESULT ScrollIntoView
([in]LONG Value
);
390 HRESULT GetEmbeddedObject
([retval, out]IUnknown
**ppv
);
395 uuid(8cc497c1
-a1df
-11ce
-8098-00aa0047be5d
)
397 interface ITextSelection
: ITextRange
399 HRESULT GetFlags
([retval, out]LONG *pFlags
);
400 HRESULT SetFlags
([in]LONG Flags
);
401 HRESULT GetType
([retval, out]LONG *pType
);
402 HRESULT MoveLeft
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
403 HRESULT MoveRight
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
404 HRESULT MoveUp
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
405 HRESULT MoveDown
([in]LONG Unit
, [in]LONG Count
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
406 HRESULT HomeKey
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
407 HRESULT EndKey
([in]LONG Unit
, [in]LONG Extend
, [retval, out]LONG *pDelta
);
408 HRESULT TypeText
([in]BSTR bstr);
413 uuid(8cc497c3
-a1df
-11ce
-8098-00aa0047be5d
)
415 interface ITextFont
: IDispatch
417 HRESULT GetDuplicate
([retval, out]ITextFont
**ppFont
);
418 HRESULT SetDuplicate
([in]ITextFont
*pFont
);
419 HRESULT CanChange
([out]LONG *pB
);
420 HRESULT IsEqual
([in]ITextFont
*pFont
, [retval, out]LONG *pB
);
421 HRESULT Reset
([in]LONG Value
);
422 HRESULT GetStyle
([retval, out]LONG *pValue
);
423 HRESULT SetStyle
([in]LONG Value
);
424 HRESULT GetAllCaps
([retval, out]LONG *pValue
);
425 HRESULT SetAllCaps
([in]LONG Value
);
426 HRESULT GetAnimation
([retval, out]LONG *pValue
);
427 HRESULT SetAnimation
([in]LONG Value
);
428 HRESULT GetBackColor
([retval, out]LONG *pValue
);
429 HRESULT SetBackColor
([in]LONG Value
);
430 HRESULT GetBold
([retval, out]LONG *pValue
);
431 HRESULT SetBold
([in]LONG Value
);
432 HRESULT GetEmboss
([retval, out]LONG *pValue
);
433 HRESULT SetEmboss
([in]LONG Value
);
434 HRESULT GetForeColor
([retval, out]LONG *pValue
);
435 HRESULT SetForeColor
([in]LONG Value
);
436 HRESULT GetHidden
([retval, out]LONG *pValue
);
437 HRESULT SetHidden
([in]LONG Value
);
438 HRESULT GetEngrave
([retval, out]LONG *pValue
);
439 HRESULT SetEngrave
([in]LONG Value
);
440 HRESULT GetItalic
([retval, out]LONG *pValue
);
441 HRESULT SetItalic
([in]LONG Value
);
442 HRESULT GetKerning
([retval, out]float *pValue
);
443 HRESULT SetKerning
([in]float Value
);
444 HRESULT GetLanguageID
([retval, out]LONG *pValue
);
445 HRESULT SetLanguageID
([in]LONG Value
);
446 HRESULT GetName
([retval, out]BSTR *pValue
);
447 HRESULT SetName
([in]BSTR Value
);
448 HRESULT GetOutline
([retval, out]LONG *pValue
);
449 HRESULT SetOutline
([in]LONG Value
);
450 HRESULT GetPosition
([retval, out]float *pValue
);
451 HRESULT SetPosition
([in]float Value
);
452 HRESULT GetProtected
([retval, out]LONG *pValue
);
453 HRESULT SetProtected
([in]LONG Value
);
454 HRESULT GetShadow
([retval, out]LONG *pValue
);
455 HRESULT SetShadow
([in]LONG Value
);
456 HRESULT GetSize
([retval, out]float *pValue
);
457 HRESULT SetSize
([in]float Value
);
458 HRESULT GetSmallCaps
([retval, out]LONG *pValue
);
459 HRESULT SetSmallCaps
([in]LONG Value
);
460 HRESULT GetSpacing
([retval, out]float *pValue
);
461 HRESULT SetSpacing
([in]float Value
);
462 HRESULT GetStrikeThrough
([retval, out]LONG *pValue
);
463 HRESULT SetStrikeThrough
([in]LONG Value
);
464 HRESULT GetSubscript
([retval, out]LONG *pValue
);
465 HRESULT SetSubscript
([in]LONG Value
);
466 HRESULT GetSuperscript
([retval, out]LONG *pValue
);
467 HRESULT SetSuperscript
([in]LONG Value
);
468 HRESULT GetUnderline
([retval, out]LONG *pValue
);
469 HRESULT SetUnderline
([in]LONG Value
);
470 HRESULT GetWeight
([retval, out]LONG *pValue
);
471 HRESULT SetWeight
([in]LONG Value
);
476 uuid(8cc497c4
-a1df
-11ce
-8098-00aa0047be5d
)
478 interface ITextPara
: IDispatch
480 HRESULT GetDuplicate
([retval, out]ITextPara
**ppPara
);
481 HRESULT SetDuplicate
([in]ITextPara
*pPara
);
482 HRESULT CanChange
([out]LONG *pB
);
483 HRESULT IsEqual
([in]ITextPara
*pPara
, [retval, out]LONG *pB
);
484 HRESULT Reset
([in]LONG Value
);
485 HRESULT GetStyle
([retval, out]LONG *pValue
);
486 HRESULT SetStyle
([in]LONG Value
);
487 HRESULT GetAlignment
([retval, out]LONG *pValue
);
488 HRESULT SetAlignment
([in]LONG Value
);
489 HRESULT GetHyphenation
([retval, out]LONG *pValue
);
490 HRESULT SetHyphenation
([in]LONG Value
);
491 HRESULT GetFirstLineIndent
([retval, out]float *pValue
);
492 HRESULT GetKeepTogether
([retval, out]LONG *pValue
);
493 HRESULT SetKeepTogether
([in]LONG Value
);
494 HRESULT GetKeepWithNext
([retval, out]LONG *pValue
);
495 HRESULT SetKeepWithNext
([in]LONG Value
);
496 HRESULT GetLeftIndent
([retval, out]float *pValue
);
497 HRESULT GetLineSpacing
([retval, out]float *pValue
);
498 HRESULT GetLineSpacingRule
([retval, out]LONG *pValue
);
499 HRESULT GetListAlignment
([retval, out]LONG *pValue
);
500 HRESULT SetListAlignment
([in]LONG Value
);
501 HRESULT GetListLevelIndex
([retval, out]LONG *pValue
);
502 HRESULT SetListLevelIndex
([in]LONG Value
);
503 HRESULT GetListStart
([retval, out]LONG *pValue
);
504 HRESULT SetListStart
([in]LONG Value
);
505 HRESULT GetListTab
([retval, out]float *pValue
);
506 HRESULT SetListTab
([in]float Value
);
507 HRESULT GetListType
([retval, out]LONG *pValue
);
508 HRESULT SetListType
([in]LONG Value
);
509 HRESULT GetNoLineNumber
([retval, out]LONG *pValue
);
510 HRESULT SetNoLineNumber
([in]LONG Value
);
511 HRESULT GetPageBreakBefore
([retval, out]LONG *pValue
);
512 HRESULT SetPageBreakBefore
([in]LONG Value
);
513 HRESULT GetRightIndent
([retval, out]float *pValue
);
514 HRESULT SetRightIndent
([in]float Value
);
515 HRESULT SetIndents
([in]float StartIndent
, [in]float LeftIndent
, [in]float RightIndent
);
516 HRESULT SetLineSpacing
([in]LONG LineSpacingRule
, [in]float LineSpacing
);
517 HRESULT GetSpaceAfter
([retval, out]float *pValue
);
518 HRESULT SetSpaceAfter
([in]float Value
);
519 HRESULT GetSpaceBefore
([retval, out]float *pValue
);
520 HRESULT SetSpaceBefore
([in]float Value
);
521 HRESULT GetWidowControl
([retval, out]LONG *pValue
);
522 HRESULT SetWidowControl
([in]LONG Value
);
523 HRESULT GetTabCount
([retval, out]LONG *pCount
);
524 HRESULT AddTab
([in]float tbPos
, [in]LONG tbAlign
, [in]LONG tbLeader
);
525 HRESULT ClearAllTabs
();
526 HRESULT DeleteTab
([in]float tbPos
);
527 HRESULT GetTab
([in]LONG iTab
, [out]float *ptbPos
, [out]LONG *ptbAlign
, [out]LONG *ptbLeader
);
532 uuid(8cc497c5
-a1df
-11ce
-8098-00aa0047be5d
)
534 interface ITextStoryRanges
: IDispatch
536 HRESULT _NewEnum
([retval, out]IUnknown
**ppUnkEnum
);
537 HRESULT Item
([in]LONG Index
, [retval, out]ITextRange
**ppRange
);
538 HRESULT GetCount
([retval, out]LONG *pCount
);