43DEFINE_GUID(LIBID_tom, 0x8cc497c9, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
44DEFINE_GUID(
IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5);
45DEFINE_GUID(
IID_ITextHost, 0x13e670f4,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
46DEFINE_GUID(
IID_ITextHost2, 0x13e670f5,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
47DEFINE_GUID(IID_ITextDocument, 0x8cc497c0, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
48DEFINE_GUID(IID_ITextDocument2Old, 0x01c25500, 0x4268, 0x11d1, 0x88, 0x3a, 0x3c, 0x8b, 0x00, 0xc1, 0x00, 0x00);
49DEFINE_GUID(IID_ITextRange, 0x8cc497c2, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
50DEFINE_GUID(IID_ITextSelection, 0x8cc497c1, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
51DEFINE_GUID(IID_ITextFont, 0x8cc497c3, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
52DEFINE_GUID(IID_ITextPara, 0x8cc497c4, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
84 ERR(
"LoadRegTypeLib failed: %08lx\n",
hr);
128 ITypeInfo_Release(ti);
136DEFINE_GUID(IID_Igetrichole, 0xe3ce5c7a, 0x8247, 0x4622, 0x81, 0xad, 0x11, 0x81, 0x02, 0xaa, 0x01, 0x30);
315 FIXME(
"unknown update op, %d\n",
op);
353 FIXME(
"unhandled font property %d\n", propid);
393 FIXME(
"unhandled font property %d\n", propid);
401 return value * 72.0 / 1440;
406 return value * 1440 / 72.0;
476 FIXME(
"unhandled font property %d\n", propid);
486 ITextRange_QueryInterface(
range, &IID_Igetrichole, (
void**)&
services);
498#define CHARFORMAT_SET_B_FIELD(mask, value) \
499 if (hr == S_OK && value != tomUndefined) { \
500 fmt.dwMask |= CFM_##mask; \
501 if (value == tomTrue) fmt.dwEffects |= CFE_##mask; \
564#undef CHARFORMAT_SET_B_FIELD
594 hr = ITextFont_GetKerning(
font, &
f);
613 hr = ITextFont_GetPosition(
font, &
f);
619 hr = ITextFont_GetSize(
font, &
f);
625 hr = ITextFont_GetSpacing(
font, &
f);
663 if (!
font->range ||
font->get_cache_enabled) {
673 ITextRange_GetStart(
font->range, &
start);
674 ITextRange_GetEnd(
font->range, &
end);
731 if (!
font->range ||
font->set_cache_enabled) {
800 FIXME(
"unhandled font property %d\n", propid);
804 ITextRange_GetStart(
font->range, &
start);
805 ITextRange_GetEnd(
font->range, &
end);
888 LONG expand_start, expand_end;
894 ITextRange_GetStoryLength(
range, &expand_end);
897 FIXME(
"unit %ld is not supported\n",
unit);
906 *delta = expand_end - expand_start - (
end -
start);
909 ITextRange_SetStart(
range, expand_start);
910 ITextRange_SetEnd(
range, expand_end);
919 return IUnknown_QueryInterface(
services->outer_unk,
riid, ppvObj );
926 return IUnknown_AddRef(
services->outer_unk );
933 return IUnknown_Release(
services->outer_unk );
977 *ppvObj = &
This->IOleInPlaceSite_iface;
980 IOleClientSite_AddRef(me);
1004 if (
This->child.reole) {
1016 if (!
This->child.reole)
1019 FIXME(
"stub %p\n", iface);
1027 if (!
This->child.reole)
1030 FIXME(
"stub %p\n", iface);
1038 if (!
This->child.reole)
1041 FIXME(
"stub %p\n", iface);
1048 if (!
This->child.reole)
1051 FIXME(
"stub %p\n", iface);
1058 if (!
This->child.reole)
1061 FIXME(
"stub %p\n", iface);
1068 if (!
This->child.reole)
1071 FIXME(
"stub %p\n", iface);
1075static const IOleClientSiteVtbl
ocst = {
1091 return IOleClientSite_QueryInterface(&
This->IOleClientSite_iface,
riid, ppvObj);
1097 return IOleClientSite_AddRef(&
This->IOleClientSite_iface);
1103 return IOleClientSite_Release(&
This->IOleClientSite_iface);
1112 if (!
This->child.reole)
1117 if (!
This->child.reole->editor->have_texthost2)
return E_NOTIMPL;
1124 FIXME(
"not implemented: (%p)->(%d)\n",
This, fEnterMode);
1151 LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
1154 FIXME(
"not implemented: (%p)->(%p %p %p %p %p)\n",
This, ppFrame, ppDoc, lprcPosRect, lprcClipRect, lpFrameInfo);
1168 FIXME(
"not implemented: (%p)->(%d)\n",
This, fUndoable);
1196 FIXME(
"not implemented: (%p)->(%p)\n",
This, lprcPosRect);
1228 clientSite->
ref = 1;
1265 nChars = nTo - nFrom;
1292 if (!lpreobject || !lpreobject->
cbStruct)
1295 if (iob == REO_IOB_USE_CP)
1299 TRACE(
"character offset: %ld\n", lpreobject->
cp);
1304 reobj =
cursor.run->reobj;
1306 else if (iob == REO_IOB_SELECTION)
1311 if (!
from->run->reobj)
1314 reobj =
from->run->reobj;
1318 if (iob < 0 || iob >= IRichEditOle_GetObjectCount( iface ))
1407 FIXME(
"stub %p %s %s\n",
services, lpstrContainerApp, lpstrContainerObj);
1453 ITextRange_AddRef(me);
1458 *ppvObj =
This->child.reole;
1479 if (
This->child.reole)
1507 ITypeInfo_AddRef(*ppTInfo);
1518 TRACE(
"(%p)->(%s, %p, %u, %ld, %p)\n",
This,
debugstr_guid(
riid), rgszNames, cNames,
lcid,
1523 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
1529 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
1536 TRACE(
"(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid),
1537 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1541 hr = ITypeInfo_Invoke(ti, me, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1555 if (!
This->child.reole)
1591 if (!
This->child.reole)
1619 if (len < This->
end -
This->start)
1645 if (!
This->child.reole)
1662 if (!
This->child.reole)
1676 if (!
This->child.reole)
1691 if (!
This->child.reole)
1703 if (!
This->child.reole)
1715 if (!
This->child.reole)
1751 if (!
This->child.reole)
1763 if (!
This->child.reole)
1796 if (!
This->child.reole)
1808 if (!
This->child.reole)
1826 if (!
This->child.reole)
1839 if (!
This->child.reole)
1852 FIXME(
"(%p)->(%p): stub\n",
This, para);
1854 if (!
This->child.reole)
1866 if (!
This->child.reole)
1878 if (!
This->child.reole)
1906 if (!
This->child.reole)
1918 if (!
This->child.reole)
1930 if (!
This->child.reole)
1943 if (!
This->child.reole)
1953 *cp1 =
max(*cp1, 0);
1954 *cp2 =
max(*cp2, 0);
1964 *cp1 = *cp2 =
len - 1;
1971 TRACE(
"(%p)->(%ld %ld)\n",
This, anchor, active);
1973 if (!
This->child.reole)
1977 if (anchor ==
This->start && active ==
This->end)
1980 This->start = anchor;
2009 if (!
This->child.reole)
2024 if (!
This->child.reole)
2054 if (!
This->child.reole)
2069 if (!
This->child.reole)
2102 FIXME(
"unit %ld is not supported\n",
unit);
2115 if (!
This->child.reole)
2124 LONG old_start, old_end, new_end;
2127 ITextRange_GetStart(
range, &old_start);
2128 ITextRange_GetEnd(
range, &old_end);
2141 new_end = old_end + moved;
2143 else if (extend ==
tomMove && old_start != old_end)
2146 ITextRange_SetEnd(
range, new_end);
2148 ITextRange_SetStart(
range, new_end);
2155 FIXME(
"unit %ld is not supported\n",
unit);
2168 if (!
This->child.reole)
2176 LONG old_start, old_end, new_start, new_end;
2188 ITextRange_GetStart(
range, &old_start);
2189 ITextRange_GetEnd(
range, &old_end);
2200 if (old_start != old_end)
2207 if (old_start != old_end)
2213 new_end = old_end + moved;
2214 new_start = new_end;
2215 if (old_start != old_end)
2220 new_start = old_start + moved;
2221 new_end = new_start;
2222 if (old_start != old_end)
2225 if (delta) *delta = moved;
2229 FIXME(
"unit %ld is not supported\n",
unit);
2234 ITextRange_SetStart(
range, new_start);
2235 ITextRange_SetEnd(
range, new_end);
2246 if (!
This->child.reole)
2254 LONG old_start, old_end, new_start, new_end;
2264 ITextRange_GetStart(
range, &old_start);
2265 ITextRange_GetEnd(
range, &old_end);
2275 new_start = old_start + moved;
2277 if (new_end < new_start)
2278 new_end = new_start;
2284 FIXME(
"unit %ld is not supported\n",
unit);
2287 if (new_start == old_start)
2289 ITextRange_SetStart(
range, new_start);
2290 ITextRange_SetEnd(
range, new_end);
2302 if (!
This->child.reole)
2310 LONG old_start, old_end, new_start, new_end;
2320 ITextRange_GetStart(
range, &old_start);
2321 ITextRange_GetEnd(
range, &old_end);
2331 new_start = old_start;
2332 new_end = old_end + moved;
2333 if (new_end < new_start)
2334 new_start = new_end;
2341 new_start = new_end = 0;
2344 new_start = old_start;
2345 ITextRange_GetStoryLength(
range, &new_end);
2349 if (new_end < old_end)
2351 else if (new_end == old_end)
2358 FIXME(
"unit %ld is not supported\n",
unit);
2361 if (new_end == old_end)
2363 ITextRange_SetStart(
range, new_start);
2364 ITextRange_SetEnd(
range, new_end);
2376 if (!
This->child.reole)
2389 if (!
This->child.reole)
2402 if (!
This->child.reole)
2415 if (!
This->child.reole)
2428 if (!
This->child.reole)
2441 if (!
This->child.reole)
2454 if (!
This->child.reole)
2467 if (!
This->child.reole)
2480 if (!
This->child.reole)
2493 if (!
This->child.reole)
2505 if (!
This->child.reole)
2526 ITextRange_SetEnd(
range, prev_end );
2542 if (!
This->child.reole)
2554 if (!
This->child.reole)
2566 if (!
This->child.reole)
2578 if (!
This->child.reole)
2590 if (!
This->child.reole)
2602 if (!
This->child.reole)
2614 if (!
This->child.reole)
2627 if (!
This->child.reole)
2642 if (!
This->child.reole)
2658 FIXME(
"bStart value %ld not handled\n",
value);
2671 if (!
This->child.reole)
2677static const ITextRangeVtbl
trvt = {
2750 ITextFont_AddRef(iface);
2776 ITextRange_Release(
This->range);
2802 ITypeInfo_AddRef(*ppTInfo);
2814 rgszNames, cNames,
lcid, rgDispId);
2818 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
2828 DISPPARAMS *pDispParams,
2830 EXCEPINFO *pExcepInfo,
2837 TRACE(
"(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid),
2838 lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
2842 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
2865 FIXME(
"(%p)->(%p): stub\n",
This, pFont);
2929 FIXME(
"font property %d not handled\n",
id);
2971 FIXME(
"font property %d not handled\n",
id);
3017 FIXME(
"reset mode %ld not supported\n",
value);
3044 FIXME(
"reset mode %ld not supported\n",
value);
3509 ITextRange_AddRef(
range);
3517 *
ret = &
font->ITextFont_iface;
3533 ITextPara_AddRef(iface);
3558 ITextRange_Release(
This->range);
3583 ITypeInfo_AddRef(*ppTInfo);
3595 cNames,
lcid, rgDispId);
3599 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
3609 DISPPARAMS *pDispParams,
3611 EXCEPINFO *pExcepInfo,
3618 TRACE(
"(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
3620 pExcepInfo, puArgErr);
3624 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
3876 FIXME(
"(%p)->(%.2f %.2f %.2f)\n",
This, StartIndent, LeftIndent, RightIndent);
3883 FIXME(
"(%p)->(%ld %.2f)\n",
This, LineSpacingRule, LineSpacing);
3939 FIXME(
"(%p)->(%.2f %ld %ld)\n",
This, tbPos, tbAlign, tbLeader);
3960 FIXME(
"(%p)->(%ld %p %p %p)\n",
This, iTab, ptbPos, ptbAlign, ptbLeader);
4027 para =
malloc(
sizeof(*para));
4034 ITextRange_AddRef(
range);
4051 return IUnknown_AddRef(
services->outer_unk );
4057 return IUnknown_Release(
services->outer_unk );
4079 ITypeInfo_AddRef(*ppTInfo);
4092 rgszNames, cNames,
lcid, rgDispId);
4096 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
4102 DISPPARAMS *pDispParams,
VARIANT *pVarResult,
4103 EXCEPINFO *pExcepInfo,
UINT *puArgErr)
4109 TRACE(
"(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n",
services, dispIdMember,
4111 pExcepInfo, puArgErr);
4115 hr = ITypeInfo_Invoke(ti, iface, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4222 if (pCount) *pCount =
services->editor->freeze_count;
4233 if (pCount) *pCount =
services->editor->freeze_count;
4254 LONG actual_undo_count;
4256 if (prop) *prop = 0;
4264 if (
Count > 0)
break;
4280 for (actual_undo_count = 0; actual_undo_count <
Count; actual_undo_count++)
4285 if (prop) *prop = actual_undo_count;
4292 LONG actual_redo_count;
4294 if (prop) *prop = 0;
4296 for (actual_redo_count = 0; actual_redo_count <
Count; actual_redo_count++)
4301 if (prop) *prop = actual_redo_count;
4412 FIXME(
"(%p)->(%ld, %ld, %ld, %ld, %ld, %p, %p, %p): stub\n",
services,
cp, charrep,
options, current_charrep,
4413 current_fontsize, bstr, pitch_family, new_fontsize);
4441 FIXME(
"(%p)->(%ld, %p, %p, %p, %p): stub\n",
services,
type,
left,
top,
right,
bottom);
4593 ITextSelection_AddRef(me);
4598 *ppvObj =
This->services;
4638 ITypeInfo_AddRef(*ppTInfo);
4649 TRACE(
"(%p)->(%s, %p, %u, %ld, %p)\n",
This,
debugstr_guid(
riid), rgszNames, cNames,
lcid,
4654 hr = ITypeInfo_GetIDsOfNames(ti, rgszNames, cNames, rgDispId);
4664 DISPPARAMS *pDispParams,
4666 EXCEPINFO *pExcepInfo,
4673 TRACE(
"(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n",
This, dispIdMember,
debugstr_guid(
riid),
lcid,
4674 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4678 hr = ITypeInfo_Invoke(ti, me, dispIdMember,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4692 if (!
This->services)
4727 if (!
This->services)
4730 editor =
This->services->editor;
4748 if (!
This->services)
4764 if (!
This->services)
4777 if (!
This->services)
4783 ITextSelection_GetStart(me, &
start);
4784 ITextSelection_GetEnd(me, &
end);
4794 if (!
This->services)
4806 if (!
This->services)
4809 FIXME(
"not implemented\n");
4820 if (!
This->services)
4837 if (!
This->services)
4855 if (!
This->services)
4872 if (!
This->services)
4891 if (!
This->services)
4897 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4899 ITextRange_Release(
range);
4913 if (!
This->services)
4916 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4918 ITextRange_Release(
range);
4930 if (!
This->services)
4936 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
4938 ITextRange_Release(
range);
4946 FIXME(
"(%p)->(%p): stub\n",
This, para);
4948 if (!
This->services)
4951 FIXME(
"not implemented\n");
4961 if (!
This->services)
4973 if (!
This->services)
4991 if (!
This->services)
5009 if (!
This->services)
5012 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5014 ITextRange_Release(
range);
5024 if (!
This->services)
5037 if (!
This->services)
5047 FIXME(
"(%p)->(%ld %ld): stub\n",
This, anchor, active);
5049 if (!
This->services)
5066 if (!
This->services)
5072 ITextRange_QueryInterface(
range, &IID_ITextSelection, (
void**)&
selection);
5077 ITextSelection_GetStart(me, &
start);
5078 ITextSelection_GetEnd(me, &
end);
5088 if (!
This->services)
5105 if (!
This->services)
5111 ITextRange_QueryInterface(
range, &IID_ITextSelection, (
void**)&
selection);
5116 ITextSelection_GetStart(me, &
start);
5117 ITextSelection_GetEnd(me, &
end);
5127 if (!
This->services)
5143 if (!
This->services)
5146 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5148 ITextRange_Release(
range);
5161 if (!
This->services)
5164 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5166 ITextRange_Release(
range);
5178 if (!
This->services)
5181 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5183 ITextRange_Release(
range);
5196 if (!
This->services)
5199 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5201 ITextRange_Release(
range);
5214 if (!
This->services)
5217 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5219 ITextRange_Release(
range);
5230 if (!
This->services)
5243 if (!
This->services)
5256 if (!
This->services)
5269 if (!
This->services)
5282 if (!
This->services)
5295 if (!
This->services)
5308 if (!
This->services)
5311 FIXME(
"not implemented\n");
5322 if (!
This->services)
5335 if (!
This->services)
5348 if (!
This->services)
5362 if (!
This->services)
5365 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5367 ITextRange_Release(
range);
5379 if (!
This->services)
5382 ITextSelection_QueryInterface(me, &IID_ITextRange, (
void**)&
range);
5384 ITextRange_Release(
range);
5394 if (!
This->services)
5407 if (!
This->services)
5419 if (!
This->services)
5431 if (!
This->services)
5443 if (!
This->services)
5456 if (!
This->services)
5468 if (!
This->services)
5480 if (!
This->services)
5493 if (!
This->services)
5505 if (!
This->services)
5517 if (!
This->services)
5530 if (!
This->services)
5543 if (!
This->services)
5556 if (!
This->services)
5569 if (!
This->services)
5580 FIXME(
"(%p)->(%ld %ld %p): stub\n",
This,
unit, extend, delta);
5582 if (!
This->services)
5593 FIXME(
"(%p)->(%ld %ld %p): stub\n",
This,
unit, extend, delta);
5595 if (!
This->services)
5607 if (!
This->services)
5613static const ITextSelectionVtbl
tsvt = {
5719 if (run->
reobj->obj.sizel.cx != 0 || run->
reobj->obj.sizel.cy != 0)
5722 if (
c->editor->nZoomNumerator != 0)
5724 pSize->
cx =
MulDiv(pSize->
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5725 pSize->
cy =
MulDiv(pSize->
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5730 if (!run->
reobj->obj.poleobj)
5732 pSize->
cx = pSize->
cy = 0;
5738 FIXME(
"Query Interface IID_IDataObject failed!\n");
5739 pSize->
cx = pSize->
cy = 0;
5744 fmt.dwAspect = DVASPECT_CONTENT;
5746 fmt.tymed = TYMED_GDI;
5747 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5750 fmt.tymed = TYMED_ENHMF;
5751 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5753 FIXME(
"unsupported format\n");
5754 pSize->
cx = pSize->
cy = 0;
5755 IDataObject_Release(ido);
5759 IDataObject_Release(ido);
5764 GetObjectW(stgm.hBitmap,
sizeof(dibsect), &dibsect);
5774 FIXME(
"Unsupported tymed %ld\n", stgm.tymed);
5778 if (
c->editor->nZoomNumerator != 0)
5780 pSize->
cx =
MulDiv(pSize->
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5781 pSize->
cy =
MulDiv(pSize->
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5802 if (!run->
reobj->obj.poleobj)
return;
5810 if (
c->editor->nZoomNumerator != 0)
5812 sz.
cx =
MulDiv(sz.
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5813 sz.
cy =
MulDiv(sz.
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5821 hr = IViewObject_Draw(ivo, DVASPECT_CONTENT, -1, 0, 0, 0,
c->hDC, &bounds,
NULL,
NULL, 0);
5824 WARN(
"failed to draw object: %#08lx\n",
hr);
5827 IViewObject_Release(ivo);
5833 FIXME(
"Couldn't get interface\n");
5836 has_size = run->
reobj->obj.sizel.cx != 0 || run->
reobj->obj.sizel.cy != 0;
5839 fmt.dwAspect = DVASPECT_CONTENT;
5841 fmt.tymed = TYMED_GDI;
5842 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5845 fmt.tymed = TYMED_ENHMF;
5846 if (IDataObject_GetData(ido, &
fmt, &stgm) !=
S_OK)
5848 FIXME(
"Couldn't get storage medium\n");
5849 IDataObject_Release(ido);
5853 IDataObject_Release(ido);
5858 GetObjectW(stgm.hBitmap,
sizeof(dibsect), &dibsect);
5868 if (
c->editor->nZoomNumerator != 0)
5870 sz.
cx =
MulDiv(sz.
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5871 sz.
cy =
MulDiv(sz.
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5888 if (
c->editor->nZoomNumerator != 0)
5890 sz.
cx =
MulDiv(sz.
cx,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5891 sz.
cy =
MulDiv(sz.
cy,
c->editor->nZoomNumerator,
c->editor->nZoomDenominator);
5901 FIXME(
"Unsupported tymed %ld\n", stgm.tymed);
5907 if (
selected && !
c->editor->bHideSelection)
5926 if ((
flags & REO_GETOBJ_POLEOBJ) &&
src->poleobj)
5928 dst->poleobj =
src->poleobj;
5929 IOleObject_AddRef(
dst->poleobj);
5931 if ((
flags & REO_GETOBJ_PSTG) &&
src->pstg)
5934 IStorage_AddRef(
dst->pstg);
5936 if ((
flags & REO_GETOBJ_POLESITE) &&
src->polesite)
5938 dst->polesite =
src->polesite;
5939 IOleClientSite_AddRef(
dst->polesite);
5951 ITextSelection_Release( &
services->text_selection->ITextSelection_iface );
small capitals from c petite p scientific f SUBSCRIPT
#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)
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)
HRESULT editor_insert_oleobj(ME_TextEditor *editor, const REOBJECT *reo)
void cursor_coords(ME_TextEditor *editor, ME_Cursor *cursor, int *x, int *y, int *height)
int ME_GetSelectionOfs(ME_TextEditor *editor, LONG *from, LONG *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_RewrapRepaint(ME_TextEditor *editor)
void editor_disable_undo(ME_TextEditor *editor)
ME_Style * style_get_insert_style(ME_TextEditor *editor, ME_Cursor *cursor)
void ME_SetCharFormat(ME_TextEditor *editor, ME_Cursor *start, ME_Cursor *end, CHARFORMAT2W *pFmt)
void ME_ReleaseStyle(ME_Style *item)
int run_char_ofs(ME_Run *run, int ofs)
void ME_UpdateScrollBar(ME_TextEditor *editor)
void ME_CommitUndo(ME_TextEditor *editor)
BOOL ME_Undo(ME_TextEditor *editor)
BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor)
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
void editor_enable_undo(ME_TextEditor *editor)
void ME_GetCharFormat(ME_TextEditor *editor, const ME_Cursor *from, const ME_Cursor *to, CHARFORMAT2W *pFmt)
BOOL ME_Redo(ME_TextEditor *editor)
#define ITextHost2_TxGetWindow(This, a)
void cursor_from_char_ofs(ME_TextEditor *editor, int char_ofs, ME_Cursor *cursor)
void scroll_abs(ME_TextEditor *editor, int x, int y, BOOL notify)
ME_Paragraph * para_next(ME_Paragraph *para)
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_IViewObject
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
WINBASEAPI _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