ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

olefont.c File Reference
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "winerror.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "objbase.h"
#include "oleauto.h"
#include "ole2.h"
#include "olectl.h"
#include "wine/debug.h"
#include "connpt.h"
#include "oaidl.h"

Go to the source code of this file.

Data Structures

struct  PHFONTItem
struct  OLEFontImpl
struct  enum_data
struct  IClassFactoryImpl

Defines

#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define FONTPERSIST_ITALIC   0x02
#define FONTPERSIST_UNDERLINE   0x04
#define FONTPERSIST_STRIKETHROUGH   0x08

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ole)
static HDC get_dc (void)
static void delete_dc (void)
static void HFONTItem_Delete (PHFONTItem item)
static HFONTItemfind_hfontitem (HFONT hfont)
static HRESULT add_hfontitem (HFONT hfont)
static HRESULT inc_int_ref (HFONT hfont)
static HRESULT dec_int_ref (HFONT hfont)
static HRESULT inc_ext_ref (HFONT hfont)
static HRESULT dec_ext_ref (HFONT hfont)
static WCHARstrdupW (const WCHAR *str)
static OLEFontImplimpl_from_IDispatch (IDispatch *iface)
static OLEFontImplimpl_from_IPersistStream (IPersistStream *iface)
static OLEFontImplimpl_from_IConnectionPointContainer (IConnectionPointContainer *iface)
static OLEFontImplimpl_from_IPersistPropertyBag (IPersistPropertyBag *iface)
static OLEFontImplimpl_from_IPersistStreamInit (IPersistStreamInit *iface)
static OLEFontImplOLEFontImpl_Construct (const FONTDESC *fontDesc)
static void OLEFontImpl_Destroy (OLEFontImpl *fontDesc)
static ULONG WINAPI OLEFontImpl_AddRef (IFont *iface)
HRESULT WINAPI OleCreateFontIndirect (LPFONTDESC lpFontDesc, REFIID riid, LPVOID *ppvObj)
static void OLEFont_SendNotify (OLEFontImpl *this, DISPID dispID)
static HRESULT WINAPI OLEFontImpl_QueryInterface (IFont *iface, REFIID riid, void **ppvObject)
static ULONG WINAPI OLEFontImpl_Release (IFont *iface)
static int CALLBACK font_enum_proc (const LOGFONTW *elf, const TEXTMETRICW *ntm, DWORD type, LPARAM lp)
static void realize_font (OLEFontImpl *This)
static HRESULT WINAPI OLEFontImpl_get_Name (IFont *iface, BSTR *pname)
static HRESULT WINAPI OLEFontImpl_put_Name (IFont *iface, BSTR name)
static HRESULT WINAPI OLEFontImpl_get_Size (IFont *iface, CY *psize)
static HRESULT WINAPI OLEFontImpl_put_Size (IFont *iface, CY size)
static HRESULT WINAPI OLEFontImpl_get_Bold (IFont *iface, BOOL *pbold)
static HRESULT WINAPI OLEFontImpl_put_Bold (IFont *iface, BOOL bold)
static HRESULT WINAPI OLEFontImpl_get_Italic (IFont *iface, BOOL *pitalic)
static HRESULT WINAPI OLEFontImpl_put_Italic (IFont *iface, BOOL italic)
static HRESULT WINAPI OLEFontImpl_get_Underline (IFont *iface, BOOL *punderline)
static HRESULT WINAPI OLEFontImpl_put_Underline (IFont *iface, BOOL underline)
static HRESULT WINAPI OLEFontImpl_get_Strikethrough (IFont *iface, BOOL *pstrikethrough)
static HRESULT WINAPI OLEFontImpl_put_Strikethrough (IFont *iface, BOOL strikethrough)
static HRESULT WINAPI OLEFontImpl_get_Weight (IFont *iface, short *pweight)
static HRESULT WINAPI OLEFontImpl_put_Weight (IFont *iface, short weight)
static HRESULT WINAPI OLEFontImpl_get_Charset (IFont *iface, short *pcharset)
static HRESULT WINAPI OLEFontImpl_put_Charset (IFont *iface, short charset)
static HRESULT WINAPI OLEFontImpl_get_hFont (IFont *iface, HFONT *phfont)
static HRESULT WINAPI OLEFontImpl_Clone (IFont *iface, IFont **ppfont)
static HRESULT WINAPI OLEFontImpl_IsEqual (IFont *iface, IFont *pFontOther)
static HRESULT WINAPI OLEFontImpl_SetRatio (IFont *iface, LONG cyLogical, LONG cyHimetric)
static HRESULT WINAPI OLEFontImpl_QueryTextMetrics (IFont *iface, TEXTMETRICOLE *ptm)
static HRESULT WINAPI OLEFontImpl_AddRefHfont (IFont *iface, HFONT hfont)
static HRESULT WINAPI OLEFontImpl_ReleaseHfont (IFont *iface, HFONT hfont)
static HRESULT WINAPI OLEFontImpl_SetHdc (IFont *iface, HDC hdc)
static HRESULT WINAPI OLEFontImpl_IDispatch_QueryInterface (IDispatch *iface, REFIID riid, VOID **ppvoid)
static ULONG WINAPI OLEFontImpl_IDispatch_Release (IDispatch *iface)
static ULONG WINAPI OLEFontImpl_IDispatch_AddRef (IDispatch *iface)
static HRESULT WINAPI OLEFontImpl_GetTypeInfoCount (IDispatch *iface, unsigned int *pctinfo)
static HRESULT WINAPI OLEFontImpl_GetTypeInfo (IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI OLEFontImpl_GetIDsOfNames (IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI OLEFontImpl_Invoke (IDispatch *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExepInfo, UINT *puArgErr)
static HRESULT WINAPI OLEFontImpl_IPersistStream_QueryInterface (IPersistStream *iface, REFIID riid, VOID **ppvoid)
static ULONG WINAPI OLEFontImpl_IPersistStream_Release (IPersistStream *iface)
static ULONG WINAPI OLEFontImpl_IPersistStream_AddRef (IPersistStream *iface)
static HRESULT WINAPI OLEFontImpl_GetClassID (IPersistStream *iface, CLSID *pClassID)
static HRESULT WINAPI OLEFontImpl_IsDirty (IPersistStream *iface)
static HRESULT WINAPI OLEFontImpl_Load (IPersistStream *iface, IStream *pLoadStream)
static HRESULT WINAPI OLEFontImpl_Save (IPersistStream *iface, IStream *pOutStream, BOOL fClearDirty)
static HRESULT WINAPI OLEFontImpl_GetSizeMax (IPersistStream *iface, ULARGE_INTEGER *pcbSize)
static HRESULT WINAPI OLEFontImpl_IConnectionPointContainer_QueryInterface (IConnectionPointContainer *iface, REFIID riid, VOID **ppvoid)
static ULONG WINAPI OLEFontImpl_IConnectionPointContainer_Release (IConnectionPointContainer *iface)
static ULONG WINAPI OLEFontImpl_IConnectionPointContainer_AddRef (IConnectionPointContainer *iface)
static HRESULT WINAPI OLEFontImpl_EnumConnectionPoints (IConnectionPointContainer *iface, IEnumConnectionPoints **ppEnum)
static HRESULT WINAPI OLEFontImpl_FindConnectionPoint (IConnectionPointContainer *iface, REFIID riid, IConnectionPoint **ppCp)
static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_QueryInterface (IPersistPropertyBag *iface, REFIID riid, LPVOID *ppvObj)
static ULONG WINAPI OLEFontImpl_IPersistPropertyBag_AddRef (IPersistPropertyBag *iface)
static ULONG WINAPI OLEFontImpl_IPersistPropertyBag_Release (IPersistPropertyBag *iface)
static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_GetClassID (IPersistPropertyBag *iface, CLSID *classid)
static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_InitNew (IPersistPropertyBag *iface)
static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_Load (IPersistPropertyBag *iface, IPropertyBag *pPropBag, IErrorLog *pErrorLog)
static HRESULT WINAPI OLEFontImpl_IPersistPropertyBag_Save (IPersistPropertyBag *iface, IPropertyBag *pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_QueryInterface (IPersistStreamInit *iface, REFIID riid, LPVOID *ppvObj)
static ULONG WINAPI OLEFontImpl_IPersistStreamInit_AddRef (IPersistStreamInit *iface)
static ULONG WINAPI OLEFontImpl_IPersistStreamInit_Release (IPersistStreamInit *iface)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_GetClassID (IPersistStreamInit *iface, CLSID *classid)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_IsDirty (IPersistStreamInit *iface)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_Load (IPersistStreamInit *iface, LPSTREAM pStm)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_Save (IPersistStreamInit *iface, LPSTREAM pStm, BOOL fClearDirty)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_GetSizeMax (IPersistStreamInit *iface, ULARGE_INTEGER *pcbSize)
static HRESULT WINAPI OLEFontImpl_IPersistStreamInit_InitNew (IPersistStreamInit *iface)
static HRESULT WINAPI SFCF_QueryInterface (LPCLASSFACTORY iface, REFIID riid, LPVOID *ppobj)
static ULONG WINAPI SFCF_AddRef (LPCLASSFACTORY iface)
static ULONG WINAPI SFCF_Release (LPCLASSFACTORY iface)
static HRESULT WINAPI SFCF_CreateInstance (LPCLASSFACTORY iface, LPUNKNOWN pOuter, REFIID riid, LPVOID *ppobj)
static HRESULT WINAPI SFCF_LockServer (LPCLASSFACTORY iface, BOOL dolock)
void _get_STDFONT_CF (LPVOID *ppv)

Variables

static HDC olefont_hdc
static struct list OLEFontImpl_hFontList = LIST_INIT(OLEFontImpl_hFontList)
static LONG ifont_cnt = 0
static CRITICAL_SECTION OLEFontImpl_csHFONTLIST = { &OLEFontImpl_csHFONTLIST_debug, -1, 0, 0, 0, 0 }
static CRITICAL_SECTION_DEBUG OLEFontImpl_csHFONTLIST_debug
static const IFontVtbl OLEFontImpl_VTable
static const IDispatchVtbl OLEFontImpl_IDispatch_VTable
static const IPersistStreamVtbl OLEFontImpl_IPersistStream_VTable
static const
IConnectionPointContainerVtbl 
OLEFontImpl_IConnectionPointContainer_VTable
static const
IPersistPropertyBagVtbl 
OLEFontImpl_IPersistPropertyBag_VTable
static const IPersistStreamInitVtbl OLEFontImpl_IPersistStreamInit_VTable
static const IClassFactoryVtbl SFCF_Vtbl
static IClassFactoryImpl STDFONT_CF = {&SFCF_Vtbl, 1 }

Generated on Mon May 28 2012 05:16:23 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.