InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXHTMLExportPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __IXHTMLExportPrefs__
32 #define __IXHTMLExportPrefs__
33 
34 #include "IPMUnknown.h"
35 #include "IXMLExportOptions.h"
36 
37 #include "HTMLEPubExportTypes.h"
38 
39 #include "EBookExportID.h"
40 
41 using namespace HTMLExport;
42 
44 {
45 public:
46  enum { kDefaultIID = IID_IXHTMLEXPORTPREFS };
47 
48  // general options
49  virtual ExportScope GetExportScope() const = 0;
50  virtual void SetExportScope(ExportScope scope) = 0;
51 
52  virtual ExportOrder GetExportOrder() const = 0;
53  virtual void SetExportOrder(ExportOrder order) = 0;
54 
55  virtual BulletOption GetBulletOption() const = 0;
56  virtual void SetBulletOption(BulletOption option) = 0;
57 
58  virtual NumberingOption GetNumberingOption() const = 0;
59  virtual void SetNumberingOption(NumberingOption option) = 0;
60 
61  virtual bool16 GetPreview() const = 0;
62  virtual void SetPreview(bool16 preview) = 0;
63 
64  // SVG export type options
65  virtual SVGExportType GetSVGExportType() const = 0;
66  virtual void SetSVGExportType(SVGExportType type) = 0;
67 
68  // image option
69  virtual ImageOption GetImageOption() const = 0;
70  virtual void SetImageOption(ImageOption option) = 0;
71 
72  virtual bool16 GetLayoutAppearance() const = 0;
73  virtual void SetLayoutAppearance(bool16 layoutFormat) = 0;
74 
75  virtual uint32 GetImagePPI() const = 0;
76  virtual void SetImagePPI(uint32 ppi) = 0;
77 
78  virtual ImageSize GetImageSize() const = 0;
79  virtual void SetImageSize(ImageSize option) = 0;
80 
81  virtual ImageAlignment GetImageAlignment() const = 0;
82  virtual void SetImageAlignment(ImageAlignment align) = 0;
83 
84  virtual PMReal GetImageSpaceBefore() const = 0;
85  virtual void SetImageSpaceBefore(const PMReal & before) = 0;
86 
87  virtual PMReal GetImageSpaceAfter() const = 0;
88  virtual void SetImageSpaceAfter(const PMReal & after) = 0;
89 
91  virtual bool16 GetApplyImageASToAnchoredObject() const = 0;
92  virtual void SetApplyImageASToAnchoredObject(bool16 apply) = 0;
93 
94  virtual IXMLExportOptions::ImageType GetImageType() const = 0;
95  virtual void SetImageType(IXMLExportOptions::ImageType type) = 0;
96 
97  virtual IXMLExportOptions::PaletteType GetGIFPaletteType() const = 0;
98  virtual void SetGIFPaletteType(IXMLExportOptions::PaletteType type) = 0;
99 
100  virtual bool16 GetGIFInterlaced() const = 0;
101  virtual void SetGIFInterlaced(bool16 gif) = 0;
102 
103  virtual IXMLExportOptions::JPEGEncoding GetJPEGEncoding() const = 0;
104  virtual void SetJPEGEncoding(IXMLExportOptions::JPEGEncoding encoding) = 0;
105 
106  virtual IXMLExportOptions::JPEGQuality GetJPEGQuality() const = 0;
107  virtual void SetJPEGQuality(IXMLExportOptions::JPEGQuality quality) = 0;
108 
109  virtual uint32 GetPNGCompression() const = 0;
110  virtual void SetPNGCompression(uint32 compression) = 0;
111 
112  virtual bool16 GetIgnorePageitemImageSetting() const = 0;
113  virtual void SetIgnorePageitemImageSetting(bool16 setting) = 0;
114 
115  virtual PMString GetServerPath() const = 0;
116  virtual void SetServerPath(const PMString & path) = 0;
117 
118  virtual PMString GetImageExtension() const = 0;
119  virtual void SetImageExtension(const PMString & ext) = 0;
120 
121  // advanced options
122  virtual bool16 GetGenerateCSS() const = 0;
123  virtual void SetGenerateCSS(bool16 css) = 0;
124 
125  virtual bool16 GetIncludeOverrides() const = 0;
126  virtual void SetIncludeOverrides(bool16 overrides) = 0;
127 
128  // user specified CSS
129  virtual K2Vector<PMString> GetCascadeStyleSheets() const = 0;
130  virtual void SetCascadeStyleSheets(const K2Vector<PMString> & sheets) = 0;
131 
132  // user specified javascript
133  virtual K2Vector<PMString> GetJavascripts() const = 0;
134  virtual void SetJavascripts(const K2Vector<PMString> & scripts) = 0;
135 
139  virtual void Copy(IXHTMLExportPrefs const * other) = 0;
140 
141  //Advanced options to generate Plain HTML
142  virtual bool16 GetIncludeClassesInHTML() const = 0;
143  virtual void SetIncludeClassesInHTML(bool16 includeClassesInHTML) = 0;
144 };
145 
146 
147 #endif // __IHTMLPGTExportPrefs__