InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IControlledPageItems.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 pageitem which keeps a list of dependent page items (i.e.
24 // ones that refer back to this item for something).
25 //
26 //========================================================================================
27 
28 #ifndef __IControlledPageItems__
29 #define __IControlledPageItems__
30 
31 #include "IPMUnknown.h"
32 #include "MasterPageID.h"
33 
39 {
40 public:
42  virtual int32 ControlledCount() = 0;
43 
48  virtual void AddPageItem(UID controlledPageItemUID, UID controlledPageItemsPageUID = kInvalidUID) = 0;
49 
54  virtual void RemovePageItem(UID piUID, UID pageUID = kInvalidUID) = 0;
55 
62  virtual void ReplacePageItem(UID piUID, UID pageUID, UID newPIUID, UID newPageUID) = 0;
63 
65  virtual void RemoveAll() = 0;
66 
72  virtual UID GetControlledPageItem(int32 index, UID *pageUID = nil) = 0;
73 };
74 
75 #endif