InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IObjectExportOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mainak Ghosh
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: Adobe permits you to use, modify, and distribute this
20 // file in accordance with the terms of the Adobe license agreement
21 // accompanying it. If you have received this file from a source
22 // other than Adobe, then your use, modification, or distribution of
23 // it requires the prior written permission of Adobe.
24 //
25 //========================================================================================
26 
27 #ifndef __IObjectExportOptions__
28 #define __IObjectExportOptions__
29 
30 #include "GenericID.h"
31 #include "IXMLExportOptions.h"
32 
37 {
38 public:
39  enum {kDefaultIID = IID_IOBJECTEXPORTOPTIONS};
40 
41  typedef enum
42  {
44  kCustom = 0,
45 
48 
51 
54 
57 
60 
63 
66 
69 
71 
72  typedef enum
73  {
80  } TagType;
81 
82  typedef enum
83  {
85  kFixed = 0,
88  } ImageSize;
89 
90  typedef enum
91  {
93  kAlignLeft = 0,
99 
100  typedef enum
101  {
103  kBefore = 0,
108  } ImagePageBreak;
109 
110  typedef enum
111  {
119 
120  /* OBSOLETE: Do not use. Use CustomSizeType instead. */
121  typedef enum
122  {
133  } CustomWidthType;
134 
135  /* OBSOLETE: Do not use. Use CustomSizeType instead. */
136  typedef enum
137  {
147 
148  typedef enum
149  {
164  } CustomSizeType;
165 
170  virtual void SetAltTextSourceType(TextSourceType sourceType) = 0;
171 
176  virtual TextSourceType GetAltTextSourceType() const = 0;
177 
182  virtual void SetCustomAltText(const PMString &customText) = 0;
183 
188  virtual void GetCustomAltText(PMString &customText) const = 0;
189 
195  virtual void SetAltTextMetadataProperty(const PMString& nsPrefix, const PMString& propertyPath) = 0;
196 
202  virtual void GetAltTextMetadataProperty(PMString& nsPrefix, PMString& propertyPath) const = 0;
203 
208  virtual void SetActualTextSourceType(TextSourceType sourceType) = 0;
209 
214  virtual TextSourceType GetActualTextSourceType() const = 0;
215 
220  virtual void SetCustomActualText(const PMString &customText) = 0;
221 
226  virtual void GetCustomActualText(PMString &customText) const = 0;
227 
233  virtual void SetActualTextMetadataProperty(const PMString& nsPrefix, const PMString& propertyPath) = 0;
234 
240  virtual void GetActualTextMetadataProperty(PMString& nsPrefix, PMString& propertyPath) const = 0;
241 
246  virtual void SetTagType(TagType tagType) = 0;
247 
252  virtual TagType GetTagType() const = 0;
253 
258  virtual void SetCustomImageConversion(bool16 custom) = 0;
259 
264  virtual bool16 GetCustomImageConversion() const = 0;
265 
270  virtual void SetImageType(IXMLExportOptions::ImageType type) = 0;
271 
276  virtual IXMLExportOptions::ImageType GetImageType() const = 0;
277 
278 
283  virtual void SetImageResolution(const PMReal &resolution) = 0;
284 
289  virtual void GetImageResolution(PMReal &resolution) const = 0;
290 
295  virtual void SetJPEGEncoding(IXMLExportOptions::JPEGEncoding encoding) = 0;
296 
302 
307  virtual void SetJPEGQuality(IXMLExportOptions::JPEGQuality quality) = 0;
308 
314 
319  virtual void SetGIFPaletteType(IXMLExportOptions::PaletteType palette) = 0;
320 
326 
331  virtual void SetGIFInterlaced(bool16 interlaced) = 0;
332 
337  virtual bool16 GetGIFInterlaced() const = 0;
338 
343  virtual void SetCustomLayout(bool16 layout) = 0;
344 
349  virtual bool16 GetCustomLayout() const = 0;
350 
355  virtual void SetCustomLayoutType(CustomLayoutType customLayoutType) = 0;
356 
361  virtual CustomLayoutType GetCustomLayoutType() const = 0;
362 
367  virtual void SetImageAlignment(ImageAlignment align) = 0;
368 
373  virtual ImageAlignment GetImageAlignment() const = 0;
374 
379  virtual void SetImageSpaceBefore(const PMReal &before) = 0;
380 
385  virtual void GetImageSpaceBefore(PMReal &before) const = 0;
386 
391  virtual void SetImageSpaceAfter(const PMReal &after) = 0;
392 
397  virtual void GetImageSpaceAfter(PMReal &after) const = 0;
398 
403  virtual void SetUseImagePageBreak(bool16 use) = 0;
404 
409  virtual bool16 GetUseImagePageBreak() const = 0;
410 
415  virtual void SetImagePageBreak(ImagePageBreak pageBreak) = 0;
416 
421  virtual ImagePageBreak GetImagePageBreak() const = 0;
422 
427  virtual void CopyData(IObjectExportOptions *pCopyFrom) = 0;
428 
429 
434  virtual bool16 GetUseOriginalImage() const = 0;
435 
440  virtual void SetUseOriginalImage(bool16 useOriginalImage) = 0;
441 
447  virtual void SetEpubType(const PMString & epubType) = 0;
448 
453  virtual void GetEpubType(PMString & epubType) const = 0;
454 
455  /* OBSOLETE: Do not use. Use CustomSizeType based APIs instead. */
456  /* Obsolete block starts */
457 
462  virtual void SetCustomHeightValue(const PMString &height) = 0;
463 
468  virtual void GetCustomHeightValue(PMString &height) const = 0;
469 
474  virtual void SetCustomWidthValue(const PMString &width) = 0;
475 
480  virtual void GetCustomWidthValue(PMString &width) const = 0;
481 
486  virtual CustomWidthType GetCustomWidthType() const = 0;
487 
492  virtual CustomHeightType GetCustomHeightType() const = 0;
493 
498  virtual void SetCustomWidthType(CustomWidthType customWidthType) = 0;
499 
504  virtual void SetCustomHeightType(CustomHeightType customHeightType) = 0;
505 
506  /* Obsolete block ends */
507 
512  virtual void SetCustomSizeValue(const PMString & sizeString) = 0;
513 
518  virtual void GetCustomSizeValue(PMString &sizeString) const = 0;
519 
524  virtual CustomSizeType GetCustomSizeType() const = 0;
525 
530  virtual void SetCustomSizeType(CustomSizeType customSizeType) = 0;
531 
536  virtual bool16 GetCustomContentConversion() const = 0;
537 
542  virtual void SetCustomContentConversion(bool16 custom) = 0;
543 };
544 
545 #endif