InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGenericSettingsAttribute.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 __IGenericSettingsAttribute__
29 #define __IGenericSettingsAttribute__
30 
31 #include "IPMUnknown.h"
32 #include "IPMUnknownIterator.h"
33 #include "GenericSettingsID.h"
34 
38 {
39 public:
40  enum { kDefaultIID = IID_IGENERICSETTINGSATTRIBUTE };
41  enum AttributeFlags
42  {
43  AttrTranslateNone = 0x00,
44  AttrTranslateName = 0x01,
45  AttrTranslateValue = 0x02,
46  AttrTranslateBoth = 0x03
47  };
48 
49 public:
57  virtual void Initialize( const PMString pszName,
58  const PMString strValue,
59  AttributeFlags nFlags = AttrTranslateBoth,
60  bool16 bLocked = kFalse,
61  bool16 bRelevant = kTrue ) = 0;
62 
66  virtual void SetRelevant( bool16 bRelevant ) = 0;
67 
71  virtual void SetLocked( bool16 bLocked ) = 0;
72 
73 public:
77  virtual void GetName( PMString& strName ) = 0;
78 
82  virtual void GetValue( PMString& strValue ) = 0;
83 
87  virtual bool16 GetLocked() = 0;
88 
92  virtual bool16 GetRelevant() = 0;
93 };
94 
95 
96 #endif