InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IWaxGlyphsTOPTransform.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michel Hutinel
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 __IWaxGlyphsTOPTransform__
25 #define __IWaxGlyphsTOPTransform__
26 
27 #include "IPMUnknown.h"
28 #include "TextOnPathID.h"
29 #include "CTextEnum.h"
30 
31 class PMMatrix;
32 class PMPoint;
33 class PMReal;
34 class IPathGeometry;
35 class IMainItemTOPData;
36 class IWaxRun;
37 
43 {
44  public:
45  enum { kDefaultIID = IID_IWAXGLYPHSTOPTRANSFORM };
46 
47  virtual bool16 IsTopRun() const = 0;
48 
49  virtual void GetGlyphTransforms( PMReal xPosition, PMReal yPosition,
50  PMReal glyphWidth, PMReal glyphXOffset,
51  PMMatrix& glyphMatrix, PMMatrix& caretMatrix,
52  PMPoint& offset) = 0;
53 
54  virtual const PMMatrix * PeekGlyphTransformArray() const = 0;
55 
56  virtual const PMPoint * PeekGlyphOffsetArray() const = 0;
57  virtual const PMPoint * PeekSelectionOffsetArray() const = 0;
58 
59  virtual bool16 PointOnPathToAbscissa(const PMPoint pt, PMReal* abs, int32* hitTest) = 0;
60 
61  // If we're using the "new" (March 29, 2001) transformations, TOP applies matrix transformations onto each glyph in the wax.
62  virtual void ApplyPerGlyphTransforms() = 0;
63  virtual PMPoint TransformRunPointToSpline(const PMPoint &pointToTransform) = 0;
64 };
65 
66 #endif