24#define NONAMELESSUNION
44DEFINE_GUID(LIBID_tom, 0x8cc497c9, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
45DEFINE_GUID(
IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5);
46DEFINE_GUID(
IID_ITextHost, 0x13e670f4,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
47DEFINE_GUID(
IID_ITextHost2, 0x13e670f5,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
48DEFINE_GUID(IID_ITextDocument, 0x8cc497c0, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
49DEFINE_GUID(IID_ITextDocument2Old, 0x01c25500, 0x4268, 0x11d1, 0x88, 0x3a, 0x3c, 0x8b, 0x00, 0xc1, 0x00, 0x00);
50DEFINE_GUID(IID_ITextRange, 0x8cc497c2, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
51DEFINE_GUID(IID_ITextSelection, 0x8cc497c1, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
52DEFINE_GUID(IID_ITextFont, 0x8cc497c3, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
53DEFINE_GUID(IID_ITextPara, 0x8cc497c4, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
85 ERR(
"LoadRegTypeLib failed: %08x\n",
hr);
129 ITypeInfo_Release(ti);
137DEFINE_GUID(IID_Igetrichole, 0xe3ce5c7a, 0x8247, 0x4622, 0x81, 0xad, 0x11, 0x81, 0x02, 0xaa, 0x01, 0x30);
316 FIXME(
"unknown update op, %d\n",
op);
354 FIXME(
"unhandled font property %d\n", propid);
394 FIXME(
"unhandled font property %d\n", propid);
402 return value * 72.0 / 1440;
407 return value * 1440 / 72.0;
477 FIXME(
"unhandled font property %d\n", propid);
487 ITextRange_QueryInterface(
range, &IID_Igetrichole, (
void**)&
services);
499#define CHARFORMAT_SET_B_FIELD(mask, value) \
500 if (hr == S_OK && value != tomUndefined) { \
501 fmt.dwMask |= CFM_##mask; \
502 if (value == tomTrue) fmt.dwEffects |= CFE_##mask; \
565#undef CHARFORMAT_SET_B_FIELD
595 hr = ITextFont_GetKerning(
font, &
f);
614 hr = ITextFont_GetPosition(
font, &
f);
620 hr = ITextFont_GetSize(
font, &
f);
626 hr = ITextFont_GetSpacing(
font, &
f);
661 if (!
font->range ||
font->get_cache_enabled) {
671 ITextRange_GetStart(
font->range, &
start);
672 ITextRange_GetEnd(
font->range, &
end);
729 if (!
font->range ||
font->set_cache_enabled) {
798 FIXME(
"unhandled font property %d\n", propid);
802 ITextRange_GetStart(
font->range, &
start);
803 ITextRange_GetEnd(
font->range, &
end);
883 LONG expand_start, expand_end;
889 ITextRange_GetStoryLength(
range, &expand_end);
892 FIXME(
"unit %d is not supported\n",
unit);
901 *delta = expand_end - expand_start - (
end -
start);
904 ITextRange_SetStart(
range, expand_start);
905 ITextRange_SetEnd(
range, expand_end);
914 return IUnknown_QueryInterface(
services->outer_unk,
riid, ppvObj );
921 return IUnknown_AddRef(
services->outer_unk );
928 return IUnknown_Release(
services->outer_unk );
972 *ppvObj = &
This->IOleInPlaceSite_iface;
975 IOleClientSite_AddRef(me);
999 if (
This->child.reole) {
1011 if (!
This->child.reole)
1014 FIXME(
"stub %p\n", iface);
1022 if (!
This->child.reole)
1025 FIXME(
"stub %p\n", iface);
1033 if (!
This->child.reole)
1036 FIXME(
"stub %p\n", iface);
1043 if (!
This->child.reole)
1046 FIXME(
"stub %p\n", iface);
1053 if (!
This->child.reole)
1056 FIXME(
"stub %p\n", iface);
1063 if (!
This->child.reole)
1066 FIXME(
"stub %p\n", iface);
1070static const IOleClientSiteVtbl
ocst = {
1086 return IOleClientSite_QueryInterface(&
This->IOleClientSite_iface,
riid, ppvObj);
1092 return IOleClientSite_AddRef(&
This->IOleClientSite_iface);
1098 return IOleClientSite_Release(&
This->IOleClientSite_iface);
1107 if (!
This->child.reole)
1112 if (!
This->child.reole->editor->have_texthost2)
return E_NOTIMPL;
1119 FIXME(
"not implemented: (%p)->(%d)\n",
This, fEnterMode);
1146 LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
1149 FIXME(
"not implemented: (%p)->(%p %p %p %p %p)\n",
This, ppFrame, ppDoc, lprcPosRect, lprcClipRect, lpFrameInfo);
1163 FIXME(
"not implemented: (%p)->(%d)\n",
This, fUndoable);
1191 FIXME(
"not implemented: (%p)->(%p)\n",
This, lprcPosRect);
1223 clientSite->
ref = 1;
1259 nChars = nTo - nFrom;
1286 if (!lpreobject || !lpreobject->
cbStruct)
1289 if (iob == REO_IOB_USE_CP)
1293 TRACE(
"character offset: %d\n", lpreobject->
cp);
1298 reobj =
cursor.run->reobj;
1300 else if (iob == REO_IOB_SELECTION)
1305 if (!
from->run->reobj)
1308 reobj =
from->run->reobj;
1312 if (iob < 0 || iob >= IRichEditOle_GetObjectCount( iface ))
1396 FIXME(
"stub %p %s %s\n",
services, lpstrContainerApp, lpstrContainerObj);
1442 ITextRange_AddRef(me);
1447 *ppvObj =
This->child.reole;
1468 if (
This->child.reole)
1492 TRACE(
"(%p)->(%u,%d,%p)\n",
This, iTInfo, lcid, ppTInfo);
1496 ITypeInfo_AddRef(*ppTInfo);
1507 TRACE(
"(%p)->(%s, %p, %u, %d, %p)\n",
This,
debugstr_guid(
riid), rgszNames, cNames, lcid,
1512 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
1518 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
1525 TRACE(
"(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid),
1526 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1530 hr = ITypeInfo_Invoke(ti, me, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1544 if (!
This->child.reole)
1580 if (!
This->child.reole)
1608 if (len < This->
end -
This->start)
1634 if (!
This->child.reole)
1651 if (!
This->child.reole)
1665 if (!
This->child.reole)
1680 if (!
This->child.reole)
1692 if (!
This->child.reole)
1704 if (!
This->child.reole)
1740 if (!
This->child.reole)
1752 if (!
This->child.reole)
1785 if (!
This->child.reole)
1797 if (!
This->child.reole)
1815 if (!
This->child.reole)
1828 if (!
This->child.reole)
1841 FIXME(
"(%p)->(%p): stub\n",
This, para);
1843 if (!
This->child.reole)
1855 if (!
This->child.reole)
1867 if (!
This->child.reole)
1895 if (!
This->child.reole)
1907 if (!
This->child.reole)
1919 if (!
This->child.reole)
1932 if (!
This->child.reole)
1942 *cp1 =
max(*cp1, 0);
1943 *cp2 =
max(*cp2, 0);
1953 *cp1 = *cp2 =
len - 1;
1960 TRACE(
"(%p)->(%d %d)\n",
This, anchor, active);
1962 if (!
This->child.reole)
1966 if (anchor ==
This->start && active ==
This->end)
1969 This->start = anchor;
1998 if (!
This->child.reole)
2013 if (!
This->child.reole)
2043 if (!
This->child.reole)
2058 if (!
This->child.reole)
2091 FIXME(
"unit %d is not supported\n",
unit);
2104 if (!
This->child.reole)
2113 LONG old_start, old_end, new_end;
2116 ITextRange_GetStart(
range, &old_start);
2117 ITextRange_GetEnd(
range, &old_end);
2130 new_end = old_end + moved;
2132 else if (extend ==
tomMove && old_start != old_end)
2135 ITextRange_SetEnd(
range, new_end);
2137 ITextRange_SetStart(
range, new_end);
2144 FIXME(
"unit %d is not supported\n",
unit);
2157 if (!
This->child.reole)
2165 LONG old_start, old_end, new_start, new_end;
2177 ITextRange_GetStart(
range, &old_start);
2178 ITextRange_GetEnd(
range, &old_end);
2189 if (old_start != old_end)
2196 if (old_start != old_end)
2202 new_end = old_end + moved;
2203 new_start = new_end;
2204 if (old_start != old_end)
2209 new_start = old_start + moved;
2210 new_end = new_start;
2211 if (old_start != old_end)
2214 if (delta) *delta = moved;
2218 FIXME(
"unit %d is not supported\n",
unit);
2223 ITextRange_SetStart(
range, new_start);
2224 ITextRange_SetEnd(
range, new_end);
2235 if (!
This->child.reole)
2243 LONG old_start, old_end, new_start, new_end;
2253 ITextRange_GetStart(
range, &old_start);
2254 ITextRange_GetEnd(
range, &old_end);
2264 new_start = old_start + moved;
2266 if (new_end < new_start)
2267 new_end = new_start;
2273 FIXME(
"unit %d is not supported\n",
unit);
2276 if (new_start == old_start)
2278 ITextRange_SetStart(
range, new_start);
2279 ITextRange_SetEnd(
range, new_end);
2291 if (!
This->child.reole)
2299 LONG old_start, old_end, new_start, new_end;
2309 ITextRange_GetStart(
range, &old_start);
2310 ITextRange_GetEnd(
range, &old_end);
2320 new_start = old_start;
2321 new_end = old_end + moved;
2322 if (new_end < new_start)
2323 new_start = new_end;
2330 new_start = new_end = 0;
2333 new_start = old_start;
2334 ITextRange_GetStoryLength(
range, &new_end);
2338 if (new_end < old_end)
2340 else if (new_end == old_end)
2347 FIXME(
"unit %d is not supported\n",
unit);
2350 if (new_end == old_end)
2352 ITextRange_SetStart(
range, new_start);
2353 ITextRange_SetEnd(
range, new_end);
2365 if (!
This->child.reole)
2378 if (!
This->child.reole)
2391 if (!
This->child.reole)
2404 if (!
This->child.reole)
2417 if (!
This->child.reole)
2430 if (!
This->child.reole)
2443 if (!
This->child.reole)
2456 if (!
This->child.reole)
2469 if (!
This->child.reole)
2482 if (!
This->child.reole)
2494 if (!
This->child.reole)
2515 ITextRange_SetEnd(
range, prev_end );
2531 if (!
This->child.reole)
2543 if (!
This->child.reole)
2555 if (!
This->child.reole)
2567 if (!
This->child.reole)
2579 if (!
This->child.reole)
2591 if (!
This->child.reole)
2603 if (!
This->child.reole)
2616 if (!
This->child.reole)
2631 if (!
This->child.reole)
2647 FIXME(
"bStart value %d not handled\n",
value);
2660 if (!
This->child.reole)
2666static const ITextRangeVtbl
trvt = {
2739 ITextFont_AddRef(iface);
2765 ITextRange_Release(
This->range);
2787 TRACE(
"(%p)->(%u,%d,%p)\n",
This, iTInfo, lcid, ppTInfo);
2791 ITypeInfo_AddRef(*ppTInfo);
2803 rgszNames, cNames, lcid, rgDispId);
2807 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
2817 DISPPARAMS *pDispParams,
2819 EXCEPINFO *pExcepInfo,
2826 TRACE(
"(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid),
2827 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
2831 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
2854 FIXME(
"(%p)->(%p): stub\n",
This, pFont);
2918 FIXME(
"font property %d not handled\n",
id);
2960 FIXME(
"font property %d not handled\n",
id);
3006 FIXME(
"reset mode %d not supported\n",
value);
3033 FIXME(
"reset mode %d not supported\n",
value);
3498 ITextRange_AddRef(
range);
3506 *
ret = &
font->ITextFont_iface;
3522 ITextPara_AddRef(iface);
3547 ITextRange_Release(
This->range);
3568 TRACE(
"(%p)->(%u,%d,%p)\n",
This, iTInfo, lcid, ppTInfo);
3572 ITypeInfo_AddRef(*ppTInfo);
3584 cNames, lcid, rgDispId);
3588 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
3598 DISPPARAMS *pDispParams,
3600 EXCEPINFO *pExcepInfo,
3607 TRACE(
"(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
3609 pExcepInfo, puArgErr);
3613 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
3865 FIXME(
"(%p)->(%.2f %.2f %.2f)\n",
This, StartIndent, LeftIndent, RightIndent);
3872 FIXME(
"(%p)->(%d %.2f)\n",
This, LineSpacingRule, LineSpacing);
3928 FIXME(
"(%p)->(%.2f %d %d)\n",
This, tbPos, tbAlign, tbLeader);
3949 FIXME(
"(%p)->(%d %p %p %p)\n",
This, iTab, ptbPos, ptbAlign, ptbLeader);
4023 ITextRange_AddRef(
range);
4040 return IUnknown_AddRef(
services->outer_unk );
4046 return IUnknown_Release(
services->outer_unk );
4064 TRACE(
"(%p)->(%u,%d,%p)\n",
services, iTInfo, lcid, ppTInfo);
4068 ITypeInfo_AddRef(*ppTInfo);
4081 rgszNames, cNames, lcid, rgDispId);
4085 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
4091 DISPPARAMS *pDispParams,
VARIANT *pVarResult,
4092 EXCEPINFO *pExcepInfo,
UINT *puArgErr)
4098 TRACE(
"(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n",
services, dispIdMember,
4100 pExcepInfo, puArgErr);
4104 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4354 FIXME(
"(%p)->(%d, %d, %d, %d, %d, %p, %p, %p): stub\n",
services,
cp, charrep,
options, current_charrep,
4355 current_fontsize, bstr, pitch_family, new_fontsize);
4383 FIXME(
"(%p)->(%d, %p, %p, %p, %p): stub\n",
services,
type,
left,
top,
right,
bottom);
4535 ITextSelection_AddRef(me);
4540 *ppvObj =
This->services;
4576 TRACE(
"(%p)->(%u,%d,%p)\n",
This, iTInfo, lcid, ppTInfo);
4580 ITypeInfo_AddRef(*ppTInfo);
4591 TRACE(
"(%p)->(%s, %p, %u, %d, %p)\n",
This,
debugstr_guid(
riid), rgszNames, cNames, lcid,
4596 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
4606 DISPPARAMS *pDispParams,
4608 EXCEPINFO *pExcepInfo,
4615 TRACE(
"(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid), lcid,
4616 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4620 hr = ITypeInfo_Invoke(ti, me, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4634 if (!
This->services)
4668 if (!
This->services)
4671 editor =
This->services->editor;
4689 if (!
This->services)
4705 if (!
This->services)
4718 if (!
This->services)
4724 ITextSelection_GetStart(me, &
start);
4725 ITextSelection_GetEnd(me, &
end);
4735 if (!
This->services)
4747 if (!
This->services)
4750 FIXME(
"not implemented\n");
4761 if (!
This->services)
4778 if (!
This->services)
4796 if (!
This->services)
4813 if (!
This->services)
4832 if (!
This->services)
4838 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4840 ITextRange_Release(
range);
4854 if (!
This->services)
4857 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4859 ITextRange_Release(
range);
4871 if (!
This->services)
4877 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4879 ITextRange_Release(
range);
4887 FIXME(
"(%p)->(%p): stub\n",
This, para);
4889 if (!
This->services)
4892 FIXME(
"not implemented\n");
4902 if (!
This->services)
4914 if (!
This->services)
4932 if (!
This->services)
4950 if (!
This->services)
4953 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4955 ITextRange_Release(
range);
4965 if (!
This->services)
4978 if (!
This->services)
4988 FIXME(
"(%p)->(%d %d): stub\n",
This, anchor, active);
4990 if (!
This->services)
5007 if (!
This->services)
5013 ITextRange_QueryInterface(
range, &IID_ITextSelection, (
void**)&
selection);
5018 ITextSelection_GetStart(me, &
start);
5019 ITextSelection_GetEnd(me, &
end);
5029 if (!
This->services)
5046 if (!
This->services)
5052 ITextRange_QueryInterface(
range, &IID_ITextSelection, (
void**)&
selection);
5057 ITextSelection_GetStart(me, &
start);
5058 ITextSelection_GetEnd(me, &
end);
5068 if (!
This->services)
5084 if (!
This->services)
5087 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5089 ITextRange_Release(
range);
5102 if (!
This->services)
5105 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5107 ITextRange_Release(
range);
5119 if (!
This->services)
5122 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5124 ITextRange_Release(
range);
5137 if (!
This->services)
5140 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5142 ITextRange_Release(
range);
5155 if (!
This->services)
5158 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5160 ITextRange_Release(
range);
5171 if (!
This->services)
5184 if (!
This->services)
5197 if (!
This->services)
5210 if (!
This->services)
5223 if (!
This->services)
5236 if (!
This->services)
5249 if (!
This->services)
5252 FIXME(
"not implemented\n");
5263 if (!
This->services)
5276 if (!
This->services)
5289 if (!
This->services)
5303 if (!
This->services)
5306 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5308 ITextRange_Release(
range);
5320 if (!
This->services)
5323 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5325 ITextRange_Release(
range);
5335 if (!
This->services)
5348 if (!
This->services)
5360 if (!
This->services)
5372 if (!
This->services)
5384 if (!
This->services)
5397 if (!
This->services)
5409 if (!
This->services)
5421 if (!
This->services)
5434 if (!
This->services)
5446 if (!
This->services)
5458 if (!
This->services)
5471 if (!
This->services)
5484 if (!
This->services)
5497 if (!
This->services)
5510 if (!
This->services)
5521 FIXME(
"(%p)->(%d %d %p): stub\n",
This,
unit, extend, delta);
5523 if (!
This->services)
5534 FIXME(
"(%p)->(%d %d %p): stub\n",
This,
unit, extend, delta);
5536 if (!
This->services)
5548 if (!
This->services)
5554static const ITextSelectionVtbl
tsvt = {
5660 if (run->
reobj->obj.sizel.cx != 0 || run->
reobj->obj.sizel.cy != 0)
5663 if (
c->editor->nZoomNumerator != 0)
5665 pSize->
cx =
MulDiv(pSize->
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5666 pSize->
cy =
MulDiv(pSize->
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5671 if (!run->
reobj->obj.poleobj)
5673 pSize->
cx = pSize->
cy = 0;
5679 FIXME(
"Query Interface IID_IDataObject failed!\n");
5680 pSize->
cx = pSize->
cy = 0;
5685 fmt.dwAspect = DVASPECT_CONTENT;
5687 fmt.tymed = TYMED_GDI;
5688 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5691 fmt.tymed = TYMED_ENHMF;
5692 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5694 FIXME(
"unsupported format\n");
5695 pSize->
cx = pSize->
cy = 0;
5696 IDataObject_Release(ido);
5700 IDataObject_Release(ido);
5705 GetObjectW(stgm.u.hBitmap,
sizeof(dibsect), &dibsect);
5715 FIXME(
"Unsupported tymed %d\n", stgm.tymed);
5719 if (
c->editor->nZoomNumerator != 0)
5721 pSize->
cx =
MulDiv(pSize->
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5722 pSize->
cy =
MulDiv(pSize->
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5743 FIXME(
"Couldn't get interface\n");
5746 has_size = run->
reobj->obj.sizel.cx != 0 || run->
reobj->obj.sizel.cy != 0;
5749 fmt.dwAspect = DVASPECT_CONTENT;
5751 fmt.tymed = TYMED_GDI;
5752 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5755 fmt.tymed = TYMED_ENHMF;
5756 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5758 FIXME(
"Couldn't get storage medium\n");
5759 IDataObject_Release(ido);
5763 IDataObject_Release(ido);
5768 GetObjectW(stgm.u.hBitmap,
sizeof(dibsect), &dibsect);
5778 if (
c->editor->nZoomNumerator != 0)
5780 sz.
cx =
MulDiv(sz.
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5781 sz.
cy =
MulDiv(sz.
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5798 if (
c->editor->nZoomNumerator != 0)
5800 sz.
cx =
MulDiv(sz.
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5801 sz.
cy =
MulDiv(sz.
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5811 FIXME(
"Unsupported tymed %d\n", stgm.tymed);
5817 if (
selected && !
c->editor->bHideSelection)
5836 if ((
flags & REO_GETOBJ_POLEOBJ) &&
src->poleobj)
5838 dst->poleobj =
src->poleobj;
5839 IOleObject_AddRef(
dst->poleobj);
5841 if ((
flags & REO_GETOBJ_PSTG) &&
src->pstg)
5844 IStorage_AddRef(
dst->pstg);
5846 if ((
flags & REO_GETOBJ_POLESITE) &&
src->polesite)
5848 dst->polesite =
src->polesite;
5849 IOleClientSite_AddRef(
dst->polesite);
5861 ITextSelection_Release( &
services->text_selection->ITextSelection_iface );
small capitals from c petite p scientific f SUBSCRIPT
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static void list_remove(struct list_entry *entry)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
#define STDMETHODCALLTYPE
static char selected[MAX_PATH+1]
LCID WINAPI GetSystemDefaultLCID(void)
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
HRESULT WINAPI LoadRegTypeLib(REFGUID rguid, WORD wVerMajor, WORD wVerMinor, LCID lcid, ITypeLib **ppTLib)
int ME_GetCursorOfs(const ME_Cursor *cursor)
void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor, const WCHAR *str, int len, ME_Style *style)
int ME_MoveCursorChars(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs, BOOL final_eop)
void ME_InsertOLEFromCursor(ME_TextEditor *editor, const REOBJECT *reo, int nCursor)
int ME_GetSelection(ME_TextEditor *editor, ME_Cursor **from, ME_Cursor **to)
BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start, int nChars, BOOL bForce)
void cursor_coords(ME_TextEditor *editor, ME_Cursor *cursor, int *x, int *y, int *height)
int ME_GetSelectionOfs(ME_TextEditor *editor, int *from, int *to)
int ME_GetTextLength(ME_TextEditor *editor)
HRESULT ME_GetDataObject(ME_TextEditor *editor, const ME_Cursor *start, int nChars, IDataObject **dataobj)
void ME_ReplaceSel(ME_TextEditor *editor, BOOL can_undo, const WCHAR *str, int len)
HRESULT editor_copy_or_cut(ME_TextEditor *editor, BOOL cut, ME_Cursor *start, int count, IDataObject **data_out)
int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, const ME_Cursor *start, int srcChars, BOOL bCRLF, BOOL bEOP)
static HRESULT WINAPI ITextRange_fnMoveStartUntil(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static ITextParaVtbl textparavtbl
static HRESULT WINAPI ITextSelection_fnGetEnd(ITextSelection *me, LONG *pcpLim)
static HRESULT WINAPI IOleClientSite_fnGetContainer(IOleClientSite *iface, IOleContainer **ppContainer)
static HRESULT WINAPI TextPara_SetRightIndent(ITextPara *iface, FLOAT value)
static HRESULT textrange_get_storylength(ME_TextEditor *editor, LONG *length)
static HRESULT WINAPI ITextRange_fnMoveWhile(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnContextSensitiveHelp(IOleInPlaceSite *iface, BOOL fEnterMode)
static HRESULT WINAPI IRichEditOle_fnConvertObject(IRichEditOle *iface, LONG iob, REFCLSID class, LPCSTR user_type)
static HRESULT WINAPI ITextSelection_fnGetFlags(ITextSelection *me, LONG *flags)
static HRESULT WINAPI TextPara_GetLineSpacingRule(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnMoveStart(ITextSelection *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnCollapse(ITextRange *me, LONG bStart)
static HRESULT WINAPI ITextSelection_fnStartOf(ITextSelection *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetStoryLength(ITextRange *me, LONG *length)
static HRESULT WINAPI TextFont_GetIDsOfNames(ITextFont *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
const IRichEditOleVtbl re_ole_vtbl
static HRESULT WINAPI ITextDocument2Old_fnGetFEFlags(ITextDocument2Old *iface, LONG *flags)
static HRESULT WINAPI ITextSelection_fnMoveDown(ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
static HRESULT WINAPI ITextSelection_fnDelete(ITextSelection *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetEmbeddedObject(ITextRange *me, IUnknown **ppv)
static HRESULT get_textfont_prop_for_pos(const struct text_services *services, int pos, enum textfont_prop_id propid, textfont_prop_val *value)
static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnReleaseImmContext(ITextDocument2Old *iface, LONG context)
static HRESULT WINAPI ITextRange_fnMove(ITextRange *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI TextPara_SetWidowControl(ITextPara *iface, LONG value)
static HRESULT WINAPI ITextRange_fnSetChar(ITextRange *me, LONG ch)
static HRESULT WINAPI ITextSelection_fnSelect(ITextSelection *me)
static HRESULT WINAPI TextFont_GetDuplicate(ITextFont *iface, ITextFont **ret)
static HRESULT WINAPI TextFont_GetSubscript(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnGetPara(ITextSelection *me, ITextPara **para)
static HRESULT WINAPI ITextRange_fnInStory(ITextRange *me, ITextRange *pRange, LONG *ret)
static HRESULT WINAPI TextFont_SetBold(ITextFont *iface, LONG value)
static HRESULT textrange_endof(ITextRange *range, ME_TextEditor *editor, LONG unit, LONG extend, LONG *delta)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIActivate(IOleInPlaceSite *iface)
static HRESULT get_textfont_prop(const ITextFontImpl *font, enum textfont_prop_id propid, textfont_prop_val *value)
static HRESULT WINAPI TextFont_SetSuperscript(ITextFont *iface, LONG value)
static HRESULT WINAPI TextPara_GetTypeInfo(ITextPara *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI TextPara_GetLeftIndent(ITextPara *iface, FLOAT *value)
static const ITextRangeVtbl trvt
static ITextFontVtbl textfontvtbl
static HRESULT WINAPI IRichEditOle_fnSaveCompleted(IRichEditOle *iface, LONG iob, LPSTORAGE lpstg)
static HRESULT WINAPI TextFont_SetShadow(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextSelection_fnInRange(ITextSelection *me, ITextRange *range, LONG *ret)
static HRESULT WINAPI ITextSelection_fnChangeCase(ITextSelection *me, LONG type)
static HRESULT WINAPI ITextSelection_fnFindTextEnd(ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
static HRESULT WINAPI TextPara_SetListLevelIndex(ITextPara *iface, LONG value)
static HRESULT WINAPI TextPara_GetTabCount(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnEndOf(ITextSelection *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetPara(ITextRange *me, ITextPara **para)
static HRESULT WINAPI ITextDocument2Old_fnGetImmContext(ITextDocument2Old *iface, LONG *context)
static const IOleInPlaceSiteVtbl olestvt
static HRESULT WINAPI TextFont_GetAnimation(ITextFont *iface, LONG *value)
static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnAddRef(IOleInPlaceSite *iface)
static HRESULT WINAPI ITextRange_fnChangeCase(ITextRange *me, LONG type)
static const ITextSelectionVtbl tsvt
static HRESULT WINAPI ITextDocument2Old_fnRange(ITextDocument2Old *iface, LONG cp1, LONG cp2, ITextRange **ppRange)
static HRESULT range_Collapse(LONG bStart, LONG *start, LONG *end)
static HRESULT WINAPI TextPara_SetListType(ITextPara *iface, LONG value)
static HRESULT WINAPI TextFont_GetStrikeThrough(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnGetCaretType(ITextDocument2Old *iface, LONG *type)
static HRESULT WINAPI ITextSelection_fnSetPoint(ITextSelection *me, LONG x, LONG y, LONG type, LONG extend)
void richole_release_children(struct text_services *services)
static HRESULT WINAPI ITextRange_fnDelete(ITextRange *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextSelection_fnMoveEndWhile(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static struct text_selection * text_selection_create(struct text_services *)
static HRESULT WINAPI ITextRange_fnGetPoint(ITextRange *me, LONG type, LONG *cx, LONG *cy)
static HRESULT WINAPI ITextSelection_fnSetEnd(ITextSelection *me, LONG value)
static HRESULT WINAPI ITextSelection_fnGetStoryType(ITextSelection *me, LONG *value)
static void textfont_reset_to_default(ITextFontImpl *font)
static HRESULT WINAPI TextPara_GetRightIndent(ITextPara *iface, FLOAT *value)
static HRESULT WINAPI ITextSelection_fnCut(ITextSelection *me, VARIANT *v)
static HRESULT WINAPI TextPara_QueryInterface(ITextPara *iface, REFIID riid, void **ppv)
static HRESULT WINAPI ITextDocument2Old_fnIMEInProgress(ITextDocument2Old *iface, LONG mode)
static HRESULT WINAPI ITextSelection_fnMoveStartWhile(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnMoveStartWhile(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI IRichEditOle_fnQueryInterface(IRichEditOle *iface, REFIID riid, LPVOID *ppvObj)
static HRESULT WINAPI ITextSelection_fnScrollIntoView(ITextSelection *me, LONG value)
static HRESULT WINAPI ITextRange_fnMoveEnd(ITextRange *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextDocument2Old_fnOpen(ITextDocument2Old *iface, VARIANT *pVar, LONG Flags, LONG CodePage)
static HRESULT WINAPI TextPara_GetPageBreakBefore(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnGetType(ITextSelection *me, LONG *type)
static HRESULT WINAPI ITextSelection_fnCollapse(ITextSelection *me, LONG bStart)
static HRESULT WINAPI TextPara_SetListTab(ITextPara *iface, FLOAT value)
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
#define CHARFORMAT_SET_B_FIELD(mask, value)
static const DWORD textfont_prop_masks[][2]
static HRESULT WINAPI TextFont_GetLanguageID(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextPara_GetListAlignment(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextFont_SetAllCaps(ITextFont *iface, LONG value)
static HRESULT WINAPI TextFont_GetTypeInfo(ITextFont *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI ITextDocument2Old_fnGetClientRect(ITextDocument2Old *iface, LONG type, LONG *left, LONG *top, LONG *right, LONG *bottom)
static HRESULT WINAPI ITextRange_fnMoveEndWhile(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI TextFont_SetSmallCaps(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnSetEffectColor(ITextDocument2Old *iface, LONG index, COLORREF cr)
static HRESULT WINAPI ITextRange_fnFindText(ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
static void textrange_set_font(ITextRange *range, ITextFont *font)
static BOOL is_equal_textfont_prop_value(enum textfont_prop_id propid, textfont_prop_val *left, textfont_prop_val *right)
static HRESULT WINAPI ITextSelection_fnMoveEnd(ITextSelection *me, LONG unit, LONG count, LONG *delta)
static HRESULT textrange_inrange(LONG start, LONG end, ITextRange *range, LONG *ret)
static ITypeLib * typelib
static HRESULT WINAPI IRichEditOle_fnGetClipboardData(IRichEditOle *iface, CHARRANGE *lpchrg, DWORD reco, LPDATAOBJECT *lplpdataobj)
static HRESULT WINAPI TextPara_SetDuplicate(ITextPara *iface, ITextPara *para)
static void init_textfont_prop_value(enum textfont_prop_id propid, textfont_prop_val *v)
static HRESULT WINAPI TextFont_IsEqual(ITextFont *iface, ITextFont *font, LONG *ret)
static HRESULT WINAPI ITextDocument2Old_fnBeginEditCollection(ITextDocument2Old *iface)
static HRESULT WINAPI ITextDocument2Old_fnGetStoryRanges(ITextDocument2Old *iface, ITextStoryRanges **ppStories)
static HRESULT WINAPI IRichEditOle_fnGetClientSite(IRichEditOle *iface, IOleClientSite **clientsite)
static HRESULT WINAPI ITextRange_fnSelect(ITextRange *me)
static HRESULT textrange_startof(ITextRange *range, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextRange_fnIsEqual(ITextRange *me, ITextRange *range, LONG *ret)
static HRESULT WINAPI TextFont_GetName(ITextFont *iface, BSTR *value)
static ULONG WINAPI ITextSelection_fnRelease(ITextSelection *me)
static HRESULT WINAPI ITextRange_fnEndOf(ITextRange *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetEnd(ITextRange *me, LONG *end)
static HRESULT WINAPI ITextSelection_fnPaste(ITextSelection *me, VARIANT *v, LONG format)
static HRESULT WINAPI TextFont_GetStyle(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextPara_GetWidowControl(ITextPara *iface, LONG *value)
static ULONG WINAPI TextPara_Release(ITextPara *iface)
static HRESULT WINAPI ITextSelection_fnSetFlags(ITextSelection *me, LONG flags)
static HRESULT WINAPI ITextSelection_fnMoveUp(ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
static HRESULT WINAPI TextPara_Reset(ITextPara *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnSysBeep(ITextDocument2Old *iface)
static HRESULT set_textfont_propl(ITextFontImpl *font, enum textfont_prop_id propid, LONG value)
static ULONG WINAPI ITextRange_fnRelease(ITextRange *me)
static HRESULT WINAPI ITextSelection_fnGetTypeInfoCount(ITextSelection *me, UINT *pctinfo)
static HRESULT WINAPI ITextRange_fnGetFont(ITextRange *me, ITextFont **font)
static HRESULT WINAPI IRichEditOle_fnGetObject(IRichEditOle *iface, LONG iob, REOBJECT *lpreobject, DWORD dwFlags)
void ME_CopyReObject(REOBJECT *dst, const REOBJECT *src, DWORD flags)
static FLOAT twips_to_points(LONG value)
static HRESULT WINAPI TextFont_GetSmallCaps(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnCheckTextLimit(ITextDocument2Old *iface, LONG cch, LONG *exceed)
static ULONG WINAPI IOleClientSite_fnAddRef(IOleClientSite *iface)
static HRESULT WINAPI TextPara_GetListTab(ITextPara *iface, FLOAT *value)
static HRESULT get_textfont_propl(const ITextFontImpl *font, enum textfont_prop_id propid, LONG *value)
static HRESULT WINAPI ITextSelection_fnCanPaste(ITextSelection *me, VARIANT *v, LONG format, LONG *ret)
static HRESULT textfont_getname_from_range(ITextRange *range, BSTR *ret)
static ULONG WINAPI ITextDocument2Old_fnAddRef(ITextDocument2Old *iface)
static HRESULT WINAPI ITextDocument2Old_fnUpdate(ITextDocument2Old *iface, LONG mode)
static ULONG WINAPI IRichEditOle_fnAddRef(IRichEditOle *iface)
static HRESULT WINAPI TextPara_GetListLevelIndex(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextFont_Invoke(ITextFont *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT textrange_isequal(LONG start, LONG end, ITextRange *range, LONG *ret)
static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value)
static HRESULT create_textpara(ITextRange *, ITextPara **)
static HRESULT WINAPI ITextDocument2Old_fnGetSelectionEx(ITextDocument2Old *iface, ITextSelection **selection)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDeactivateAndUndo(IOleInPlaceSite *iface)
static HRESULT get_textfont_propf(const ITextFontImpl *font, enum textfont_prop_id propid, FLOAT *value)
static HRESULT WINAPI ITextSelection_fnSetStart(ITextSelection *me, LONG value)
static HRESULT WINAPI IOleClientSite_fnQueryInterface(IOleClientSite *me, REFIID riid, LPVOID *ppvObj)
static HRESULT WINAPI ITextSelection_fnCanEdit(ITextSelection *me, LONG *ret)
static LONG WINAPI IRichEditOle_fnGetLinkCount(IRichEditOle *iface)
static HRESULT WINAPI TextFont_SetLanguageID(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnQueryInterface(ITextDocument2Old *iface, REFIID riid, void **ppvObject)
void draw_ole(ME_Context *c, int x, int y, ME_Run *run, BOOL selected)
static HRESULT WINAPI TextPara_GetHyphenation(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextFont_SetUnderline(ITextFont *iface, LONG value)
static HRESULT WINAPI TextFont_SetForeColor(ITextFont *iface, LONG value)
static HRESULT WINAPI TextPara_GetTypeInfoCount(ITextPara *iface, UINT *pctinfo)
static FLOAT points_to_twips(FLOAT value)
void ME_DeleteReObject(struct re_object *reobj)
static HRESULT textrange_copy_or_cut(ITextRange *range, ME_TextEditor *editor, BOOL cut, VARIANT *v)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIDeactivate(IOleInPlaceSite *iface, BOOL fUndoable)
static HRESULT WINAPI ITextRange_fnSetStart(ITextRange *me, LONG value)
static LONG WINAPI IRichEditOle_fnGetObjectCount(IRichEditOle *iface)
static HRESULT WINAPI ITextRange_fnCanPaste(ITextRange *me, VARIANT *v, LONG format, LONG *ret)
static HRESULT WINAPI IOleClientSite_fnShowObject(IOleClientSite *iface)
static HRESULT WINAPI TextFont_GetBackColor(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnNew(ITextDocument2Old *iface)
static HRESULT WINAPI ITextRange_fnInvoke(ITextRange *me, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI TextPara_SetListStart(ITextPara *iface, LONG value)
static HRESULT WINAPI IOleClientSite_fnSaveObject(IOleClientSite *iface)
static HRESULT WINAPI ITextDocument2Old_fnEndEditCollection(ITextDocument2Old *iface)
static void textfont_apply_range_props(ITextFontImpl *font)
static HRESULT WINAPI ITextRange_fnGetStoryType(ITextRange *me, LONG *value)
static HRESULT range_GetChar(ME_TextEditor *editor, ME_Cursor *cursor, LONG *pch)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnQueryInterface(IOleInPlaceSite *iface, REFIID riid, void **ppvObj)
static HRESULT WINAPI TextPara_GetKeepTogether(ITextPara *iface, LONG *value)
static HRESULT textrange_setend(const struct text_services *services, LONG value, LONG *start, LONG *end)
static HRESULT WINAPI TextFont_QueryInterface(ITextFont *iface, REFIID riid, void **ppv)
static HRESULT WINAPI ITextSelection_fnGetChar(ITextSelection *me, LONG *pch)
static HRESULT WINAPI TextFont_SetItalic(ITextFont *iface, LONG value)
static struct text_services * impl_from_ITextDocument2Old(ITextDocument2Old *iface)
static HRESULT WINAPI ITextRange_fnSetText(ITextRange *me, BSTR str)
static const struct text_services * get_range_reole(ITextRange *range)
static HRESULT WINAPI ITextSelection_fnMoveRight(ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
static HRESULT WINAPI TextPara_SetSpaceBefore(ITextPara *iface, FLOAT value)
static HRESULT WINAPI ITextDocument2Old_fnGetWindow(ITextDocument2Old *iface, LONG *hwnd)
static HRESULT WINAPI TextFont_SetKerning(ITextFont *iface, FLOAT value)
static HRESULT WINAPI ITextDocument2Old_fnUpdateWindow(ITextDocument2Old *iface)
static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnRelease(IOleInPlaceSite *iface)
static HRESULT WINAPI TextPara_GetSpaceBefore(ITextPara *iface, FLOAT *value)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceDeactivate(IOleInPlaceSite *iface)
static HRESULT WINAPI TextFont_SetEmboss(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnRangeFromPoint(ITextDocument2Old *iface, LONG x, LONG y, ITextRange **ppRange)
static HRESULT WINAPI ITextSelection_fnMoveEndUntil(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetFormattedText(ITextRange *me, ITextRange **range)
static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfoCount(ITextDocument2Old *iface, UINT *pctinfo)
static HRESULT WINAPI ITextDocument2Old_fnGetStoryCount(ITextDocument2Old *iface, LONG *pCount)
static HRESULT WINAPI TextPara_SetHyphenation(ITextPara *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnSetSaved(ITextDocument2Old *iface, LONG Value)
static HRESULT WINAPI TextPara_GetIDsOfNames(ITextPara *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI TextPara_IsEqual(ITextPara *iface, ITextPara *para, LONG *ret)
static HRESULT WINAPI ITextRange_fnFindTextEnd(ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
static HRESULT WINAPI ITextDocument2Old_fnAttachMsgFilter(ITextDocument2Old *iface, IUnknown *filter)
static HRESULT WINAPI TextPara_ClearAllTabs(ITextPara *iface)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDiscardUndoState(IOleInPlaceSite *iface)
static HRESULT WINAPI TextFont_GetSpacing(ITextFont *iface, FLOAT *value)
static HRESULT WINAPI ITextRange_fnExpand(ITextRange *me, LONG unit, LONG *delta)
static HRESULT CreateITextRange(struct text_services *services, LONG start, LONG end, ITextRange **ppRange)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindowContext(IOleInPlaceSite *iface, IOleInPlaceFrame **ppFrame, IOleInPlaceUIWindow **ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
static HRESULT WINAPI ITextSelection_fnHomeKey(ITextSelection *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI TextPara_GetAlignment(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnGetPreferredFont(ITextDocument2Old *iface, LONG cp, LONG charrep, LONG options, LONG current_charrep, LONG current_fontsize, BSTR *bstr, LONG *pitch_family, LONG *new_fontsize)
static HRESULT WINAPI TextFont_SetName(ITextFont *iface, BSTR value)
static HRESULT WINAPI ITextRange_fnCanEdit(ITextRange *me, LONG *ret)
static ULONG WINAPI ITextDocument2Old_fnRelease(ITextDocument2Old *iface)
static HRESULT WINAPI ITextRange_fnMoveUntil(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI TextFont_SetSpacing(ITextFont *iface, FLOAT value)
static HRESULT WINAPI IRichEditOle_fnInsertObject(IRichEditOle *iface, REOBJECT *reo)
static HRESULT WINAPI ITextRange_fnGetText(ITextRange *me, BSTR *str)
static HRESULT WINAPI ITextRange_fnPaste(ITextRange *me, VARIANT *v, LONG format)
static HRESULT WINAPI ITextRange_fnCut(ITextRange *me, VARIANT *v)
static HRESULT WINAPI TextPara_GetStyle(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnGetSaved(ITextDocument2Old *iface, LONG *pValue)
static HRESULT WINAPI ITextSelection_fnGetDuplicate(ITextSelection *me, ITextRange **range)
static HRESULT WINAPI ITextRange_fnStartOf(ITextRange *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextRange_fnCopy(ITextRange *me, VARIANT *v)
static HRESULT WINAPI TextFont_GetTypeInfoCount(ITextFont *iface, UINT *pctinfo)
static HRESULT WINAPI TextPara_SetPageBreakBefore(ITextPara *iface, LONG value)
static HRESULT WINAPI IOleClientSite_fnRequestNewObjectLayout(IOleClientSite *iface)
static HRESULT WINAPI ITextSelection_fnFindText(ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
static HRESULT WINAPI ITextSelection_fnMoveStartUntil(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI IRichEditOle_fnActivateAs(IRichEditOle *iface, REFCLSID rclsid, REFCLSID rclsidAs)
static HRESULT WINAPI TextFont_GetOutline(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextPara_SetAlignment(ITextPara *iface, LONG value)
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
static HRESULT WINAPI IRichEditOle_fnSetHostNames(IRichEditOle *iface, LPCSTR lpstrContainerApp, LPCSTR lpstrContainerObj)
static HRESULT WINAPI ITextSelection_fnInvoke(ITextSelection *me, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI ITextSelection_fnSetText(ITextSelection *me, BSTR str)
static HRESULT WINAPI ITextSelection_fnMove(ITextSelection *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI TextPara_GetNoLineNumber(ITextPara *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnSetChar(ITextSelection *me, LONG ch)
static HRESULT WINAPI ITextRange_fnGetStart(ITextRange *me, LONG *start)
static HRESULT WINAPI ITextDocument2Old_fnFreeze(ITextDocument2Old *iface, LONG *pCount)
void ME_GetOLEObjectSize(const ME_Context *c, ME_Run *run, SIZE *pSize)
static HRESULT WINAPI ITextDocument2Old_fnGetDefaultTabStop(ITextDocument2Old *iface, float *pValue)
static HRESULT WINAPI ITextRange_fnGetTypeInfo(ITextRange *me, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT textrange_movestart(ITextRange *range, ME_TextEditor *editor, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnMoveStart(ITextRange *me, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextDocument2Old_fnInvoke(ITextDocument2Old *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnScroll(IOleInPlaceSite *iface, SIZE scrollExtent)
static HRESULT WINAPI ITextSelection_fnSetIndex(ITextSelection *me, LONG unit, LONG index, LONG extend)
static HRESULT WINAPI TextPara_GetListType(ITextPara *iface, LONG *value)
static ULONG WINAPI ITextRange_fnAddRef(ITextRange *me)
static HRESULT WINAPI TextFont_GetEngrave(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetAnimation(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnRedo(ITextDocument2Old *iface, LONG Count, LONG *prop)
static HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo)
static HRESULT WINAPI ITextDocument2Old_fnSave(ITextDocument2Old *iface, VARIANT *pVar, LONG Flags, LONG CodePage)
void release_typelib(void)
static HRESULT WINAPI ITextRange_fnInRange(ITextRange *me, ITextRange *range, LONG *ret)
static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfo(ITextDocument2Old *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI TextFont_GetShadow(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextDocument2Old_fnGetIDsOfNames(ITextDocument2Old *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
const ITextDocument2OldVtbl text_doc2old_vtbl
static HRESULT WINAPI TextFont_GetAllCaps(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetEngrave(ITextFont *iface, LONG value)
static HRESULT WINAPI TextPara_SetStyle(ITextPara *iface, LONG value)
static HRESULT WINAPI IOleClientSite_fnOnShowWindow(IOleClientSite *iface, BOOL fShow)
static HRESULT load_typelib(void)
static HRESULT WINAPI IRichEditOle_fnImportDataObject(IRichEditOle *iface, LPDATAOBJECT lpdataobj, CLIPFORMAT cf, HGLOBAL hMetaPict)
static HRESULT WINAPI ITextDocument2Old_fnSetNotificationMode(ITextDocument2Old *iface, LONG mode)
static HRESULT WINAPI TextFont_SetStyle(ITextFont *iface, LONG value)
static HRESULT WINAPI TextPara_SetSpaceAfter(ITextPara *iface, FLOAT value)
static HRESULT WINAPI ITextSelection_fnInStory(ITextSelection *me, ITextRange *range, LONG *ret)
static HRESULT WINAPI ITextSelection_fnGetStoryLength(ITextSelection *me, LONG *length)
static HRESULT WINAPI TextPara_SetNoLineNumber(ITextPara *iface, LONG value)
static HRESULT WINAPI TextFont_GetUnderline(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnTypeText(ITextSelection *me, BSTR text)
static HRESULT WINAPI TextPara_SetIndents(ITextPara *iface, FLOAT StartIndent, FLOAT LeftIndent, FLOAT RightIndent)
static HRESULT WINAPI ITextSelection_fnGetText(ITextSelection *me, BSTR *pbstr)
static HRESULT WINAPI ITextSelection_fnGetFormattedText(ITextSelection *me, ITextRange **range)
static HRESULT WINAPI TextPara_CanChange(ITextPara *iface, LONG *ret)
static HRESULT WINAPI TextFont_GetProtected(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextRange_fnSetPara(ITextRange *me, ITextPara *para)
static HRESULT WINAPI ITextSelection_fnSetRange(ITextSelection *me, LONG anchor, LONG active)
static HRESULT WINAPI TextFont_SetSubscript(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextRange_fnSetFont(ITextRange *me, ITextFont *font)
static HRESULT WINAPI ITextSelection_fnQueryInterface(ITextSelection *me, REFIID riid, void **ppvObj)
static HRESULT WINAPI TextFont_GetBold(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextRange_fnSetRange(ITextRange *me, LONG anchor, LONG active)
static HRESULT WINAPI ITextSelection_fnGetStart(ITextSelection *me, LONG *pcpFirst)
static HRESULT WINAPI ITextDocument2Old_fnUnfreeze(ITextDocument2Old *iface, LONG *pCount)
static HRESULT WINAPI ITextRange_fnSetFormattedText(ITextRange *me, ITextRange *range)
static HRESULT WINAPI IRichEditOle_fnInPlaceDeactivate(IRichEditOle *iface)
static HRESULT WINAPI ITextSelection_fnGetFont(ITextSelection *me, ITextFont **font)
static HRESULT create_textfont(ITextRange *, const ITextFontImpl *, ITextFont **)
static HRESULT WINAPI ITextSelection_fnGetPoint(ITextSelection *me, LONG type, LONG *cx, LONG *cy)
static HRESULT WINAPI ITextDocument2Old_fnGetNotificationMode(ITextDocument2Old *iface, LONG *mode)
static HRESULT WINAPI TextPara_DeleteTab(ITextPara *iface, FLOAT pos)
static HRESULT WINAPI TextPara_SetKeepWithNext(ITextPara *iface, LONG value)
static ULONG WINAPI IOleClientSite_fnRelease(IOleClientSite *iface)
static HRESULT WINAPI ITextSelection_fnFindTextStart(ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
static HRESULT WINAPI IRichEditOle_fnSetDvaspect(IRichEditOle *iface, LONG iob, DWORD dvaspect)
static HRESULT set_textfont_prop(ITextFontImpl *font, enum textfont_prop_id propid, const textfont_prop_val *value)
static ITextFontImpl * impl_from_ITextFont(ITextFont *iface)
static HRESULT textrange_moveend(ITextRange *range, ME_TextEditor *editor, LONG unit, LONG count, LONG *delta)
static HRESULT WINAPI ITextSelection_fnGetTypeInfo(ITextSelection *me, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI TextPara_GetSpaceAfter(ITextPara *iface, FLOAT *value)
static HRESULT WINAPI TextPara_Invoke(ITextPara *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI TextFont_SetOutline(ITextFont *iface, LONG value)
static HRESULT WINAPI TextFont_SetProtected(ITextFont *iface, LONG value)
static HRESULT WINAPI IRichEditOle_fnContextSensitiveHelp(IRichEditOle *iface, BOOL fEnterMode)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnPosRectChange(IOleInPlaceSite *iface, LPCRECT lprcPosRect)
static HRESULT WINAPI ITextRange_fnGetChar(ITextRange *me, LONG *pch)
static HRESULT WINAPI ITextSelection_fnGetEmbeddedObject(ITextSelection *me, IUnknown **ppv)
static HRESULT WINAPI TextPara_AddTab(ITextPara *iface, FLOAT tbPos, LONG tbAlign, LONG tbLeader)
static HRESULT WINAPI IOleClientSite_fnGetMoniker(IOleClientSite *iface, DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk)
static HRESULT WINAPI ITextDocument2Old_fnGetEffectColor(ITextDocument2Old *iface, LONG index, COLORREF *cr)
static ULONG WINAPI TextFont_Release(ITextFont *iface)
static HRESULT WINAPI ITextDocument2Old_fnGetName(ITextDocument2Old *iface, BSTR *pName)
static HRESULT WINAPI TextPara_SetListAlignment(ITextPara *iface, LONG value)
static HRESULT WINAPI TextFont_SetPosition(ITextFont *iface, FLOAT value)
static HRESULT WINAPI ITextSelection_fnSetPara(ITextSelection *me, ITextPara *para)
static ULONG WINAPI TextPara_AddRef(ITextPara *iface)
static HRESULT WINAPI TextFont_CanChange(ITextFont *iface, LONG *ret)
static HRESULT WINAPI TextFont_GetKerning(ITextFont *iface, FLOAT *value)
static HRESULT WINAPI ITextSelection_fnEndKey(ITextSelection *me, LONG unit, LONG extend, LONG *delta)
static HRESULT WINAPI ITextDocument2Old_fnGetSelection(ITextDocument2Old *iface, ITextSelection **selection)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnCanInPlaceActivate(IOleInPlaceSite *iface)
static void cp2range(ME_TextEditor *editor, LONG *cp1, LONG *cp2)
static ULONG WINAPI TextFont_AddRef(ITextFont *iface)
static HRESULT WINAPI ITextSelection_fnSetFont(ITextSelection *me, ITextFont *font)
static HRESULT WINAPI ITextRange_fnSetPoint(ITextRange *me, LONG x, LONG y, LONG type, LONG extend)
static void textfont_cache_range_props(ITextFontImpl *font)
static void textranges_update_ranges(struct text_services *services, LONG start, LONG end, enum range_update_op op)
static HRESULT WINAPI TextFont_GetHidden(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_GetForeColor(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextPara_GetFirstLineIndent(ITextPara *iface, FLOAT *value)
static HRESULT WINAPI ITextRange_fnGetIDsOfNames(ITextRange *me, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI TextPara_GetListStart(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextFont_GetSize(ITextFont *iface, FLOAT *value)
static HRESULT WINAPI ITextDocument2Old_fnUndo(ITextDocument2Old *iface, LONG Count, LONG *prop)
static void convert_sizel(const ME_Context *c, const SIZEL *szl, SIZE *sz)
static HRESULT WINAPI TextFont_GetSuperscript(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnSetFormattedText(ITextSelection *me, ITextRange *range)
static HRESULT WINAPI TextFont_SetHidden(ITextFont *iface, LONG value)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindow(IOleInPlaceSite *iface, HWND *window)
static HRESULT WINAPI TextFont_GetPosition(ITextFont *iface, FLOAT *value)
static const IID *const tid_ids[]
static HRESULT WINAPI TextFont_GetWeight(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextSelection_fnMoveUntil(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI ITextRange_fnGetTypeInfoCount(ITextRange *me, UINT *pctinfo)
static HRESULT WINAPI TextFont_SetBackColor(ITextFont *iface, LONG value)
static HRESULT WINAPI TextPara_GetLineSpacing(ITextPara *iface, FLOAT *value)
static struct text_services * impl_from_IRichEditOle(IRichEditOle *iface)
static HRESULT WINAPI ITextSelection_fnExpand(ITextSelection *me, LONG unit, LONG *delta)
static HRESULT WINAPI ITextRange_fnFindTextStart(ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
static HRESULT WINAPI IRichEditOle_fnSetLinkAvailable(IRichEditOle *iface, LONG iob, BOOL fAvailable)
static HRESULT WINAPI TextFont_SetDuplicate(ITextFont *iface, ITextFont *pFont)
static HRESULT WINAPI TextPara_GetKeepWithNext(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextFont_SetSize(ITextFont *iface, FLOAT value)
static HRESULT WINAPI ITextDocument2Old_fnSetCaretType(ITextDocument2Old *iface, LONG type)
static HRESULT set_textfont_propd(ITextFontImpl *font, enum textfont_prop_id propid, LONG value)
static HRESULT WINAPI ITextRange_fnMoveEndUntil(ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI ITextSelection_fnMoveWhile(ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
static HRESULT WINAPI TextPara_SetKeepTogether(ITextPara *iface, LONG value)
static void textfont_reset_to_undefined(ITextFontImpl *font)
static ULONG WINAPI ITextSelection_fnAddRef(ITextSelection *me)
static HRESULT WINAPI ITextSelection_fnMoveLeft(ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
static HRESULT WINAPI TextFont_SetWeight(ITextFont *iface, LONG value)
static HRESULT WINAPI ITextSelection_fnGetIndex(ITextSelection *me, LONG unit, LONG *index)
static HRESULT WINAPI ITextDocument2Old_fnNotify(ITextDocument2Old *iface, LONG notify)
static HRESULT WINAPI IRichEditOle_fnHandsOffStorage(IRichEditOle *iface, LONG iob)
static struct text_selection * impl_from_ITextSelection(ITextSelection *iface)
static HRESULT CreateOleClientSite(struct text_services *services, IOleClientSite **ret)
static HRESULT set_textfont_propf(ITextFontImpl *font, enum textfont_prop_id propid, FLOAT value)
static HRESULT WINAPI ITextSelection_fnCopy(ITextSelection *me, VARIANT *v)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceActivate(IOleInPlaceSite *iface)
static HRESULT WINAPI ITextRange_fnSetEnd(ITextRange *me, LONG value)
static HRESULT WINAPI ITextDocument2Old_fnSetDefaultTabStop(ITextDocument2Old *iface, float Value)
static HRESULT WINAPI TextPara_GetTab(ITextPara *iface, LONG iTab, FLOAT *ptbPos, LONG *ptbAlign, LONG *ptbLeader)
static HRESULT WINAPI ITextSelection_fnIsEqual(ITextSelection *me, ITextRange *range, LONG *ret)
static ULONG WINAPI IRichEditOle_fnRelease(IRichEditOle *iface)
static HRESULT textrange_expand(ITextRange *range, LONG unit, LONG *delta)
static ITypeInfo * typeinfos[LAST_tid]
static HRESULT WINAPI ITextRange_fnGetDuplicate(ITextRange *me, ITextRange **ppRange)
static HRESULT WINAPI ITextRange_fnQueryInterface(ITextRange *me, REFIID riid, void **ppvObj)
static HRESULT WINAPI ITextSelection_fnGetIDsOfNames(ITextSelection *me, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI TextFont_SetStrikeThrough(ITextFont *iface, LONG value)
static HRESULT WINAPI TextFont_GetEmboss(ITextFont *iface, LONG *value)
static const IOleClientSiteVtbl ocst
static HRESULT WINAPI ITextRange_fnSetIndex(ITextRange *me, LONG unit, LONG index, LONG extend)
static ITextParaImpl * impl_from_ITextPara(ITextPara *iface)
static HRESULT WINAPI TextFont_GetItalic(ITextFont *iface, LONG *value)
static HRESULT WINAPI ITextRange_fnGetIndex(ITextRange *me, LONG unit, LONG *index)
static HRESULT WINAPI TextPara_SetLineSpacing(ITextPara *iface, LONG LineSpacingRule, FLOAT LineSpacing)
static HRESULT textrange_move(ITextRange *range, ME_TextEditor *editor, LONG unit, LONG count, LONG *delta)
static ITextRangeImpl * impl_from_ITextRange(ITextRange *iface)
static HRESULT WINAPI TextPara_GetDuplicate(ITextPara *iface, ITextPara **ret)
static HRESULT textrange_setstart(const struct text_services *services, LONG value, LONG *start, LONG *end)
void ME_ReleaseStyle(ME_Style *item) DECLSPEC_HIDDEN
void cursor_from_char_ofs(ME_TextEditor *editor, int char_ofs, ME_Cursor *cursor) DECLSPEC_HIDDEN
ME_Style * style_get_insert_style(ME_TextEditor *editor, ME_Cursor *cursor) DECLSPEC_HIDDEN
ME_Paragraph * para_next(ME_Paragraph *para) DECLSPEC_HIDDEN
void ME_CommitUndo(ME_TextEditor *editor) DECLSPEC_HIDDEN
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now) DECLSPEC_HIDDEN
#define ITextHost2_TxGetWindow(This, a)
void ME_GetCharFormat(ME_TextEditor *editor, const ME_Cursor *from, const ME_Cursor *to, CHARFORMAT2W *pFmt) DECLSPEC_HIDDEN
void ME_SetCharFormat(ME_TextEditor *editor, ME_Cursor *start, ME_Cursor *end, CHARFORMAT2W *pFmt) DECLSPEC_HIDDEN
void scroll_abs(ME_TextEditor *editor, int x, int y, BOOL notify) DECLSPEC_HIDDEN
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei count
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLuint GLsizei GLsizei * length
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define InterlockedCompareExchangePointer
#define memcpy(s1, s2, n)
static DWORD DWORD void LPSTR DWORD cch
static const char * debugstr_variant(const VARIANT *var)
static IHTMLWindow2 * window
static IActiveScriptSite * site
static VARIANTARG static DISPID
#define set_selection(hctl, start, end)
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define LOCALE_SYSTEM_DEFAULT
interface IStorage * LPSTORAGE
interface IDataObject * LPDATAOBJECT
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
const GUID IID_IOleInPlaceSite
const GUID IID_IOleWindow
const GUID IID_IOleClientSite
const GUID IID_IDataObject
png_const_structrp png_const_inforp int * unit
_Out_opt_ int _Out_opt_ int * cy
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
#define IsEqualGUID(rguid1, rguid2)
#define IsEqualIID(riid1, riid2)
#define CFE_AUTOBACKCOLOR
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
__WINE_SERVER_LIST_INLINE unsigned int list_count(const struct list *list)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
IOleClientSite IOleClientSite_iface
IOleInPlaceSite IOleInPlaceSite_iface
textfont_prop_val props[FONT_PROPID_LAST]
ITextFont ITextFont_iface
ITextPara ITextPara_iface
struct text_services * reole
ITextSelection ITextSelection_iface
struct text_services * services
ITextDocument2Old ITextDocument2Old_iface
IRichEditOle IRichEditOle_iface
EXTERN_C const IID IID_ITextServices
EXTERN_C const IID IID_ITextHost
EXTERN_C const IID IID_ITextHost2
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define STG_E_INVALIDPARAMETER
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
UINT WINAPI GetEnhMetaFileHeader(_In_ HENHMETAFILE hemf, _In_ UINT nSize, _Out_writes_bytes_opt_(nSize) LPENHMETAHEADER lpEnhMetaHeader)
BOOL WINAPI DeleteDC(_In_ HDC)
BOOL WINAPI PlayEnhMetaFile(_In_ HDC, _In_ HENHMETAFILE, _In_ LPCRECT)
DWORD WINAPI GetSysColor(_In_ int)
_Must_inspect_result_ _In_ ULONG Flags