InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISVGExportPreferences.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Greg St. Pierre
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2007 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 __ISVGExportPreferences__
25 #define __ISVGExportPreferences__
26 
27 #include "SVGExportID.h"
28 
33 {
34 public:
35  enum { kDefaultIID = IID_ISVGEXPORTPREFERENCES };
36 
37  /*
38  Gets embed images flag. If true, images should be embedded in the
39  generated SVG file; otherwise, images are externalized
40 
41  @return kTrue if images should be embedded, else kFalse
42  */
43  virtual bool16 GetEmbedImages() const = 0;
44 
50  virtual void SetEmbedImages(bool16 embed) = 0;
51 
58  {
59  kDefaultImageFormat,
60  kJPEGImageFormat,
61  kGIFImageFormat,
62  kPNGImageFormat
63  };
64 
70  virtual ImageFormat GetImageFormat() const = 0;
71 
77  virtual void SetImageFormat(ImageFormat format) = 0;
78 
83  {
84  kJPEGQualityHigh,
85  kJPEGQualityMedHigh,
86  kJPEGQualityMed,
87  kJPEGQualityMedLow,
88  kJPEGQualityLow
89  };
90 
96  virtual JPEGQuality GetJPEGQuality() const = 0;
97 
103  virtual void SetJPEGQuality(JPEGQuality quality) = 0;
104 
109  {
110  kWebPalette,
111  kMacPalette,
112  kWinPalette,
113  kExactPalette, // Note: if generation of exact fails, adaptive is used
114  kAdaptivePalette
115  };
116 
122  virtual GIFPaletteType GetGIFPaletteType() const = 0;
123 
129  virtual void SetGIFPaletteType(GIFPaletteType palette) = 0;
130 
136  virtual bool16 GetInterlacedGIF() const = 0;
137 
143  virtual void SetInterlacedGIF(bool16 interlace) = 0;
144 
149  {
150  kHiResSampling,
151  kLowResSampling
152  };
153 
159  virtual ExportBitmapSampling GetExportBitmapSampling() const = 0;
160 
166  virtual void SetExportBitmapSampling(ExportBitmapSampling sampling) = 0;
167 
173  virtual bool16 GetEmbedFonts() const = 0;
174 
180  virtual void SetEmbedFonts(bool16 embed) = 0;
181 
186  {
187  // List borrowed from Illustrator
188  kSubsetNone,
189  kSubsetGlyphsOnly,
190  kSubsetCommonEnglishOnly,
191  kSubsetGlyphsPlusEnglish,
192  kSubsetCommonRomanOnly,
193  kSubsetGlyphsPlusRoman,
194  kSubsetEntire
195  };
196 
202  virtual FontSubsetting GetFontSubsetting() const = 0;
203 
209  virtual void SetFontSubsetting(FontSubsetting subset) = 0;
210 
216  virtual bool16 GetOutputReadersSpreads() const = 0;
217 
223  virtual void SetOutputReadersSpreads(bool16 output) = 0;
224 
229  {
230  kNoSampling,
231  kSubSampling,
232  kDownSampling
233  };
234 
240  virtual ImageSampling GetImageSampling() const = 0;
241 
247  virtual void SetImageSampling(ImageSampling sampling) = 0;
248 
254  virtual uint32 GetRealPrecision() const = 0;
255 
261  virtual void SetRealPrecision(uint32 precision) = 0;
262 
267  {
268  kProgressiveRendering,
269  kBatchRendering
270  };
271 
277  virtual RenderingStyle GetRenderingStyle() const = 0;
278 
284  virtual void SetRenderingStyle(RenderingStyle style) = 0;
285 
290  {
291  kASCIIEncoding,
292  kUTF8Encoding,
293  kUTF16Encoding
294  };
295 
301  virtual FileEncoding GetFileEncoding() const = 0;
302 
308  virtual void SetFileEncoding(FileEncoding encoding) = 0;
309 
314  {
315  kInlineStyleFormat,
316  kEntityStyleFormat,
317  kCSSStyleFormat,
318  kInlineFormat
319  };
320 
326  virtual StyleFormat GetStyleFormat() const = 0;
327 
333  virtual void SetStyleFormat(StyleFormat format) = 0;
334 
339  {
340  kAllPages,
341  kRange
342  };
343 
349  virtual PageRangeFormat GetPageRangeFormat() const = 0;
350 
356  virtual void SetPageRangeFormat(PageRangeFormat format) = 0;
357 
363  virtual PMString const &GetPageRange() const = 0;
364 
370  virtual void SetPageRange(PMString const &range) = 0;
371 
377  virtual UID GetFlattenerStyle() const = 0;
378 
384  virtual void SetFlattenerStyle(UID const &style) = 0;
385 
391  virtual bool16 GetIgnoreFlattenerSpreadOverrides() const = 0;
392 
398  virtual void SetIgnoreFlattenerSpreadOverrides(bool16 ignore) = 0;
399 
405  virtual bool16 GetFlattenOutput() const = 0;
406 
412  virtual void SetFlattenOutput(bool16 flatten) = 0;
413 
419  virtual bool16 GetUseNativeXP() const = 0;
420 
426  virtual void SetUseNativeXP(bool16 useNativeXP) = 0;
427 
435  virtual void Copy(ISVGExportPreferences const *other) = 0;
436 
442  virtual bool16 GetPageItemExport() const = 0;
443 
449  virtual void SetPageItemExport(bool16 pageitemExport) = 0;
450 
451  //[TODO]temporary for prototype APIs
453 
454  virtual void EnableDisableContent(bool16 inEnableStroke) = 0;
455  virtual void EnableDisableFill(bool16 inEnableFill) = 0;
456  virtual void EnableDisableStroke(bool16 inEnableFill) = 0;
457 
458  virtual bool16 IsContentEnabled() const = 0;
459  virtual bool16 IsStrokeEnabled() const = 0;
460  virtual bool16 IsFillEnabled() const = 0;
461 
462  virtual void EnableWriteXMLHeader(bool16 enable) = 0;
463  virtual bool16 IsWriteXMLHeaderEnabled() const = 0;
464 
465 };
466 
467 #endif