InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageItemLayerData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 
24 #ifndef __IPageItemLayerData__
25 #define __IPageItemLayerData__
26 
27 #include "IPMUnknown.h"
28 #include "PageItemScrapID.h"
29 #include "K2Vector.h"
30 #include "K2Vector.h"
31 
32 //========================================================================================
33 // Forward declarations
34 //========================================================================================
35 
36 class UIDList;
37 
38 //========================================================================================
39 // CLASS IPageItemLayerData
40 //========================================================================================
41 
48 {
49 // ----- Constructors/desctructors
50 public:
51 
52 // ----- Manipulators
53 public:
54  virtual void Clear() = 0;
55 
56  virtual void SetPageItemList(const UIDList& pageItemNameList) = 0;
57  // Set the page item UIDs for the items in the scrap
58  virtual void SetLayerNameList(K2Vector<PMString>& layerNameList) = 0;
59  // Set the names of the layers for the items in the scrap
60  virtual void SetLayerIndexList(K2Vector<int32>& layerIndexList) = 0;
61  // Set the indices into the layer name list of the items in the scrap
62  virtual void SetIsGuideLayer(bool16 isGuideLayer) = 0;
63  // Are the layer names for guide layers? False by default.
64 
65 // ----- Accessors
66 public:
67  virtual bool16 IsEmpty() const = 0;
68 
69  virtual UIDList* CreatePageItemList() const = 0;
70  // Get the page item UIDs for the items in the scrap
71  virtual K2Vector<PMString>* CreateLayerNameList() const = 0;
72  // Get the names of the layers for the items in the scrap
73  virtual K2Vector<int32>* CreateLayerIndexList() const = 0;
74  // Get the indices into the layer name list of the items in the scrap
75  virtual void GetLayerForItem(UID itemUID, PMString* layerName) const = 0;
76  // Return the layer for the indicated item.
77  virtual bool16 GetIsGuideLayer() const = 0;
78  // Are the layer names for guide layers? False by default.
79 
80  virtual void GetLayerNameAtIndex(int32 index, PMString* layerName) const = 0;
81  // Return the layer name at the index into the layer name list
82  virtual int32 GetIndexOfLayerName(PMString& layerName) const = 0;
83  // Return the index of the layer name in the layer name list
84  virtual int32 GetNumLayers() const = 0;
85  // Return the number of layer names in the layer name list
86 
87  virtual int32 GetLayerIndexAtIndex(int32 index) const = 0;
88  // Return the layer index at the index into the layer index list
89  virtual int32 GetNumIndices() const = 0;
90  // Return the number of layer indices in the layer index list
91 };
92 
93 #endif