msdasql: IColumnsRowset::GetAvailableColumns return 3 meta columns to allow updating...
[wine.git] / include / tom.idl
blobd987aecaf9cb5c59c665547fc6b1ba612f4b5c03
1 /*
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
19 import "oaidl.idl";
20 import "ocidl.idl";
22 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
23 cpp_quote("#undef FindText")
24 cpp_quote("#endif")
26 typedef enum tagTomConstants
28 tomFalse = (int) 0,
29 tomTrue = (int) -1,
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,
50 tomMove = (int) 0,
51 tomExtend = (int) 1,
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,
66 tomEnd = (int) 0,
67 tomStart = (int) 32,
68 tomCollapseEnd = (int) 0,
69 tomCollapseStart = (int) 1,
70 tomClientCoord = (int) 256,
71 tomNone = (int) 0,
72 tomSingle = (int) 1,
73 tomWords = (int) 2,
74 tomDouble = (int) 3,
75 tomDotted = (int) 4,
76 tomDash = (int) 5,
77 tomDashDot = (int) 6,
78 tomDashDotDot = (int) 7,
79 tomWave = (int) 8,
80 tomThick = (int) 9,
81 tomHair = (int) 10,
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,
99 tomSpaces = (int) 0,
100 tomDots = (int) 1,
101 tomDashes = (int) 2,
102 tomLines = (int) 3,
103 tomThickLines = (int) 4,
104 tomEquals = (int) 5,
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,
119 tomWord = (int) 2,
120 tomSentence = (int) 3,
121 tomParagraph = (int) 4,
122 tomLine = (int) 5,
123 tomStory = (int) 6,
124 tomScreen = (int) 7,
125 tomSection = (int) 8,
126 tomColumn = (int) 9,
127 tomRow = (int) 10,
128 tomWindow = (int) 11,
129 tomCell = (int) 12,
130 tomCharFormat = (int) 13,
131 tomParaFormat = (int) 14,
132 tomTable = (int) 15,
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,
178 tomRTF = (int) 0x1,
179 tomText = (int) 0x2,
180 tomHTML = (int) 0x3,
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
207 } tomConstants;
209 interface ITextRange;
210 interface ITextSelection;
211 interface ITextStoryRanges;
214 object,
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);
227 HRESULT New();
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);
241 object,
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);
264 HRESULT SysBeep();
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;
279 object,
280 uuid(c241f5ef-7206-11d8-a2c7-00a0d1d6c6b3)
282 interface ITextRow : IDispatch
284 HRESULT GetAlignment([retval, out] LONG *value);
285 HRESULT SetAlignment([in] LONG value);
286 HRESULT GetCellCount([retval, out] LONG *value);
287 HRESULT SetCellCount([in] LONG value);
288 HRESULT GetCellCountCache([retval, out] LONG *value);
289 HRESULT SetCellCountCache([in] LONG value);
290 HRESULT GetCellIndex([retval, out] LONG *value);
291 HRESULT SetCellIndex([in] LONG value);
292 HRESULT GetCellMargin([retval, out] LONG *value);
293 HRESULT SetCellMargin([in] LONG value);
294 HRESULT GetHeight([retval, out] LONG *value);
295 HRESULT SetHeight([in] LONG value);
296 HRESULT GetIndent([retval, out] LONG *value);
297 HRESULT SetIndent([in] LONG value);
298 HRESULT GetKeepTogether([retval, out] LONG *value);
299 HRESULT SetKeepTogether([in] LONG value);
300 HRESULT GetKeepWithNext([retval, out] LONG *value);
301 HRESULT SetKeepWithNext([in] LONG value);
302 HRESULT GetNestLevel([retval, out] LONG *value);
303 HRESULT GetRTL([retval, out] LONG *value);
304 HRESULT SetRTL([in] LONG value);
305 HRESULT GetCellAlignment([retval, out] LONG *value);
306 HRESULT SetCellAlignment([in] LONG value);
307 HRESULT GetCellColorBack([retval, out] LONG *value);
308 HRESULT SetCellColorBack([in] LONG value);
309 HRESULT GetCellColorFore([retval, out] LONG *value);
310 HRESULT SetCellColorFore([in] LONG value);
311 HRESULT GetCellMergeFlags([retval, out] LONG *value);
312 HRESULT SetCellMergeFlags([in] LONG value);
313 HRESULT GetCellShading([retval, out] LONG *value);
314 HRESULT SetCellShading([in] LONG value);
315 HRESULT GetCellVerticalText([retval, out] LONG *value);
316 HRESULT SetCellVerticalText([in] LONG value);
317 HRESULT GetCellWidth([retval, out] LONG *value);
318 HRESULT SetCellWidth([in] LONG value);
319 HRESULT GetCellBorderColors([out] LONG *left, [out] LONG *top,
320 [out] LONG *right, [out] LONG *bottom);
321 HRESULT GetCellBorderWidths([out] LONG *left, [out] LONG *top,
322 [out] LONG *right, [out] LONG *bottom);
323 HRESULT SetCellBorderColors([in] LONG left, [in] LONG top,
324 [in] LONG right, [in] LONG bottom);
325 HRESULT SetCellBorderWidths([in] LONG left, [in] LONG top,
326 [in] LONG right, [in] LONG bottom);
327 HRESULT Apply([in] LONG row, [in] LONG flags);
328 HRESULT CanChange([retval, out] LONG *value);
329 HRESULT GetProperty([in] LONG type, [out] LONG *value);
330 HRESULT Insert([in] LONG row);
331 HRESULT IsEqual([in] ITextRow *row, [retval, out] LONG *r);
332 HRESULT Reset([in] LONG value);
333 HRESULT SetProperty([in] LONG type, [in] LONG value);
337 object,
338 uuid(c241f5e0-7206-11d8-a2c7-00a0d1d6c6b3)
340 interface ITextDocument2 : ITextDocument
342 HRESULT GetCaretType([retval, out]LONG *value);
343 HRESULT SetCaretType([in]LONG value);
344 HRESULT GetDisplays([retval, out]ITextDisplays **displays);
345 HRESULT GetDocumentFont([retval, out]ITextFont2 **font);
346 HRESULT SetDocumentFont([in]ITextFont2 *font);
347 HRESULT GetDocumentPara([retval, out]ITextPara2 **para);
348 HRESULT SetDocumentPara([in]ITextPara2 *para);
349 HRESULT GetEastAsianFlags([retval, out]LONG *flags);
350 HRESULT GetGenerator([retval, out]BSTR *bstr);
351 HRESULT SetIMEInProgress([in]LONG value);
352 HRESULT GetNotificationMode([retval, out]LONG *mode);
353 HRESULT SetNotificationMode([in]LONG mode);
354 HRESULT GetSelection2([retval, out]ITextSelection2 **selection);
355 HRESULT GetStoryRanges2([retval, out]ITextStoryRanges2 **stories);
356 HRESULT GetTypographyOptions([retval, out]LONG *options);
357 HRESULT GetVersion([retval, out]LONG *value);
358 HRESULT GetWindow([retval, out]LONG *hwnd);
359 HRESULT AttachMsgFilter([in]IUnknown *filter);
360 HRESULT CheckTextLimit([in]LONG cch, [out]LONG *exceed);
361 HRESULT GetCallManager([retval, out]IUnknown **manager);
362 HRESULT GetClientRect([in]LONG type, [out]LONG *left, [out]LONG *top, [out]LONG *right, [out]LONG *bottom);
363 HRESULT GetEffectColor([in]LONG index, [out]COLORREF *cr);
364 HRESULT GetImmContext([retval, out]LONG *context);
365 HRESULT GetPreferredFont([in]LONG cp, [in]LONG codepage, [in]LONG option, [in]LONG current_codepage, [in]LONG current_fontsize,
366 [out]BSTR *bstr, [out]LONG *pitch_family, [out]LONG *new_fontsize);
367 HRESULT GetProperty([in]LONG type, [out]LONG *value);
368 HRESULT GetStrings([out]ITextStrings **strings);
369 HRESULT Notify([in]LONG notify);
370 HRESULT Range2([in]LONG cp_active, [in]LONG cp_anchor, [retval, out]ITextRange2 **range);
371 HRESULT RangeFromPoint2([in]LONG x, [in]LONG y, [in]LONG type, [retval, out]ITextRange2 **range);
372 HRESULT ReleaseCallManager([in]IUnknown *manager);
373 HRESULT ReleaseImmContext([in]LONG context);
374 HRESULT SetEffectColor([in]LONG index, [in]LONG value);
375 HRESULT SetProperty([in]LONG type, [in]LONG value);
376 HRESULT SetTypographyOptions([in]LONG options, [in]LONG mask);
377 HRESULT SysBeep();
378 HRESULT Update([in]LONG value);
379 HRESULT UpdateWindow();
380 HRESULT GetMathProperties([out]LONG *options);
381 HRESULT SetMathProperties([in]LONG options, [in]LONG mask);
382 HRESULT GetActiveStory([retval, out]ITextStory **story);
383 HRESULT SetActiveStory([in]ITextStory *story);
384 HRESULT GetMainStory([retval, out]ITextStory **story);
385 HRESULT GetNewStory([retval, out]ITextStory **story);
386 HRESULT GetStory([in]LONG index, [retval, out]ITextStory **story);
389 interface ITextFont;
390 interface ITextPara;
393 object,
394 uuid(8cc497c2-a1df-11ce-8098-00aa0047be5d)
396 interface ITextRange : IDispatch
398 HRESULT GetText([retval, out]BSTR *pbstr);
399 HRESULT SetText([in]BSTR bstr);
400 HRESULT GetChar([retval, out]LONG *pch);
401 HRESULT SetChar([in]LONG ch);
402 HRESULT GetDuplicate([retval, out]ITextRange **ppRange);
403 HRESULT GetFormattedText([retval, out]ITextRange **ppRange);
404 HRESULT SetFormattedText([in]ITextRange *pRange);
405 HRESULT GetStart([retval, out]LONG *pcpFirst);
406 HRESULT SetStart([in]LONG cpFirst);
407 HRESULT GetEnd([retval, out]LONG *pcpLim);
408 HRESULT SetEnd([in]LONG cpLim);
409 HRESULT GetFont([retval, out]ITextFont **pFont);
410 HRESULT SetFont([in]ITextFont *pFont);
411 HRESULT GetPara([retval, out]ITextPara **ppPara);
412 HRESULT SetPara([in]ITextPara *pPara);
413 HRESULT GetStoryLength([retval, out]LONG *pcch);
414 HRESULT GetStoryType([retval, out]LONG *pValue);
415 HRESULT Collapse([in]LONG bStart);
416 HRESULT Expand([in]LONG Unit, [retval, out]LONG *pDelta);
417 HRESULT GetIndex([in]LONG Unit, [retval, out]LONG *pIndex);
418 HRESULT SetIndex([in]LONG Unit, [in]LONG Index, [in]LONG Extend);
419 HRESULT SetRange([in]LONG anchor, [in]LONG active);
420 HRESULT InRange([in]ITextRange *pRange, [retval, out]LONG *pb);
421 HRESULT InStory([in]ITextRange *pRange, [retval, out]LONG *pb);
422 HRESULT IsEqual([in]ITextRange *pRange, [retval, out]LONG *pb);
423 HRESULT Select();
424 HRESULT StartOf([in]LONG Unit, [in]LONG Extend, [retval, out]LONG *pDelta);
425 HRESULT EndOf([in]LONG Unit, [in]LONG Extend, [retval, out]LONG *pDelta);
426 HRESULT Move([in]LONG Unit, [in]LONG Count, [retval, out]LONG *pDelta);
427 HRESULT MoveStart([in]LONG Unit, [in]LONG Count, [retval, out]LONG *pDelta);
428 HRESULT MoveEnd([in]LONG Unit, [in]LONG Count, [retval, out]LONG *pDelta);
429 HRESULT MoveWhile([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
430 HRESULT MoveStartWhile([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
431 HRESULT MoveEndWhile([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
432 HRESULT MoveUntil([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
433 HRESULT MoveStartUntil([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
434 HRESULT MoveEndUntil([in]VARIANT *Cset, [in]LONG Count, [retval, out]LONG *pDelta);
435 HRESULT FindText([in]BSTR bstr, [in]LONG cch, [in]LONG Flags, [retval, out]LONG *pLength);
436 HRESULT FindTextStart([in]BSTR bstr, [in]LONG cch, [in]LONG Flags, [retval, out]LONG *pLength);
437 HRESULT FindTextEnd([in]BSTR bstr, [in]LONG cch, [in]LONG Flags, [retval, out]LONG *pLength);
438 HRESULT Delete([in]LONG Unit, [in]LONG Count, [retval, out]LONG *pDelta);
439 HRESULT Cut([out]VARIANT *pVar);
440 HRESULT Copy([out]VARIANT *pVar);
441 HRESULT Paste([in]VARIANT *pVar, [in]LONG Format);
442 HRESULT CanPaste([in]VARIANT *pVar, [in]LONG Format, [retval, out]LONG *pb);
443 HRESULT CanEdit([retval, out]LONG *pb);
444 HRESULT ChangeCase([in]LONG Type);
445 HRESULT GetPoint([in]LONG Type, [out]LONG *cx, [out]LONG *cy);
446 HRESULT SetPoint([in]LONG x, [in]LONG y, [in]LONG Type, [in]LONG Extend);
447 HRESULT ScrollIntoView([in]LONG Value);
448 HRESULT GetEmbeddedObject([retval, out]IUnknown **ppv);
452 object,
453 uuid(8cc497c1-a1df-11ce-8098-00aa0047be5d)
455 interface ITextSelection : ITextRange
457 HRESULT GetFlags([retval, out]LONG *pFlags);
458 HRESULT SetFlags([in]LONG Flags);
459 HRESULT GetType([retval, out]LONG *pType);
460 HRESULT MoveLeft([in]LONG Unit, [in]LONG Count, [in]LONG Extend, [retval, out]LONG *pDelta);
461 HRESULT MoveRight([in]LONG Unit, [in]LONG Count, [in]LONG Extend, [retval, out]LONG *pDelta);
462 HRESULT MoveUp([in]LONG Unit, [in]LONG Count, [in]LONG Extend, [retval, out]LONG *pDelta);
463 HRESULT MoveDown([in]LONG Unit, [in]LONG Count, [in]LONG Extend, [retval, out]LONG *pDelta);
464 HRESULT HomeKey([in]LONG Unit, [in]LONG Extend, [retval, out]LONG *pDelta);
465 HRESULT EndKey([in]LONG Unit, [in]LONG Extend, [retval, out]LONG *pDelta);
466 HRESULT TypeText([in]BSTR bstr);
470 object,
471 uuid(c241f5e2-7206-11d8-a2c7-00a0d1d6c6b3)
473 interface ITextRange2 : ITextSelection
475 HRESULT GetCch([retval, out] LONG *count);
476 HRESULT GetCells([retval, out] IUnknown **cells);
477 HRESULT GetColumn([retval, out] IUnknown **column);
478 HRESULT GetCount([retval, out] LONG *count);
479 HRESULT GetDuplicate2([retval, out] ITextRange2 **range);
480 HRESULT GetFont2([retval, out] ITextFont2 **font);
481 HRESULT SetFont2([in] ITextFont2 *font);
482 HRESULT GetFormattedText2([retval, out] ITextRange2 **range);
483 HRESULT SetFormattedText2([in] ITextRange2 *range);
484 HRESULT GetGravity([retval, out] LONG *value);
485 HRESULT SetGravity([in] LONG value);
486 HRESULT GetPara2([retval, out] ITextPara2 **para);
487 HRESULT SetPara2([in] ITextPara2 *para);
488 HRESULT GetRow([retval, out] ITextRow **row);
489 HRESULT GetStartPara([retval, out] LONG *value);
490 HRESULT GetTable([retval, out] IUnknown **table);
491 HRESULT GetURL([retval, out] BSTR *url);
492 HRESULT SetURL([in] BSTR url);
493 HRESULT AddSubrange([in] LONG cp1, [in] LONG cp2, [in] LONG activate);
494 HRESULT BuildUpMath([in] LONG flags);
495 HRESULT DeleteSubrange([in] LONG first, [in] LONG lim);
496 HRESULT Find([in] ITextRange2 *range, [in] LONG count, [in] LONG flags, [out] LONG *delta);
497 HRESULT GetChar2([out] LONG *ch, [in] LONG offset);
498 HRESULT GetDropCap([out] LONG *line, [out] LONG *pos);
499 HRESULT GetInlineObject([out] LONG *type, [out] LONG *align, [out] LONG *ch,
500 [out] LONG *ch1, [out] LONG *ch2, [out] LONG *count, [out] LONG *texstyle,
501 [out] LONG *ccol, [out] LONG *level);
502 HRESULT GetProperty([in] LONG type, [out] LONG *value);
503 HRESULT GetRect([in] LONG type, [out] LONG *left, [out] LONG *top,
504 [out] LONG *right, [out] LONG *bottom, [out] LONG *hit);
505 HRESULT GetSubrange([in] LONG subrange, [out] LONG *first, [out] LONG *limit);
506 HRESULT GetText2([in] LONG flags, [out] BSTR *str);
507 HRESULT HexToUnicode();
508 HRESULT InsertTable([in] LONG col, [in] LONG row, [in] LONG autofit);
509 HRESULT Linearize([in] LONG flags);
510 HRESULT SetActiveSubrange([in] LONG anchor, [in] LONG active);
511 HRESULT SetDropCap([in] LONG line, [in] LONG pos);
512 HRESULT SetProperty([in] LONG type, [in] LONG value);
513 HRESULT SetText2([in] LONG flags, [in] BSTR str);
514 HRESULT UnicodeToHex();
515 HRESULT SetInlineObject([in] LONG type, [in] LONG align, [in] LONG ch,
516 [in] LONG ch1, [in] LONG ch2, [in] LONG count, [in] LONG texstyle,
517 [in] LONG ccol);
518 HRESULT GetMathFunctionType([in] BSTR str, [out] LONG *value);
519 HRESULT InsertImage([in] LONG width, [in] LONG height, [in] LONG ascent,
520 [in] LONG type, [in] BSTR alttext, [in] IStream *stream);
524 object,
525 uuid(c241f5e1-7206-11d8-a2c7-00a0d1d6c6b3)
527 interface ITextSelection2 : ITextRange2
533 object,
534 uuid(8cc497c3-a1df-11ce-8098-00aa0047be5d)
536 interface ITextFont : IDispatch
538 HRESULT GetDuplicate([retval, out]ITextFont **ppFont);
539 HRESULT SetDuplicate([in]ITextFont *pFont);
540 HRESULT CanChange([out]LONG *pB);
541 HRESULT IsEqual([in]ITextFont *pFont, [retval, out]LONG *pB);
542 HRESULT Reset([in]LONG Value);
543 HRESULT GetStyle([retval, out]LONG *pValue);
544 HRESULT SetStyle([in]LONG Value);
545 HRESULT GetAllCaps([retval, out]LONG *pValue);
546 HRESULT SetAllCaps([in]LONG Value);
547 HRESULT GetAnimation([retval, out]LONG *pValue);
548 HRESULT SetAnimation([in]LONG Value);
549 HRESULT GetBackColor([retval, out]LONG *pValue);
550 HRESULT SetBackColor([in]LONG Value);
551 HRESULT GetBold([retval, out]LONG *pValue);
552 HRESULT SetBold([in]LONG Value);
553 HRESULT GetEmboss([retval, out]LONG *pValue);
554 HRESULT SetEmboss([in]LONG Value);
555 HRESULT GetForeColor([retval, out]LONG *pValue);
556 HRESULT SetForeColor([in]LONG Value);
557 HRESULT GetHidden([retval, out]LONG *pValue);
558 HRESULT SetHidden([in]LONG Value);
559 HRESULT GetEngrave([retval, out]LONG *pValue);
560 HRESULT SetEngrave([in]LONG Value);
561 HRESULT GetItalic([retval, out]LONG *pValue);
562 HRESULT SetItalic([in]LONG Value);
563 HRESULT GetKerning([retval, out]float *pValue);
564 HRESULT SetKerning([in]float Value);
565 HRESULT GetLanguageID([retval, out]LONG *pValue);
566 HRESULT SetLanguageID([in]LONG Value);
567 HRESULT GetName([retval, out]BSTR *pValue);
568 HRESULT SetName([in]BSTR Value);
569 HRESULT GetOutline([retval, out]LONG *pValue);
570 HRESULT SetOutline([in]LONG Value);
571 HRESULT GetPosition([retval, out]float *pValue);
572 HRESULT SetPosition([in]float Value);
573 HRESULT GetProtected([retval, out]LONG *pValue);
574 HRESULT SetProtected([in]LONG Value);
575 HRESULT GetShadow([retval, out]LONG *pValue);
576 HRESULT SetShadow([in]LONG Value);
577 HRESULT GetSize([retval, out]float *pValue);
578 HRESULT SetSize([in]float Value);
579 HRESULT GetSmallCaps([retval, out]LONG *pValue);
580 HRESULT SetSmallCaps([in]LONG Value);
581 HRESULT GetSpacing([retval, out]float *pValue);
582 HRESULT SetSpacing([in]float Value);
583 HRESULT GetStrikeThrough([retval, out]LONG *pValue);
584 HRESULT SetStrikeThrough([in]LONG Value);
585 HRESULT GetSubscript([retval, out]LONG *pValue);
586 HRESULT SetSubscript([in]LONG Value);
587 HRESULT GetSuperscript([retval, out]LONG *pValue);
588 HRESULT SetSuperscript([in]LONG Value);
589 HRESULT GetUnderline([retval, out]LONG *pValue);
590 HRESULT SetUnderline([in]LONG Value);
591 HRESULT GetWeight([retval, out]LONG *pValue);
592 HRESULT SetWeight([in]LONG Value);
596 object,
597 uuid(8cc497c4-a1df-11ce-8098-00aa0047be5d)
599 interface ITextPara : IDispatch
601 HRESULT GetDuplicate([retval, out]ITextPara **ppPara);
602 HRESULT SetDuplicate([in]ITextPara *pPara);
603 HRESULT CanChange([out]LONG *pB);
604 HRESULT IsEqual([in]ITextPara *pPara, [retval, out]LONG *pB);
605 HRESULT Reset([in]LONG Value);
606 HRESULT GetStyle([retval, out]LONG *pValue);
607 HRESULT SetStyle([in]LONG Value);
608 HRESULT GetAlignment([retval, out]LONG *pValue);
609 HRESULT SetAlignment([in]LONG Value);
610 HRESULT GetHyphenation([retval, out]LONG *pValue);
611 HRESULT SetHyphenation([in]LONG Value);
612 HRESULT GetFirstLineIndent([retval, out]float *pValue);
613 HRESULT GetKeepTogether([retval, out]LONG *pValue);
614 HRESULT SetKeepTogether([in]LONG Value);
615 HRESULT GetKeepWithNext([retval, out]LONG *pValue);
616 HRESULT SetKeepWithNext([in]LONG Value);
617 HRESULT GetLeftIndent([retval, out]float *pValue);
618 HRESULT GetLineSpacing([retval, out]float *pValue);
619 HRESULT GetLineSpacingRule([retval, out]LONG *pValue);
620 HRESULT GetListAlignment([retval, out]LONG *pValue);
621 HRESULT SetListAlignment([in]LONG Value);
622 HRESULT GetListLevelIndex([retval, out]LONG *pValue);
623 HRESULT SetListLevelIndex([in]LONG Value);
624 HRESULT GetListStart([retval, out]LONG *pValue);
625 HRESULT SetListStart([in]LONG Value);
626 HRESULT GetListTab([retval, out]float *pValue);
627 HRESULT SetListTab([in]float Value);
628 HRESULT GetListType([retval, out]LONG *pValue);
629 HRESULT SetListType([in]LONG Value);
630 HRESULT GetNoLineNumber([retval, out]LONG *pValue);
631 HRESULT SetNoLineNumber([in]LONG Value);
632 HRESULT GetPageBreakBefore([retval, out]LONG *pValue);
633 HRESULT SetPageBreakBefore([in]LONG Value);
634 HRESULT GetRightIndent([retval, out]float *pValue);
635 HRESULT SetRightIndent([in]float Value);
636 HRESULT SetIndents([in]float StartIndent, [in]float LeftIndent, [in]float RightIndent);
637 HRESULT SetLineSpacing([in]LONG LineSpacingRule, [in]float LineSpacing);
638 HRESULT GetSpaceAfter([retval, out]float *pValue);
639 HRESULT SetSpaceAfter([in]float Value);
640 HRESULT GetSpaceBefore([retval, out]float *pValue);
641 HRESULT SetSpaceBefore([in]float Value);
642 HRESULT GetWidowControl([retval, out]LONG *pValue);
643 HRESULT SetWidowControl([in]LONG Value);
644 HRESULT GetTabCount([retval, out]LONG *pCount);
645 HRESULT AddTab([in]float tbPos, [in]LONG tbAlign, [in]LONG tbLeader);
646 HRESULT ClearAllTabs();
647 HRESULT DeleteTab([in]float tbPos);
648 HRESULT GetTab([in]LONG iTab, [out]float *ptbPos, [out]LONG *ptbAlign, [out]LONG *ptbLeader);
652 object,
653 uuid(8cc497c5-a1df-11ce-8098-00aa0047be5d)
655 interface ITextStoryRanges : IDispatch
657 HRESULT _NewEnum([retval, out]IUnknown **ppUnkEnum);
658 HRESULT Item([in]LONG Index, [retval, out]ITextRange **ppRange);
659 HRESULT GetCount([retval, out]LONG *pCount);