InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMasterSpreadList.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 off the document, contains the list of master spreads
24 // defined in this document.
25 //
26 //========================================================================================
27 
28 #ifndef __IMASTERSPREADLIST__
29 #define __IMASTERSPREADLIST__
30 
31 #include "IPMUnknown.h"
32 #include "MasterPageID.h"
33 
34 class IGeometry;
35 class UIDList;
36 class IIterator;
37 
48 {
49 public:
50  enum { kDefaultIID = IID_IMASTERSPREADLIST };
51  enum { kAtTheEnd = -1 };
52 
60  virtual void InsertMasterSpreads(const UIDList& spreadToInsert, int32 posForInsert) = 0;
61 
67  virtual void RemoveMasterSpread(int32 index) = 0;
68 
75  virtual IGeometry * QueryNthMasterSpread(int32 spreadIndex) = 0;
76 
83  virtual UID GetNthMasterSpreadUID(int32 spreadIndex) = 0;
84 
90  virtual int32 GetMasterSpreadCount() = 0;
91 
98  virtual int32 GetMasterSpreadIndex(IGeometry * spread) = 0;
99 
106  virtual int32 GetMasterSpreadIndex(UID spreadUID) = 0;
107 
114  virtual IIterator *NewPageIterator() = 0;
115 
128  virtual void GenerateNewMasterName(PMString* pPrefix, PMString* pName, bool16 duplicate = kFalse) = 0;
129 
137  virtual UID FindMasterByName(PMString prefix, PMString basename) = 0;
138 };
139 
140 
141 #endif // __IMASTERSPREADLIST__
142