InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageItemScrapUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __IPageItemScrapUtils__
25 #define __IPageItemScrapUtils__
26 
27 #include "GenericID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 
31 #include "K2Vector.h"
32 #include "PMString.h"
33 #include "PMRect.h"
34 #include "PathTypes.h"
35 
36 class UIDList;
37 class ICommand;
38 class PathSelectionList;
39 class IHierarchy;
40 class IPageItemLayerData;
41 class IDocumentLayer;
42 
48 {
49 public:
50  enum { kDefaultIID = IID_IPAGEITEMSCRAPUTILS };
51 
52  virtual ICommand* GetDuplicatePageItemsCmd( const UIDList *pageItems, const PMPoint& offset, UIDRef parent, bool16 preserveLayers) const = 0;
53  virtual ICommand* GetDuplicatePathPointsCmd( const UIDList *pageItems, const PathSelectionList* pathItems, K2Vector<PointSelectorList>* newPathItems, const PMPoint& offset, UIDRef parent, bool16 preserveLayers) const = 0;
54 
64  virtual UID FindLayer(IHierarchy* parentHier, const PMString& searchName, bool16 isGuideLayer) const = 0;
65 
77  virtual UIDRef MakeLayer(const UIDRef& docRef, PMString* layerName, const IPageItemLayerData* layerData) = 0;
78 
88  virtual UIDRef MakeLayer(const UIDRef& docRef, IDocumentLayer* sourceDocLayer) = 0;
89 };
90 
91 
92 #endif // __IPageItemScrapUtils__