source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/xpsobjectmodel_1.idl@ 1171

Last change on this file since 1171 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 4.8 KB
RevLine 
[1166]1/**
2 * This file is part of the mingw-w64 runtime package.
3 * No warranty is given; refer to the file DISCLAIMER within this package.
4 */
5
6import "oaidl.idl";
7import "ocidl.idl";
8import "xpsobjectmodel.idl";
9
10cpp_quote("#include <winapifamily.h>")
11cpp_quote("")
12cpp_quote("#if NTDDI_VERSION >= 0x06020000")
13cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
14cpp_quote("#define XPS_E_INVALID_NUMBER_OF_POINTS_IN_CURVE_SEGMENTS MAKE_HRESULT(1, FACILITY_XPS, 0x600)")
15cpp_quote("#define XPS_E_ABSOLUTE_REFERENCE MAKE_HRESULT(1, FACILITY_XPS, 0x601)")
16cpp_quote("#define XPS_E_INVALID_NUMBER_OF_COLOR_CHANNELS MAKE_HRESULT(1, FACILITY_XPS, 0x602)")
17cpp_quote("")
18interface IXpsOMObjectFactory1;
19interface IXpsOMPackage1;
20interface IXpsOMPage1;
21
22typedef [v1_enum] enum {
23 XPS_DOCUMENT_TYPE_UNSPECIFIED = 1,
24 XPS_DOCUMENT_TYPE_XPS,
25 XPS_DOCUMENT_TYPE_OPENXPS
26} XPS_DOCUMENT_TYPE;
27
28[object, local, uuid (0a91b617-d612-4181-bf7c-be5824e9cc8f), pointer_default (ref)]
29interface IXpsOMObjectFactory1 : IXpsOMObjectFactory {
30 HRESULT GetDocumentTypeFromFile ([in] LPCWSTR filename,[out, retval] XPS_DOCUMENT_TYPE *documentType);
31 HRESULT GetDocumentTypeFromStream ([in] IStream *xpsDocumentStream,[out, retval] XPS_DOCUMENT_TYPE *documentType);
32 HRESULT ConvertHDPhotoToJpegXR ([in, out] IXpsOMImageResource *imageResource);
33 HRESULT ConvertJpegXRToHDPhoto ([in, out] IXpsOMImageResource *imageResource);
34 HRESULT CreatePackageWriterOnFile1 ([in, string] LPCWSTR fileName,[in, unique] LPSECURITY_ATTRIBUTES securityAttributes,[in] DWORD flagsAndAttributes,[in] BOOL optimizeMarkupSize,[in] XPS_INTERLEAVING interleaving,[in] IOpcPartUri *documentSequencePartName,[in] IXpsOMCoreProperties *coreProperties,[in] IXpsOMImageResource *packageThumbnail,[in] IXpsOMPrintTicketResource *documentSequencePrintTicket,[in] IOpcPartUri *discardControlPartName,[in] XPS_DOCUMENT_TYPE documentType,[out, retval] IXpsOMPackageWriter **packageWriter);
35 HRESULT CreatePackageWriterOnStream1 ([in] ISequentialStream *outputStream,[in] BOOL optimizeMarkupSize,[in] XPS_INTERLEAVING interleaving,[in] IOpcPartUri *documentSequencePartName,[in] IXpsOMCoreProperties *coreProperties,[in] IXpsOMImageResource *packageThumbnail,[in] IXpsOMPrintTicketResource *documentSequencePrintTicket,[in] IOpcPartUri *discardControlPartName,[in] XPS_DOCUMENT_TYPE documentType,[out, retval] IXpsOMPackageWriter **packageWriter);
36 HRESULT CreatePackage1 ([out, retval] IXpsOMPackage1 **package);
37 HRESULT CreatePackageFromStream1 ([in] IStream *stream,[in] BOOL reuseObjects,[out, retval] IXpsOMPackage1 **package);
38 HRESULT CreatePackageFromFile1 ([in, string] LPCWSTR filename,[in] BOOL reuseObjects,[out, retval] IXpsOMPackage1 **package);
39 HRESULT CreatePage1 ([in] const XPS_SIZE *pageDimensions,[in, string] LPCWSTR language,[in] IOpcPartUri *partUri,[out, retval] IXpsOMPage1 **page);
40 HRESULT CreatePageFromStream1 ([in] IStream *pageMarkupStream,[in] IOpcPartUri *partUri,[in] IXpsOMPartResources *resources,[in] BOOL reuseObjects,[out, retval] IXpsOMPage1 **page);
41 HRESULT CreateRemoteDictionaryResourceFromStream1 ([in] IStream *dictionaryMarkupStream,[in] IOpcPartUri *partUri,[in] IXpsOMPartResources *resources,[out, retval] IXpsOMRemoteDictionaryResource **dictionaryResource);
42}
43
44[object, local, uuid (95a9435e-12bb-461b-8e7f-c6adb04cd96a), pointer_default (ref)]
45interface IXpsOMPackage1 : IXpsOMPackage {
46 HRESULT GetDocumentType ([out, retval] XPS_DOCUMENT_TYPE *documentType);
47 HRESULT WriteToFile1 ([in, string] LPCWSTR fileName,[in, unique] LPSECURITY_ATTRIBUTES securityAttributes,[in] DWORD flagsAndAttributes,[in] BOOL optimizeMarkupSize,[in] XPS_DOCUMENT_TYPE documentType);
48 HRESULT WriteToStream1 ([in] ISequentialStream *outputStream,[in] BOOL optimizeMarkupSize,[in] XPS_DOCUMENT_TYPE documentType);
49}
50
51[object, local, uuid (305b60ef-6892-4dda-9cbb-3aa65974508a), pointer_default (ref)]
52interface IXpsOMPage1 : IXpsOMPage {
53 HRESULT GetDocumentType ([out, retval] XPS_DOCUMENT_TYPE *documentType);
54 HRESULT Write1 ([in] ISequentialStream *stream,[in] BOOL optimizeMarkupSize,[in] XPS_DOCUMENT_TYPE documentType);
55}
56
57[object, local, uuid (3b0b6d38-53ad-41da-b212-d37637a6714e), pointer_default (ref)]
58interface IXpsDocumentPackageTarget : IUnknown {
59 HRESULT GetXpsOMPackageWriter ([in] IOpcPartUri *documentSequencePartName,[in] IOpcPartUri *discardControlPartName,[out, retval] IXpsOMPackageWriter **packageWriter);
60 HRESULT GetXpsOMFactory ([out, retval] IXpsOMObjectFactory **xpsFactory);
61 HRESULT GetXpsType ([out, retval] XPS_DOCUMENT_TYPE *documentType);
62}
63
64[object, local, uuid (BF8FC1D4-9d46-4141-BA5F-94bb9250d041), pointer_default (ref)]
65interface IXpsOMRemoteDictionaryResource1 : IXpsOMRemoteDictionaryResource {
66 HRESULT GetDocumentType ([out, retval] XPS_DOCUMENT_TYPE *documentType);
67 HRESULT Write1 ([in] ISequentialStream *stream,[in] XPS_DOCUMENT_TYPE documentType);
68}
69cpp_quote("#endif")
70cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.