InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOverrideMasterPageItemData.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 // Data interface for overriding master page items.
24 //
25 //========================================================================================
26 
27 #ifndef __IOverrideMasterPageItemData__
28 #define __IOverrideMasterPageItemData__
29 
30 #include "IPMUnknown.h"
31 #include "MasterPageID.h"
32 #include "UIDRef.h"
33 #include "PMReal.h"
34 #include "UIDList.h"
35 #include "PMMatrix.h"
36 
42 {
43 public:
44  enum { kDefaultIID = IID_IOVERRIDEMASTERPAGEITEMDATA };
45 
51  virtual void SetOverrideMasterPageItemData(const UIDList &mpPageItemUIDs, const UIDList &pageUIDs, const PMMatrixCollection &itemShifts) = 0;
52 
54  virtual int32 GetOverrideCount() = 0;
55 
66  virtual bool16 GetNthOverride( int32 whichItem,
67  UIDRef *overriddenMasterPagePageItem,
68  UIDRef *pageOverriddenOn,
69  UIDRef *newPageItemUID,
70  PMMatrix *itemShift) = 0;
71 
72 
81  virtual bool16 SetNthOverride( int32 whichItem,
82  UIDRef *overriddenMasterPagePageItem,
83  UIDRef *pageOverriddenOn,
84  UIDRef *newPageItemUID,
85  PMMatrix itemShift) = 0;
86 
90  virtual const UIDList &GetMPItems() = 0;
91 
95  virtual const UIDList &GetPagesHit() = 0;
96 
100  virtual const PMMatrixCollection &GetItemShifts() = 0;
101 };
102 
103 
104 
105 #endif // __IOverrideMasterPageItemData__