InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMasterOverrideable.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Melissa Cheng
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 // IMasterOverrideable is an interface which specifies whether or not a master page item is
25 // overrideable. If it is not overrideable, it will not be selectable on non-master pages.
26 //
27 // All master page items should have this interface, though if it's missing the page item
28 // is assumed to be overrideable.
29 //
30 //========================================================================================
31 
32 #ifndef __IMasterOverrideable__
33 #define __IMasterOverrideable__
34 
35 #include "IPMUnknown.h"
36 #include "MasterPageID.h"
37 
41 {
42 public:
43  enum { kDefaultIID = IID_IMASTEROVERRIDEABLE };
44 
45  enum MasterOverrideableType { kMasterOverrideable = 0x00, kMasterNotOverrideable = 0x01 };
46 
50  virtual void Set(int32 masterOverrideableFlag) = 0;
51 
58  virtual int32 GetMasterOverrideable() const = 0;
59 
63  virtual bool16 IsMasterOverrideable() const = 0;
64 
68  virtual bool16 IsMasterNotOverrideable() const = 0;
69 };
70 
71 #endif //__IMasterOverrideable__