InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IItemLockData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 of Interface:
24 // IItemLockData is an interface which specifies whether or not a page item's data is
25 // locked for either insert or attribute. If it is locked for insert then it's content
26 // cannot edited (inserted, deleted, etc), if it's locked for attribute then attribute changes
27 // cannot be applied to the content.
28 //
29 // Currently, TextStoryBoss (replaces ITextLockData) and SplineItemBoss have this interface.
30 //
31 //========================================================================================
32 
33 #ifndef __IItemLockData__
34 #define __IItemLockData__
35 
36 #include "IPMUnknown.h"
37 #include "GenericID.h"
38 
47 class IItemLockData : public IPMUnknown
48 {
49  public:
50  enum { kDefaultIID = IID_IITEMLOCKDATA };
51 
56  virtual void SetInsertLock(bool8 lock) = 0;
63  virtual bool8 GetInsertLock(bool8 checkParent = kTrue) const= 0;
64 
69  virtual void SetAttributeLock(bool8 lock) = 0;
76  virtual bool8 GetAttributeLock(bool8 checkParent = kTrue) const= 0;
77 };
78 
79 #endif //__IItemLockData__