xpsobjectmodel.idl 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  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. import "oaidl.idl";
  6. import "ocidl.idl";
  7. cpp_quote("#include <winapifamily.h>")
  8. cpp_quote("")
  9. cpp_quote("#if NTDDI_VERSION >= 0x06010000")
  10. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  11. import "msopc.idl";
  12. cpp_quote("#endif")
  13. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  14. cpp_quote("#define XPS_E_INVALID_LANGUAGE MAKE_HRESULT(1, FACILITY_XPS, 0x0)")
  15. cpp_quote("#define XPS_E_INVALID_NAME MAKE_HRESULT(1, FACILITY_XPS, 0x1)")
  16. cpp_quote("#define XPS_E_INVALID_RESOURCE_KEY MAKE_HRESULT(1, FACILITY_XPS, 0x2)")
  17. cpp_quote("#define XPS_E_INVALID_PAGE_SIZE MAKE_HRESULT(1, FACILITY_XPS, 0x3)")
  18. cpp_quote("#define XPS_E_INVALID_BLEED_BOX MAKE_HRESULT(1, FACILITY_XPS, 0x4)")
  19. cpp_quote("#define XPS_E_INVALID_THUMBNAIL_IMAGE_TYPE MAKE_HRESULT(1, FACILITY_XPS, 0x5)")
  20. cpp_quote("#define XPS_E_INVALID_LOOKUP_TYPE MAKE_HRESULT(1, FACILITY_XPS, 0x6)")
  21. cpp_quote("#define XPS_E_INVALID_FLOAT MAKE_HRESULT(1, FACILITY_XPS, 0x7)")
  22. cpp_quote("#define XPS_E_UNEXPECTED_CONTENT_TYPE MAKE_HRESULT(1, FACILITY_XPS, 0x8)")
  23. cpp_quote("#define XPS_E_INVALID_FONT_URI MAKE_HRESULT(1, FACILITY_XPS, 0xa)")
  24. cpp_quote("#define XPS_E_INVALID_CONTENT_BOX MAKE_HRESULT(1, FACILITY_XPS, 0xb)")
  25. cpp_quote("#define XPS_E_INVALID_MARKUP MAKE_HRESULT(1, FACILITY_XPS, 0xc)")
  26. cpp_quote("#define XPS_E_INVALID_XML_ENCODING MAKE_HRESULT(1, FACILITY_XPS, 0xd)")
  27. cpp_quote("#define XPS_E_INVALID_CONTENT_TYPE MAKE_HRESULT(1, FACILITY_XPS, 0xe)")
  28. cpp_quote("#define XPS_E_INVALID_OBFUSCATED_FONT_URI MAKE_HRESULT(1, FACILITY_XPS, 0xf)")
  29. cpp_quote("#define XPS_E_UNEXPECTED_RELATIONSHIP_TYPE MAKE_HRESULT(1, FACILITY_XPS, 0x10)")
  30. cpp_quote("#define XPS_E_UNEXPECTED_RESTRICTED_FONT_RELATIONSHIP MAKE_HRESULT(1, FACILITY_XPS, 0x11)")
  31. cpp_quote("#define XPS_E_MISSING_NAME MAKE_HRESULT(1, FACILITY_XPS, 0x100)")
  32. cpp_quote("#define XPS_E_MISSING_LOOKUP MAKE_HRESULT(1, FACILITY_XPS, 0x101)")
  33. cpp_quote("#define XPS_E_MISSING_GLYPHS MAKE_HRESULT(1, FACILITY_XPS, 0x102)")
  34. cpp_quote("#define XPS_E_MISSING_SEGMENT_DATA MAKE_HRESULT(1, FACILITY_XPS, 0x103)")
  35. cpp_quote("#define XPS_E_MISSING_COLORPROFILE MAKE_HRESULT(1, FACILITY_XPS, 0x104)")
  36. cpp_quote("#define XPS_E_MISSING_RELATIONSHIP_TARGET MAKE_HRESULT(1, FACILITY_XPS, 0x105)")
  37. cpp_quote("#define XPS_E_MISSING_RESOURCE_RELATIONSHIP MAKE_HRESULT(1, FACILITY_XPS, 0x106)")
  38. cpp_quote("#define XPS_E_MISSING_FONTURI MAKE_HRESULT(1, FACILITY_XPS, 0x107)")
  39. cpp_quote("#define XPS_E_MISSING_DOCUMENTSEQUENCE_RELATIONSHIP MAKE_HRESULT(1, FACILITY_XPS, 0x108)")
  40. cpp_quote("#define XPS_E_MISSING_DOCUMENT MAKE_HRESULT(1, FACILITY_XPS, 0x109)")
  41. cpp_quote("#define XPS_E_MISSING_REFERRED_DOCUMENT MAKE_HRESULT(1, FACILITY_XPS, 0x10a)")
  42. cpp_quote("#define XPS_E_MISSING_REFERRED_PAGE MAKE_HRESULT(1, FACILITY_XPS, 0x10b)")
  43. cpp_quote("#define XPS_E_MISSING_PAGE_IN_DOCUMENT MAKE_HRESULT(1, FACILITY_XPS, 0x10c)")
  44. cpp_quote("#define XPS_E_MISSING_PAGE_IN_PAGEREFERENCE MAKE_HRESULT(1, FACILITY_XPS, 0x10d)")
  45. cpp_quote("#define XPS_E_MISSING_IMAGE_IN_IMAGEBRUSH MAKE_HRESULT(1, FACILITY_XPS, 0x10e)")
  46. cpp_quote("#define XPS_E_MISSING_RESOURCE_KEY MAKE_HRESULT(1, FACILITY_XPS, 0x10f)")
  47. cpp_quote("#define XPS_E_MISSING_PART_REFERENCE MAKE_HRESULT(1, FACILITY_XPS, 0x110)")
  48. cpp_quote("#define XPS_E_MISSING_RESTRICTED_FONT_RELATIONSHIP MAKE_HRESULT(1, FACILITY_XPS, 0x111)")
  49. cpp_quote("#define XPS_E_MISSING_DISCARDCONTROL MAKE_HRESULT(1, FACILITY_XPS, 0x112)")
  50. cpp_quote("#define XPS_E_MISSING_PART_STREAM MAKE_HRESULT(1, FACILITY_XPS, 0x113)")
  51. cpp_quote("#define XPS_E_UNAVAILABLE_PACKAGE MAKE_HRESULT(1, FACILITY_XPS, 0x114)")
  52. cpp_quote("#define XPS_E_DUPLICATE_RESOURCE_KEYS MAKE_HRESULT(1, FACILITY_XPS, 0x200)")
  53. cpp_quote("#define XPS_E_MULTIPLE_RESOURCES MAKE_HRESULT(1, FACILITY_XPS, 0x201)")
  54. cpp_quote("#define XPS_E_MULTIPLE_DOCUMENTSEQUENCE_RELATIONSHIPS MAKE_HRESULT(1, FACILITY_XPS, 0x202)")
  55. cpp_quote("#define XPS_E_MULTIPLE_THUMBNAILS_ON_PAGE MAKE_HRESULT(1, FACILITY_XPS, 0x203)")
  56. cpp_quote("#define XPS_E_MULTIPLE_THUMBNAILS_ON_PACKAGE MAKE_HRESULT(1, FACILITY_XPS, 0x204)")
  57. cpp_quote("#define XPS_E_MULTIPLE_PRINTTICKETS_ON_PAGE MAKE_HRESULT(1, FACILITY_XPS, 0x205)")
  58. cpp_quote("#define XPS_E_MULTIPLE_PRINTTICKETS_ON_DOCUMENT MAKE_HRESULT(1, FACILITY_XPS, 0x206)")
  59. cpp_quote("#define XPS_E_MULTIPLE_PRINTTICKETS_ON_DOCUMENTSEQUENCE MAKE_HRESULT(1, FACILITY_XPS, 0x207)")
  60. cpp_quote("#define XPS_E_MULTIPLE_REFERENCES_TO_PART MAKE_HRESULT(1, FACILITY_XPS, 0x208)")
  61. cpp_quote("#define XPS_E_DUPLICATE_NAMES MAKE_HRESULT(1, FACILITY_XPS, 0x209)")
  62. cpp_quote("#define XPS_E_STRING_TOO_LONG MAKE_HRESULT(1, FACILITY_XPS, 0x300)")
  63. cpp_quote("#define XPS_E_TOO_MANY_INDICES MAKE_HRESULT(1, FACILITY_XPS, 0x301)")
  64. cpp_quote("#define XPS_E_MAPPING_OUT_OF_ORDER MAKE_HRESULT(1, FACILITY_XPS, 0x302)")
  65. cpp_quote("#define XPS_E_MAPPING_OUTSIDE_STRING MAKE_HRESULT(1, FACILITY_XPS, 0x303)")
  66. cpp_quote("#define XPS_E_MAPPING_OUTSIDE_INDICES MAKE_HRESULT(1, FACILITY_XPS, 0x304)")
  67. cpp_quote("#define XPS_E_CARET_OUTSIDE_STRING MAKE_HRESULT(1, FACILITY_XPS, 0x305)")
  68. cpp_quote("#define XPS_E_CARET_OUT_OF_ORDER MAKE_HRESULT(1, FACILITY_XPS, 0x306)")
  69. cpp_quote("#define XPS_E_ODD_BIDILEVEL MAKE_HRESULT(1, FACILITY_XPS, 0x307)")
  70. cpp_quote("#define XPS_E_ONE_TO_ONE_MAPPING_EXPECTED MAKE_HRESULT(1, FACILITY_XPS, 0x308)")
  71. cpp_quote("#define XPS_E_RESTRICTED_FONT_NOT_OBFUSCATED MAKE_HRESULT(1, FACILITY_XPS, 0x309)")
  72. cpp_quote("#define XPS_E_NEGATIVE_FLOAT MAKE_HRESULT(1, FACILITY_XPS, 0x30a)")
  73. cpp_quote("#define XPS_E_XKEY_ATTR_PRESENT_OUTSIDE_RES_DICT MAKE_HRESULT(1, FACILITY_XPS, 0x400)")
  74. cpp_quote("#define XPS_E_DICTIONARY_ITEM_NAMED MAKE_HRESULT(1, FACILITY_XPS, 0x401)")
  75. cpp_quote("#define XPS_E_NESTED_REMOTE_DICTIONARY MAKE_HRESULT(1, FACILITY_XPS, 0x402)")
  76. cpp_quote("#define XPS_E_INDEX_OUT_OF_RANGE MAKE_HRESULT(1, FACILITY_XPS, 0x500)")
  77. cpp_quote("#define XPS_E_VISUAL_CIRCULAR_REF MAKE_HRESULT(1, FACILITY_XPS, 0x501)")
  78. cpp_quote("#define XPS_E_NO_CUSTOM_OBJECTS MAKE_HRESULT(1, FACILITY_XPS, 0x502)")
  79. cpp_quote("#define XPS_E_ALREADY_OWNED MAKE_HRESULT(1, FACILITY_XPS, 0x503)")
  80. cpp_quote("#define XPS_E_RESOURCE_NOT_OWNED MAKE_HRESULT(1, FACILITY_XPS, 0x504)")
  81. cpp_quote("#define XPS_E_UNEXPECTED_COLORPROFILE MAKE_HRESULT(1, FACILITY_XPS, 0x505)")
  82. cpp_quote("#define XPS_E_COLOR_COMPONENT_OUT_OF_RANGE MAKE_HRESULT(1, FACILITY_XPS, 0x506)")
  83. cpp_quote("#define XPS_E_BOTH_PATHFIGURE_AND_ABBR_SYNTAX_PRESENT MAKE_HRESULT(1, FACILITY_XPS, 0x507)")
  84. cpp_quote("#define XPS_E_BOTH_RESOURCE_AND_SOURCEATTR_PRESENT MAKE_HRESULT(1, FACILITY_XPS, 0x508)")
  85. cpp_quote("#define XPS_E_BLEED_BOX_PAGE_DIMENSIONS_NOT_IN_SYNC MAKE_HRESULT(1, FACILITY_XPS, 0x509)")
  86. cpp_quote("#define XPS_E_RELATIONSHIP_EXTERNAL MAKE_HRESULT(1, FACILITY_XPS, 0x50a)")
  87. cpp_quote("#define XPS_E_NOT_ENOUGH_GRADIENT_STOPS MAKE_HRESULT(1, FACILITY_XPS, 0x50b)")
  88. cpp_quote("#define XPS_E_PACKAGE_WRITER_NOT_CLOSED MAKE_HRESULT(1, FACILITY_XPS, 0x50c)")
  89. interface IXpsOMDocumentStructureResource;
  90. interface IXpsOMCoreProperties;
  91. interface IXpsOMPrintTicketResource;
  92. interface IXpsOMStoryFragmentsResource;
  93. interface IXpsOMPackage;
  94. interface IXpsOMPart;
  95. interface IXpsOMShareable;
  96. interface IXpsOMVisual;
  97. interface IXpsOMBrush;
  98. interface IXpsOMTileBrush;
  99. interface IXpsOMResource;
  100. interface IXpsOMCanvas;
  101. interface IXpsOMColorProfileResource;
  102. interface IXpsOMColorProfileResourceCollection;
  103. interface IXpsOMDashCollection;
  104. interface IXpsOMFontResource;
  105. interface IXpsOMFontResourceCollection;
  106. interface IXpsOMGeometry;
  107. interface IXpsOMGeometryFigure;
  108. interface IXpsOMGeometryFigureCollection;
  109. interface IXpsOMGlyphs;
  110. interface IXpsOMGradientBrush;
  111. interface IXpsOMGradientStop;
  112. interface IXpsOMGradientStopCollection;
  113. interface IXpsOMImageBrush;
  114. interface IXpsOMImageResource;
  115. interface IXpsOMImageResourceCollection;
  116. interface IXpsOMLinearGradientBrush;
  117. interface IXpsOMMatrixTransform;
  118. interface IXpsOMPartResources;
  119. interface IXpsOMPath;
  120. interface IXpsOMPartUriCollection;
  121. interface IXpsOMRadialGradientBrush;
  122. interface IXpsOMRemoteDictionaryResource;
  123. interface IXpsOMRemoteDictionaryResourceCollection;
  124. interface IXpsOMDictionary;
  125. interface IXpsOMShareable;
  126. interface IXpsOMSolidColorBrush;
  127. interface IXpsOMTileBrush;
  128. interface IXpsOMVisualBrush;
  129. interface IXpsOMVisualCollection;
  130. interface IXpsOMPageReference;
  131. interface IXpsOMDocumentSequence;
  132. interface IXpsOMSignatureBlockResource;
  133. interface IXpsOMSignatureBlockResourceCollection;
  134. interface IXpsOMNameCollection;
  135. interface IXpsOMDocument;
  136. interface IXpsOMPage;
  137. interface IXpsOMPackageWriter;
  138. interface IXpsOMPackageTarget;
  139. typedef [v1_enum] enum {
  140. XPS_COLOR_INTERPOLATION_SCRGBLINEAR = 1,
  141. XPS_COLOR_INTERPOLATION_SRGBLINEAR
  142. } XPS_COLOR_INTERPOLATION;
  143. typedef [v1_enum] enum {
  144. XPS_COLOR_TYPE_SRGB = 1,
  145. XPS_COLOR_TYPE_SCRGB,
  146. XPS_COLOR_TYPE_CONTEXT
  147. } XPS_COLOR_TYPE;
  148. typedef [v1_enum] enum {
  149. XPS_DASH_CAP_FLAT = 1,
  150. XPS_DASH_CAP_ROUND,
  151. XPS_DASH_CAP_SQUARE,
  152. XPS_DASH_CAP_TRIANGLE
  153. } XPS_DASH_CAP;
  154. typedef [v1_enum] enum {
  155. XPS_FILL_RULE_EVENODD = 1,
  156. XPS_FILL_RULE_NONZERO
  157. } XPS_FILL_RULE;
  158. typedef [v1_enum] enum {
  159. XPS_FONT_EMBEDDING_NORMAL = 1,
  160. XPS_FONT_EMBEDDING_OBFUSCATED,
  161. XPS_FONT_EMBEDDING_RESTRICTED,
  162. XPS_FONT_EMBEDDING_RESTRICTED_UNOBFUSCATED
  163. } XPS_FONT_EMBEDDING;
  164. typedef [v1_enum] enum {
  165. XPS_IMAGE_TYPE_JPEG = 1,
  166. XPS_IMAGE_TYPE_PNG,
  167. XPS_IMAGE_TYPE_TIFF,
  168. XPS_IMAGE_TYPE_WDP,
  169. XPS_IMAGE_TYPE_JXR
  170. } XPS_IMAGE_TYPE;
  171. typedef [v1_enum] enum {
  172. XPS_INTERLEAVING_OFF = 1,
  173. XPS_INTERLEAVING_ON,
  174. } XPS_INTERLEAVING;
  175. typedef [v1_enum] enum {
  176. XPS_LINE_CAP_FLAT = 1,
  177. XPS_LINE_CAP_ROUND,
  178. XPS_LINE_CAP_SQUARE,
  179. XPS_LINE_CAP_TRIANGLE
  180. } XPS_LINE_CAP;
  181. typedef [v1_enum] enum {
  182. XPS_LINE_JOIN_MITER = 1,
  183. XPS_LINE_JOIN_BEVEL,
  184. XPS_LINE_JOIN_ROUND
  185. } XPS_LINE_JOIN;
  186. typedef [v1_enum] enum {
  187. XPS_OBJECT_TYPE_CANVAS = 1,
  188. XPS_OBJECT_TYPE_GLYPHS,
  189. XPS_OBJECT_TYPE_PATH,
  190. XPS_OBJECT_TYPE_MATRIX_TRANSFORM,
  191. XPS_OBJECT_TYPE_GEOMETRY,
  192. XPS_OBJECT_TYPE_SOLID_COLOR_BRUSH,
  193. XPS_OBJECT_TYPE_IMAGE_BRUSH,
  194. XPS_OBJECT_TYPE_LINEAR_GRADIENT_BRUSH,
  195. XPS_OBJECT_TYPE_RADIAL_GRADIENT_BRUSH,
  196. XPS_OBJECT_TYPE_VISUAL_BRUSH
  197. } XPS_OBJECT_TYPE;
  198. typedef [v1_enum] enum {
  199. XPS_SEGMENT_STROKE_PATTERN_ALL = 1,
  200. XPS_SEGMENT_STROKE_PATTERN_NONE,
  201. XPS_SEGMENT_STROKE_PATTERN_MIXED
  202. } XPS_SEGMENT_STROKE_PATTERN;
  203. typedef [v1_enum] enum {
  204. XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE = 1,
  205. XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE,
  206. XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE,
  207. XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE,
  208. XPS_SEGMENT_TYPE_BEZIER,
  209. XPS_SEGMENT_TYPE_LINE,
  210. XPS_SEGMENT_TYPE_QUADRATIC_BEZIER
  211. } XPS_SEGMENT_TYPE;
  212. typedef [v1_enum] enum {
  213. XPS_SPREAD_METHOD_PAD = 1,
  214. XPS_SPREAD_METHOD_REFLECT,
  215. XPS_SPREAD_METHOD_REPEAT
  216. } XPS_SPREAD_METHOD;
  217. typedef [v1_enum] enum {
  218. XPS_STYLE_SIMULATION_NONE = 1,
  219. XPS_STYLE_SIMULATION_ITALIC,
  220. XPS_STYLE_SIMULATION_BOLD,
  221. XPS_STYLE_SIMULATION_BOLDITALIC
  222. } XPS_STYLE_SIMULATION;
  223. typedef [v1_enum] enum {
  224. XPS_THUMBNAIL_SIZE_VERYSMALL = 1,
  225. XPS_THUMBNAIL_SIZE_SMALL,
  226. XPS_THUMBNAIL_SIZE_MEDIUM,
  227. XPS_THUMBNAIL_SIZE_LARGE
  228. } XPS_THUMBNAIL_SIZE;
  229. typedef [v1_enum] enum {
  230. XPS_TILE_MODE_NONE = 1,
  231. XPS_TILE_MODE_TILE,
  232. XPS_TILE_MODE_FLIPX,
  233. XPS_TILE_MODE_FLIPY,
  234. XPS_TILE_MODE_FLIPXY
  235. } XPS_TILE_MODE;
  236. typedef union switch (XPS_COLOR_TYPE colorType) value {
  237. case XPS_COLOR_TYPE_SRGB: struct {
  238. UINT8 alpha, red, green, blue;
  239. } sRGB;
  240. case XPS_COLOR_TYPE_SCRGB: struct {
  241. FLOAT alpha, red, green, blue;
  242. } scRGB;
  243. case XPS_COLOR_TYPE_CONTEXT: struct {
  244. UINT8 channelCount;
  245. FLOAT channels[9];
  246. } context;
  247. } XPS_COLOR;
  248. typedef struct {
  249. FLOAT length;
  250. FLOAT gap;
  251. } XPS_DASH;
  252. typedef struct {
  253. LONG index;
  254. FLOAT advanceWidth;
  255. FLOAT horizontalOffset;
  256. FLOAT verticalOffset;
  257. } XPS_GLYPH_INDEX;
  258. typedef struct {
  259. UINT32 unicodeStringStart;
  260. UINT16 unicodeStringLength;
  261. UINT32 glyphIndicesStart;
  262. UINT16 glyphIndicesLength;
  263. } XPS_GLYPH_MAPPING;
  264. typedef struct {
  265. FLOAT m11, m12, m21, m22, m31, m32;
  266. } XPS_MATRIX;
  267. typedef struct {
  268. FLOAT x;
  269. FLOAT y;
  270. } XPS_POINT;
  271. typedef struct {
  272. FLOAT x;
  273. FLOAT y;
  274. FLOAT width;
  275. FLOAT height;
  276. } XPS_RECT;
  277. typedef struct {
  278. FLOAT width;
  279. FLOAT height;
  280. } XPS_SIZE;
  281. [object, uuid (7137398f-2fc1-454d-8c6a-2c3115a16ece)]
  282. interface IXpsOMShareable : IUnknown {
  283. HRESULT GetOwner ([out, retval] IUnknown **owner);
  284. HRESULT GetType ([out, retval] XPS_OBJECT_TYPE *type);
  285. }
  286. [object, uuid (74eb2f0b-a91e-4486-afac-0fabeca3dfc6)]
  287. interface IXpsOMPart : IUnknown {
  288. HRESULT GetPartName ([out, retval] IOpcPartUri **partUri);
  289. HRESULT SetPartName ([in] IOpcPartUri *partUri);
  290. }
  291. [object, uuid (A5AB8616-5b16-4b9f-9629-89b323ed7909)]
  292. interface IXpsOMGlyphsEditor : IUnknown {
  293. HRESULT ApplyEdits ();
  294. HRESULT GetUnicodeString ([out, string, retval] LPWSTR *unicodeString);
  295. HRESULT SetUnicodeString ([in, string] LPCWSTR unicodeString);
  296. HRESULT GetGlyphIndexCount ([out, retval] UINT32 *indexCount);
  297. HRESULT GetGlyphIndices ([in, out] UINT32 *indexCount,[out] XPS_GLYPH_INDEX *glyphIndices);
  298. HRESULT SetGlyphIndices ([in] UINT32 indexCount,[in] const XPS_GLYPH_INDEX *glyphIndices);
  299. HRESULT GetGlyphMappingCount ([out, retval] UINT32 *glyphMappingCount);
  300. HRESULT GetGlyphMappings ([in, out] UINT32 *glyphMappingCount,[out] XPS_GLYPH_MAPPING *glyphMappings);
  301. HRESULT SetGlyphMappings ([in] UINT32 glyphMappingCount,[in] const XPS_GLYPH_MAPPING *glyphMappings);
  302. HRESULT GetProhibitedCaretStopCount ([out, retval] UINT32 *prohibitedCaretStopCount);
  303. HRESULT GetProhibitedCaretStops ([in, out] UINT32 *count,[out] UINT32 *prohibitedCaretStops);
  304. HRESULT SetProhibitedCaretStops ([in] UINT32 count,[in] const UINT32 *prohibitedCaretStops);
  305. HRESULT GetBidiLevel ([out, retval] UINT32 *bidiLevel);
  306. HRESULT SetBidiLevel ([in] UINT32 bidiLevel);
  307. HRESULT GetIsSideways ([out, retval] BOOL *isSideways);
  308. HRESULT SetIsSideways ([in] BOOL isSideways);
  309. HRESULT GetDeviceFontName ([out, string, retval] LPWSTR *deviceFontName);
  310. HRESULT SetDeviceFontName ([in, string] LPCWSTR deviceFontName);
  311. }
  312. [object, uuid (081613f4-74eb-48f2-83b3-37a9ce2d7dc6)]
  313. interface IXpsOMDashCollection : IUnknown {
  314. HRESULT GetCount ([out, retval] UINT32 *count);
  315. HRESULT GetAt ([in] UINT32 index,[out, retval] XPS_DASH *dash);
  316. HRESULT InsertAt ([in] UINT32 index,[in] const XPS_DASH *dash);
  317. HRESULT RemoveAt ([in] UINT32 index);
  318. HRESULT SetAt ([in] UINT32 index,[in] const XPS_DASH *dash);
  319. HRESULT Append ([in] const XPS_DASH *dash);
  320. }
  321. [object, uuid (D410DC83-908c-443e-8947-B1795D3C165A)]
  322. interface IXpsOMGeometryFigure : IUnknown {
  323. HRESULT GetOwner ([out, retval] IXpsOMGeometry **owner);
  324. HRESULT GetSegmentData ([in, out] UINT32 *dataCount,[in, out] FLOAT *segmentData);
  325. HRESULT GetSegmentTypes ([in, out] UINT32 *segmentCount,[in, out] XPS_SEGMENT_TYPE *segmentTypes);
  326. HRESULT GetSegmentStrokes ([in, out] UINT32 *segmentCount,[in, out] BOOL *segmentStrokes);
  327. HRESULT SetSegments ([in] UINT32 segmentCount,[in] UINT32 segmentDataCount,[in] const XPS_SEGMENT_TYPE *segmentTypes,[in] const FLOAT *segmentData,[in] const BOOL *segmentStrokes);
  328. HRESULT GetStartPoint ([out, retval] XPS_POINT *startPoint);
  329. HRESULT SetStartPoint ([in] const XPS_POINT *startPoint);
  330. HRESULT GetIsClosed ([out, retval] BOOL *isClosed);
  331. HRESULT SetIsClosed ([in] BOOL isClosed);
  332. HRESULT GetIsFilled ([out, retval] BOOL *isFilled);
  333. HRESULT SetIsFilled ([in] BOOL isFilled);
  334. HRESULT GetSegmentCount ([out, retval] UINT32 *segmentCount);
  335. HRESULT GetSegmentDataCount ([out, retval] UINT32 *segmentDataCount);
  336. HRESULT GetSegmentStrokePattern ([out, retval] XPS_SEGMENT_STROKE_PATTERN *segmentStrokePattern);
  337. HRESULT Clone ([out, retval] IXpsOMGeometryFigure **geometryFigure);
  338. }
  339. [object, uuid (FD48C3F3-A58E-4b5a-8826-1de54abe72b2)]
  340. interface IXpsOMGeometryFigureCollection : IUnknown {
  341. HRESULT GetCount ([out, retval] UINT32 *count);
  342. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMGeometryFigure **geometryFigure);
  343. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMGeometryFigure *geometryFigure);
  344. HRESULT RemoveAt ([in] UINT32 index);
  345. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMGeometryFigure *geometryFigure);
  346. HRESULT Append ([in] IXpsOMGeometryFigure *geometryFigure);
  347. }
  348. [object, uuid (C9174C3A-3cd3-4319-BDA4-11a39392ceef)]
  349. interface IXpsOMGradientStopCollection : IUnknown {
  350. HRESULT GetCount ([out, retval] UINT32 *count);
  351. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMGradientStop **stop);
  352. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMGradientStop *stop);
  353. HRESULT RemoveAt ([in] UINT32 index);
  354. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMGradientStop *stop);
  355. HRESULT Append ([in] IXpsOMGradientStop *stop);
  356. }
  357. [object, uuid (5cf4f5cc-3969-49b5-A70A-5550b618fe49)]
  358. interface IXpsOMGradientStop : IUnknown {
  359. HRESULT GetOwner ([out, retval] IXpsOMGradientBrush **owner);
  360. HRESULT GetOffset ([out, retval] FLOAT *offset);
  361. HRESULT SetOffset ([in] FLOAT offset);
  362. HRESULT GetColor ([out] XPS_COLOR *color,[out, retval] IXpsOMColorProfileResource **colorProfile);
  363. HRESULT SetColor ([in] const XPS_COLOR *color,[in] IXpsOMColorProfileResource *colorProfile);
  364. HRESULT Clone ([out, retval] IXpsOMGradientStop **gradientStop);
  365. }
  366. [object, uuid (f4cf7729-4864-4275-99b3-a8717163ecaf)]
  367. interface IXpsOMPartResources : IUnknown {
  368. HRESULT GetFontResources ([out, retval] IXpsOMFontResourceCollection **fontResources);
  369. HRESULT GetImageResources ([out, retval] IXpsOMImageResourceCollection **imageResources);
  370. HRESULT GetColorProfileResources ([out, retval] IXpsOMColorProfileResourceCollection **colorProfileResources);
  371. HRESULT GetRemoteDictionaryResources ([out, retval] IXpsOMRemoteDictionaryResourceCollection **dictionaryResources);
  372. }
  373. [object, uuid (70b4a6bb-88d4-4fa8-AAF9-6d9c596fdbad)]
  374. interface IXpsOMFontResourceCollection : IUnknown {
  375. HRESULT GetCount ([out, retval] UINT32 *count);
  376. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMFontResource **value);
  377. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMFontResource *value);
  378. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMFontResource *value);
  379. HRESULT Append ([in] IXpsOMFontResource *value);
  380. HRESULT RemoveAt ([in] UINT32 index);
  381. HRESULT GetByPartName ([in] IOpcPartUri *partName,[out, retval] IXpsOMFontResource **part);
  382. }
  383. [object, uuid (7a4a1a71-9cde-4b71-B33F-62de843eabfe)]
  384. interface IXpsOMImageResourceCollection : IUnknown {
  385. HRESULT GetCount ([out, retval] UINT32 *count);
  386. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMImageResource **object);
  387. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMImageResource *object);
  388. HRESULT RemoveAt ([in] UINT32 index);
  389. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMImageResource *object);
  390. HRESULT Append ([in] IXpsOMImageResource *object);
  391. HRESULT GetByPartName ([in] IOpcPartUri *partName,[out, retval] IXpsOMImageResource **part);
  392. }
  393. [object, uuid (12759630-5fba-4283-8f7d-CCA849809EDB)]
  394. interface IXpsOMColorProfileResourceCollection : IUnknown {
  395. HRESULT GetCount ([out, retval] UINT32 *count);
  396. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMColorProfileResource **object);
  397. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMColorProfileResource *object);
  398. HRESULT RemoveAt ([in] UINT32 index);
  399. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMColorProfileResource *object);
  400. HRESULT Append ([in] IXpsOMColorProfileResource *object);
  401. HRESULT GetByPartName ([in] IOpcPartUri *partName,[out, retval] IXpsOMColorProfileResource **part);
  402. }
  403. [object, uuid (5c38db61-7fec-464a-87bd-41e3bef018be)]
  404. interface IXpsOMRemoteDictionaryResourceCollection : IUnknown {
  405. HRESULT GetCount ([out, retval] UINT32 *count);
  406. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMRemoteDictionaryResource **object);
  407. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMRemoteDictionaryResource *object);
  408. HRESULT RemoveAt ([in] UINT32 index);
  409. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMRemoteDictionaryResource *object);
  410. HRESULT Append ([in] IXpsOMRemoteDictionaryResource *object);
  411. HRESULT GetByPartName ([in] IOpcPartUri *partName,[out, retval] IXpsOMRemoteDictionaryResource **remoteDictionaryResource);
  412. }
  413. [object, uuid (AB8F5D8E-351b-4d33-AAED-FA56F0022931)]
  414. interface IXpsOMSignatureBlockResourceCollection : IUnknown {
  415. HRESULT GetCount ([out, retval] UINT32 *count);
  416. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMSignatureBlockResource **signatureBlockResource);
  417. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMSignatureBlockResource *signatureBlockResource);
  418. HRESULT RemoveAt ([in] UINT32 index);
  419. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMSignatureBlockResource *signatureBlockResource);
  420. HRESULT Append ([in] IXpsOMSignatureBlockResource *signatureBlockResource);
  421. HRESULT GetByPartName ([in] IOpcPartUri *partName,[out, retval] IXpsOMSignatureBlockResource **signatureBlockResource);
  422. }
  423. [object, uuid (94d8abde-AB91-46a8-82b7-F5B05EF01A96), pointer_default (ref)]
  424. interface IXpsOMVisualCollection : IUnknown {
  425. HRESULT GetCount ([out, retval] UINT32 *count);
  426. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMVisual **object);
  427. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMVisual *object);
  428. HRESULT RemoveAt ([in] UINT32 index);
  429. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMVisual *object);
  430. HRESULT Append ([in] IXpsOMVisual *object);
  431. }
  432. [object, uuid (897c86b8-8eaf-4ae3-BDDE-56419fcf4236)]
  433. interface IXpsOMDictionary : IUnknown {
  434. HRESULT GetOwner ([out, retval] IUnknown **owner);
  435. HRESULT GetCount ([out, retval] UINT32 *count);
  436. HRESULT GetAt ([in] UINT32 index,[out, string] LPWSTR *key,[out, retval] IXpsOMShareable **entry);
  437. HRESULT GetByKey ([in, string] LPCWSTR key,[in] IXpsOMShareable *beforeEntry,[out, retval] IXpsOMShareable **entry);
  438. HRESULT GetIndex ([in] IXpsOMShareable *entry,[out, retval] UINT32 *index);
  439. HRESULT Append ([in, string] LPCWSTR key,[in] IXpsOMShareable *entry);
  440. HRESULT InsertAt ([in] UINT32 index,[in, string] LPCWSTR key,[in] IXpsOMShareable *entry);
  441. HRESULT RemoveAt ([in] UINT32 index);
  442. HRESULT SetAt ([in] UINT32 index,[in, string] LPCWSTR key,[in] IXpsOMShareable *entry);
  443. HRESULT Clone ([out, retval] IXpsOMDictionary **dictionary);
  444. }
  445. [object, uuid (ED360180-6f92-4998-890d-2f208531a0a0), pointer_default (ref)]
  446. interface IXpsOMPageReference : IUnknown {
  447. HRESULT GetOwner ([out, retval] IXpsOMDocument **document);
  448. HRESULT GetPage ([out, retval] IXpsOMPage **page);
  449. HRESULT SetPage ([in] IXpsOMPage *page);
  450. HRESULT DiscardPage ();
  451. HRESULT IsPageLoaded ([out, retval] BOOL *isPageLoaded);
  452. HRESULT GetAdvisoryPageDimensions ([out, retval] XPS_SIZE *pageDimensions);
  453. HRESULT SetAdvisoryPageDimensions ([in] const XPS_SIZE *pageDimensions);
  454. HRESULT GetStoryFragmentsResource ([out, retval] IXpsOMStoryFragmentsResource **storyFragmentsResource);
  455. HRESULT SetStoryFragmentsResource ([in] IXpsOMStoryFragmentsResource *storyFragmentsResource);
  456. HRESULT GetPrintTicketResource ([out, retval] IXpsOMPrintTicketResource **printTicketResource);
  457. HRESULT SetPrintTicketResource ([in] IXpsOMPrintTicketResource *printTicketResource);
  458. HRESULT GetThumbnailResource ([out, retval] IXpsOMImageResource **imageResource);
  459. HRESULT SetThumbnailResource ([in] IXpsOMImageResource *imageResource);
  460. HRESULT CollectLinkTargets ([out, retval] IXpsOMNameCollection **linkTargets);
  461. HRESULT CollectPartResources ([out, retval] IXpsOMPartResources **partResources);
  462. HRESULT HasRestrictedFonts ([out, retval] BOOL *restrictedFonts);
  463. HRESULT Clone ([out, retval] IXpsOMPageReference **pageReference);
  464. }
  465. [object, uuid (CA16BA4D-E7B9-45c5-958b-F98022473745), pointer_default (ref)]
  466. interface IXpsOMPageReferenceCollection : IUnknown {
  467. HRESULT GetCount ([out, retval] UINT32 *count);
  468. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMPageReference **pageReference);
  469. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMPageReference *pageReference);
  470. HRESULT RemoveAt ([in] UINT32 index);
  471. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMPageReference *pageReference);
  472. HRESULT Append ([in] IXpsOMPageReference *pageReference);
  473. }
  474. [object, uuid (D1C87F0D-E947-4754-8a25-971478f7e83e), pointer_default (ref)]
  475. interface IXpsOMDocumentCollection : IUnknown {
  476. HRESULT GetCount ([out, retval] UINT32 *count);
  477. HRESULT GetAt ([in] UINT32 index,[out, retval] IXpsOMDocument **document);
  478. HRESULT InsertAt ([in] UINT32 index,[in] IXpsOMDocument *document);
  479. HRESULT RemoveAt ([in] UINT32 index);
  480. HRESULT SetAt ([in] UINT32 index,[in] IXpsOMDocument *document);
  481. HRESULT Append ([in] IXpsOMDocument *document);
  482. }
  483. [object, local, uuid (18c3df65-81e1-4674-91dc-FC452F5A416F), pointer_default (ref)]
  484. interface IXpsOMPackage : IUnknown {
  485. HRESULT GetDocumentSequence ([out, retval] IXpsOMDocumentSequence **documentSequence);
  486. HRESULT SetDocumentSequence ([in] IXpsOMDocumentSequence *documentSequence);
  487. HRESULT GetCoreProperties ([out, retval] IXpsOMCoreProperties **coreProperties);
  488. HRESULT SetCoreProperties ([in] IXpsOMCoreProperties *coreProperties);
  489. HRESULT GetDiscardControlPartName ([out, retval] IOpcPartUri **discardControlPartUri);
  490. HRESULT SetDiscardControlPartName ([in] IOpcPartUri *discardControlPartUri);
  491. HRESULT GetThumbnailResource ([out, retval] IXpsOMImageResource **imageResource);
  492. HRESULT SetThumbnailResource ([in] IXpsOMImageResource *imageResource);
  493. HRESULT WriteToFile ([in, string] LPCWSTR fileName,[in, unique] LPSECURITY_ATTRIBUTES securityAttributes,[in] DWORD flagsAndAttributes,[in] BOOL optimizeMarkupSize);
  494. HRESULT WriteToStream ([in] ISequentialStream *stream,[in] BOOL optimizeMarkupSize);
  495. }
  496. [object, local, uuid (f9b2a685-a50d-4fc2-b764-b56e093ea0ca), pointer_default (ref)]
  497. interface IXpsOMObjectFactory : IUnknown {
  498. HRESULT CreatePackage ([out, retval] IXpsOMPackage **package);
  499. HRESULT CreatePackageFromFile ([in, string] LPCWSTR filename,[in] BOOL reuseObjects,[out, retval] IXpsOMPackage **package);
  500. HRESULT CreatePackageFromStream ([in] IStream *stream,[in] BOOL reuseObjects,[out, retval] IXpsOMPackage **package);
  501. HRESULT CreateStoryFragmentsResource ([in] IStream *acquiredStream,[in] IOpcPartUri *partUri,[out, retval] IXpsOMStoryFragmentsResource **storyFragmentsResource);
  502. HRESULT CreateDocumentStructureResource ([in] IStream *acquiredStream,[in] IOpcPartUri *partUri,[out, retval] IXpsOMDocumentStructureResource **documentStructureResource);
  503. HRESULT CreateSignatureBlockResource ([in] IStream *acquiredStream,[in] IOpcPartUri *partUri,[out, retval] IXpsOMSignatureBlockResource **signatureBlockResource);
  504. HRESULT CreateRemoteDictionaryResource ([in] IXpsOMDictionary *dictionary,[in] IOpcPartUri *partUri,[out, retval] IXpsOMRemoteDictionaryResource **remoteDictionaryResource);
  505. HRESULT CreateRemoteDictionaryResourceFromStream ([in] IStream *dictionaryMarkupStream,[in] IOpcPartUri *dictionaryPartUri,[in] IXpsOMPartResources *resources,[out, retval] IXpsOMRemoteDictionaryResource **dictionaryResource);
  506. HRESULT CreatePartResources ([out, retval] IXpsOMPartResources **partResources);
  507. HRESULT CreateDocumentSequence ([in] IOpcPartUri *partUri,[out, retval] IXpsOMDocumentSequence **documentSequence);
  508. HRESULT CreateDocument ([in] IOpcPartUri *partUri,[out, retval] IXpsOMDocument **document);
  509. HRESULT CreatePageReference ([in] const XPS_SIZE *advisoryPageDimensions,[out, retval] IXpsOMPageReference **pageReference);
  510. HRESULT CreatePage ([in] const XPS_SIZE *pageDimensions,[in, string] LPCWSTR language,[in] IOpcPartUri *partUri,[out, retval] IXpsOMPage **page);
  511. HRESULT CreatePageFromStream ([in] IStream *pageMarkupStream,[in] IOpcPartUri *partUri,[in] IXpsOMPartResources *resources,[in] BOOL reuseObjects,[out, retval] IXpsOMPage **page);
  512. HRESULT CreateCanvas ([out, retval] IXpsOMCanvas **canvas);
  513. HRESULT CreateGlyphs ([in] IXpsOMFontResource *fontResource,[out, retval] IXpsOMGlyphs **glyphs);
  514. HRESULT CreatePath ([out, retval] IXpsOMPath **path);
  515. HRESULT CreateGeometry ([out, retval] IXpsOMGeometry **geometry);
  516. HRESULT CreateGeometryFigure ([in] const XPS_POINT *startPoint,[out, retval] IXpsOMGeometryFigure **figure);
  517. HRESULT CreateMatrixTransform ([in] const XPS_MATRIX *matrix,[out, retval] IXpsOMMatrixTransform **transform);
  518. HRESULT CreateSolidColorBrush ([in] const XPS_COLOR *color,[in] IXpsOMColorProfileResource *colorProfile,[out, retval] IXpsOMSolidColorBrush **solidColorBrush);
  519. HRESULT CreateColorProfileResource ([in] IStream *acquiredStream,[in] IOpcPartUri *partUri,[out, retval] IXpsOMColorProfileResource **colorProfileResource);
  520. HRESULT CreateImageBrush ([in] IXpsOMImageResource *image,[in] const XPS_RECT *viewBox,[in] const XPS_RECT *viewPort,[out, retval] IXpsOMImageBrush **imageBrush);
  521. HRESULT CreateVisualBrush ([in] const XPS_RECT *viewBox,[in] const XPS_RECT *viewPort,[out, retval] IXpsOMVisualBrush **visualBrush);
  522. HRESULT CreateImageResource ([in] IStream *acquiredStream,[in] XPS_IMAGE_TYPE contentType,[in] IOpcPartUri *partUri,[out, retval] IXpsOMImageResource **imageResource);
  523. HRESULT CreatePrintTicketResource ([in] IStream *acquiredStream,[in] IOpcPartUri *partUri,[out, retval] IXpsOMPrintTicketResource **printTicketResource);
  524. HRESULT CreateFontResource ([in] IStream *acquiredStream,[in] XPS_FONT_EMBEDDING fontEmbedding,[in] IOpcPartUri *partUri,[in] BOOL isObfSourceStream,[out, retval] IXpsOMFontResource **fontResource);
  525. HRESULT CreateGradientStop ([in] const XPS_COLOR *color,[in] IXpsOMColorProfileResource *colorProfile,[in] FLOAT offset,[out, retval] IXpsOMGradientStop **gradientStop);
  526. HRESULT CreateLinearGradientBrush ([in] IXpsOMGradientStop *gradStop1,[in] IXpsOMGradientStop *gradStop2,[in] const XPS_POINT *startPoint,[in] const XPS_POINT *endPoint,[out, retval] IXpsOMLinearGradientBrush **linearGradientBrush);
  527. HRESULT CreateRadialGradientBrush ([in] IXpsOMGradientStop *gradStop1,[in] IXpsOMGradientStop *gradStop2,[in] const XPS_POINT *centerPoint,[in] const XPS_POINT *gradientOrigin,[in] const XPS_SIZE *radiiSizes,[out, retval] IXpsOMRadialGradientBrush **radialGradientBrush);
  528. HRESULT CreateCoreProperties ([in] IOpcPartUri *partUri,[out, retval] IXpsOMCoreProperties **coreProperties);
  529. HRESULT CreateDictionary ([out, retval] IXpsOMDictionary **dictionary);
  530. HRESULT CreatePartUriCollection ([out, retval] IXpsOMPartUriCollection **partUriCollection);
  531. HRESULT CreatePackageWriterOnFile ([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,[out, retval] IXpsOMPackageWriter **packageWriter);
  532. HRESULT CreatePackageWriterOnStream ([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,[out, retval] IXpsOMPackageWriter **packageWriter);
  533. HRESULT CreatePartUri ([in, string] LPCWSTR uri,[out, retval] IOpcPartUri **partUri);
  534. HRESULT CreateReadOnlyStreamOnFile ([in, string] LPCWSTR filename,[out, retval] IStream **stream);
  535. }
  536. [object, uuid (4bddf8ec-C915-421b-A166-D173D25653D2)]
  537. interface IXpsOMNameCollection : IUnknown {
  538. HRESULT GetCount ([out, retval] UINT32 *count);
  539. HRESULT GetAt ([in] UINT32 index,[out, string, retval] LPWSTR *name);
  540. }
  541. [object, uuid (57c650d4-067c-4893-8c33-F62A0633730F)]
  542. interface IXpsOMPartUriCollection : IUnknown {
  543. HRESULT GetCount ([out, retval] UINT32 *count);
  544. HRESULT GetAt ([in] UINT32 index,[out, retval] IOpcPartUri **partUri);
  545. HRESULT InsertAt ([in] UINT32 index,[in] IOpcPartUri *partUri);
  546. HRESULT RemoveAt ([in] UINT32 index);
  547. HRESULT SetAt ([in] UINT32 index,[in] IOpcPartUri *partUri);
  548. HRESULT Append ([in] IOpcPartUri *partUri);
  549. }
  550. [object, uuid (4e2aa182-A443-42c6-B41B-4f8e9de73ff9)]
  551. interface IXpsOMPackageWriter : IUnknown {
  552. HRESULT StartNewDocument ([in] IOpcPartUri *documentPartName,[in] IXpsOMPrintTicketResource *documentPrintTicket,[in] IXpsOMDocumentStructureResource *documentStructure,[in] IXpsOMSignatureBlockResourceCollection *signatureBlockResources,[in] IXpsOMPartUriCollection *restrictedFonts);
  553. HRESULT AddPage ([in] IXpsOMPage *page,[in] const XPS_SIZE *advisoryPageDimensions,[in] IXpsOMPartUriCollection *discardableResourceParts,[in] IXpsOMStoryFragmentsResource *storyFragments,[in] IXpsOMPrintTicketResource *pagePrintTicket,[in] IXpsOMImageResource *pageThumbnail);
  554. HRESULT AddResource ([in] IXpsOMResource *resource);
  555. HRESULT Close ();
  556. HRESULT IsClosed ([out, retval] BOOL *isClosed);
  557. };
  558. [object, uuid (219a9db0-4959-47d0-8034-B1CE84F41A4D)]
  559. interface IXpsOMPackageTarget : IUnknown {
  560. HRESULT CreateXpsOMPackageWriter ([in] IOpcPartUri *documentSequencePartName,[in] IXpsOMPrintTicketResource *documentSequencePrintTicket,[in] IOpcPartUri *discardControlPartName,[out] IXpsOMPackageWriter **packageWriter);
  561. }
  562. [object, uuid (BC3E7333-FB0B-4af3-A819-0b4eaad0d2fd)]
  563. interface IXpsOMVisual : IXpsOMShareable {
  564. HRESULT GetTransform ([out, retval] IXpsOMMatrixTransform **matrixTransform);
  565. HRESULT GetTransformLocal ([out, retval] IXpsOMMatrixTransform **matrixTransform);
  566. HRESULT SetTransformLocal ([in] IXpsOMMatrixTransform *matrixTransform);
  567. HRESULT GetTransformLookup ([out, string, retval] LPWSTR *key);
  568. HRESULT SetTransformLookup ([in, string] LPCWSTR key);
  569. HRESULT GetClipGeometry ([out, retval] IXpsOMGeometry **clipGeometry);
  570. HRESULT GetClipGeometryLocal ([out, retval] IXpsOMGeometry **clipGeometry);
  571. HRESULT SetClipGeometryLocal ([in] IXpsOMGeometry *clipGeometry);
  572. HRESULT GetClipGeometryLookup ([out, string, retval] LPWSTR *key);
  573. HRESULT SetClipGeometryLookup ([in, string] LPCWSTR key);
  574. HRESULT GetOpacity ([out, retval] FLOAT *opacity);
  575. HRESULT SetOpacity ([in] FLOAT opacity);
  576. HRESULT GetOpacityMaskBrush ([out, retval] IXpsOMBrush **opacityMaskBrush);
  577. HRESULT GetOpacityMaskBrushLocal ([out, retval] IXpsOMBrush **opacityMaskBrush);
  578. HRESULT SetOpacityMaskBrushLocal ([in] IXpsOMBrush *opacityMaskBrush);
  579. HRESULT GetOpacityMaskBrushLookup ([out, string, retval] LPWSTR *key);
  580. HRESULT SetOpacityMaskBrushLookup ([in, string] LPCWSTR key);
  581. HRESULT GetName ([out, string, retval] LPWSTR *name);
  582. HRESULT SetName ([in, string] LPCWSTR name);
  583. HRESULT GetIsHyperlinkTarget ([out, retval] BOOL *isHyperlink);
  584. HRESULT SetIsHyperlinkTarget ([in] BOOL isHyperlink);
  585. HRESULT GetHyperlinkNavigateUri ([out, retval] IUri **hyperlinkUri);
  586. HRESULT SetHyperlinkNavigateUri ([in] IUri *hyperlinkUri);
  587. HRESULT GetLanguage ([out, string, retval] LPWSTR *language);
  588. HRESULT SetLanguage ([in, string] LPCWSTR language);
  589. }
  590. [object, uuid (56a3f80c-EA4C-4187-A57B-A2A473B2B42B)]
  591. interface IXpsOMBrush : IXpsOMShareable {
  592. HRESULT GetOpacity ([out, retval] FLOAT *opacity);
  593. HRESULT SetOpacity ([in] FLOAT opacity);
  594. }
  595. [object, uuid (B77330FF-BB37-4501-A93E-F1B1E50BFC46)]
  596. interface IXpsOMMatrixTransform : IXpsOMShareable {
  597. HRESULT GetMatrix ([out, retval] XPS_MATRIX *matrix);
  598. HRESULT SetMatrix ([in] const XPS_MATRIX *matrix);
  599. HRESULT Clone ([out, retval] IXpsOMMatrixTransform **matrixTransform);
  600. }
  601. [object, uuid (64fcf3d7-4d58-44ba-AD73-A13AF6492072)]
  602. interface IXpsOMGeometry : IXpsOMShareable {
  603. HRESULT GetFigures ([out, retval] IXpsOMGeometryFigureCollection **figures);
  604. HRESULT GetFillRule ([out, retval] XPS_FILL_RULE *fillRule);
  605. HRESULT SetFillRule ([in] XPS_FILL_RULE fillRule);
  606. HRESULT GetTransform ([out, retval] IXpsOMMatrixTransform **transform);
  607. HRESULT GetTransformLocal ([out, retval] IXpsOMMatrixTransform **transform);
  608. HRESULT SetTransformLocal ([in] IXpsOMMatrixTransform *transform);
  609. HRESULT GetTransformLookup ([out, string, retval] LPWSTR *lookup);
  610. HRESULT SetTransformLookup ([in, string] LPCWSTR lookup);
  611. HRESULT Clone ([out, retval] IXpsOMGeometry **geometry);
  612. }
  613. [object, uuid (819b3199-0a5a-4b64-BEC7-A9E17E780DE2)]
  614. interface IXpsOMGlyphs : IXpsOMVisual {
  615. HRESULT GetUnicodeString ([out, string, retval] LPWSTR *unicodeString);
  616. HRESULT GetGlyphIndexCount ([out, retval] UINT32 *indexCount);
  617. HRESULT GetGlyphIndices ([in, out] UINT32 *indexCount,[in, out] XPS_GLYPH_INDEX *glyphIndices);
  618. HRESULT GetGlyphMappingCount ([out, retval] UINT32 *glyphMappingCount);
  619. HRESULT GetGlyphMappings ([in, out] UINT32 *glyphMappingCount,[in, out] XPS_GLYPH_MAPPING *glyphMappings);
  620. HRESULT GetProhibitedCaretStopCount ([out, retval] UINT32 *prohibitedCaretStopCount);
  621. HRESULT GetProhibitedCaretStops ([in, out] UINT32 *prohibitedCaretStopCount,[out] UINT32 *prohibitedCaretStops);
  622. HRESULT GetBidiLevel ([out, retval] UINT32 *bidiLevel);
  623. HRESULT GetIsSideways ([out, retval] BOOL *isSideways);
  624. HRESULT GetDeviceFontName ([out, string, retval] LPWSTR *deviceFontName);
  625. HRESULT GetStyleSimulations ([out, retval] XPS_STYLE_SIMULATION *styleSimulations);
  626. HRESULT SetStyleSimulations ([in] XPS_STYLE_SIMULATION styleSimulations);
  627. HRESULT GetOrigin ([out, retval] XPS_POINT *origin);
  628. HRESULT SetOrigin ([in] const XPS_POINT *origin);
  629. HRESULT GetFontRenderingEmSize ([out, retval] FLOAT *fontRenderingEmSize);
  630. HRESULT SetFontRenderingEmSize ([in] FLOAT fontRenderingEmSize);
  631. HRESULT GetFontResource ([out, retval] IXpsOMFontResource **fontResource);
  632. HRESULT SetFontResource ([in] IXpsOMFontResource *fontResource);
  633. HRESULT GetFontFaceIndex ([out, retval] SHORT *fontFaceIndex);
  634. HRESULT SetFontFaceIndex ([in] SHORT fontFaceIndex);
  635. HRESULT GetFillBrush ([out, retval] IXpsOMBrush **fillBrush);
  636. HRESULT GetFillBrushLocal ([out, retval] IXpsOMBrush **fillBrush);
  637. HRESULT SetFillBrushLocal ([in] IXpsOMBrush *fillBrush);
  638. HRESULT GetFillBrushLookup ([out, string, retval] LPWSTR *key);
  639. HRESULT SetFillBrushLookup ([in, string] LPCWSTR key);
  640. HRESULT GetGlyphsEditor ([out, retval] IXpsOMGlyphsEditor **editor);
  641. HRESULT Clone ([out, retval] IXpsOMGlyphs **glyphs);
  642. }
  643. [object, uuid (37d38bb6-3ee9-4110-9312-14b194163337)]
  644. interface IXpsOMPath : IXpsOMVisual {
  645. HRESULT GetGeometry ([out, retval] IXpsOMGeometry **geometry);
  646. HRESULT GetGeometryLocal ([out, retval] IXpsOMGeometry **geometry);
  647. HRESULT SetGeometryLocal ([in] IXpsOMGeometry *geometry);
  648. HRESULT GetGeometryLookup ([out, string, retval] LPWSTR *lookup);
  649. HRESULT SetGeometryLookup ([in, string] LPCWSTR lookup);
  650. HRESULT GetAccessibilityShortDescription ([out, string, retval] LPWSTR *shortDescription);
  651. HRESULT SetAccessibilityShortDescription ([in, string] LPCWSTR shortDescription);
  652. HRESULT GetAccessibilityLongDescription ([out, string, retval] LPWSTR *longDescription);
  653. HRESULT SetAccessibilityLongDescription ([in, string] LPCWSTR longDescription);
  654. HRESULT GetSnapsToPixels ([out, retval] BOOL *snapsToPixels);
  655. HRESULT SetSnapsToPixels ([in] BOOL snapsToPixels);
  656. HRESULT GetStrokeBrush ([out, retval] IXpsOMBrush **brush);
  657. HRESULT GetStrokeBrushLocal ([out, retval] IXpsOMBrush **brush);
  658. HRESULT SetStrokeBrushLocal ([in] IXpsOMBrush *brush);
  659. HRESULT GetStrokeBrushLookup ([out, string, retval] LPWSTR *lookup);
  660. HRESULT SetStrokeBrushLookup ([in, string] LPCWSTR lookup);
  661. HRESULT GetStrokeDashes ([out, retval] IXpsOMDashCollection **strokeDashes);
  662. HRESULT GetStrokeDashCap ([out, retval] XPS_DASH_CAP *strokeDashCap);
  663. HRESULT SetStrokeDashCap ([in] XPS_DASH_CAP strokeDashCap);
  664. HRESULT GetStrokeDashOffset ([out, retval] FLOAT *strokeDashOffset);
  665. HRESULT SetStrokeDashOffset ([in] FLOAT strokeDashOffset);
  666. HRESULT GetStrokeStartLineCap ([out, retval] XPS_LINE_CAP *strokeStartLineCap);
  667. HRESULT SetStrokeStartLineCap ([in] XPS_LINE_CAP strokeStartLineCap);
  668. HRESULT GetStrokeEndLineCap ([out, retval] XPS_LINE_CAP *strokeEndLineCap);
  669. HRESULT SetStrokeEndLineCap ([in] XPS_LINE_CAP strokeEndLineCap);
  670. HRESULT GetStrokeLineJoin ([out, retval] XPS_LINE_JOIN *strokeLineJoin);
  671. HRESULT SetStrokeLineJoin ([in] XPS_LINE_JOIN strokeLineJoin);
  672. HRESULT GetStrokeMiterLimit ([out, retval] FLOAT *strokeMiterLimit);
  673. HRESULT SetStrokeMiterLimit ([in] FLOAT strokeMiterLimit);
  674. HRESULT GetStrokeThickness ([out, retval] FLOAT *strokeThickness);
  675. HRESULT SetStrokeThickness ([in] FLOAT strokeThickness);
  676. HRESULT GetFillBrush ([out, retval] IXpsOMBrush **brush);
  677. HRESULT GetFillBrushLocal ([out, retval] IXpsOMBrush **brush);
  678. HRESULT SetFillBrushLocal ([in] IXpsOMBrush *brush);
  679. HRESULT GetFillBrushLookup ([out, string, retval] LPWSTR *lookup);
  680. HRESULT SetFillBrushLookup ([in, string] LPCWSTR lookup);
  681. HRESULT Clone ([out, retval] IXpsOMPath **path);
  682. }
  683. [object, uuid (A06F9F05-3be9-4763-98a8-094fc672e488)]
  684. interface IXpsOMSolidColorBrush : IXpsOMBrush {
  685. HRESULT GetColor ([out] XPS_COLOR *color,[out, retval] IXpsOMColorProfileResource **colorProfile);
  686. HRESULT SetColor ([in] const XPS_COLOR *color,[in] IXpsOMColorProfileResource *colorProfile);
  687. HRESULT Clone ([out, retval] IXpsOMSolidColorBrush **solidColorBrush);
  688. }
  689. [object, uuid (0fc2328d-D722-4a54-B2EC-BE90218A789E)]
  690. interface IXpsOMTileBrush : IXpsOMBrush {
  691. HRESULT GetTransform ([out, retval] IXpsOMMatrixTransform **transform);
  692. HRESULT GetTransformLocal ([out, retval] IXpsOMMatrixTransform **transform);
  693. HRESULT SetTransformLocal ([in] IXpsOMMatrixTransform *transform);
  694. HRESULT GetTransformLookup ([out, string, retval] LPWSTR *key);
  695. HRESULT SetTransformLookup ([in, string] LPCWSTR key);
  696. HRESULT GetViewbox ([out, retval] XPS_RECT *viewbox);
  697. HRESULT SetViewbox ([in] const XPS_RECT *viewbox);
  698. HRESULT GetViewport ([out, retval] XPS_RECT *viewport);
  699. HRESULT SetViewport ([in] const XPS_RECT *viewport);
  700. HRESULT GetTileMode ([out, retval] XPS_TILE_MODE *tileMode);
  701. HRESULT SetTileMode ([in] XPS_TILE_MODE tileMode);
  702. }
  703. [object, uuid (EDB59622-61a2-42c3-BACE-ACF2286C06BF)]
  704. interface IXpsOMGradientBrush : IXpsOMBrush {
  705. HRESULT GetGradientStops ([out, retval] IXpsOMGradientStopCollection **gradientStops);
  706. HRESULT GetTransform ([out, retval] IXpsOMMatrixTransform **transform);
  707. HRESULT GetTransformLocal ([out, retval] IXpsOMMatrixTransform **transform);
  708. HRESULT SetTransformLocal ([in] IXpsOMMatrixTransform *transform);
  709. HRESULT GetTransformLookup ([out, string, retval] LPWSTR *key);
  710. HRESULT SetTransformLookup ([in, string] LPCWSTR key);
  711. HRESULT GetSpreadMethod ([out, retval] XPS_SPREAD_METHOD *spreadMethod);
  712. HRESULT SetSpreadMethod ([in] XPS_SPREAD_METHOD spreadMethod);
  713. HRESULT GetColorInterpolationMode ([out, retval] XPS_COLOR_INTERPOLATION *colorInterpolationMode);
  714. HRESULT SetColorInterpolationMode ([in] XPS_COLOR_INTERPOLATION colorInterpolationMode);
  715. }
  716. [object, uuid (97e294af-5b37-46b4-8057-874d2f64119b)]
  717. interface IXpsOMVisualBrush : IXpsOMTileBrush {
  718. HRESULT GetVisual ([out, retval] IXpsOMVisual **visual);
  719. HRESULT GetVisualLocal ([out, retval] IXpsOMVisual **visual);
  720. HRESULT SetVisualLocal ([in] IXpsOMVisual *visual);
  721. HRESULT GetVisualLookup ([out, string, retval] LPWSTR *lookup);
  722. HRESULT SetVisualLookup ([in, string] LPCWSTR lookup);
  723. HRESULT Clone ([out, retval] IXpsOMVisualBrush **visualBrush);
  724. }
  725. [object, uuid (3df0b466-D382-49ef-8550-DD94C80242E4)]
  726. interface IXpsOMImageBrush : IXpsOMTileBrush {
  727. HRESULT GetImageResource ([out, retval] IXpsOMImageResource **imageResource);
  728. HRESULT SetImageResource ([in] IXpsOMImageResource *imageResource);
  729. HRESULT GetColorProfileResource ([out, retval] IXpsOMColorProfileResource **colorProfileResource);
  730. HRESULT SetColorProfileResource ([in] IXpsOMColorProfileResource *colorProfileResource);
  731. HRESULT Clone ([out, retval] IXpsOMImageBrush **imageBrush);
  732. }
  733. [object, uuid (005e279f-C30D-40ff-93ec-1950d3c528db)]
  734. interface IXpsOMLinearGradientBrush : IXpsOMGradientBrush {
  735. HRESULT GetStartPoint ([out, retval] XPS_POINT *startPoint);
  736. HRESULT SetStartPoint ([in] const XPS_POINT *startPoint);
  737. HRESULT GetEndPoint ([out, retval] XPS_POINT *endPoint);
  738. HRESULT SetEndPoint ([in] const XPS_POINT *endPoint);
  739. HRESULT Clone ([out, retval] IXpsOMLinearGradientBrush **linearGradientBrush);
  740. }
  741. [object, uuid (75f207e5-08bf-413c-96b1-B82B4064176B)]
  742. interface IXpsOMRadialGradientBrush : IXpsOMGradientBrush {
  743. HRESULT GetCenter ([out, retval] XPS_POINT *center);
  744. HRESULT SetCenter ([in] const XPS_POINT *center);
  745. HRESULT GetRadiiSizes ([out, retval] XPS_SIZE *radiiSizes);
  746. HRESULT SetRadiiSizes ([in] const XPS_SIZE *radiiSizes);
  747. HRESULT GetGradientOrigin ([out, retval] XPS_POINT *origin);
  748. HRESULT SetGradientOrigin ([in] const XPS_POINT *origin);
  749. HRESULT Clone ([out, retval] IXpsOMRadialGradientBrush **radialGradientBrush);
  750. }
  751. [object, uuid (da2ac0a2-73a2-4975-ad14-74097c3ff3a5)] interface IXpsOMResource : IXpsOMPart {
  752. }
  753. [object, uuid (a8c45708-47d9-4af4-8d20-33b48c9b8485)]
  754. interface IXpsOMFontResource : IXpsOMResource {
  755. HRESULT GetStream ([out, retval] IStream **readerStream);
  756. HRESULT SetContent ([in] IStream *sourceStream,[in] XPS_FONT_EMBEDDING embeddingOption,[in] IOpcPartUri *partName);
  757. HRESULT GetEmbeddingOption ([out, retval] XPS_FONT_EMBEDDING *embeddingOption);
  758. }
  759. [object, uuid (3db8417d-ae50-485e-9a44-d7758f78a23f)]
  760. interface IXpsOMImageResource : IXpsOMResource {
  761. HRESULT GetStream ([out, retval] IStream **readerStream);
  762. HRESULT SetContent ([in] IStream *sourceStream,[in] XPS_IMAGE_TYPE imageType,[in] IOpcPartUri *partName);
  763. HRESULT GetImageType ([out, retval] XPS_IMAGE_TYPE *imageType);
  764. }
  765. [object, uuid (67bd7d69-1eef-4bb1-b5e7-6f4f87be8abe)]
  766. interface IXpsOMColorProfileResource : IXpsOMResource {
  767. HRESULT GetStream ([out, retval] IStream **stream);
  768. HRESULT SetContent ([in] IStream *sourceStream,[in] IOpcPartUri *partName);
  769. }
  770. [object, uuid (e7ff32d2-34aa-499b-bbe9-9cd4ee6c59f7)]
  771. interface IXpsOMPrintTicketResource : IXpsOMResource {
  772. HRESULT GetStream ([out, retval] IStream **stream);
  773. HRESULT SetContent ([in] IStream *sourceStream,[in] IOpcPartUri *partName);
  774. }
  775. [object, uuid (c9bd7cd4-e16a-4bf8-8c84-c950af7a3061)]
  776. interface IXpsOMRemoteDictionaryResource : IXpsOMResource {
  777. HRESULT GetDictionary ([out, retval] IXpsOMDictionary **dictionary);
  778. HRESULT SetDictionary ([in] IXpsOMDictionary *dictionary);
  779. }
  780. [object, uuid (85febc8a-6b63-48a9-af07-7064e4ecff30)]
  781. interface IXpsOMDocumentStructureResource : IXpsOMResource {
  782. HRESULT GetOwner ([out, retval] IXpsOMDocument **owner);
  783. HRESULT GetStream ([out, retval] IStream **stream);
  784. HRESULT SetContent ([in] IStream *sourceStream,[in] IOpcPartUri *partName);
  785. }
  786. [object, uuid (c2b3ca09-0473-4282-87ae-1780863223f0)]
  787. interface IXpsOMStoryFragmentsResource : IXpsOMResource {
  788. HRESULT GetOwner ([out, retval] IXpsOMPageReference **owner);
  789. HRESULT GetStream ([out, retval] IStream **stream);
  790. HRESULT SetContent ([in] IStream *sourceStream,[in] IOpcPartUri *partName);
  791. }
  792. [object, uuid (4776ad35-2e04-4357-8743-ebf6c171a905), pointer_default (ref)]
  793. interface IXpsOMSignatureBlockResource : IXpsOMResource {
  794. HRESULT GetOwner ([out, retval] IXpsOMDocument **owner);
  795. HRESULT GetStream ([out, retval] IStream **stream);
  796. HRESULT SetContent ([in] IStream *sourceStream,[in] IOpcPartUri *partName);
  797. }
  798. [object, uuid (221d1452-331e-47c6-87e9-6ccefb9b5ba3), pointer_default (ref)]
  799. interface IXpsOMCanvas : IXpsOMVisual {
  800. HRESULT GetVisuals ([out, retval] IXpsOMVisualCollection **visuals);
  801. HRESULT GetUseAliasedEdgeMode ([out, retval] BOOL *useAliasedEdgeMode);
  802. HRESULT SetUseAliasedEdgeMode ([in] BOOL useAliasedEdgeMode);
  803. HRESULT GetAccessibilityShortDescription ([out, string, retval] LPWSTR *shortDescription);
  804. HRESULT SetAccessibilityShortDescription ([in, string] LPCWSTR shortDescription);
  805. HRESULT GetAccessibilityLongDescription ([out, string, retval] LPWSTR *longDescription);
  806. HRESULT SetAccessibilityLongDescription ([in, string] LPCWSTR longDescription);
  807. HRESULT GetDictionary ([out, retval] IXpsOMDictionary **resourceDictionary);
  808. HRESULT GetDictionaryLocal ([out, retval] IXpsOMDictionary **resourceDictionary);
  809. HRESULT SetDictionaryLocal ([in] IXpsOMDictionary *resourceDictionary);
  810. HRESULT GetDictionaryResource ([out, retval] IXpsOMRemoteDictionaryResource **remoteDictionaryResource);
  811. HRESULT SetDictionaryResource ([in] IXpsOMRemoteDictionaryResource *remoteDictionaryResource);
  812. HRESULT Clone ([out, retval] IXpsOMCanvas **canvas);
  813. }
  814. [object, uuid (d3e18888-f120-4fee-8c68-35296eae91d4), pointer_default (ref)]
  815. interface IXpsOMPage : IXpsOMPart {
  816. HRESULT GetOwner ([out, retval] IXpsOMPageReference **pageReference);
  817. HRESULT GetVisuals ([out, retval] IXpsOMVisualCollection **visuals);
  818. HRESULT GetPageDimensions ([out, retval] XPS_SIZE *pageDimensions);
  819. HRESULT SetPageDimensions ([in] const XPS_SIZE *pageDimensions);
  820. HRESULT GetContentBox ([out, retval] XPS_RECT *contentBox);
  821. HRESULT SetContentBox ([in] const XPS_RECT *contentBox);
  822. HRESULT GetBleedBox ([out, retval] XPS_RECT *bleedBox);
  823. HRESULT SetBleedBox ([in] const XPS_RECT *bleedBox);
  824. HRESULT GetLanguage ([out, string, retval] LPWSTR *language);
  825. HRESULT SetLanguage ([in, string] LPCWSTR language);
  826. HRESULT GetName ([out, string, retval] LPWSTR *name);
  827. HRESULT SetName ([in, string] LPCWSTR name);
  828. HRESULT GetIsHyperlinkTarget ([out, retval] BOOL *isHyperlinkTarget);
  829. HRESULT SetIsHyperlinkTarget ([in] BOOL isHyperlinkTarget);
  830. HRESULT GetDictionary ([out, retval] IXpsOMDictionary **resourceDictionary);
  831. HRESULT GetDictionaryLocal ([out, retval] IXpsOMDictionary **resourceDictionary);
  832. HRESULT SetDictionaryLocal ([in] IXpsOMDictionary *resourceDictionary);
  833. HRESULT GetDictionaryResource ([out, retval] IXpsOMRemoteDictionaryResource **remoteDictionaryResource);
  834. HRESULT SetDictionaryResource ([in] IXpsOMRemoteDictionaryResource *remoteDictionaryResource);
  835. HRESULT Write ([in] ISequentialStream *stream,[in] BOOL optimizeMarkupSize);
  836. HRESULT GenerateUnusedLookupKey ([in] XPS_OBJECT_TYPE type,[out, string, retval] LPWSTR *key);
  837. HRESULT Clone ([out, retval] IXpsOMPage **page);
  838. }
  839. [object, uuid (2c2c94cb-AC5F-4254-8ee9-23948309d9f0), pointer_default (ref)]
  840. interface IXpsOMDocument : IXpsOMPart {
  841. HRESULT GetOwner ([out, retval] IXpsOMDocumentSequence **documentSequence);
  842. HRESULT GetPageReferences ([out, retval] IXpsOMPageReferenceCollection **pageReferences);
  843. HRESULT GetPrintTicketResource ([out, retval] IXpsOMPrintTicketResource **printTicketResource);
  844. HRESULT SetPrintTicketResource ([in] IXpsOMPrintTicketResource *printTicketResource);
  845. HRESULT GetDocumentStructureResource ([out, retval] IXpsOMDocumentStructureResource **documentStructureResource);
  846. HRESULT SetDocumentStructureResource ([in] IXpsOMDocumentStructureResource *documentStructureResource);
  847. HRESULT GetSignatureBlockResources ([out, retval] IXpsOMSignatureBlockResourceCollection **signatureBlockResources);
  848. HRESULT Clone ([out, retval] IXpsOMDocument **document);
  849. }
  850. [object, uuid (56492eb4-D8D5-425e-8256-4c2b64ad0264), pointer_default (ref)]
  851. interface IXpsOMDocumentSequence : IXpsOMPart {
  852. HRESULT GetOwner ([out, retval] IXpsOMPackage **package);
  853. HRESULT GetDocuments ([out, retval] IXpsOMDocumentCollection **documents);
  854. HRESULT GetPrintTicketResource ([out, retval] IXpsOMPrintTicketResource **printTicketResource);
  855. HRESULT SetPrintTicketResource ([in] IXpsOMPrintTicketResource *printTicketResource);
  856. }
  857. [object, uuid (3340fe8f-4027-4aa1-8f5f-D35AE45FE597), pointer_default (ref)]
  858. interface IXpsOMCoreProperties : IXpsOMPart {
  859. HRESULT GetOwner ([out, retval] IXpsOMPackage **package);
  860. HRESULT GetCategory ([out, string, retval] LPWSTR *category);
  861. HRESULT SetCategory ([in, string] LPCWSTR category);
  862. HRESULT GetContentStatus ([out, string, retval] LPWSTR *contentStatus);
  863. HRESULT SetContentStatus ([in, string] LPCWSTR contentStatus);
  864. HRESULT GetContentType ([out, string, retval] LPWSTR *contentType);
  865. HRESULT SetContentType ([in, string] LPCWSTR contentType);
  866. HRESULT GetCreated ([out, retval] SYSTEMTIME *created);
  867. HRESULT SetCreated ([in] const SYSTEMTIME *created);
  868. HRESULT GetCreator ([out, string, retval] LPWSTR *creator);
  869. HRESULT SetCreator ([in, string] LPCWSTR creator);
  870. HRESULT GetDescription ([out, string, retval] LPWSTR *description);
  871. HRESULT SetDescription ([in, string] LPCWSTR description);
  872. HRESULT GetIdentifier ([out, string, retval] LPWSTR *identifier);
  873. HRESULT SetIdentifier ([in, string] LPCWSTR identifier);
  874. HRESULT GetKeywords ([out, string, retval] LPWSTR *keywords);
  875. HRESULT SetKeywords ([in, string] LPCWSTR keywords);
  876. HRESULT GetLanguage ([out, string, retval] LPWSTR *language);
  877. HRESULT SetLanguage ([in, string] LPCWSTR language);
  878. HRESULT GetLastModifiedBy ([out, string, retval] LPWSTR *lastModifiedBy);
  879. HRESULT SetLastModifiedBy ([in, string] LPCWSTR lastModifiedBy);
  880. HRESULT GetLastPrinted ([out, retval] SYSTEMTIME *lastPrinted);
  881. HRESULT SetLastPrinted ([in] const SYSTEMTIME *lastPrinted);
  882. HRESULT GetModified ([out, retval] SYSTEMTIME *modified);
  883. HRESULT SetModified ([in] const SYSTEMTIME *modified);
  884. HRESULT GetRevision ([out, string, retval] LPWSTR *revision);
  885. HRESULT SetRevision ([in, string] LPCWSTR revision);
  886. HRESULT GetSubject ([out, string, retval] LPWSTR *subject);
  887. HRESULT SetSubject ([in, string] LPCWSTR subject);
  888. HRESULT GetTitle ([out, string, retval] LPWSTR *title);
  889. HRESULT SetTitle ([in, string] LPCWSTR title);
  890. HRESULT GetVersion ([out, string, retval] LPWSTR *version);
  891. HRESULT SetVersion ([in, string] LPCWSTR version);
  892. HRESULT Clone ([out, retval] IXpsOMCoreProperties **coreProperties);
  893. }
  894. cpp_quote("#endif")
  895. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  896. [object, uuid (15b873d5-1971-41e8-83a3-6578403064c7), local]
  897. interface IXpsOMThumbnailGenerator : IUnknown {
  898. HRESULT GenerateThumbnail ([in] IXpsOMPage *page,[in] XPS_IMAGE_TYPE thumbnailType,[in] XPS_THUMBNAIL_SIZE thumbnailSize,[in] IOpcPartUri *imageResourcePartName,[out, retval] IXpsOMImageResource **imageResource);
  899. };
  900. cpp_quote("#endif")
  901. [uuid (B47491A0-CF33-4fe4-9a48-B0ACDAE207E8)]
  902. library MSXPS {
  903. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
  904. [uuid (E974D26D-3d9b-4d47-88cc-3872f2dc3585)] coclass XpsOMObjectFactory {
  905. interface IXpsOMObjectFactory;
  906. };
  907. cpp_quote("#endif")
  908. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  909. [uuid (7e4a23e2-B969-4761-BE35-1a8ced58e323)] coclass XpsOMThumbnailGenerator {
  910. interface IXpsOMThumbnailGenerator;
  911. };
  912. cpp_quote("#endif")
  913. };
  914. cpp_quote("#endif")