InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLImportOptionsService.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ryan Gano
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 
24 #ifndef __IXMLImportOptionsService__
25 #define __IXMLImportOptionsService__
26 
27 #include "IPMUnknown.h"
28 #include "XMediaUIID.h"
29 
30 class IControlView;
31 class IDocument;
32 //----------------------------------------------------------------------------------------
33 // IXMLImportOptionsService
34 //----------------------------------------------------------------------------------------
35 
41 {
42 public:
43  enum { kDefaultIID = IID_IIXMLIMPORTOPTIONSSERVICE };
44 
45  typedef enum {
54 
64  virtual void Initialize(IDocument *doc) = 0;
65 
76  virtual K2Vector<int32> WarnOfChange(IXMLImportOptionsService *changedService, IControlView *controlView, int32 which) = 0;
77 
82  virtual void CommitChanges() = 0;
89  virtual PMString GetGroupName() const = 0;
90 
96  virtual int32 GetUIElementsCount() const = 0;
97 
104  virtual bool16 IsNthElementEnabled(int32 n) const = 0;
105 
113 
120  virtual PMString GetNthElementName(int32 n) const = 0;
121 
129  virtual bool16 GetNthElementBoolValue(int32 n) const = 0;
130 
137  virtual void SetNthElementBoolValue(int32 n, bool16 newValue) = 0;
138 
147  virtual void GetNthElementPopupValueList(int32 n, K2Vector<PMString> &valueList) const = 0;
148 
157  virtual int32 GetNthElementIntValue(int32 n) const = 0;
158 
167  virtual void SetNthElementIntValue(int32 n, int32 selected) = 0;
168 
177  virtual IDFile GetNthElementFileName(int32 n) const = 0;
178 
187  virtual void SetNthElementFileName(int32 n, IDFile fileName) = 0;
188 
197  virtual PMString GetNthElementDefaultText(int32 n) const = 0;
198 
208  virtual void GetNthFileTypeInfo(int32 n, PMString &typeName, PMString &extension) const = 0;
209 
216  virtual bool16 ShouldIndentNthControl(int32 n) const = 0;
217 };
218 
219 #endif // __IXMLImportOptionsService__