InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGuideUtils.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 __IGuideUtils__
25 #define __IGuideUtils__
26 
27 #include "GuideID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 #include "PMPoint.h"
31 #include "UIDRef.h"
32 
33 class ICommand;
34 class IGuideData;
35 class IColorData;
36 
41 class IGuideUtils : public IPMUnknown
42 {
43 public:
44  enum { kDefaultIID = IID_IGUIDEUTILS };
45 
53  virtual UID GetNewOwnerUID(IGuideData *guideData, const PMPoint &locationPoint) = 0;
54 
60  virtual void GetSortedSliceGuides(const UIDRef& pageRef, UIDList& horizontalGuides, UIDList& verticalGuides) const = 0;
61  virtual void GetSortedSliceGuides( const UIDRef& pageRef, const PMRect& pageBoundsSpreadCoordinates, UIDList& horizontalGuides, UIDList& verticalGuides) const = 0;
62 
63  typedef enum
64  {
65  kMaskNothing = 0x00000000,
66  kMaskHiddenLayers = 0x00000001,
67  kMaskLockedLayers = 0x00000002,
68  kMaskHiddenAndLockedLayers = kMaskHiddenLayers + kMaskLockedLayers
69  } LayerMaskFlags;
70 
71  virtual UIDList GetGuidesOnSpread(const UIDRef& spreadRef, const LayerMaskFlags flags) const = 0;
72 
76  virtual void FilterNonGuides(UIDList& list) = 0;
77 
78 };
79 
80 #endif // __IGuideUtils__