InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GenStyleLockInfo.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 //
25 //========================================================================================
26 
27 #ifndef __CGenStyleLockInfo__
28 #define __CGenStyleLockInfo__
29 
30 #include "IGenStyleLockInfo.h"
31 #include "HelperInterface.h"
32 
33 
35 {
36 public:
37  // Constructors and Destructors
39  virtual ~CGenStyleLockInfo();
40 
41  virtual bool16 IsEditLocked() const;
42  virtual void SetEditLocked(bool16 lock);
43 
44  virtual bool16 IsDeleteLocked() const;
45  virtual void SetDeleteLocked(bool16 lock);
46 
47  virtual bool16 IsNameLocked() const;
48  virtual void SetNameLocked(bool16 lock);
49 
50  enum
51  {
52  kNameLockFlag = (1 << 0),
53  kEditLockFlag = (1 << 1),
54  kDeleteLockFlag = (1 << 2)
55  };
56 
57  virtual bool16 GetFlag(int32 inFlag) const;
58 
59 protected:
60  // Member Variables
61  bool16 fbEditLocked;
62  bool16 fbDeleteLocked;
63  bool16 fbNameLocked;
64 
65 
66 };
67 
68 #endif
69 
70 // End, GenStyleListMgr.h.