InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMasterSpreadCmdData.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 // Command data interface for new/delete master spreads.
24 //
25 //========================================================================================
26 
27 #ifndef __IMasterSpreadCmdData__
28 #define __IMasterSpreadCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "MasterPageID.h"
32 #include "UIDRef.h"
33 #include "PMRect.h"
34 
35 class IDataBase;
36 class PMString;
37 
45 {
46 public:
47  enum { kDefaultIID = IID_IMASTERSPREADCMDDATA };
48 
54  virtual void Set(const UIDRef& doc,
55  int32 pagesPerSpreadCount,
56  int32 position) = 0;
57 
59  virtual const UIDRef& GetDocument() const = 0;
60 
62  virtual const int32 GetPagesPerSpreadCount() const = 0;
63 
65  virtual const int32 GetPosition() const = 0;
66 
68  virtual const PMString& GetMasterSpreadBasename() const = 0;
69 
73  virtual void SetMasterSpreadBasename(const PMString& newName)= 0;
74 
76  virtual const PMString& GetMasterSpreadPrefix() const= 0;
77 
81  virtual void SetMasterSpreadPrefix(const PMString& newPrefix) = 0;
82 
86  virtual void SetBasedOnMasterUID(UID parent) = 0;
87 
91  virtual UID GetBasedOnMasterUID() = 0;
92 };
93 
94 
95 
96 
97 #endif // __IMasterSpreadCmdData__