InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IKBSCSetsManager.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michel hutinel
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 __IKBSCSetsManager__
25 #define __IKBSCSetsManager__
26 
28 #ifdef ID_DEPRECATED
29 
30 #include "IPMUnknown.h"
31 #include "KBSCEditorDlgID.h"
32 #include "WidgetDefs.h"
33 
34 #include "PMString.h"
35 
36 
37 #define kKBSCInvalidSetIndex -1
38 #define kKBSCDefaultSetIndex 0
39 
40 #define kKBSCNameMaxCharLength kPMNamedItemMaxChars
41 
44 class IKBSCSetsManager : public IPMUnknown
45 {
46 public:
47  enum { kDefaultIID = IID_IKBSCSETSMANAGER };
48 
53  typedef enum { kDefaultKBSCArea = 0, kUserKBSCArea = 1 } KBSCArea;
54 
56  virtual bool16 ReadSetFiles() = 0;
57 
59  virtual bool16 SaveCurrentSetFile() = 0;
60 
62  virtual PMString GetCurrentSetName() = 0;
63 
65  virtual IKBSCSetsManager::KBSCArea GetCurrentSetKBSCArea() = 0;
66 
68  virtual bool16 SwitchToSet(const PMString& setName, KBSCArea area) const = 0;
69 
71  virtual bool16 SwitchToSet(const int32 index, KBSCArea area) const = 0;
72 
74  virtual int32 GetNumSets(KBSCArea area) const = 0;
75 
77  virtual PMString GetSetName(const int32 index, KBSCArea area) const = 0;
78 
80  virtual int32 GetSetIndex(const PMString& setName, KBSCArea area) const = 0;
81 
83  virtual bool16 IsSetEditable(const int32 index, KBSCArea area) const = 0;
84 
86  virtual bool16 IsSetEditable(const PMString& setName, KBSCArea area) const = 0;
87 
89  virtual bool16 IsSetDirty(const int32 index, KBSCArea area) const = 0;
90 
92  virtual bool16 IsSetDirty(const PMString& setName, KBSCArea area) const = 0;
93 
95  virtual void DirtySet(const int32 index, KBSCArea area) = 0;
96 
98  virtual void DirtySet(const PMString& setName, KBSCArea area) = 0;
99 
101  virtual bool16 DuplicateSet(const PMString& origName, KBSCArea origArea, const PMString& destName, bool16 desEditable) = 0;
102 
104  virtual bool16 DeleteSet(const PMString& setName) = 0;
105 
107  virtual bool16 EqualSetNames(const PMString& name1, const PMString& name2) = 0;
108 
110  virtual bool16 GetKBSCDirectory(IDFile& folderFileSpec, KBSCArea area) = 0;
111 };
112 
113 #endif
114 
115 #endif
116  // __IKBSCSetsManager__