InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMasterPage.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 // An interface for a page which defines the master associated with that page.
24 //
25 //========================================================================================
26 
27 #ifndef __IMASTERPAGE__
28 #define __IMASTERPAGE__
29 
30 #include "IPMUnknown.h"
31 #include "MasterPageID.h"
32 
33 
34 // AdobePatentID="B1114" (sheridan 30 Nov 2009 - Master page overlay (InDesign))
35 
36 
43 class IMasterPage : public IPMUnknown
44 {
45 public:
46  enum { kDefaultIID = IID_IMASTERPAGE };
47  enum { kPositionDependant = kMaxUInt16 };
48 
53  virtual UID GetMasterSpreadUID() const = 0;
54 
60  virtual void SetMasterPageData( UID masterspreadUID, uint16 mpIndex = IMasterPage::kPositionDependant) = 0;
61 
68  virtual uint16 GetMasterSpreadPageIndex( UID alternateMasterSpreadUID = kInvalidUID) const = 0;
69 
76  virtual bool16 IsValid() const = 0;
77 
78  virtual void SetMasterPageTransform( const PMMatrix& m) = 0;
79  virtual bool16 GetMasterPageTransform( PMMatrix* mp) const = 0; //return whether the matrix is identity
80 
81 };
82 
83 #endif