InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CGeometry.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jack Kirstein
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 __CGeometry__
25 #define __CGeometry__
26 
27 #include "IGeometry.h"
28 #include "HelperInterface.h"
29 
30 
31 class CGeometry : public IGeometry
32 {
33 public:
34  CGeometry(IPMUnknown *boss);
35  virtual ~CGeometry();
36 
37  // All of the *StrokeBoundingBox methods call the *PathBoundingBox methods
38  virtual PMRect GetStrokeBoundingBox() const;
39  virtual PMRect GetStrokeBoundingBox( const PMMatrix& theMatrix) const;
40  virtual ErrorCode SetStrokeBoundingBox( const PMRect& newBBox);
41  virtual ErrorCode SetStrokeBoundingBox( const PMMatrix& theMatrix, const PMRect& newBBox);
42 
43  // Clients must override these methods
44  virtual PMRect GetPathBoundingBox() const = 0;
45  virtual PMRect GetPathBoundingBox( const PMMatrix& theMatrix) const = 0;
46  virtual ErrorCode SetPathBoundingBox( const PMRect& newBBox) = 0;
47  virtual ErrorCode SetPathBoundingBox( const PMMatrix& theMatrix, const PMRect& newBBox) = 0;
48 
49  virtual PMReal GetStrokeProportion() const;
50  virtual PMReal GetPathProportion() const;
51 
52 
53 
54 };
55 
56 #endif