InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPlaceOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adrian O'Lenskie
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 // Description:
24 // This class defines an interface used to store and access options used by the place
25 // dialog.
26 //
27 //========================================================================================
28 
29 #ifndef __IPlaceOptions_h__
30 #define __IPlaceOptions_h__
31 
32 #include "IPMUnknown.h"
33 #include "DocumentID.h"
34 
44 class IPlaceOptions : public IPMUnknown
45 {
46  public:
47  /* Default IID to be used by UseDefaultIID() */
48  enum { kDefaultIID = IID_IPLACEOPTIONS };
49 
51  virtual bool16 GetShowFilterPrefs() const = 0;
53  virtual void SetShowFilterPrefs(bool16 show) = 0;
54 
56  virtual void SetReplaceSelectedItem(bool16 replace) = 0;
58  virtual bool16 GetReplaceSelectedItem() const = 0;
59 
61  virtual void SetGenerateCaptions(bool16 replace) = 0;
63  virtual bool16 GetGenerateCaptions() const = 0;
64 
66  virtual void SetApplyCJKGrid(bool16 replace) = 0;
68  virtual void EnableApplyCJKGrid(bool16 replace) = 0;
70  virtual bool16 GetApplyCJKGrid() const = 0;
72  virtual bool16 IsApplyCJKGridEnabled() const = 0;
73 
76  virtual void SetDialogTitle(const PMString& dialogTitle) = 0;
78  virtual const PMString& GetDialogTitle() const = 0;
79 
81  virtual void SetUsePlaceOptions(bool16 useOptions) = 0;
83  virtual bool16 GetUsePlaceOptions() const = 0;
84 
86  virtual void SetShowPreview(bool16 yesNo) = 0;
88  virtual bool16 GetShowPreview(void) const = 0;
89 
90 
91 #ifdef ID_DEPRECATED
92 
95  virtual void EnableShowFilterPrefs(bool16 enable) = 0;
97  virtual bool16 IsShowFilterPrefsEnabled() const = 0;
99  virtual void EnableReplaceSelectedItem(bool16 enable) = 0;
101  virtual bool16 IsReplaceSelectedItemEnabled() const = 0;
102 #endif
103 };
104 
105 #endif //__IPlaceOptions_h__
106