InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageItemLockFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
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 // Note:
24 //
25 //========================================================================================
26 
27 #ifndef _IPageItemLockFacade_
28 #define _IPageItemLockFacade_
29 
30 #include "GenericID.h"
31 #include "IDocument.h"
32 
37 namespace Facade
38 {
40  {
41  public:
42  enum { kDefaultIID = IID_IPAGEITEMLOCKFACADE };
43 
44 
49  virtual bool16 CanLock(UIDList targetItemList) const = 0;
50 
51 
56  virtual bool16 CanUnlock(UIDList targetItemList) const = 0;
57 
63  virtual bool16 IsLockedAndNotSelectable(UIDList targetItemList) const = 0;
64 
69  virtual bool16 IsAnyAncestorLocked(const UIDRef& oneItem) const = 0;
70 
75  virtual bool16 AreItemsAllLocked (UIDList targetItemList) const = 0;
76 
81  virtual ErrorCode LockPageItems (UIDList targetItemList) = 0;
82 
87  virtual ErrorCode UnlockPageItems (UIDList targetItemList) = 0;
88 
93  virtual bool16 AreAnyUnlockableOnSpread (const UIDRef& targetSpread) const = 0;
94 
99  virtual bool16 AreAnyUnlockableInDocument (IDocument * theDoc) const = 0;
100 
105  virtual ErrorCode UnlockAllOnSpread (const UIDRef& targetSpread) = 0;
106 
111  virtual ErrorCode UnlockAllInDocument (IDocument * theDoc) = 0;
112 
113 
114  };
115 }
116 #endif // _IPageItemLockFacade_