InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISpreadFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bob Freeman
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 
24 #ifndef __ISpreadFacade__
25 #define __ISpreadFacade__
26 
27 // ----- Interfaces -----
28 #include "ILayoutObject.h"
29 #include "Utils.h"
30 
31 // ----- ID.h files -----
32 #include "SpreadID.h"
33 
34 namespace Facade
35  {
42  class ISpreadFacade : public IPMUnknown
43  {
44  public:
45  enum { kDefaultIID = IID_ISPREADFACADE };
46 
56  virtual ErrorCode SetPageColorLabel
57  (
58  UIDList pagesOrSpreads,
59  UIDRef color
60  ) = 0;
61 
62 
69  virtual const UID GetPageColorLabel
70  (
71  UIDRef page
72  ) = 0;
73 
80  virtual void GetEffectiveLayoutPolicy(const UIDList& pageList, ILayoutObject::LayoutPolicyList& outList) const = 0;
81 
86  virtual void GetLayoutPolicy(const UIDList& pageList, ILayoutObject::LayoutPolicyList& outList) const = 0;
87 
93  virtual ErrorCode SetLayoutPolicy(const UIDList& pageList, ILayoutObject::LayoutPolicy policy) = 0;
94 
101  virtual bool32 CanApplyBasedOnMasterPolicy(const UIDList& pageList) const = 0;
102 
107  virtual void GetOptionalPage(const UIDList& pageList, K2Vector<bool16>& outList) const = 0;
108 
114  virtual ErrorCode SetOptionalPage(const UIDList& pageList, bool16 optional) = 0;
115  };
116 }
117 
118 #endif // __ISpreadFacade__
119