InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGenericSettingsGroup.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Chris Jones
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 // Purpose:
24 // Programmatically accessible list of preferences/settings.
25 //
26 //========================================================================================
27 
28 #ifndef __IGenericSettingsGroup__
29 #define __IGenericSettingsGroup__
30 
31 #include "IPMUnknown.h"
32 #include "IPMUnknownIterator.h"
33 #include "IGenericSettingsAttribute.h"
34 #include "IGenericSettingsGroup.h"
35 #include "GenericSettingsID.h"
36 
40 {
41 public:
42  enum { kDefaultIID = IID_IGENERICSETTINGSGROUP };
43 
44 public:
54  virtual IGenericSettingsAttribute* AddAttribute( const PMString pszName,
55  const PMString pszValue,
56  IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
57  bool16 bLocked = kFalse,
58  bool16 bRelevant = kTrue ) = 0;
59 
69  virtual IGenericSettingsGroup* AddGroup( const PMString pszName,
70  const PMString pszValue,
71  IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
72  bool16 bLocked = kFalse,
73  bool16 bRelevant = kTrue ) = 0;
74 
84  virtual IGenericSettingsAttribute* SetName( const PMString pszName,
85  const PMString pszValue,
86  IGenericSettingsAttribute::AttributeFlags nFlags = IGenericSettingsAttribute::AttrTranslateBoth,
87  bool16 bLocked = kFalse,
88  bool16 bRelevant = kTrue ) = 0;
89 
90 public:
96  virtual IPMUnknownIterator* GetAttributes() = 0;
97 
102  virtual IGenericSettingsAttribute* GetName() = 0;
103 };
104 
105 
106 #endif