InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRefPointUtils.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 __IRefPointUtils__
25 #define __IRefPointUtils__
26 
27 #include "AppFrameworkID.h"
28 #include "IPMUnknown.h"
29 #include "IReferencePointData.h"
30 #include "TransformTypes.h"
31 
32 class UIDList;
33 
42 class IRefPointUtils : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_IREFPOINTUTILS };
46 
54  const PMPolygon4& bounds) = 0; //should probably use a PMRect, PMMatrix pair
55 
67  const UIDList& items,
68  PBPMRect* referenceFrame /*= nil*/, // Optionally return parent rect if it exists (e.g. graphic item direct selected)
69  const Geometry::BoundsKind* pUseStroke /*= nil*/, // Optionally sets setting to indicate whether to use stroke or path bound.
70  const Transform::CoordinateSpace* coordinateSpace /* = nil*/) = 0;
71 
72  inline PBPMPoint CalculateReferencePoint_3( IReferencePointData::ReferencePointPosition position, const UIDList& items)
73  {
74  return CalculateReferencePoint_2( position, items, nil, nil, nil);
75  }
76 
82 
88 
95 
96 };
97 
98 
99 #endif // __IRefPointUtils__