ReactOS  0.4.13-dev-259-g5ca9c9c
richole.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "ole2.h"
#include "richole.h"
#include "editor.h"
#include "richedit.h"
#include "tom.h"
#include "wine/debug.h"
#include "initguid.h"
Include dependency graph for richole.c:

Go to the source code of this file.

Classes

union  textfont_prop_val
 
struct  IRichEditOleImpl
 
struct  reole_child
 
struct  ITextRangeImpl
 
struct  ITextSelectionImpl
 
struct  ITextFontImpl
 
struct  ITextParaImpl
 
struct  IOleClientSiteImpl
 

Macros

#define NONAMELESSUNION
 
#define COBJMACROS
 
#define CHARFORMAT_SET_B_FIELD(mask, value)
 

Typedefs

typedef struct ITextSelectionImpl ITextSelectionImpl
 
typedef struct IOleClientSiteImpl IOleClientSiteImpl
 
typedef struct ITextRangeImpl ITextRangeImpl
 
typedef struct IRichEditOleImpl IRichEditOleImpl
 
typedef struct ITextFontImpl ITextFontImpl
 
typedef struct ITextParaImpl ITextParaImpl
 

Enumerations

enum  tid_t {
  LAST_tid, LAST_tid, Database_tid, Installer_tid,
  Record_tid, Session_tid, StringList_tid, SummaryInfo_tid,
  View_tid, LAST_tid, NULL_tid, IXMLDOMAttribute_tid,
  IXMLDOMCDATASection_tid, IXMLDOMComment_tid, IXMLDOMDocument_tid, IXMLDOMDocument2_tid,
  IXMLDOMDocument3_tid, IXMLDOMDocumentFragment_tid, IXMLDOMDocumentType_tid, IXMLDOMElement_tid,
  IXMLDOMEntityReference_tid, IXMLDOMImplementation_tid, IXMLDOMNamedNodeMap_tid, IXMLDOMNode_tid,
  IXMLDOMNodeList_tid, IXMLDOMParseError2_tid, IXMLDOMProcessingInstruction_tid, IXMLDOMSchemaCollection_tid,
  IXMLDOMSchemaCollection2_tid, IXMLDOMSelection_tid, IXMLDOMText_tid, IXMLElement_tid,
  IXMLDocument_tid, IXMLHTTPRequest_tid, IXSLProcessor_tid, IXSLTemplate_tid,
  IVBSAXAttributes_tid, IVBSAXContentHandler_tid, IVBSAXDeclHandler_tid, IVBSAXDTDHandler_tid,
  IVBSAXEntityResolver_tid, IVBSAXErrorHandler_tid, IVBSAXLexicalHandler_tid, IVBSAXLocator_tid,
  IVBSAXXMLFilter_tid, IVBSAXXMLReader_tid, IMXAttributes_tid, IMXReaderControl_tid,
  IMXWriter_tid, IVBMXNamespaceManager_tid, IServerXMLHTTPRequest_tid, LAST_tid,
  NULL_tid, ITextDocument_tid, ITextRange_tid, ITextSelection_tid,
  ITextFont_tid, ITextPara_tid, LAST_tid, NULL_tid,
  IDictionary_tid, IDrive_tid, IDriveCollection_tid, IFile_tid,
  IFileCollection_tid, IFileSystem3_tid, IFolder_tid, IFolderCollection_tid,
  ITextStream_tid, LAST_tid, LAST_tid, NULL_tid,
  IWshCollection_tid, IWshEnvironment_tid, IWshExec_tid, IWshShell3_tid,
  IWshShortcut_tid, LAST_tid
}
 
enum  textfont_prop_id {
  FONT_ALLCAPS = 0, FONT_ANIMATION, FONT_BACKCOLOR, FONT_BOLD,
  FONT_EMBOSS, FONT_FORECOLOR, FONT_HIDDEN, FONT_ENGRAVE,
  FONT_ITALIC, FONT_KERNING, FONT_LANGID, FONT_NAME,
  FONT_OUTLINE, FONT_POSITION, FONT_PROTECTED, FONT_SHADOW,
  FONT_SIZE, FONT_SMALLCAPS, FONT_SPACING, FONT_STRIKETHROUGH,
  FONT_SUBSCRIPT, FONT_SUPERSCRIPT, FONT_UNDERLINE, FONT_WEIGHT,
  FONT_PROPID_LAST, FONT_PROPID_FIRST = FONT_ALLCAPS
}
 
enum  range_update_op { RANGE_UPDATE_DELETE }
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (richedit)
 
 DEFINE_GUID (LIBID_tom, 0x8cc497c9, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
 DEFINE_GUID (IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5)
 
 DEFINE_GUID (IID_ITextHost, 0x13e670f4, 0x1a5a, 0x11cf, 0xab, 0xeb, 0x00, 0xaa, 0x00, 0xb6, 0x5e, 0xa1)
 
 DEFINE_GUID (IID_ITextHost2, 0x13e670f5, 0x1a5a, 0x11cf, 0xab, 0xeb, 0x00, 0xaa, 0x00, 0xb6, 0x5e, 0xa1)
 
 DEFINE_GUID (IID_ITextDocument, 0x8cc497c0, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
 DEFINE_GUID (IID_ITextDocument2Old, 0x01c25500, 0x4268, 0x11d1, 0x88, 0x3a, 0x3c, 0x8b, 0x00, 0xc1, 0x00, 0x00)
 
 DEFINE_GUID (IID_ITextRange, 0x8cc497c2, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
 DEFINE_GUID (IID_ITextSelection, 0x8cc497c1, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
 DEFINE_GUID (IID_ITextFont, 0x8cc497c3, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
 DEFINE_GUID (IID_ITextPara, 0x8cc497c4, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d)
 
static HRESULT load_typelib (void)
 
void release_typelib (void)
 
static HRESULT get_typeinfo (enum tid_t tid, ITypeInfo **typeinfo)
 
 DEFINE_GUID (IID_Igetrichole, 0xe3ce5c7a, 0x8247, 0x4622, 0x81, 0xad, 0x11, 0x81, 0x02, 0xaa, 0x01, 0x30)
 
static IRichEditOleImplimpl_from_IRichEditOle (IRichEditOle *iface)
 
static IRichEditOleImplimpl_from_ITextDocument2Old (ITextDocument2Old *iface)
 
static IRichEditOleImplimpl_from_IUnknown (IUnknown *iface)
 
static IOleClientSiteImplimpl_from_IOleInPlaceSite (IOleInPlaceSite *iface)
 
static ITextRangeImplimpl_from_ITextRange (ITextRange *iface)
 
static ITextSelectionImplimpl_from_ITextSelection (ITextSelection *iface)
 
static ITextFontImplimpl_from_ITextFont (ITextFont *iface)
 
static ITextParaImplimpl_from_ITextPara (ITextPara *iface)
 
static HRESULT create_textfont (ITextRange *, const ITextFontImpl *, ITextFont **)
 
static HRESULT create_textpara (ITextRange *, ITextPara **)
 
static ITextSelectionImplCreateTextSelection (IRichEditOleImpl *)
 
static HRESULT textrange_get_storylength (ME_TextEditor *editor, LONG *length)
 
static void textranges_update_ranges (IRichEditOleImpl *reole, LONG start, LONG end, enum range_update_op op)
 
static BOOL is_equal_textfont_prop_value (enum textfont_prop_id propid, textfont_prop_val *left, textfont_prop_val *right)
 
static void init_textfont_prop_value (enum textfont_prop_id propid, textfont_prop_val *v)
 
static FLOAT twips_to_points (LONG value)
 
static FLOAT points_to_twips (FLOAT value)
 
static HRESULT get_textfont_prop_for_pos (const IRichEditOleImpl *reole, int pos, enum textfont_prop_id propid, textfont_prop_val *value)
 
static const IRichEditOleImplget_range_reole (ITextRange *range)
 
static void textrange_set_font (ITextRange *range, ITextFont *font)
 
static HRESULT get_textfont_prop (const ITextFontImpl *font, enum textfont_prop_id propid, textfont_prop_val *value)
 
static HRESULT get_textfont_propf (const ITextFontImpl *font, enum textfont_prop_id propid, FLOAT *value)
 
static HRESULT get_textfont_propl (const ITextFontImpl *font, enum textfont_prop_id propid, LONG *value)
 
static HRESULT set_textfont_prop (ITextFontImpl *font, enum textfont_prop_id propid, const textfont_prop_val *value)
 
static HRESULT set_textfont_propl (ITextFontImpl *font, enum textfont_prop_id propid, LONG value)
 
static HRESULT set_textfont_propf (ITextFontImpl *font, enum textfont_prop_id propid, FLOAT value)
 
static HRESULT set_textfont_propd (ITextFontImpl *font, enum textfont_prop_id propid, LONG value)
 
static HRESULT textfont_getname_from_range (ITextRange *range, BSTR *ret)
 
static void textfont_cache_range_props (ITextFontImpl *font)
 
static HRESULT textrange_expand (ITextRange *range, LONG unit, LONG *delta)
 
static HRESULT WINAPI IRichEditOleImpl_inner_fnQueryInterface (IUnknown *iface, REFIID riid, LPVOID *ppvObj)
 
static ULONG WINAPI IRichEditOleImpl_inner_fnAddRef (IUnknown *iface)
 
static ULONG WINAPI IRichEditOleImpl_inner_fnRelease (IUnknown *iface)
 
static HRESULT WINAPI IRichEditOle_fnQueryInterface (IRichEditOle *me, REFIID riid, LPVOID *ppvObj)
 
static ULONG WINAPI IRichEditOle_fnAddRef (IRichEditOle *me)
 
static ULONG WINAPI IRichEditOle_fnRelease (IRichEditOle *me)
 
static HRESULT WINAPI IRichEditOle_fnActivateAs (IRichEditOle *me, REFCLSID rclsid, REFCLSID rclsidAs)
 
static HRESULT WINAPI IRichEditOle_fnContextSensitiveHelp (IRichEditOle *me, BOOL fEnterMode)
 
static HRESULT WINAPI IRichEditOle_fnConvertObject (IRichEditOle *me, LONG iob, REFCLSID rclsidNew, LPCSTR lpstrUserTypeNew)
 
static IOleClientSiteImplimpl_from_IOleClientSite (IOleClientSite *iface)
 
static HRESULT WINAPI IOleClientSite_fnQueryInterface (IOleClientSite *me, REFIID riid, LPVOID *ppvObj)
 
static ULONG WINAPI IOleClientSite_fnAddRef (IOleClientSite *iface)
 
static ULONG WINAPI IOleClientSite_fnRelease (IOleClientSite *iface)
 
static HRESULT WINAPI IOleClientSite_fnSaveObject (IOleClientSite *iface)
 
static HRESULT WINAPI IOleClientSite_fnGetMoniker (IOleClientSite *iface, DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk)
 
static HRESULT WINAPI IOleClientSite_fnGetContainer (IOleClientSite *iface, IOleContainer **ppContainer)
 
static HRESULT WINAPI IOleClientSite_fnShowObject (IOleClientSite *iface)
 
static HRESULT WINAPI IOleClientSite_fnOnShowWindow (IOleClientSite *iface, BOOL fShow)
 
static HRESULT WINAPI IOleClientSite_fnRequestNewObjectLayout (IOleClientSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnQueryInterface (IOleInPlaceSite *iface, REFIID riid, void **ppvObj)
 
static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnAddRef (IOleInPlaceSite *iface)
 
static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnRelease (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindow (IOleInPlaceSite *iface, HWND *phwnd)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnContextSensitiveHelp (IOleInPlaceSite *iface, BOOL fEnterMode)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnCanInPlaceActivate (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceActivate (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIActivate (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindowContext (IOleInPlaceSite *iface, IOleInPlaceFrame **ppFrame, IOleInPlaceUIWindow **ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnScroll (IOleInPlaceSite *iface, SIZE scrollExtent)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIDeactivate (IOleInPlaceSite *iface, BOOL fUndoable)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceDeactivate (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDiscardUndoState (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDeactivateAndUndo (IOleInPlaceSite *iface)
 
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnPosRectChange (IOleInPlaceSite *iface, LPCRECT lprcPosRect)
 
static HRESULT CreateOleClientSite (IRichEditOleImpl *reOle, IOleClientSite **ret)
 
static HRESULT WINAPI IRichEditOle_fnGetClientSite (IRichEditOle *me, IOleClientSite **clientsite)
 
static HRESULT WINAPI IRichEditOle_fnGetClipboardData (IRichEditOle *me, CHARRANGE *lpchrg, DWORD reco, LPDATAOBJECT *lplpdataobj)
 
static LONG WINAPI IRichEditOle_fnGetLinkCount (IRichEditOle *me)
 
static HRESULT WINAPI IRichEditOle_fnGetObject (IRichEditOle *me, LONG iob, REOBJECT *lpreobject, DWORD dwFlags)
 
static LONG WINAPI IRichEditOle_fnGetObjectCount (IRichEditOle *me)
 
static HRESULT WINAPI IRichEditOle_fnHandsOffStorage (IRichEditOle *me, LONG iob)
 
static HRESULT WINAPI IRichEditOle_fnImportDataObject (IRichEditOle *me, LPDATAOBJECT lpdataobj, CLIPFORMAT cf, HGLOBAL hMetaPict)
 
static HRESULT WINAPI IRichEditOle_fnInPlaceDeactivate (IRichEditOle *me)
 
static HRESULT WINAPI IRichEditOle_fnInsertObject (IRichEditOle *me, REOBJECT *reo)
 
static HRESULT WINAPI IRichEditOle_fnSaveCompleted (IRichEditOle *me, LONG iob, LPSTORAGE lpstg)
 
static HRESULT WINAPI IRichEditOle_fnSetDvaspect (IRichEditOle *me, LONG iob, DWORD dvaspect)
 
static HRESULT WINAPI IRichEditOle_fnSetHostNames (IRichEditOle *me, LPCSTR lpstrContainerApp, LPCSTR lpstrContainerObj)
 
static HRESULT WINAPI IRichEditOle_fnSetLinkAvailable (IRichEditOle *me, LONG iob, BOOL fAvailable)
 
static HRESULT WINAPI ITextRange_fnQueryInterface (ITextRange *me, REFIID riid, void **ppvObj)
 
static ULONG WINAPI ITextRange_fnAddRef (ITextRange *me)
 
static ULONG WINAPI ITextRange_fnRelease (ITextRange *me)
 
static HRESULT WINAPI ITextRange_fnGetTypeInfoCount (ITextRange *me, UINT *pctinfo)
 
static HRESULT WINAPI ITextRange_fnGetTypeInfo (ITextRange *me, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI ITextRange_fnGetIDsOfNames (ITextRange *me, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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 ITextRange_fnGetText (ITextRange *me, BSTR *str)
 
static HRESULT WINAPI ITextRange_fnSetText (ITextRange *me, BSTR str)
 
static HRESULT range_GetChar (ME_TextEditor *editor, ME_Cursor *cursor, LONG *pch)
 
static HRESULT WINAPI ITextRange_fnGetChar (ITextRange *me, LONG *pch)
 
static HRESULT WINAPI ITextRange_fnSetChar (ITextRange *me, LONG ch)
 
static HRESULT CreateITextRange (IRichEditOleImpl *reOle, LONG start, LONG end, ITextRange **ppRange)
 
static HRESULT WINAPI ITextRange_fnGetDuplicate (ITextRange *me, ITextRange **ppRange)
 
static HRESULT WINAPI ITextRange_fnGetFormattedText (ITextRange *me, ITextRange **range)
 
static HRESULT WINAPI ITextRange_fnSetFormattedText (ITextRange *me, ITextRange *range)
 
static HRESULT WINAPI ITextRange_fnGetStart (ITextRange *me, LONG *start)
 
static HRESULT textrange_setstart (const IRichEditOleImpl *reole, LONG value, LONG *start, LONG *end)
 
static HRESULT WINAPI ITextRange_fnSetStart (ITextRange *me, LONG value)
 
static HRESULT WINAPI ITextRange_fnGetEnd (ITextRange *me, LONG *end)
 
static HRESULT textrange_setend (const IRichEditOleImpl *reole, LONG value, LONG *start, LONG *end)
 
static HRESULT WINAPI ITextRange_fnSetEnd (ITextRange *me, LONG value)
 
static HRESULT WINAPI ITextRange_fnGetFont (ITextRange *me, ITextFont **font)
 
static HRESULT WINAPI ITextRange_fnSetFont (ITextRange *me, ITextFont *font)
 
static HRESULT WINAPI ITextRange_fnGetPara (ITextRange *me, ITextPara **para)
 
static HRESULT WINAPI ITextRange_fnSetPara (ITextRange *me, ITextPara *para)
 
static HRESULT WINAPI ITextRange_fnGetStoryLength (ITextRange *me, LONG *length)
 
static HRESULT WINAPI ITextRange_fnGetStoryType (ITextRange *me, LONG *value)
 
static HRESULT range_Collapse (LONG bStart, LONG *start, LONG *end)
 
static HRESULT WINAPI ITextRange_fnCollapse (ITextRange *me, LONG bStart)
 
static HRESULT WINAPI ITextRange_fnExpand (ITextRange *me, LONG unit, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnGetIndex (ITextRange *me, LONG unit, LONG *index)
 
static HRESULT WINAPI ITextRange_fnSetIndex (ITextRange *me, LONG unit, LONG index, LONG extend)
 
static void cp2range (ME_TextEditor *editor, LONG *cp1, LONG *cp2)
 
static HRESULT WINAPI ITextRange_fnSetRange (ITextRange *me, LONG anchor, LONG active)
 
static HRESULT textrange_inrange (LONG start, LONG end, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnInRange (ITextRange *me, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnInStory (ITextRange *me, ITextRange *pRange, LONG *ret)
 
static HRESULT textrange_isequal (LONG start, LONG end, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnIsEqual (ITextRange *me, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnSelect (ITextRange *me)
 
static HRESULT WINAPI ITextRange_fnStartOf (ITextRange *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnEndOf (ITextRange *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMove (ITextRange *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveStart (ITextRange *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT textrange_moveend (ITextRange *range, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveEnd (ITextRange *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveWhile (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveStartWhile (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveEndWhile (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveUntil (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveStartUntil (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnMoveEndUntil (ITextRange *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnFindText (ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextRange_fnFindTextStart (ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextRange_fnFindTextEnd (ITextRange *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextRange_fnDelete (ITextRange *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextRange_fnCut (ITextRange *me, VARIANT *v)
 
static HRESULT WINAPI ITextRange_fnCopy (ITextRange *me, VARIANT *v)
 
static HRESULT WINAPI ITextRange_fnPaste (ITextRange *me, VARIANT *v, LONG format)
 
static HRESULT WINAPI ITextRange_fnCanPaste (ITextRange *me, VARIANT *v, LONG format, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnCanEdit (ITextRange *me, LONG *ret)
 
static HRESULT WINAPI ITextRange_fnChangeCase (ITextRange *me, LONG type)
 
static HRESULT WINAPI ITextRange_fnGetPoint (ITextRange *me, LONG type, LONG *cx, LONG *cy)
 
static HRESULT WINAPI ITextRange_fnSetPoint (ITextRange *me, LONG x, LONG y, LONG type, LONG extend)
 
static HRESULT WINAPI ITextRange_fnScrollIntoView (ITextRange *me, LONG value)
 
static HRESULT WINAPI ITextRange_fnGetEmbeddedObject (ITextRange *me, IUnknown **ppv)
 
static HRESULT WINAPI TextFont_QueryInterface (ITextFont *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI TextFont_AddRef (ITextFont *iface)
 
static ULONG WINAPI TextFont_Release (ITextFont *iface)
 
static HRESULT WINAPI TextFont_GetTypeInfoCount (ITextFont *iface, UINT *pctinfo)
 
static HRESULT WINAPI TextFont_GetTypeInfo (ITextFont *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI TextFont_GetIDsOfNames (ITextFont *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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 WINAPI TextFont_GetDuplicate (ITextFont *iface, ITextFont **ret)
 
static HRESULT WINAPI TextFont_SetDuplicate (ITextFont *iface, ITextFont *pFont)
 
static HRESULT WINAPI TextFont_CanChange (ITextFont *iface, LONG *ret)
 
static HRESULT WINAPI TextFont_IsEqual (ITextFont *iface, ITextFont *font, LONG *ret)
 
static void textfont_reset_to_default (ITextFontImpl *font)
 
static void textfont_reset_to_undefined (ITextFontImpl *font)
 
static void textfont_apply_range_props (ITextFontImpl *font)
 
static HRESULT WINAPI TextFont_Reset (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetStyle (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetStyle (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetAllCaps (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetAllCaps (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetAnimation (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetAnimation (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetBackColor (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetBackColor (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetBold (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetBold (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetEmboss (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetEmboss (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetForeColor (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetForeColor (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetHidden (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetHidden (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetEngrave (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetEngrave (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetItalic (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetItalic (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetKerning (ITextFont *iface, FLOAT *value)
 
static HRESULT WINAPI TextFont_SetKerning (ITextFont *iface, FLOAT value)
 
static HRESULT WINAPI TextFont_GetLanguageID (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetLanguageID (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetName (ITextFont *iface, BSTR *value)
 
static HRESULT WINAPI TextFont_SetName (ITextFont *iface, BSTR value)
 
static HRESULT WINAPI TextFont_GetOutline (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetOutline (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetPosition (ITextFont *iface, FLOAT *value)
 
static HRESULT WINAPI TextFont_SetPosition (ITextFont *iface, FLOAT value)
 
static HRESULT WINAPI TextFont_GetProtected (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetProtected (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetShadow (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetShadow (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetSize (ITextFont *iface, FLOAT *value)
 
static HRESULT WINAPI TextFont_SetSize (ITextFont *iface, FLOAT value)
 
static HRESULT WINAPI TextFont_GetSmallCaps (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetSmallCaps (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetSpacing (ITextFont *iface, FLOAT *value)
 
static HRESULT WINAPI TextFont_SetSpacing (ITextFont *iface, FLOAT value)
 
static HRESULT WINAPI TextFont_GetStrikeThrough (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetStrikeThrough (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetSubscript (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetSubscript (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetSuperscript (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetSuperscript (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetUnderline (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetUnderline (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextFont_GetWeight (ITextFont *iface, LONG *value)
 
static HRESULT WINAPI TextFont_SetWeight (ITextFont *iface, LONG value)
 
static HRESULT WINAPI TextPara_QueryInterface (ITextPara *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI TextPara_AddRef (ITextPara *iface)
 
static ULONG WINAPI TextPara_Release (ITextPara *iface)
 
static IRichEditOleImplpara_get_reole (ITextParaImpl *This)
 
static HRESULT WINAPI TextPara_GetTypeInfoCount (ITextPara *iface, UINT *pctinfo)
 
static HRESULT WINAPI TextPara_GetTypeInfo (ITextPara *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI TextPara_GetIDsOfNames (ITextPara *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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 TextPara_GetDuplicate (ITextPara *iface, ITextPara **ret)
 
static HRESULT WINAPI TextPara_SetDuplicate (ITextPara *iface, ITextPara *para)
 
static HRESULT WINAPI TextPara_CanChange (ITextPara *iface, LONG *ret)
 
static HRESULT WINAPI TextPara_IsEqual (ITextPara *iface, ITextPara *para, LONG *ret)
 
static HRESULT WINAPI TextPara_Reset (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetStyle (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetStyle (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetAlignment (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetAlignment (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetHyphenation (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetHyphenation (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetFirstLineIndent (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_GetKeepTogether (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetKeepTogether (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetKeepWithNext (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetKeepWithNext (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetLeftIndent (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_GetLineSpacing (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_GetLineSpacingRule (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_GetListAlignment (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetListAlignment (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetListLevelIndex (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetListLevelIndex (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetListStart (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetListStart (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetListTab (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_SetListTab (ITextPara *iface, FLOAT value)
 
static HRESULT WINAPI TextPara_GetListType (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetListType (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetNoLineNumber (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetNoLineNumber (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetPageBreakBefore (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetPageBreakBefore (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetRightIndent (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_SetRightIndent (ITextPara *iface, FLOAT value)
 
static HRESULT WINAPI TextPara_SetIndents (ITextPara *iface, FLOAT StartIndent, FLOAT LeftIndent, FLOAT RightIndent)
 
static HRESULT WINAPI TextPara_SetLineSpacing (ITextPara *iface, LONG LineSpacingRule, FLOAT LineSpacing)
 
static HRESULT WINAPI TextPara_GetSpaceAfter (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_SetSpaceAfter (ITextPara *iface, FLOAT value)
 
static HRESULT WINAPI TextPara_GetSpaceBefore (ITextPara *iface, FLOAT *value)
 
static HRESULT WINAPI TextPara_SetSpaceBefore (ITextPara *iface, FLOAT value)
 
static HRESULT WINAPI TextPara_GetWidowControl (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_SetWidowControl (ITextPara *iface, LONG value)
 
static HRESULT WINAPI TextPara_GetTabCount (ITextPara *iface, LONG *value)
 
static HRESULT WINAPI TextPara_AddTab (ITextPara *iface, FLOAT tbPos, LONG tbAlign, LONG tbLeader)
 
static HRESULT WINAPI TextPara_ClearAllTabs (ITextPara *iface)
 
static HRESULT WINAPI TextPara_DeleteTab (ITextPara *iface, FLOAT pos)
 
static HRESULT WINAPI TextPara_GetTab (ITextPara *iface, LONG iTab, FLOAT *ptbPos, LONG *ptbAlign, LONG *ptbLeader)
 
static HRESULT WINAPI ITextDocument2Old_fnQueryInterface (ITextDocument2Old *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI ITextDocument2Old_fnAddRef (ITextDocument2Old *iface)
 
static ULONG WINAPI ITextDocument2Old_fnRelease (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfoCount (ITextDocument2Old *iface, UINT *pctinfo)
 
static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfo (ITextDocument2Old *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI ITextDocument2Old_fnGetIDsOfNames (ITextDocument2Old *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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 WINAPI ITextDocument2Old_fnGetName (ITextDocument2Old *iface, BSTR *pName)
 
static HRESULT WINAPI ITextDocument2Old_fnGetSelection (ITextDocument2Old *iface, ITextSelection **selection)
 
static HRESULT WINAPI ITextDocument2Old_fnGetStoryCount (ITextDocument2Old *iface, LONG *pCount)
 
static HRESULT WINAPI ITextDocument2Old_fnGetStoryRanges (ITextDocument2Old *iface, ITextStoryRanges **ppStories)
 
static HRESULT WINAPI ITextDocument2Old_fnGetSaved (ITextDocument2Old *iface, LONG *pValue)
 
static HRESULT WINAPI ITextDocument2Old_fnSetSaved (ITextDocument2Old *iface, LONG Value)
 
static HRESULT WINAPI ITextDocument2Old_fnGetDefaultTabStop (ITextDocument2Old *iface, float *pValue)
 
static HRESULT WINAPI ITextDocument2Old_fnSetDefaultTabStop (ITextDocument2Old *iface, float Value)
 
static HRESULT WINAPI ITextDocument2Old_fnNew (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnOpen (ITextDocument2Old *iface, VARIANT *pVar, LONG Flags, LONG CodePage)
 
static HRESULT WINAPI ITextDocument2Old_fnSave (ITextDocument2Old *iface, VARIANT *pVar, LONG Flags, LONG CodePage)
 
static HRESULT WINAPI ITextDocument2Old_fnFreeze (ITextDocument2Old *iface, LONG *pCount)
 
static HRESULT WINAPI ITextDocument2Old_fnUnfreeze (ITextDocument2Old *iface, LONG *pCount)
 
static HRESULT WINAPI ITextDocument2Old_fnBeginEditCollection (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnEndEditCollection (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnUndo (ITextDocument2Old *iface, LONG Count, LONG *prop)
 
static HRESULT WINAPI ITextDocument2Old_fnRedo (ITextDocument2Old *iface, LONG Count, LONG *prop)
 
static HRESULT WINAPI ITextDocument2Old_fnRange (ITextDocument2Old *iface, LONG cp1, LONG cp2, ITextRange **ppRange)
 
static HRESULT WINAPI ITextDocument2Old_fnRangeFromPoint (ITextDocument2Old *iface, LONG x, LONG y, ITextRange **ppRange)
 
static HRESULT WINAPI ITextDocument2Old_fnAttachMsgFilter (ITextDocument2Old *iface, IUnknown *filter)
 
static HRESULT WINAPI ITextDocument2Old_fnSetEffectColor (ITextDocument2Old *iface, LONG index, COLORREF cr)
 
static HRESULT WINAPI ITextDocument2Old_fnGetEffectColor (ITextDocument2Old *iface, LONG index, COLORREF *cr)
 
static HRESULT WINAPI ITextDocument2Old_fnGetCaretType (ITextDocument2Old *iface, LONG *type)
 
static HRESULT WINAPI ITextDocument2Old_fnSetCaretType (ITextDocument2Old *iface, LONG type)
 
static HRESULT WINAPI ITextDocument2Old_fnGetImmContext (ITextDocument2Old *iface, LONG *context)
 
static HRESULT WINAPI ITextDocument2Old_fnReleaseImmContext (ITextDocument2Old *iface, LONG context)
 
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 ITextDocument2Old_fnGetNotificationMode (ITextDocument2Old *iface, LONG *mode)
 
static HRESULT WINAPI ITextDocument2Old_fnSetNotificationMode (ITextDocument2Old *iface, LONG mode)
 
static HRESULT WINAPI ITextDocument2Old_fnGetClientRect (ITextDocument2Old *iface, LONG type, LONG *left, LONG *top, LONG *right, LONG *bottom)
 
static HRESULT WINAPI ITextDocument2Old_fnGetSelectionEx (ITextDocument2Old *iface, ITextSelection **selection)
 
static HRESULT WINAPI ITextDocument2Old_fnGetWindow (ITextDocument2Old *iface, LONG *hwnd)
 
static HRESULT WINAPI ITextDocument2Old_fnGetFEFlags (ITextDocument2Old *iface, LONG *flags)
 
static HRESULT WINAPI ITextDocument2Old_fnUpdateWindow (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnCheckTextLimit (ITextDocument2Old *iface, LONG cch, LONG *exceed)
 
static HRESULT WINAPI ITextDocument2Old_fnIMEInProgress (ITextDocument2Old *iface, LONG mode)
 
static HRESULT WINAPI ITextDocument2Old_fnSysBeep (ITextDocument2Old *iface)
 
static HRESULT WINAPI ITextDocument2Old_fnUpdate (ITextDocument2Old *iface, LONG mode)
 
static HRESULT WINAPI ITextDocument2Old_fnNotify (ITextDocument2Old *iface, LONG notify)
 
static HRESULT WINAPI ITextSelection_fnQueryInterface (ITextSelection *me, REFIID riid, void **ppvObj)
 
static ULONG WINAPI ITextSelection_fnAddRef (ITextSelection *me)
 
static ULONG WINAPI ITextSelection_fnRelease (ITextSelection *me)
 
static HRESULT WINAPI ITextSelection_fnGetTypeInfoCount (ITextSelection *me, UINT *pctinfo)
 
static HRESULT WINAPI ITextSelection_fnGetTypeInfo (ITextSelection *me, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI ITextSelection_fnGetIDsOfNames (ITextSelection *me, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
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_fnGetText (ITextSelection *me, BSTR *pbstr)
 
static HRESULT WINAPI ITextSelection_fnSetText (ITextSelection *me, BSTR str)
 
static HRESULT WINAPI ITextSelection_fnGetChar (ITextSelection *me, LONG *pch)
 
static HRESULT WINAPI ITextSelection_fnSetChar (ITextSelection *me, LONG ch)
 
static HRESULT WINAPI ITextSelection_fnGetDuplicate (ITextSelection *me, ITextRange **range)
 
static HRESULT WINAPI ITextSelection_fnGetFormattedText (ITextSelection *me, ITextRange **range)
 
static HRESULT WINAPI ITextSelection_fnSetFormattedText (ITextSelection *me, ITextRange *range)
 
static HRESULT WINAPI ITextSelection_fnGetStart (ITextSelection *me, LONG *pcpFirst)
 
static HRESULT WINAPI ITextSelection_fnSetStart (ITextSelection *me, LONG value)
 
static HRESULT WINAPI ITextSelection_fnGetEnd (ITextSelection *me, LONG *pcpLim)
 
static HRESULT WINAPI ITextSelection_fnSetEnd (ITextSelection *me, LONG value)
 
static HRESULT WINAPI ITextSelection_fnGetFont (ITextSelection *me, ITextFont **font)
 
static HRESULT WINAPI ITextSelection_fnSetFont (ITextSelection *me, ITextFont *font)
 
static HRESULT WINAPI ITextSelection_fnGetPara (ITextSelection *me, ITextPara **para)
 
static HRESULT WINAPI ITextSelection_fnSetPara (ITextSelection *me, ITextPara *para)
 
static HRESULT WINAPI ITextSelection_fnGetStoryLength (ITextSelection *me, LONG *length)
 
static HRESULT WINAPI ITextSelection_fnGetStoryType (ITextSelection *me, LONG *value)
 
static HRESULT WINAPI ITextSelection_fnCollapse (ITextSelection *me, LONG bStart)
 
static HRESULT WINAPI ITextSelection_fnExpand (ITextSelection *me, LONG unit, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnGetIndex (ITextSelection *me, LONG unit, LONG *index)
 
static HRESULT WINAPI ITextSelection_fnSetIndex (ITextSelection *me, LONG unit, LONG index, LONG extend)
 
static HRESULT WINAPI ITextSelection_fnSetRange (ITextSelection *me, LONG anchor, LONG active)
 
static HRESULT WINAPI ITextSelection_fnInRange (ITextSelection *me, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextSelection_fnInStory (ITextSelection *me, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextSelection_fnIsEqual (ITextSelection *me, ITextRange *range, LONG *ret)
 
static HRESULT WINAPI ITextSelection_fnSelect (ITextSelection *me)
 
static HRESULT WINAPI ITextSelection_fnStartOf (ITextSelection *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnEndOf (ITextSelection *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMove (ITextSelection *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveStart (ITextSelection *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveEnd (ITextSelection *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveWhile (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveStartWhile (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveEndWhile (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveUntil (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveStartUntil (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveEndUntil (ITextSelection *me, VARIANT *charset, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnFindText (ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextSelection_fnFindTextStart (ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextSelection_fnFindTextEnd (ITextSelection *me, BSTR text, LONG count, LONG flags, LONG *length)
 
static HRESULT WINAPI ITextSelection_fnDelete (ITextSelection *me, LONG unit, LONG count, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnCut (ITextSelection *me, VARIANT *v)
 
static HRESULT WINAPI ITextSelection_fnCopy (ITextSelection *me, VARIANT *v)
 
static HRESULT WINAPI ITextSelection_fnPaste (ITextSelection *me, VARIANT *v, LONG format)
 
static HRESULT WINAPI ITextSelection_fnCanPaste (ITextSelection *me, VARIANT *v, LONG format, LONG *ret)
 
static HRESULT WINAPI ITextSelection_fnCanEdit (ITextSelection *me, LONG *ret)
 
static HRESULT WINAPI ITextSelection_fnChangeCase (ITextSelection *me, LONG type)
 
static HRESULT WINAPI ITextSelection_fnGetPoint (ITextSelection *me, LONG type, LONG *cx, LONG *cy)
 
static HRESULT WINAPI ITextSelection_fnSetPoint (ITextSelection *me, LONG x, LONG y, LONG type, LONG extend)
 
static HRESULT WINAPI ITextSelection_fnScrollIntoView (ITextSelection *me, LONG value)
 
static HRESULT WINAPI ITextSelection_fnGetEmbeddedObject (ITextSelection *me, IUnknown **ppv)
 
static HRESULT WINAPI ITextSelection_fnGetFlags (ITextSelection *me, LONG *flags)
 
static HRESULT WINAPI ITextSelection_fnSetFlags (ITextSelection *me, LONG flags)
 
static HRESULT WINAPI ITextSelection_fnGetType (ITextSelection *me, LONG *type)
 
static HRESULT WINAPI ITextSelection_fnMoveLeft (ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveRight (ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveUp (ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnMoveDown (ITextSelection *me, LONG unit, LONG count, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnHomeKey (ITextSelection *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnEndKey (ITextSelection *me, LONG unit, LONG extend, LONG *delta)
 
static HRESULT WINAPI ITextSelection_fnTypeText (ITextSelection *me, BSTR text)
 
LRESULT CreateIRichEditOle (IUnknown *outer_unk, ME_TextEditor *editor, LPVOID *ppvObj)
 
static void convert_sizel (const ME_Context *c, const SIZEL *szl, SIZE *sz)
 
void ME_GetOLEObjectSize (const ME_Context *c, ME_Run *run, SIZE *pSize)
 
void ME_DrawOLE (ME_Context *c, int x, int y, ME_Run *run, BOOL selected)
 
void ME_DeleteReObject (struct re_object *reobj)
 
void ME_CopyReObject (REOBJECT *dst, const REOBJECT *src, DWORD flags)
 
void ME_GetITextDocument2OldInterface (IRichEditOle *iface, LPVOID *ppvObj)
 

Variables

static ITypeLibtypelib
 
static const IID *const tid_ids []
 
static ITypeInfotypeinfos [LAST_tid]
 
static const DWORD textfont_prop_masks [][2]
 
static const IUnknownVtbl reo_unk_vtbl
 
static const IOleClientSiteVtbl ocst
 
static const IOleInPlaceSiteVtbl olestvt
 
static const IRichEditOleVtbl revt
 
static const ITextRangeVtbl trvt
 
static ITextFontVtbl textfontvtbl
 
static ITextParaVtbl textparavtbl
 
static const ITextDocument2OldVtbl tdvt
 
static const ITextSelectionVtbl tsvt
 

Macro Definition Documentation

◆ CHARFORMAT_SET_B_FIELD

#define CHARFORMAT_SET_B_FIELD (   mask,
  value 
)
Value:
if (hr == S_OK && value != tomUndefined) { \
fmt.dwMask |= CFM_##mask; \
if (value == tomTrue) fmt.dwEffects |= CFE_##mask; \
} \
HRESULT hr
Definition: shlfolder.c:183
GLenum GLint GLuint mask
Definition: glext.h:6028
#define S_OK
Definition: intsafe.h:59
Definition: tom.idl:29
Definition: dsound.c:943

◆ COBJMACROS

#define COBJMACROS

Definition at line 25 of file richole.c.

◆ NONAMELESSUNION

#define NONAMELESSUNION

Definition at line 24 of file richole.c.

Typedef Documentation

◆ IOleClientSiteImpl

Definition at line 140 of file richole.c.

◆ IRichEditOleImpl

◆ ITextFontImpl

◆ ITextParaImpl

◆ ITextRangeImpl

Definition at line 141 of file richole.c.

◆ ITextSelectionImpl

Definition at line 139 of file richole.c.

Enumeration Type Documentation

◆ range_update_op

Enumerator
RANGE_UPDATE_DELETE 

Definition at line 205 of file richole.c.

205  {
207 };

◆ textfont_prop_id

Enumerator
FONT_ALLCAPS 
FONT_ANIMATION 
FONT_BACKCOLOR 
FONT_BOLD 
FONT_EMBOSS 
FONT_FORECOLOR 
FONT_HIDDEN 
FONT_ENGRAVE 
FONT_ITALIC 
FONT_KERNING 
FONT_LANGID 
FONT_NAME 
FONT_OUTLINE 
FONT_POSITION 
FONT_PROTECTED 
FONT_SHADOW 
FONT_SIZE 
FONT_SMALLCAPS 
FONT_SPACING 
FONT_STRIKETHROUGH 
FONT_SUBSCRIPT 
FONT_SUPERSCRIPT 
FONT_UNDERLINE 
FONT_WEIGHT 
FONT_PROPID_LAST 
FONT_PROPID_FIRST 

Definition at line 143 of file richole.c.

143  {
144  FONT_ALLCAPS = 0,
147  FONT_BOLD,
148  FONT_EMBOSS,
150  FONT_HIDDEN,
151  FONT_ENGRAVE,
152  FONT_ITALIC,
153  FONT_KERNING,
154  FONT_LANGID,
155  FONT_NAME,
156  FONT_OUTLINE,
159  FONT_SHADOW,
160  FONT_SIZE,
162  FONT_SPACING,
167  FONT_WEIGHT,
170 };

◆ tid_t

Enumerator
LAST_tid 
LAST_tid 
Database_tid 
Installer_tid 
Record_tid 
Session_tid 
StringList_tid 
SummaryInfo_tid 
View_tid 
LAST_tid 
NULL_tid 
IXMLDOMAttribute_tid 
IXMLDOMCDATASection_tid 
IXMLDOMComment_tid 
IXMLDOMDocument_tid 
IXMLDOMDocument2_tid 
IXMLDOMDocument3_tid 
IXMLDOMDocumentFragment_tid 
IXMLDOMDocumentType_tid 
IXMLDOMElement_tid 
IXMLDOMEntityReference_tid 
IXMLDOMImplementation_tid 
IXMLDOMNamedNodeMap_tid 
IXMLDOMNode_tid 
IXMLDOMNodeList_tid 
IXMLDOMParseError2_tid 
IXMLDOMProcessingInstruction_tid 
IXMLDOMSchemaCollection_tid 
IXMLDOMSchemaCollection2_tid 
IXMLDOMSelection_tid 
IXMLDOMText_tid 
IXMLElement_tid 
IXMLDocument_tid 
IXMLHTTPRequest_tid 
IXSLProcessor_tid 
IXSLTemplate_tid 
IVBSAXAttributes_tid 
IVBSAXContentHandler_tid 
IVBSAXDeclHandler_tid 
IVBSAXDTDHandler_tid 
IVBSAXEntityResolver_tid 
IVBSAXErrorHandler_tid 
IVBSAXLexicalHandler_tid 
IVBSAXLocator_tid 
IVBSAXXMLFilter_tid 
IVBSAXXMLReader_tid 
IMXAttributes_tid 
IMXReaderControl_tid 
IMXWriter_tid 
IVBMXNamespaceManager_tid 
IServerXMLHTTPRequest_tid 
LAST_tid 
NULL_tid 
ITextDocument_tid 
ITextRange_tid 
ITextSelection_tid 
ITextFont_tid 
ITextPara_tid 
LAST_tid 
NULL_tid 
IDictionary_tid 
IDrive_tid 
IDriveCollection_tid 
IFile_tid 
IFileCollection_tid 
IFileSystem3_tid 
IFolder_tid 
IFolderCollection_tid 
ITextStream_tid 
LAST_tid 
LAST_tid 
NULL_tid 
IWshCollection_tid 
IWshEnvironment_tid 
IWshExec_tid 
IWshShell3_tid 
IWshShortcut_tid 
LAST_tid 

Definition at line 57 of file richole.c.

Function Documentation

◆ convert_sizel()

static void convert_sizel ( const ME_Context c,
const SIZEL szl,
SIZE sz 
)
static

Definition at line 5720 of file richole.c.

5721 {
5722  /* sizel is in .01 millimeters, sz in pixels */
5723  sz->cx = MulDiv(szl->cx, c->dpi.cx, 2540);
5724  sz->cy = MulDiv(szl->cy, c->dpi.cy, 2540);
5725 }
LONG cx
Definition: windef.h:319
const GLubyte * c
Definition: glext.h:8905
LONG cy
Definition: windef.h:320
#define MulDiv(x, y, z)
Definition: gdifloat.h:86

Referenced by ME_DrawOLE(), and ME_GetOLEObjectSize().

◆ cp2range()

static void cp2range ( ME_TextEditor editor,
LONG cp1,
LONG cp2 
)
static

Definition at line 2027 of file richole.c.

2028 {
2029  int len = ME_GetTextLength(editor) + 1;
2030  *cp1 = max(*cp1, 0);
2031  *cp2 = max(*cp2, 0);
2032  *cp1 = min(*cp1, len);
2033  *cp2 = min(*cp2, len);
2034  if (*cp1 > *cp2)
2035  {
2036  int tmp = *cp1;
2037  *cp1 = *cp2;
2038  *cp2 = tmp;
2039  }
2040  if (*cp1 == len)
2041  *cp1 = *cp2 = len - 1;
2042 }
#define max(a, b)
Definition: svc.c:63
GLenum GLsizei len
Definition: glext.h:6722
#define min(a, b)
Definition: monoChain.cc:55
int ME_GetTextLength(ME_TextEditor *editor)
Definition: caret.c:83

Referenced by ITextDocument2Old_fnRange(), and ITextRange_fnSetRange().

◆ create_textfont()

static HRESULT create_textfont ( ITextRange range,
const ITextFontImpl src,
ITextFont **  ret 
)
static

Definition at line 3360 of file richole.c.

3361 {
3363 
3364  *ret = NULL;
3365  font = heap_alloc(sizeof(*font));
3366  if (!font)
3367  return E_OUTOFMEMORY;
3368 
3369  font->ITextFont_iface.lpVtbl = &textfontvtbl;
3370  font->ref = 1;
3371 
3372  if (src) {
3373  font->range = NULL;
3374  font->get_cache_enabled = TRUE;
3375  font->set_cache_enabled = TRUE;
3376  memcpy(&font->props, &src->props, sizeof(font->props));
3377  if (font->props[FONT_NAME].str)
3378  font->props[FONT_NAME].str = SysAllocString(font->props[FONT_NAME].str);
3379  }
3380  else {
3381  font->range = range;
3382  ITextRange_AddRef(range);
3383 
3384  /* cache current properties */
3385  font->get_cache_enabled = FALSE;
3386  font->set_cache_enabled = FALSE;
3388  }
3389 
3390  *ret = &font->ITextFont_iface;
3391  return S_OK;
3392 }
#define TRUE
Definition: types.h:120
Definition: mk_font.cpp:20
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static void textfont_cache_range_props(ITextFontImpl *font)
Definition: richole.c:896
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
int ret
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum src
Definition: glext.h:6340
GLenum GLint * range
Definition: glext.h:7539
#define S_OK
Definition: intsafe.h:59
static ITextFontVtbl textfontvtbl
Definition: richole.c:3295

Referenced by ITextRange_fnGetFont(), ITextSelection_fnGetFont(), and TextFont_GetDuplicate().

◆ create_textpara()

static HRESULT create_textpara ( ITextRange range,
ITextPara **  ret 
)
static

Definition at line 4099 of file richole.c.

4100 {
4101  ITextParaImpl *para;
4102 
4103  *ret = NULL;
4104  para = heap_alloc(sizeof(*para));
4105  if (!para)
4106  return E_OUTOFMEMORY;
4107 
4108  para->ITextPara_iface.lpVtbl = &textparavtbl;
4109  para->ref = 1;
4110  para->range = range;
4111  ITextRange_AddRef(range);
4112 
4113  *ret = &para->ITextPara_iface;
4114  return S_OK;
4115 }
static ITextParaVtbl textparavtbl
Definition: richole.c:4041
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
int ret
GLenum GLint * range
Definition: glext.h:7539
#define S_OK
Definition: intsafe.h:59
ITextPara ITextPara_iface
Definition: richole.c:253
ITextRange * range
Definition: richole.c:256

Referenced by ITextRange_fnGetPara(), and ITextSelection_fnGetPara().

◆ CreateIRichEditOle()

LRESULT CreateIRichEditOle ( IUnknown outer_unk,
ME_TextEditor editor,
LPVOID ppvObj 
)

Definition at line 5693 of file richole.c.

5694 {
5695  IRichEditOleImpl *reo;
5696 
5697  reo = heap_alloc(sizeof(IRichEditOleImpl));
5698  if (!reo)
5699  return 0;
5700 
5701  reo->IUnknown_inner.lpVtbl = &reo_unk_vtbl;
5702  reo->IRichEditOle_iface.lpVtbl = &revt;
5703  reo->ITextDocument2Old_iface.lpVtbl = &tdvt;
5704  reo->ref = 1;
5705  reo->editor = editor;
5706  reo->txtSel = NULL;
5707 
5708  TRACE("Created %p\n",reo);
5709  list_init(&reo->rangelist);
5710  list_init(&reo->clientsites);
5711  if (outer_unk)
5712  reo->outer_unk = outer_unk;
5713  else
5714  reo->outer_unk = &reo->IUnknown_inner;
5715  *ppvObj = &reo->IRichEditOle_iface;
5716 
5717  return 1;
5718 }
ITextSelectionImpl * txtSel
Definition: richole.c:217
ME_TextEditor * editor
Definition: richole.c:216
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
IUnknown IUnknown_inner
Definition: richole.c:210
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
ITextDocument2Old ITextDocument2Old_iface
Definition: richole.c:212
struct list clientsites
Definition: richole.c:220
static const ITextDocument2OldVtbl tdvt
Definition: richole.c:4555
struct list rangelist
Definition: richole.c:219
IRichEditOle IRichEditOle_iface
Definition: richole.c:211
static const IRichEditOleVtbl revt
Definition: richole.c:1500
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
IUnknown * outer_unk
Definition: richole.c:213
static const IUnknownVtbl reo_unk_vtbl
Definition: richole.c:1006

Referenced by insert_static_object(), ITextServicesImpl_QueryInterface(), and ME_HandleMessage().

◆ CreateITextRange()

static HRESULT CreateITextRange ( IRichEditOleImpl reOle,
LONG  start,
LONG  end,
ITextRange **  ppRange 
)
static

Definition at line 4333 of file richole.c.

4334 {
4335  ITextRangeImpl *txtRge = heap_alloc(sizeof(ITextRangeImpl));
4336 
4337  if (!txtRge)
4338  return E_OUTOFMEMORY;
4339  txtRge->ITextRange_iface.lpVtbl = &trvt;
4340  txtRge->ref = 1;
4341  txtRge->child.reole = reOle;
4342  txtRge->start = start;
4343  txtRge->end = end;
4344  list_add_head(&reOle->rangelist, &txtRge->child.entry);
4345  *ppRange = &txtRge->ITextRange_iface;
4346  return S_OK;
4347 }
struct reole_child child
Definition: richole.c:229
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
Definition: list.h:96
GLuint GLuint end
Definition: gl.h:1545
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
ITextRange ITextRange_iface
Definition: richole.c:230
#define S_OK
Definition: intsafe.h:59
struct list rangelist
Definition: richole.c:219
GLuint start
Definition: gl.h:1545
static const ITextRangeVtbl trvt
Definition: richole.c:2529

Referenced by ITextDocument2Old_fnRange(), ITextRange_fnGetDuplicate(), and ITextSelection_fnGetDuplicate().

◆ CreateOleClientSite()

static HRESULT CreateOleClientSite ( IRichEditOleImpl reOle,
IOleClientSite **  ret 
)
static

Definition at line 1319 of file richole.c.

1320 {
1321  IOleClientSiteImpl *clientSite = heap_alloc(sizeof *clientSite);
1322 
1323  if (!clientSite)
1324  return E_OUTOFMEMORY;
1325 
1326  clientSite->IOleClientSite_iface.lpVtbl = &ocst;
1327  clientSite->IOleInPlaceSite_iface.lpVtbl = &olestvt;
1328  clientSite->ref = 1;
1329  clientSite->child.reole = reOle;
1330  list_add_head(&reOle->clientsites, &clientSite->child.entry);
1331 
1332  *ret = &clientSite->IOleClientSite_iface;
1333  return S_OK;
1334 }
static const IOleInPlaceSiteVtbl olestvt
Definition: richole.c:1300
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
Definition: list.h:96
IOleInPlaceSite IOleInPlaceSite_iface
Definition: richole.c:262
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
IOleClientSite IOleClientSite_iface
Definition: richole.c:261
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IOleClientSiteVtbl ocst
Definition: richole.c:1174
int ret
#define S_OK
Definition: intsafe.h:59
struct list clientsites
Definition: richole.c:220
struct reole_child child
Definition: richole.c:260

Referenced by IRichEditOle_fnGetClientSite().

◆ CreateTextSelection()

static ITextSelectionImpl * CreateTextSelection ( IRichEditOleImpl reOle)
static

Definition at line 5681 of file richole.c.

5682 {
5683  ITextSelectionImpl *txtSel = heap_alloc(sizeof *txtSel);
5684  if (!txtSel)
5685  return NULL;
5686 
5687  txtSel->ITextSelection_iface.lpVtbl = &tsvt;
5688  txtSel->ref = 1;
5689  txtSel->reOle = reOle;
5690  return txtSel;
5691 }
static const ITextSelectionVtbl tsvt
Definition: richole.c:5609
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
smooth NULL
Definition: ftsmooth.c:416
IRichEditOleImpl * reOle
Definition: richole.c:239
ITextSelection ITextSelection_iface
Definition: richole.c:236

Referenced by ITextDocument2Old_fnGetSelection().

◆ DEFINE_GUID() [1/11]

DEFINE_GUID ( LIBID_tom  ,
0x8cc497c9  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [2/11]

DEFINE_GUID ( IID_ITextServices  ,
0x8d33f740  ,
0xcf58  ,
0x11ce  ,
0xa8  ,
0x9d  ,
0x00  ,
0xaa  ,
0x00  ,
0x6c  ,
0xad  ,
0xc5   
)

◆ DEFINE_GUID() [3/11]

DEFINE_GUID ( IID_ITextHost  ,
0x13e670f4  ,
0x1a5a  ,
0x11cf  ,
0xab  ,
0xeb  ,
0x00  ,
0xaa  ,
0x00  ,
0xb6  ,
0x5e  ,
0xa1   
)

◆ DEFINE_GUID() [4/11]

DEFINE_GUID ( IID_ITextHost2  ,
0x13e670f5  ,
0x1a5a  ,
0x11cf  ,
0xab  ,
0xeb  ,
0x00  ,
0xaa  ,
0x00  ,
0xb6  ,
0x5e  ,
0xa1   
)

◆ DEFINE_GUID() [5/11]

DEFINE_GUID ( IID_ITextDocument  ,
0x8cc497c0  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [6/11]

DEFINE_GUID ( IID_ITextDocument2Old  ,
0x01c25500  ,
0x4268  ,
0x11d1  ,
0x88  ,
0x3a  ,
0x3c  ,
0x8b  ,
0x00  ,
0xc1  ,
0x00  ,
0x00   
)

◆ DEFINE_GUID() [7/11]

DEFINE_GUID ( IID_ITextRange  ,
0x8cc497c2  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [8/11]

DEFINE_GUID ( IID_ITextSelection  ,
0x8cc497c1  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [9/11]

DEFINE_GUID ( IID_ITextFont  ,
0x8cc497c3  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [10/11]

DEFINE_GUID ( IID_ITextPara  ,
0x8cc497c4  ,
0xa1df  ,
0x11ce  ,
0x80  ,
0x98  ,
0x00  ,
0xaa  ,
0x00  ,
0x47  ,
0xbe  ,
0x5d   
)

◆ DEFINE_GUID() [11/11]

DEFINE_GUID ( IID_Igetrichole  ,
0xe3ce5c7a  ,
0x8247  ,
0x4622  ,
0x81  ,
0xad  ,
0x11  ,
0x81  ,
0x02  ,
0xaa  ,
0x01  ,
0x30   
)

◆ get_range_reole()

static const IRichEditOleImpl* get_range_reole ( ITextRange range)
inlinestatic

Definition at line 511 of file richole.c.

512 {
513  IRichEditOleImpl *reole = NULL;
514  ITextRange_QueryInterface(range, &IID_Igetrichole, (void**)&reole);
515  return reole;
516 }
smooth NULL
Definition: ftsmooth.c:416
GLenum GLint * range
Definition: glext.h:7539

Referenced by get_textfont_prop(), set_textfont_prop(), TextFont_CanChange(), TextFont_GetDuplicate(), textfont_getname_from_range(), TextFont_GetStyle(), TextFont_IsEqual(), TextFont_Reset(), TextFont_SetDuplicate(), TextFont_SetStyle(), and textrange_set_font().

◆ get_textfont_prop()

static HRESULT get_textfont_prop ( const ITextFontImpl font,
enum textfont_prop_id  propid,
textfont_prop_val value 
)
static

Definition at line 679 of file richole.c.

680 {
681  const IRichEditOleImpl *reole;
683  LONG start, end, i;
684  HRESULT hr;
685 
686  /* when font is not attached to any range use cached values */
687  if (!font->range || font->get_cache_enabled) {
688  *value = font->props[propid];
689  return S_OK;
690  }
691 
692  if (!(reole = get_range_reole(font->range)))
693  return CO_E_RELEASED;
694 
696 
697  ITextRange_GetStart(font->range, &start);
698  ITextRange_GetEnd(font->range, &end);
699 
700  /* iterate trough a range to see if property value is consistent */
701  hr = get_textfont_prop_for_pos(reole, start, propid, &v);
702  if (FAILED(hr))
703  return hr;
704 
705  for (i = start + 1; i < end; i++) {
706  textfont_prop_val cur;
707 
708  hr = get_textfont_prop_for_pos(reole, i, propid, &cur);
709  if (FAILED(hr))
710  return hr;
711 
712  if (!is_equal_textfont_prop_value(propid, &v, &cur))
713  return S_OK;
714  }
715 
716  *value = v;
717  return S_OK;
718 }
static void init_textfont_prop_value(enum textfont_prop_id propid, textfont_prop_val *v)
Definition: richole.c:386
static const IRichEditOleImpl * get_range_reole(ITextRange *range)
Definition: richole.c:511
HRESULT hr
Definition: shlfolder.c:183
Definition: mk_font.cpp:20
#define CO_E_RELEASED
Definition: winerror.h:2818
GLuint GLuint end
Definition: gl.h:1545
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
Definition: glfuncs.h:248
long LONG
Definition: pedump.c:60
static BOOL is_equal_textfont_prop_value(enum textfont_prop_id propid, textfont_prop_val *left, textfont_prop_val *right)
Definition: richole.c:348
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
const GLdouble * v
Definition: gl.h:2040
GLuint start
Definition: gl.h:1545
static HRESULT get_textfont_prop_for_pos(const IRichEditOleImpl *reole, int pos, enum textfont_prop_id propid, textfont_prop_val *value)
Definition: richole.c:437

Referenced by get_textfont_propf(), get_textfont_propl(), and textfont_cache_range_props().

◆ get_textfont_prop_for_pos()

static HRESULT get_textfont_prop_for_pos ( const IRichEditOleImpl reole,
int  pos,
enum textfont_prop_id  propid,
textfont_prop_val value 
)
static

Definition at line 437 of file richole.c.

439 {
440  ME_Cursor from, to;
442 
443  memset(&fmt, 0, sizeof(fmt));
444  fmt.cbSize = sizeof(fmt);
445  fmt.dwMask = textfont_prop_masks[propid][0];
446 
447  ME_CursorFromCharOfs(reole->editor, pos, &from);
448  to = from;
449  ME_MoveCursorChars(reole->editor, &to, 1, FALSE);
450  ME_GetCharFormat(reole->editor, &from, &to, &fmt);
451 
452  switch (propid)
453  {
454  case FONT_ALLCAPS:
455  case FONT_BOLD:
456  case FONT_EMBOSS:
457  case FONT_HIDDEN:
458  case FONT_ENGRAVE:
459  case FONT_ITALIC:
460  case FONT_OUTLINE:
461  case FONT_PROTECTED:
462  case FONT_SHADOW:
463  case FONT_SMALLCAPS:
464  case FONT_STRIKETHROUGH:
465  case FONT_SUBSCRIPT:
466  case FONT_SUPERSCRIPT:
467  case FONT_UNDERLINE:
468  value->l = fmt.dwEffects & textfont_prop_masks[propid][1] ? tomTrue : tomFalse;
469  break;
470  case FONT_ANIMATION:
471  value->l = fmt.bAnimation;
472  break;
473  case FONT_BACKCOLOR:
474  value->l = fmt.dwEffects & CFE_AUTOBACKCOLOR ? GetSysColor(COLOR_WINDOW) : fmt.crBackColor;
475  break;
476  case FONT_FORECOLOR:
477  value->l = fmt.dwEffects & CFE_AUTOCOLOR ? GetSysColor(COLOR_WINDOWTEXT) : fmt.crTextColor;
478  break;
479  case FONT_KERNING:
480  value->f = twips_to_points(fmt.wKerning);
481  break;
482  case FONT_LANGID:
483  value->l = fmt.lcid;
484  break;
485  case FONT_NAME:
486  /* this case is used exclusively by GetName() */
487  value->str = SysAllocString(fmt.szFaceName);
488  if (!value->str)
489  return E_OUTOFMEMORY;
490  break;
491  case FONT_POSITION:
492  value->f = twips_to_points(fmt.yOffset);
493  break;
494  case FONT_SIZE:
495  value->f = twips_to_points(fmt.yHeight);
496  break;
497  case FONT_SPACING:
498  value->f = fmt.sSpacing;
499  break;
500  case FONT_WEIGHT:
501  value->l = fmt.wWeight;
502  break;
503  default:
504  FIXME("unhandled font property %d\n", propid);
505  return E_FAIL;
506  }
507 
508  return S_OK;
509 }
Definition: tom.idl:28
#define CFE_AUTOCOLOR
Definition: richedit.h:414
void ME_CursorFromCharOfs(ME_TextEditor *editor, int nCharOfs, ME_Cursor *pCursor) DECLSPEC_HIDDEN
Definition: run.c:171
const char * fmt
Definition: wsprintf.c:30
ME_TextEditor * editor
Definition: richole.c:216
#define E_FAIL
Definition: ddrawi.h:102
#define COLOR_WINDOW
Definition: winuser.h:908
DWORD WINAPI GetSysColor(_In_ int)
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const DWORD textfont_prop_masks[][2]
Definition: richole.c:172
#define FIXME(fmt,...)
Definition: debug.h:110
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define CFE_AUTOBACKCOLOR
Definition: richedit.h:425
#define COLOR_WINDOWTEXT
Definition: winuser.h:911
#define S_OK
Definition: intsafe.h:59
static FLOAT twips_to_points(LONG value)
Definition: richole.c:427
int ME_MoveCursorChars(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs, BOOL final_eop)
Definition: caret.c:661
Definition: tom.idl:29
void ME_GetCharFormat(ME_TextEditor *editor, const ME_Cursor *from, const ME_Cursor *to, CHARFORMAT2W *pFmt) DECLSPEC_HIDDEN
Definition: run.c:820
CardRegion * from
Definition: spigame.cpp:19
#define memset(x, y, z)
Definition: compat.h:39
Definition: dsound.c:943

Referenced by get_textfont_prop(), and textfont_getname_from_range().

◆ get_textfont_propf()

static HRESULT get_textfont_propf ( const ITextFontImpl font,
enum textfont_prop_id  propid,
FLOAT value 
)
static

Definition at line 720 of file richole.c.

721 {
723  HRESULT hr;
724 
725  if (!value)
726  return E_INVALIDARG;
727 
728  hr = get_textfont_prop(font, propid, &v);
729  *value = v.f;
730  return hr;
731 }
HRESULT hr
Definition: shlfolder.c:183
Definition: mk_font.cpp:20
#define E_INVALIDARG
Definition: ddrawi.h:101
static HRESULT get_textfont_prop(const ITextFontImpl *font, enum textfont_prop_id propid, textfont_prop_val *value)
Definition: richole.c:679
LONG HRESULT
Definition: typedefs.h:77
const GLdouble * v
Definition: gl.h:2040

Referenced by TextFont_GetKerning(), TextFont_GetPosition(), TextFont_GetSize(), and TextFont_GetSpacing().

◆ get_textfont_propl()

static HRESULT get_textfont_propl ( const ITextFontImpl font,
enum textfont_prop_id  propid,
LONG value 
)
static

Definition at line 733 of file richole.c.

734 {
736  HRESULT hr;
737 
738  if (!value)
739  return E_INVALIDARG;
740 
741  hr = get_textfont_prop(font, propid, &v);
742  *value = v.l;
743  return hr;
744 }
HRESULT hr
Definition: shlfolder.c:183
Definition: mk_font.cpp:20
#define E_INVALIDARG
Definition: ddrawi.h:101
static HRESULT get_textfont_prop(const ITextFontImpl *font, enum textfont_prop_id propid, textfont_prop_val *value)
Definition: richole.c:679
LONG HRESULT
Definition: typedefs.h:77
const GLdouble * v
Definition: gl.h:2040

Referenced by set_textfont_propd(), TextFont_GetAllCaps(), TextFont_GetAnimation(), TextFont_GetBackColor(), TextFont_GetBold(), TextFont_GetEmboss(), TextFont_GetEngrave(), TextFont_GetForeColor(), TextFont_GetHidden(), TextFont_GetItalic(), TextFont_GetLanguageID(), TextFont_GetOutline(), TextFont_GetProtected(), TextFont_GetShadow(), TextFont_GetSmallCaps(), TextFont_GetStrikeThrough(), TextFont_GetSubscript(), TextFont_GetSuperscript(), TextFont_GetUnderline(), and TextFont_GetWeight().

◆ get_typeinfo()

static HRESULT get_typeinfo ( enum tid_t  tid,
ITypeInfo **  typeinfo 
)
static

Definition at line 108 of file richole.c.

109 {
110  HRESULT hr;
111 
112  if (!typelib)
113  hr = load_typelib();
114  if (!typelib)
115  return hr;
116 
117  if (!typeinfos[tid])
118  {
119  ITypeInfo *ti;
120 
121  hr = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti);
122  if (FAILED(hr))
123  {
124  ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_ids[tid]), hr);
125  return hr;
126  }
127 
129  ITypeInfo_Release(ti);
130  }
131 
132  *typeinfo = typeinfos[tid];
133  return S_OK;
134 }
static const IID *const tid_ids[]
Definition: richole.c:67
HRESULT hr
Definition: shlfolder.c:183
static ITypeLib * typelib
Definition: richole.c:55
static ITypeInfo * typeinfos[LAST_tid]
Definition: richole.c:76
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
static HRESULT load_typelib(void)
Definition: richole.c:78
LONG HRESULT
Definition: typedefs.h:77
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
static TfClientId tid

Referenced by ITextDocument2Old_fnGetIDsOfNames(), ITextDocument2Old_fnGetTypeInfo(), ITextDocument2Old_fnInvoke(), ITextRange_fnGetIDsOfNames(), ITextRange_fnGetTypeInfo(), ITextRange_fnInvoke(), ITextSelection_fnGetIDsOfNames(), ITextSelection_fnGetTypeInfo(), ITextSelection_fnInvoke(), TextFont_GetIDsOfNames(), TextFont_GetTypeInfo(), TextFont_Invoke(), TextPara_GetIDsOfNames(), TextPara_GetTypeInfo(), and TextPara_Invoke().

◆ impl_from_IOleClientSite()

static IOleClientSiteImpl* impl_from_IOleClientSite ( IOleClientSite iface)
inlinestatic

Definition at line 1059 of file richole.c.

1060 {
1061  return CONTAINING_RECORD(iface, IOleClientSiteImpl, IOleClientSite_iface);
1062 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by IOleClientSite_fnAddRef(), IOleClientSite_fnGetContainer(), IOleClientSite_fnGetMoniker(), IOleClientSite_fnOnShowWindow(), IOleClientSite_fnQueryInterface(), IOleClientSite_fnRelease(), IOleClientSite_fnRequestNewObjectLayout(), IOleClientSite_fnSaveObject(), and IOleClientSite_fnShowObject().

◆ impl_from_IOleInPlaceSite()

◆ impl_from_IRichEditOle()

◆ impl_from_ITextDocument2Old()

static IRichEditOleImpl* impl_from_ITextDocument2Old ( ITextDocument2Old iface)
inlinestatic

Definition at line 271 of file richole.c.

272 {
273  return CONTAINING_RECORD(iface, IRichEditOleImpl, ITextDocument2Old_iface);
274 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by ITextDocument2Old_fnAddRef(), ITextDocument2Old_fnAttachMsgFilter(), ITextDocument2Old_fnBeginEditCollection(), ITextDocument2Old_fnCheckTextLimit(), ITextDocument2Old_fnEndEditCollection(), ITextDocument2Old_fnFreeze(), ITextDocument2Old_fnGetCaretType(), ITextDocument2Old_fnGetClientRect(), ITextDocument2Old_fnGetDefaultTabStop(), ITextDocument2Old_fnGetEffectColor(), ITextDocument2Old_fnGetFEFlags(), ITextDocument2Old_fnGetIDsOfNames(), ITextDocument2Old_fnGetImmContext(), ITextDocument2Old_fnGetName(), ITextDocument2Old_fnGetNotificationMode(), ITextDocument2Old_fnGetPreferredFont(), ITextDocument2Old_fnGetSaved(), ITextDocument2Old_fnGetSelection(), ITextDocument2Old_fnGetSelectionEx(), ITextDocument2Old_fnGetStoryCount(), ITextDocument2Old_fnGetStoryRanges(), ITextDocument2Old_fnGetTypeInfo(), ITextDocument2Old_fnGetTypeInfoCount(), ITextDocument2Old_fnGetWindow(), ITextDocument2Old_fnIMEInProgress(), ITextDocument2Old_fnInvoke(), ITextDocument2Old_fnNew(), ITextDocument2Old_fnNotify(), ITextDocument2Old_fnOpen(), ITextDocument2Old_fnQueryInterface(), ITextDocument2Old_fnRange(), ITextDocument2Old_fnRangeFromPoint(), ITextDocument2Old_fnRedo(), ITextDocument2Old_fnRelease(), ITextDocument2Old_fnReleaseImmContext(), ITextDocument2Old_fnSave(), ITextDocument2Old_fnSetCaretType(), ITextDocument2Old_fnSetDefaultTabStop(), ITextDocument2Old_fnSetEffectColor(), ITextDocument2Old_fnSetNotificationMode(), ITextDocument2Old_fnSetSaved(), ITextDocument2Old_fnSysBeep(), ITextDocument2Old_fnUndo(), ITextDocument2Old_fnUnfreeze(), ITextDocument2Old_fnUpdate(), and ITextDocument2Old_fnUpdateWindow().

◆ impl_from_ITextFont()

static ITextFontImpl* impl_from_ITextFont ( ITextFont iface)
inlinestatic

Definition at line 296 of file richole.c.

297 {
298  return CONTAINING_RECORD(iface, ITextFontImpl, ITextFont_iface);
299 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by TextFont_AddRef(), TextFont_CanChange(), TextFont_GetAllCaps(), TextFont_GetAnimation(), TextFont_GetBackColor(), TextFont_GetBold(), TextFont_GetDuplicate(), TextFont_GetEmboss(), TextFont_GetEngrave(), TextFont_GetForeColor(), TextFont_GetHidden(), TextFont_GetIDsOfNames(), TextFont_GetItalic(), TextFont_GetKerning(), TextFont_GetLanguageID(), TextFont_GetName(), TextFont_GetOutline(), TextFont_GetPosition(), TextFont_GetProtected(), TextFont_GetShadow(), TextFont_GetSize(), TextFont_GetSmallCaps(), TextFont_GetSpacing(), TextFont_GetStrikeThrough(), TextFont_GetStyle(), TextFont_GetSubscript(), TextFont_GetSuperscript(), TextFont_GetTypeInfo(), TextFont_GetTypeInfoCount(), TextFont_GetUnderline(), TextFont_GetWeight(), TextFont_Invoke(), TextFont_IsEqual(), TextFont_QueryInterface(), TextFont_Release(), TextFont_Reset(), TextFont_SetAllCaps(), TextFont_SetAnimation(), TextFont_SetBackColor(), TextFont_SetBold(), TextFont_SetDuplicate(), TextFont_SetEmboss(), TextFont_SetEngrave(), TextFont_SetForeColor(), TextFont_SetHidden(), TextFont_SetItalic(), TextFont_SetKerning(), TextFont_SetLanguageID(), TextFont_SetName(), TextFont_SetOutline(), TextFont_SetPosition(), TextFont_SetProtected(), TextFont_SetShadow(), TextFont_SetSize(), TextFont_SetSmallCaps(), TextFont_SetSpacing(), TextFont_SetStrikeThrough(), TextFont_SetStyle(), TextFont_SetSubscript(), TextFont_SetSuperscript(), TextFont_SetUnderline(), and TextFont_SetWeight().

◆ impl_from_ITextPara()

static ITextParaImpl* impl_from_ITextPara ( ITextPara iface)
inlinestatic

Definition at line 301 of file richole.c.

302 {
303  return CONTAINING_RECORD(iface, ITextParaImpl, ITextPara_iface);
304 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by TextPara_AddRef(), TextPara_AddTab(), TextPara_CanChange(), TextPara_ClearAllTabs(), TextPara_DeleteTab(), TextPara_GetAlignment(), TextPara_GetDuplicate(), TextPara_GetFirstLineIndent(), TextPara_GetHyphenation(), TextPara_GetIDsOfNames(), TextPara_GetKeepTogether(), TextPara_GetKeepWithNext(), TextPara_GetLeftIndent(), TextPara_GetLineSpacing(), TextPara_GetLineSpacingRule(), TextPara_GetListAlignment(), TextPara_GetListLevelIndex(), TextPara_GetListStart(), TextPara_GetListTab(), TextPara_GetListType(), TextPara_GetNoLineNumber(), TextPara_GetPageBreakBefore(), TextPara_GetRightIndent(), TextPara_GetSpaceAfter(), TextPara_GetSpaceBefore(), TextPara_GetStyle(), TextPara_GetTab(), TextPara_GetTabCount(), TextPara_GetTypeInfo(), TextPara_GetTypeInfoCount(), TextPara_GetWidowControl(), TextPara_Invoke(), TextPara_IsEqual(), TextPara_QueryInterface(), TextPara_Release(), TextPara_Reset(), TextPara_SetAlignment(), TextPara_SetDuplicate(), TextPara_SetHyphenation(), TextPara_SetIndents(), TextPara_SetKeepTogether(), TextPara_SetKeepWithNext(), TextPara_SetLineSpacing(), TextPara_SetListAlignment(), TextPara_SetListLevelIndex(), TextPara_SetListStart(), TextPara_SetListTab(), TextPara_SetListType(), TextPara_SetNoLineNumber(), TextPara_SetPageBreakBefore(), TextPara_SetRightIndent(), TextPara_SetSpaceAfter(), TextPara_SetSpaceBefore(), TextPara_SetStyle(), and TextPara_SetWidowControl().

◆ impl_from_ITextRange()

static ITextRangeImpl* impl_from_ITextRange ( ITextRange iface)
inlinestatic

Definition at line 286 of file richole.c.

287 {
288  return CONTAINING_RECORD(iface, ITextRangeImpl, ITextRange_iface);
289 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by ITextRange_fnAddRef(), ITextRange_fnCanEdit(), ITextRange_fnCanPaste(), ITextRange_fnChangeCase(), ITextRange_fnCollapse(), ITextRange_fnCopy(), ITextRange_fnCut(), ITextRange_fnDelete(), ITextRange_fnEndOf(), ITextRange_fnExpand(), ITextRange_fnFindText(), ITextRange_fnFindTextEnd(), ITextRange_fnFindTextStart(), ITextRange_fnGetChar(), ITextRange_fnGetDuplicate(), ITextRange_fnGetEmbeddedObject(), ITextRange_fnGetEnd(), ITextRange_fnGetFont(), ITextRange_fnGetFormattedText(), ITextRange_fnGetIDsOfNames(), ITextRange_fnGetIndex(), ITextRange_fnGetPara(), ITextRange_fnGetPoint(), ITextRange_fnGetStart(), ITextRange_fnGetStoryLength(), ITextRange_fnGetStoryType(), ITextRange_fnGetText(), ITextRange_fnGetTypeInfo(), ITextRange_fnGetTypeInfoCount(), ITextRange_fnInRange(), ITextRange_fnInStory(), ITextRange_fnInvoke(), ITextRange_fnIsEqual(), ITextRange_fnMove(), ITextRange_fnMoveEnd(), ITextRange_fnMoveEndUntil(), ITextRange_fnMoveEndWhile(), ITextRange_fnMoveStart(), ITextRange_fnMoveStartUntil(), ITextRange_fnMoveStartWhile(), ITextRange_fnMoveUntil(), ITextRange_fnMoveWhile(), ITextRange_fnPaste(), ITextRange_fnQueryInterface(), ITextRange_fnRelease(), ITextRange_fnScrollIntoView(), ITextRange_fnSelect(), ITextRange_fnSetChar(), ITextRange_fnSetEnd(), ITextRange_fnSetFont(), ITextRange_fnSetFormattedText(), ITextRange_fnSetIndex(), ITextRange_fnSetPara(), ITextRange_fnSetPoint(), ITextRange_fnSetRange(), ITextRange_fnSetStart(), ITextRange_fnSetText(), ITextRange_fnStartOf(), and para_get_reole().

◆ impl_from_ITextSelection()

static ITextSelectionImpl* impl_from_ITextSelection ( ITextSelection iface)
inlinestatic

Definition at line 291 of file richole.c.

292 {
293  return CONTAINING_RECORD(iface, ITextSelectionImpl, ITextSelection_iface);
294 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by ITextSelection_fnAddRef(), ITextSelection_fnCanEdit(), ITextSelection_fnCanPaste(), ITextSelection_fnChangeCase(), ITextSelection_fnCollapse(), ITextSelection_fnCopy(), ITextSelection_fnCut(), ITextSelection_fnDelete(), ITextSelection_fnEndKey(), ITextSelection_fnEndOf(), ITextSelection_fnExpand(), ITextSelection_fnFindText(), ITextSelection_fnFindTextEnd(), ITextSelection_fnFindTextStart(), ITextSelection_fnGetChar(), ITextSelection_fnGetDuplicate(), ITextSelection_fnGetEmbeddedObject(), ITextSelection_fnGetEnd(), ITextSelection_fnGetFlags(), ITextSelection_fnGetFont(), ITextSelection_fnGetFormattedText(), ITextSelection_fnGetIDsOfNames(), ITextSelection_fnGetIndex(), ITextSelection_fnGetPara(), ITextSelection_fnGetPoint(), ITextSelection_fnGetStart(), ITextSelection_fnGetStoryLength(), ITextSelection_fnGetStoryType(), ITextSelection_fnGetText(), ITextSelection_fnGetType(), ITextSelection_fnGetTypeInfo(), ITextSelection_fnGetTypeInfoCount(), ITextSelection_fnHomeKey(), ITextSelection_fnInRange(), ITextSelection_fnInStory(), ITextSelection_fnInvoke(), ITextSelection_fnIsEqual(), ITextSelection_fnMove(), ITextSelection_fnMoveDown(), ITextSelection_fnMoveEnd(), ITextSelection_fnMoveEndUntil(), ITextSelection_fnMoveEndWhile(), ITextSelection_fnMoveLeft(), ITextSelection_fnMoveRight(), ITextSelection_fnMoveStart(), ITextSelection_fnMoveStartUntil(), ITextSelection_fnMoveStartWhile(), ITextSelection_fnMoveUntil(), ITextSelection_fnMoveUp(), ITextSelection_fnMoveWhile(), ITextSelection_fnPaste(), ITextSelection_fnQueryInterface(), ITextSelection_fnRelease(), ITextSelection_fnScrollIntoView(), ITextSelection_fnSelect(), ITextSelection_fnSetChar(), ITextSelection_fnSetEnd(), ITextSelection_fnSetFlags(), ITextSelection_fnSetFont(), ITextSelection_fnSetFormattedText(), ITextSelection_fnSetIndex(), ITextSelection_fnSetPara(), ITextSelection_fnSetPoint(), ITextSelection_fnSetRange(), ITextSelection_fnSetStart(), ITextSelection_fnSetText(), ITextSelection_fnStartOf(), and ITextSelection_fnTypeText().

◆ impl_from_IUnknown()

static IRichEditOleImpl* impl_from_IUnknown ( IUnknown iface)
inlinestatic

Definition at line 276 of file richole.c.

277 {
278  return CONTAINING_RECORD(iface, IRichEditOleImpl, IUnknown_inner);
279 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by IRichEditOleImpl_inner_fnAddRef(), IRichEditOleImpl_inner_fnQueryInterface(), and IRichEditOleImpl_inner_fnRelease().

◆ init_textfont_prop_value()

static void init_textfont_prop_value ( enum textfont_prop_id  propid,
textfont_prop_val v 
)
inlinestatic

Definition at line 386 of file richole.c.

387 {
388  switch (propid)
389  {
390  case FONT_ALLCAPS:
391  case FONT_ANIMATION:
392  case FONT_BACKCOLOR:
393  case FONT_BOLD:
394  case FONT_EMBOSS:
395  case FONT_FORECOLOR:
396  case FONT_HIDDEN:
397  case FONT_ENGRAVE:
398  case FONT_ITALIC:
399  case FONT_KERNING:
400  case FONT_LANGID:
401  case FONT_OUTLINE:
402  case FONT_PROTECTED:
403  case FONT_SHADOW:
404  case FONT_SMALLCAPS:
405  case FONT_STRIKETHROUGH:
406  case FONT_SUBSCRIPT:
407  case FONT_SUPERSCRIPT:
408  case FONT_UNDERLINE:
409  case FONT_WEIGHT:
410  v->l = tomUndefined;
411  return;
412  case FONT_NAME:
413  v->str = NULL;
414  return;
415  case FONT_POSITION:
416  case FONT_SIZE:
417  case FONT_SPACING:
418  v->f = tomUndefined;
419  return;
420  default:
421  FIXME("unhandled font property %d\n", propid);
422  v->l = tomUndefined;
423  return;
424  }
425 }
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
const GLdouble * v
Definition: gl.h:2040

Referenced by get_textfont_prop().

◆ IOleClientSite_fnAddRef()

static ULONG WINAPI IOleClientSite_fnAddRef ( IOleClientSite iface)
static

Definition at line 1087 of file richole.c.

1088 {
1091  TRACE("(%p)->(%u)\n", This, ref);
1092  return ref;
1093 }
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1

◆ IOleClientSite_fnGetContainer()

static HRESULT WINAPI IOleClientSite_fnGetContainer ( IOleClientSite iface,
IOleContainer **  ppContainer 
)
static

Definition at line 1133 of file richole.c.

1135 {
1137  if (!This->child.reole)
1138  return CO_E_RELEASED;
1139 
1140  FIXME("stub %p\n", iface);
1141  return E_NOTIMPL;
1142 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleClientSite_fnGetMoniker()

static HRESULT WINAPI IOleClientSite_fnGetMoniker ( IOleClientSite iface,
DWORD  dwAssign,
DWORD  dwWhichMoniker,
IMoniker **  ppmk 
)
static

Definition at line 1122 of file richole.c.

1124 {
1126  if (!This->child.reole)
1127  return CO_E_RELEASED;
1128 
1129  FIXME("stub %p\n", iface);
1130  return E_NOTIMPL;
1131 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleClientSite_fnOnShowWindow()

static HRESULT WINAPI IOleClientSite_fnOnShowWindow ( IOleClientSite iface,
BOOL  fShow 
)
static

Definition at line 1154 of file richole.c.

1155 {
1157  if (!This->child.reole)
1158  return CO_E_RELEASED;
1159 
1160  FIXME("stub %p\n", iface);
1161  return E_NOTIMPL;
1162 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleClientSite_fnQueryInterface()

static HRESULT WINAPI IOleClientSite_fnQueryInterface ( IOleClientSite me,
REFIID  riid,
LPVOID ppvObj 
)
static

Definition at line 1065 of file richole.c.

1066 {
1068  TRACE("%p %s\n", me, debugstr_guid(riid) );
1069 
1070  *ppvObj = NULL;
1071  if (IsEqualGUID(riid, &IID_IUnknown) ||
1073  *ppvObj = me;
1074  else if (IsEqualGUID(riid, &IID_IOleWindow) ||
1076  *ppvObj = &This->IOleInPlaceSite_iface;
1077  if (*ppvObj)
1078  {
1079  IOleClientSite_AddRef(me);
1080  return S_OK;
1081  }
1082  FIXME("%p: unhandled interface %s\n", me, debugstr_guid(riid) );
1083 
1084  return E_NOINTERFACE;
1085 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const GUID IID_IOleInPlaceSite
const GUID IID_IOleClientSite
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021
const GUID IID_IOleWindow

◆ IOleClientSite_fnRelease()

static ULONG WINAPI IOleClientSite_fnRelease ( IOleClientSite iface)
static

Definition at line 1095 of file richole.c.

1096 {
1099 
1100  TRACE("(%p)->(%u)\n", This, ref);
1101 
1102  if (ref == 0) {
1103  if (This->child.reole) {
1104  list_remove(&This->child.entry);
1105  This->child.reole = NULL;
1106  }
1107  heap_free(This);
1108  }
1109  return ref;
1110 }
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
smooth NULL
Definition: ftsmooth.c:416
__WINE_SERVER_LIST_INLINE void list_remove(struct list *elem)
Definition: list.h:108
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
unsigned int ULONG
Definition: retypes.h:1
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ IOleClientSite_fnRequestNewObjectLayout()

static HRESULT WINAPI IOleClientSite_fnRequestNewObjectLayout ( IOleClientSite iface)
static

Definition at line 1164 of file richole.c.

1165 {
1167  if (!This->child.reole)
1168  return CO_E_RELEASED;
1169 
1170  FIXME("stub %p\n", iface);
1171  return E_NOTIMPL;
1172 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleClientSite_fnSaveObject()

static HRESULT WINAPI IOleClientSite_fnSaveObject ( IOleClientSite iface)
static

Definition at line 1112 of file richole.c.

1113 {
1115  if (!This->child.reole)
1116  return CO_E_RELEASED;
1117 
1118  FIXME("stub %p\n", iface);
1119  return E_NOTIMPL;
1120 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleClientSite_fnShowObject()

static HRESULT WINAPI IOleClientSite_fnShowObject ( IOleClientSite iface)
static

Definition at line 1144 of file richole.c.

1145 {
1147  if (!This->child.reole)
1148  return CO_E_RELEASED;
1149 
1150  FIXME("stub %p\n", iface);
1151  return E_NOTIMPL;
1152 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: richole.c:1059
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnAddRef()

static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnAddRef ( IOleInPlaceSite iface)
static

Definition at line 1193 of file richole.c.

1194 {
1196  return IOleClientSite_AddRef(&This->IOleClientSite_iface);
1197 }
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281

◆ IOleInPlaceSite_fnCanInPlaceActivate()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnCanInPlaceActivate ( IOleInPlaceSite iface)
static

Definition at line 1228 of file richole.c.

1229 {
1231  FIXME("not implemented: (%p)\n", This);
1232  return E_NOTIMPL;
1233 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnContextSensitiveHelp()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnContextSensitiveHelp ( IOleInPlaceSite iface,
BOOL  fEnterMode 
)
static

Definition at line 1221 of file richole.c.

1222 {
1224  FIXME("not implemented: (%p)->(%d)\n", This, fEnterMode);
1225  return E_NOTIMPL;
1226 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnDeactivateAndUndo()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDeactivateAndUndo ( IOleInPlaceSite iface)
static

Definition at line 1286 of file richole.c.

1287 {
1289  FIXME("not implemented: (%p)\n", This);
1290  return E_NOTIMPL;
1291 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnDiscardUndoState()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnDiscardUndoState ( IOleInPlaceSite iface)
static

Definition at line 1279 of file richole.c.

1280 {
1282  FIXME("not implemented: (%p)\n", This);
1283  return E_NOTIMPL;
1284 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnGetWindow()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindow ( IOleInPlaceSite iface,
HWND phwnd 
)
static

Definition at line 1205 of file richole.c.

1206 {
1208 
1209  TRACE("(%p)->(%p)\n", This, phwnd);
1210 
1211  if (!This->child.reole)
1212  return CO_E_RELEASED;
1213 
1214  if (!phwnd)
1215  return E_INVALIDARG;
1216 
1217  *phwnd = This->child.reole->editor->hWnd;
1218  return S_OK;
1219 }
#define CO_E_RELEASED
Definition: winerror.h:2818
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define S_OK
Definition: intsafe.h:59

◆ IOleInPlaceSite_fnGetWindowContext()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindowContext ( IOleInPlaceSite iface,
IOleInPlaceFrame **  ppFrame,
IOleInPlaceUIWindow **  ppDoc,
LPRECT  lprcPosRect,
LPRECT  lprcClipRect,
LPOLEINPLACEFRAMEINFO  lpFrameInfo 
)
static

Definition at line 1249 of file richole.c.

1252 {
1254  FIXME("not implemented: (%p)->(%p %p %p %p %p)\n", This, ppFrame, ppDoc, lprcPosRect, lprcClipRect, lpFrameInfo);
1255  return E_NOTIMPL;
1256 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnOnInPlaceActivate()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceActivate ( IOleInPlaceSite iface)
static

Definition at line 1235 of file richole.c.

1236 {
1238  FIXME("not implemented: (%p)\n", This);
1239  return E_NOTIMPL;
1240 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnOnInPlaceDeactivate()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnInPlaceDeactivate ( IOleInPlaceSite iface)
static

Definition at line 1272 of file richole.c.

1273 {
1275  FIXME("not implemented: (%p)\n", This);
1276  return E_NOTIMPL;
1277 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnOnPosRectChange()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnPosRectChange ( IOleInPlaceSite iface,
LPCRECT  lprcPosRect 
)
static

Definition at line 1293 of file richole.c.

1294 {
1296  FIXME("not implemented: (%p)->(%p)\n", This, lprcPosRect);
1297  return E_NOTIMPL;
1298 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnOnUIActivate()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIActivate ( IOleInPlaceSite iface)
static

Definition at line 1242 of file richole.c.

1243 {
1245  FIXME("not implemented: (%p)\n", This);
1246  return E_NOTIMPL;
1247 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnOnUIDeactivate()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnOnUIDeactivate ( IOleInPlaceSite iface,
BOOL  fUndoable 
)
static

Definition at line 1265 of file richole.c.

1266 {
1268  FIXME("not implemented: (%p)->(%d)\n", This, fUndoable);
1269  return E_NOTIMPL;
1270 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IOleInPlaceSite_fnQueryInterface()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnQueryInterface ( IOleInPlaceSite iface,
REFIID  riid,
void **  ppvObj 
)
static

Definition at line 1187 of file richole.c.

1188 {
1190  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppvObj);
1191 }
REFIID riid
Definition: precomp.h:44
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281

◆ IOleInPlaceSite_fnRelease()

static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnRelease ( IOleInPlaceSite iface)
static

Definition at line 1199 of file richole.c.

1200 {
1202  return IOleClientSite_Release(&This->IOleClientSite_iface);
1203 }
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281

◆ IOleInPlaceSite_fnScroll()

static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnScroll ( IOleInPlaceSite iface,
SIZE  scrollExtent 
)
static

Definition at line 1258 of file richole.c.

1259 {
1261  FIXME("not implemented: (%p)\n", This);
1262  return E_NOTIMPL;
1263 }
#define FIXME(fmt,...)
Definition: debug.h:110
static IOleClientSiteImpl * impl_from_IOleInPlaceSite(IOleInPlaceSite *iface)
Definition: richole.c:281
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnActivateAs()

static HRESULT WINAPI IRichEditOle_fnActivateAs ( IRichEditOle me,
REFCLSID  rclsid,
REFCLSID  rclsidAs 
)
static

Definition at line 1035 of file richole.c.

1036 {
1038  FIXME("stub %p\n",This);
1039  return E_NOTIMPL;
1040 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnAddRef()

static ULONG WINAPI IRichEditOle_fnAddRef ( IRichEditOle me)
static

Definition at line 1021 of file richole.c.

1022 {
1024  return IUnknown_AddRef(This->outer_unk);
1025 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266

◆ IRichEditOle_fnContextSensitiveHelp()

static HRESULT WINAPI IRichEditOle_fnContextSensitiveHelp ( IRichEditOle me,
BOOL  fEnterMode 
)
static

Definition at line 1043 of file richole.c.

1044 {
1046  FIXME("stub %p\n",This);
1047  return E_NOTIMPL;
1048 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnConvertObject()

static HRESULT WINAPI IRichEditOle_fnConvertObject ( IRichEditOle me,
LONG  iob,
REFCLSID  rclsidNew,
LPCSTR  lpstrUserTypeNew 
)
static

Definition at line 1051 of file richole.c.

1053 {
1055  FIXME("stub %p\n",This);
1056  return E_NOTIMPL;
1057 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnGetClientSite()

static HRESULT WINAPI IRichEditOle_fnGetClientSite ( IRichEditOle me,
IOleClientSite **  clientsite 
)
static

Definition at line 1337 of file richole.c.

1338 {
1340 
1341  TRACE("(%p)->(%p)\n", This, clientsite);
1342 
1343  if (!clientsite)
1344  return E_INVALIDARG;
1345 
1346  return CreateOleClientSite(This, clientsite);
1347 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT CreateOleClientSite(IRichEditOleImpl *reOle, IOleClientSite **ret)
Definition: richole.c:1319

◆ IRichEditOle_fnGetClipboardData()

static HRESULT WINAPI IRichEditOle_fnGetClipboardData ( IRichEditOle me,
CHARRANGE lpchrg,
DWORD  reco,
LPDATAOBJECT lplpdataobj 
)
static

Definition at line 1350 of file richole.c.

1352 {
1354  ME_Cursor start;
1355  int nChars;
1356 
1357  TRACE("(%p,%p,%d)\n",This, lpchrg, reco);
1358  if(!lplpdataobj)
1359  return E_INVALIDARG;
1360  if(!lpchrg) {
1361  int nFrom, nTo, nStartCur = ME_GetSelectionOfs(This->editor, &nFrom, &nTo);
1362  start = This->editor->pCursors[nStartCur];
1363  nChars = nTo - nFrom;
1364  } else {
1365  ME_CursorFromCharOfs(This->editor, lpchrg->cpMin, &start);
1366  nChars = lpchrg->cpMax - lpchrg->cpMin;
1367  }
1368  return ME_GetDataObject(This->editor, &start, nChars, lplpdataobj);
1369 }
void ME_CursorFromCharOfs(ME_TextEditor *editor, int nCharOfs, ME_Cursor *pCursor) DECLSPEC_HIDDEN
Definition: run.c:171
HRESULT ME_GetDataObject(ME_TextEditor *editor, const ME_Cursor *start, int nChars, IDataObject **dataobj)
Definition: clipboard.c:405
LONG cpMax
Definition: richedit.h:501
int ME_GetSelectionOfs(ME_TextEditor *editor, int *from, int *to)
Definition: caret.c:42
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
GLuint start
Definition: gl.h:1545
LONG cpMin
Definition: richedit.h:500

◆ IRichEditOle_fnGetLinkCount()

static LONG WINAPI IRichEditOle_fnGetLinkCount ( IRichEditOle me)
static

Definition at line 1371 of file richole.c.

1372 {
1374  FIXME("stub %p\n",This);
1375  return E_NOTIMPL;
1376 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnGetObject()

static HRESULT WINAPI IRichEditOle_fnGetObject ( IRichEditOle me,
LONG  iob,
REOBJECT lpreobject,
DWORD  dwFlags 
)
static

Definition at line 1379 of file richole.c.

1381 {
1383  struct re_object *reobj = NULL;
1384  LONG count = 0;
1385 
1386  TRACE("(%p)->(%x, %p, %x)\n", This, iob, lpreobject, dwFlags);
1387 
1388  if (!lpreobject || !lpreobject->cbStruct)
1389  return E_INVALIDARG;
1390 
1391  if (iob == REO_IOB_USE_CP)
1392  {
1393  ME_Cursor cursor;
1394 
1395  TRACE("character offset: %d\n", lpreobject->cp);
1396  ME_CursorFromCharOfs(This->editor, lpreobject->cp, &cursor);
1397  if (!cursor.pRun->member.run.reobj)
1398  return E_INVALIDARG;
1399  else
1400  reobj = cursor.pRun->member.run.reobj;
1401  }
1402  else
1403  {
1404  if (iob > IRichEditOle_GetObjectCount(me))
1405  return E_INVALIDARG;
1406  LIST_FOR_EACH_ENTRY(reobj, &This->editor->reobj_list, struct re_object, entry)
1407  {
1408  if (count == iob)
1409  break;
1410  count++;
1411  }
1412  }
1413  ME_CopyReObject(lpreobject, &reobj->obj, dwFlags);
1414  return S_OK;
1415 }
void ME_CursorFromCharOfs(ME_TextEditor *editor, int nCharOfs, ME_Cursor *pCursor) DECLSPEC_HIDDEN
Definition: run.c:171
REOBJECT obj
Definition: editstr.h:159
GLuint GLuint GLsizei count
Definition: gl.h:1545
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
void ME_CopyReObject(REOBJECT *dst, const REOBJECT *src, DWORD flags)
Definition: richole.c:5912
long LONG
Definition: pedump.c:60
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
uint32_t entry
Definition: isohybrid.c:63
#define S_OK
Definition: intsafe.h:59
const char cursor[]
Definition: icontest.c:13

◆ IRichEditOle_fnGetObjectCount()

static LONG WINAPI IRichEditOle_fnGetObjectCount ( IRichEditOle me)
static

Definition at line 1418 of file richole.c.

1419 {
1421  TRACE("(%p)\n",This);
1422  return list_count(&This->editor->reobj_list);
1423 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
__WINE_SERVER_LIST_INLINE unsigned int list_count(const struct list *list)
Definition: list.h:155
#define TRACE(s)
Definition: solgame.cpp:4

◆ IRichEditOle_fnHandsOffStorage()

static HRESULT WINAPI IRichEditOle_fnHandsOffStorage ( IRichEditOle me,
LONG  iob 
)
static

Definition at line 1426 of file richole.c.

1427 {
1429  FIXME("stub %p\n",This);
1430  return E_NOTIMPL;
1431 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnImportDataObject()

static HRESULT WINAPI IRichEditOle_fnImportDataObject ( IRichEditOle me,
LPDATAOBJECT  lpdataobj,
CLIPFORMAT  cf,
HGLOBAL  hMetaPict 
)
static

Definition at line 1434 of file richole.c.

1436 {
1438  FIXME("stub %p\n",This);
1439  return E_NOTIMPL;
1440 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnInPlaceDeactivate()

static HRESULT WINAPI IRichEditOle_fnInPlaceDeactivate ( IRichEditOle me)
static

Definition at line 1443 of file richole.c.

1444 {
1446  FIXME("stub %p\n",This);
1447  return E_NOTIMPL;
1448 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnInsertObject()

static HRESULT WINAPI IRichEditOle_fnInsertObject ( IRichEditOle me,
REOBJECT reo 
)
static

Definition at line 1451 of file richole.c.

1452 {
1454 
1455  TRACE("(%p,%p)\n", This, reo);
1456 
1457  if (!reo)
1458  return E_INVALIDARG;
1459 
1460  if (reo->cbStruct < sizeof(*reo)) return STG_E_INVALIDPARAMETER;
1461 
1462  ME_InsertOLEFromCursor(This->editor, reo, 0);
1463  ME_CommitUndo(This->editor);
1464  ME_UpdateRepaint(This->editor, FALSE);
1465  return S_OK;
1466 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now) DECLSPEC_HIDDEN
Definition: paint.c:116
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
#define STG_E_INVALIDPARAMETER
Definition: winerror.h:2580
void ME_CommitUndo(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: undo.c:227
#define S_OK
Definition: intsafe.h:59
void ME_InsertOLEFromCursor(ME_TextEditor *editor, const REOBJECT *reo, int nCursor)
Definition: caret.c:487

◆ IRichEditOle_fnQueryInterface()

static HRESULT WINAPI IRichEditOle_fnQueryInterface ( IRichEditOle me,
REFIID  riid,
LPVOID ppvObj 
)
static

Definition at line 1014 of file richole.c.

1015 {
1017  return IUnknown_QueryInterface(This->outer_unk, riid, ppvObj);
1018 }
REFIID riid
Definition: precomp.h:44
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266

◆ IRichEditOle_fnRelease()

static ULONG WINAPI IRichEditOle_fnRelease ( IRichEditOle me)
static

Definition at line 1028 of file richole.c.

1029 {
1031  return IUnknown_Release(This->outer_unk);
1032 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266

◆ IRichEditOle_fnSaveCompleted()

static HRESULT WINAPI IRichEditOle_fnSaveCompleted ( IRichEditOle me,
LONG  iob,
LPSTORAGE  lpstg 
)
static

Definition at line 1468 of file richole.c.

1470 {
1472  FIXME("stub %p\n",This);
1473  return E_NOTIMPL;
1474 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnSetDvaspect()

static HRESULT WINAPI IRichEditOle_fnSetDvaspect ( IRichEditOle me,
LONG  iob,
DWORD  dvaspect 
)
static

Definition at line 1477 of file richole.c.

1478 {
1480  FIXME("stub %p\n",This);
1481  return E_NOTIMPL;
1482 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnSetHostNames()

static HRESULT WINAPI IRichEditOle_fnSetHostNames ( IRichEditOle me,
LPCSTR  lpstrContainerApp,
LPCSTR  lpstrContainerObj 
)
static

Definition at line 1484 of file richole.c.

1486 {
1488  FIXME("stub %p %s %s\n",This, lpstrContainerApp, lpstrContainerObj);
1489  return E_NOTIMPL;
1490 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOle_fnSetLinkAvailable()

static HRESULT WINAPI IRichEditOle_fnSetLinkAvailable ( IRichEditOle me,
LONG  iob,
BOOL  fAvailable 
)
static

Definition at line 1493 of file richole.c.

1494 {
1496  FIXME("stub %p\n",This);
1497  return E_NOTIMPL;
1498 }
static IRichEditOleImpl * impl_from_IRichEditOle(IRichEditOle *iface)
Definition: richole.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IRichEditOleImpl_inner_fnAddRef()

static ULONG WINAPI IRichEditOleImpl_inner_fnAddRef ( IUnknown iface)
static

Definition at line 967 of file richole.c.

968 {
971 
972  TRACE("%p ref = %u\n", This, ref);
973 
974  return ref;
975 }
static IRichEditOleImpl * impl_from_IUnknown(IUnknown *iface)
Definition: richole.c:276
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1

◆ IRichEditOleImpl_inner_fnQueryInterface()

static HRESULT WINAPI IRichEditOleImpl_inner_fnQueryInterface ( IUnknown iface,
REFIID  riid,
LPVOID ppvObj 
)
static

Definition at line 936 of file richole.c.

937 {
939 
940  TRACE("%p %s\n", This, debugstr_guid(riid));
941 
942  *ppvObj = NULL;
944  *ppvObj = &This->IUnknown_inner;
945  else if (IsEqualGUID(riid, &IID_IRichEditOle))
946  *ppvObj = &This->IRichEditOle_iface;
947  else if (IsEqualGUID(riid, &IID_ITextDocument) || IsEqualGUID(riid, &IID_ITextDocument2Old))
948  *ppvObj = &This->ITextDocument2Old_iface;
949  if (*ppvObj)
950  {
951  IUnknown_AddRef((IUnknown *)*ppvObj);
952  return S_OK;
953  }
954 
955  if (IsEqualGUID(riid, &IID_ITextServices))
956  {
957  static int once;
958  if (!once++) FIXME("%p: unhandled interface IID_ITextServices\n", This);
959  return E_NOINTERFACE;
960  }
961 
962  FIXME("%p: unhandled interface %s\n", This, debugstr_guid(riid));
963 
964  return E_NOINTERFACE;
965 }
#define E_NOINTERFACE
Definition: winerror.h:2364
static IRichEditOleImpl * impl_from_IUnknown(IUnknown *iface)
Definition: richole.c:276
REFIID riid
Definition: precomp.h:44
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ IRichEditOleImpl_inner_fnRelease()

static ULONG WINAPI IRichEditOleImpl_inner_fnRelease ( IUnknown iface)
static

Definition at line 977 of file richole.c.

978 {
981 
982  TRACE ("%p ref=%u\n", This, ref);
983 
984  if (!ref)
985  {
986  IOleClientSiteImpl *clientsite;
987  ITextRangeImpl *txtRge;
988 
989  This->editor->reOle = NULL;
990  if (This->txtSel) {
991  This->txtSel->reOle = NULL;
992  ITextSelection_Release(&This->txtSel->ITextSelection_iface);
993  }
994 
995  LIST_FOR_EACH_ENTRY(txtRge, &This->rangelist, ITextRangeImpl, child.entry)
996  txtRge->child.reole = NULL;
997 
998  LIST_FOR_EACH_ENTRY(clientsite, &This->clientsites, IOleClientSiteImpl, child.entry)
999  clientsite->child.reole = NULL;
1000 
1001  heap_free(This);
1002  }
1003  return ref;
1004 }
return
Definition: dirsup.c:529
static IRichEditOleImpl * impl_from_IUnknown(IUnknown *iface)
Definition: richole.c:276
Definition: send.c:47
static HWND child
Definition: cursoricon.c:298
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
uint32_t entry
Definition: isohybrid.c:63
unsigned int ULONG
Definition: retypes.h:1
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ is_equal_textfont_prop_value()

static BOOL is_equal_textfont_prop_value ( enum textfont_prop_id  propid,
textfont_prop_val left,
textfont_prop_val right 
)
inlinestatic

Definition at line 348 of file richole.c.

350 {
351  switch (propid)
352  {
353  case FONT_ALLCAPS:
354  case FONT_ANIMATION:
355  case FONT_BACKCOLOR:
356  case FONT_BOLD:
357  case FONT_EMBOSS:
358  case FONT_FORECOLOR:
359  case FONT_HIDDEN:
360  case FONT_ENGRAVE:
361  case FONT_ITALIC:
362  case FONT_KERNING:
363  case FONT_LANGID:
364  case FONT_OUTLINE:
365  case FONT_PROTECTED:
366  case FONT_SHADOW:
367  case FONT_SMALLCAPS:
368  case FONT_STRIKETHROUGH:
369  case FONT_SUBSCRIPT:
370  case FONT_SUPERSCRIPT:
371  case FONT_UNDERLINE:
372  case FONT_WEIGHT:
373  return left->l == right->l;
374  case FONT_NAME:
375  return !strcmpW(left->str, right->str);
376  case FONT_POSITION:
377  case FONT_SIZE:
378  case FONT_SPACING:
379  return left->f == right->f;
380  default:
381  FIXME("unhandled font property %d\n", propid);
382  return FALSE;
383  }
384 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLint left
Definition: glext.h:7726
GLdouble GLdouble right
Definition: glext.h:10859
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
Definition: unicode.h:229

Referenced by get_textfont_prop().

◆ ITextDocument2Old_fnAddRef()

static ULONG WINAPI ITextDocument2Old_fnAddRef ( ITextDocument2Old iface)
static

Definition at line 4125 of file richole.c.

4126 {
4128  return IRichEditOle_AddRef(&This->IRichEditOle_iface);
4129 }
static IRichEditOleImpl * impl_from_ITextDocument2Old(ITextDocument2Old *iface)
Definition: richole.c:271

◆ ITextDocument2Old_fnAttachMsgFilter()

static HRESULT WINAPI ITextDocument2Old_fnAttachMsgFilter ( ITextDocument2Old iface,
IUnknown filter 
)
static

Definition at line 4371 of file richole.c.

4372 {
4374 
4375  FIXME("(%p)->(%p): stub\n", This, filter);
4376 
4377  return E_NOTIMPL;
4378 }
static IRichEditOleImpl * impl_from_ITextDocument2Old(ITextDocument2Old *iface)
Definition: richole.c:271
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7005

◆ ITextDocument2Old_fnBeginEditCollection()

static HRESULT WINAPI ITextDocument2Old_fnBeginEditCollection ( ITextDocument2Old iface)
static

Definition at line 4305 of file richole.c.

4306 {
4308  FIXME("stub %p\n",This);
4309  return E_NOTIMPL;
4310 }
static IRichEditOleImpl * impl_from_ITextDocument2Old(ITextDocument2Old *iface)
Definition: richole.c:271
#define FIXME(fmt,...)
Definition: debug.h:110