InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IObjectExportOptionsData.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 __IObjectExportOptionsData__
28 #define __IObjectExportOptionsData__
29 
30 #include "GenericID.h"
31 #include "IObjectExportOptions.h"
32 
38 {
39 public:
40  enum {kDefaultIID = IID_IOBJECTEXPORTOPTIONSDATA};
41 
42  /* Enumerates the state of an option.
43  The option's value should not be accessed if the state is "kValueNotSet" or "kValueMixed".
44  */
45  typedef enum
46  {
47  /* No value set - invalid (clients should treat as opaque). This is the default state. */
48  kValueNotSet = 0,
49  /* Valid value set. */
50  kValueSet,
51  /* The value is different across the selection. */
52  kValueMixed
53  } OptionState;
54 
60 
66 
71  virtual OptionState GetAltTextSourceTypeState() const = 0;
72 
77  virtual void SetCustomAltText(const PMString &customText) = 0;
78 
83  virtual void GetCustomAltText(PMString &customText) const = 0;
84 
89  virtual OptionState GetCustomAltTextState() const = 0;
90 
96  virtual void SetAltTextMetadataProperty(const PMString& nsPrefix, const PMString& propertyPath) = 0;
97 
103  virtual void GetAltTextMetadataProperty(PMString& nsPrefix, PMString& propertyPath) const = 0;
104 
109  virtual OptionState GetAltTextMetadataPropertyState() const = 0;
110 
116 
122 
127  virtual OptionState GetActualTextSourceTypeState() const = 0;
128 
133  virtual void SetCustomActualText(const PMString &customText) = 0;
134 
139  virtual void GetCustomActualText(PMString &customText) const = 0;
140 
145  virtual OptionState GetCustomActualTextState() const = 0;
146 
152  virtual void SetActualTextMetadataProperty(const PMString& nsPrefix, const PMString& propertyPath) = 0;
153 
159  virtual void GetActualTextMetadataProperty(PMString& nsPrefix, PMString& propertyPath) const = 0;
160 
165  virtual OptionState GetActualTextMetadataPropertyState() const = 0;
166 
171  virtual void SetTagType(IObjectExportOptions::TagType tagType) = 0;
172 
177  virtual IObjectExportOptions::TagType GetTagType() const = 0;
178 
183  virtual OptionState GetTagTypeState() const = 0;
184 
189  virtual void SetCustomImageConversion(bool16 custom) = 0;
190 
195  virtual bool16 GetCustomImageConversion() const = 0;
196 
201  virtual OptionState GetCustomImageConversionState() const = 0;
202 
207  virtual void SetImageType(IXMLExportOptions::ImageType type) = 0;
208 
213  virtual IXMLExportOptions::ImageType GetImageType() const = 0;
214 
219  virtual OptionState GetImageTypeState() const = 0;
220 
221 
226  virtual void SetImageResolution(const PMReal &resolution) = 0;
227 
232  virtual void GetImageResolution(PMReal &resolution) const = 0;
233 
238  virtual OptionState GetImageResolutionState() const = 0;
239 
244  virtual void SetJPEGEncoding(IXMLExportOptions::JPEGEncoding encoding) = 0;
245 
251 
256  virtual OptionState GetJPEGEncodingState() const = 0;
257 
262  virtual void SetJPEGQuality(IXMLExportOptions::JPEGQuality quality) = 0;
263 
269 
274  virtual OptionState GetJPEGQualityState() const = 0;
275 
280  virtual void SetGIFPaletteType(IXMLExportOptions::PaletteType palette) = 0;
281 
287 
292  virtual OptionState GetGIFPaletteTypeState() const = 0;
293 
298  virtual void SetGIFInterlaced(bool16 interlaced) = 0;
299 
304  virtual bool16 GetGIFInterlaced() const = 0;
305 
310  virtual OptionState GetGIFInterlacedState() const = 0;
311 
316  virtual void SetCustomLayout(bool16 layout) = 0;
317 
322  virtual bool16 GetCustomLayout() const = 0;
323 
328  virtual OptionState GetCustomLayoutState() const = 0;
329 
334  virtual void SetCustomLayoutType(IObjectExportOptions::CustomLayoutType customLayoutType) = 0;
335 
341 
346  virtual OptionState GetCustomLayoutTypeState() const = 0;
347 
353 
359 
364  virtual OptionState GetImageAlignmentState() const = 0;
365 
370  virtual void SetImageSpaceBefore(const PMReal &before) = 0;
371 
376  virtual void GetImageSpaceBefore(PMReal &before) const = 0;
377 
382  virtual OptionState GetImageSpaceBeforeState() const = 0;
383 
388  virtual void SetImageSpaceAfter(const PMReal &after) = 0;
389 
394  virtual void GetImageSpaceAfter(PMReal &after) const = 0;
395 
400  virtual OptionState GetImageSpaceAfterState() const = 0;
401 
406  virtual void SetUseImagePageBreak(bool16 use) = 0;
407 
412  virtual bool16 GetUseImagePageBreak() const = 0;
413 
418  virtual OptionState GetUseImagePageBreakState() const = 0;
419 
424  virtual void SetImagePageBreak(IObjectExportOptions::ImagePageBreak pageBreak) = 0;
425 
431 
436  virtual OptionState GetImagePageBreakState() const = 0;
437 
442  virtual void CopyData(const IObjectExportOptionsData *pCopyFrom) = 0;
443 
448  virtual void CopyOptions(const IObjectExportOptions *pCopyFrom) = 0;
449 
453  virtual void ResetState() = 0;
454 
459  virtual bool16 GetUseOriginalImage() const = 0;
460 
465  virtual void SetUseOriginalImage(bool16 useOriginalImage) = 0;
466 
471  virtual OptionState GetUseOriginalImageState() const = 0;
472 
478  virtual void SetEpubType(const PMString & epubType) = 0;
479 
484  virtual void GetEpubType(PMString & epubType) const = 0;
485 
490  virtual OptionState GetEpubTypeState() const = 0;
491 
492  /* OBSOLETE: Do not use. Use CustomSizeType based APIs instead. */
493  /* Obsolete block starts */
494 
499  virtual void SetCustomHeightValue(const PMString &height) = 0;
500 
505  virtual void GetCustomHeightValue(PMString &height) const = 0;
506 
511  virtual void SetCustomWidthValue(const PMString &width) = 0;
512 
517  virtual void GetCustomWidthValue(PMString &width) const = 0;
518 
523  virtual OptionState GetCustomHeightValueState() const = 0;
524 
529  virtual OptionState GetCustomWidthValueState() const = 0;
530 
535  virtual OptionState GetCustomHeightTypeState() const = 0;
536 
541  virtual OptionState GetCustomWidthTypeState() const = 0;
542 
547  virtual void SetCustomWidthType(IObjectExportOptions::CustomWidthType customWidthType) = 0;
548 
554 
559  virtual void SetCustomHeightType(IObjectExportOptions::CustomHeightType customHeightType) = 0;
560 
566  /* Obsolete block ends */
567 
572  virtual void GetCustomSizeValue(PMString &size) const = 0;
573 
578  virtual OptionState GetCustomSizeValueState() const = 0;
579 
584  virtual OptionState GetCustomSizeTypeState() const = 0;
585 
590  virtual void SetCustomSizeType(IObjectExportOptions::CustomSizeType CustomSizeType) = 0;
591 
597 
602  virtual bool16 GetCustomContentConversion() const = 0;
603 
608  virtual void SetCustomContentConversion(bool16 custom) = 0;
609 
614  virtual OptionState GetCustomContentConversionState() const = 0;
615 };
616 
617 #endif