diff options
Diffstat (limited to 'TtfInfo.idl')
-rw-r--r-- | TtfInfo.idl | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/TtfInfo.idl b/TtfInfo.idl new file mode 100644 index 0000000..f682a4d --- /dev/null +++ b/TtfInfo.idl @@ -0,0 +1,54 @@ +// TtfInfo.idl : IDL source for TtfInfo.dll +// + +// This file will be processed by the MIDL tool to +// produce the type library (TtfInfo.tlb) and marshalling code. + +import "oaidl.idl"; +import "ocidl.idl"; + + [ + object, + uuid(F6CC491D-26B2-11D1-ACED-204C4F4F5020), + dual, + helpstring("ITrueTypeFontInfo Interface"), + pointer_default(unique) + ] + interface ITrueTypeFontInfo : IDispatch + { + [hidden, propget, id(0), helpstring("default property")] HRESULT _FileName([out, retval] BSTR *pVal); + [hidden, propput, id(0), helpstring("default property")] HRESULT _FileName([in] BSTR newVal); + [propget, id(1), helpstring("property FileName")] HRESULT FileName([out, retval] BSTR *pVal); + [propput, id(1), helpstring("property FileName")] HRESULT FileName([in] BSTR newVal); + [propget, id(2), helpstring("property Copyright")] HRESULT Copyright([out, retval] BSTR *pVal); + [propget, id(3), helpstring("property Family")] HRESULT Family([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pVal); + [propget, id(5), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); + [propget, id(6), helpstring("property PostscriptName")] HRESULT PostscriptName([out, retval] BSTR *pVal); + [propget, id(7), helpstring("property Subfamily")] HRESULT Subfamily([out, retval] BSTR *pVal); + [propget, id(8), helpstring("property Trademark")] HRESULT Trademark([out, retval] BSTR *pVal); + [propget, id(9), helpstring("property Version")] HRESULT Version([out, retval] BSTR *pVal); + [propget, id(10), helpstring("property RegisteredFileName")] HRESULT RegisteredFileName([out, retval] BSTR *pVal); + [id(11), helpstring("method GetFontsDirectory")] HRESULT GetFontsDirectory([out, retval] BSTR* pVal); + [id(12), helpstring("method Install")] HRESULT Install([in, optional] VARIANT_BOOL bPermanent); + [id(13), helpstring("method Uninstall")] HRESULT Uninstall([in, optional] VARIANT_BOOL bPermanent); + }; +[ + uuid(F6CC4910-26B2-11D1-ACED-204C4F4F5020), + version(1.0), + helpstring("TtfInfo 1.0 Type Library") +] +library TtfInfoLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(F6CC491E-26B2-11D1-ACED-204C4F4F5020), + helpstring("FontInfo Class") + ] + coclass FontInfo + { + [default] interface ITrueTypeFontInfo; + }; +}; |