InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLExportOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ryan Gano
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IXMLExportOptions__
25 #define __IXMLExportOptions__
26 
27 #include "XMLID.h"
28 #include "IPMUnknown.h"
29 #include "IXMLOutStream.h"
30 
31 //========================================================================================
32 // CLASS IXMLExportOptions
33 //========================================================================================
40 {
41 public:
42  enum { kDefaultIID = IID_IXMLEXPORTOPTIONS };
43 
45  typedef enum ImageType {
46  kImageBest = 0,
47  kImageJPEG,
48  kImageGIF,
49  kImagePNG
50  } ImageType;
51 
53  typedef enum
54  {
55  kJPEGBaseline = 0,
56  kJPEGProgressive
57  } JPEGEncoding;
58 
60  typedef enum
61  {
62  kJPEGLowQuality = 0,
63  kJPEGMediumQuality,
64  kJPEGGoodQuality,
65  kJPEGMaxQuality
66  } JPEGQuality;
67 
69  typedef enum
70  {
80  } PaletteType;
81 
83  typedef enum
84  {
86  kNone = 0,
90 
92  typedef enum
93  {
96 
99 
102 
107 
112  virtual bool16 GetExportFromSelected() const = 0;
113 
117  virtual void SetExportFromSelected(bool16 exportFromSelected) = 0;
118 
119 
123  virtual IXMLOutStream::eEncodingType GetEncodingType() const = 0;
124 
128  virtual void SetEncodingType(IXMLOutStream::eEncodingType encodingType) = 0;
129 
130 
135  virtual void EnableOptimizedImages(bool8 enable) = 0;
136 
141  virtual void EnableFormattedImages(bool8 enable) = 0;
142 
146  virtual void EnableCopyOriginals(bool8 enable) = 0;
147 
151  virtual void SetImageType(ImageType type) = 0;
152 
157  virtual void SetJPEGOptions(JPEGEncoding encode, JPEGQuality quality) = 0;
158 
163  virtual void SetGIFOptions(PaletteType palette, bool8 interlaced) = 0;
164 
165 
169  virtual void SetPNGOptions(uint32 compressionLevel) = 0;
170 
174  virtual bool8 IsEnabledOptimizedImages(void) const = 0;
175 
179  virtual bool8 IsEnabledFormattedImages(void) const = 0;
180 
184  virtual bool8 IsEnabledCopyOriginals() const = 0;
185 
189  virtual ImageType GetImageType(void) const = 0;
190 
195  virtual void GetJPEGOptions(JPEGEncoding *encode, JPEGQuality *quality) const = 0;
196 
201  virtual void GetGIFOptions(PaletteType *palette, bool8 *interlaced) const = 0;
202 
206  virtual void GetPNGOptions(uint32 *compressionLevel) const = 0;
207 
212  virtual void SetImagePPI(const PMReal &resolution) = 0;
213 
217  virtual PMReal GetImagePPI() const = 0;
218 
220  virtual FrameOfReference GetFrameOfReference() const = 0;
221 
223  virtual void SetFrameOfReference(FrameOfReference x) = 0;
224 
229  virtual bool16 GetExportRuby() const = 0;
230 
234  virtual void SetExportRuby(bool16 exportRuby) = 0;
235 
240  virtual bool16 GetExcludeDTD() const = 0;
241 
245  virtual void SetExcludeDTD(bool16 excludeDTD) = 0;
246 
252 
256  virtual void SetExportUntaggedTablesFormat(UntaggedTablesFormat exportUntaggedTables) = 0;
257 
262  virtual bool16 GetRunScriptOnExport() const = 0;
263 
268  virtual void SetRunScriptOnExport(bool16 runScript) = 0;
269 
274  virtual IDFile GetXSLTScriptFileName() const = 0;
275 
280  virtual void SetXSLTScriptFileName(IDFile fileName) = 0;
284  virtual bool16 GetExportCharacterReferences() const = 0;
285 
289  virtual void SetExportCharacterReferences(bool16 exportReferences) = 0;
290 
294  virtual void Copy(IXMLExportOptions* otherOptions) = 0;
295 
300  virtual void SetImageScale(PMReal xScale = 1.0, PMReal yScale = 1.0) = 0;
301 
306  virtual void GetImageScale(PMReal &xScale, PMReal &yScale) const = 0;
307 
308 };
309 
310 #endif