Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreTextLine.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_LINE__
8 #define __HDI_CORE_TEXT_LINE__
9 
10 #include <vector>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace plugin
17  {
18  class TextLine;
19  }
20 
21  namespace core
22  {
23  class ArtboardPoint;
24  class TextArt;
25  class TextGlyphRun;
26  class TextRange;
27 
28  class TextLine
29  {
30  public:
31  typedef std::vector< TextGlyphRun* > TextGlyphRunVector;
32 
42  TextLine();
43 
51  TextLine(const TextLine& tl_);
52 
58  virtual ~TextLine();
59 
65  virtual TextLine& operator=(const TextLine& rhs_);
66 
75  virtual bool operator==(const TextLine& rhs_) const;
76 
85  virtual bool operator!=(const TextLine& rhs_) const;
86 
98  virtual std::auto_ptr<ATE::ITextLine> ateTextLine() const;
99 
107  virtual bool isEmpty() const;
108 
118  virtual TextGlyphRunVector glyphRuns() const;
119 
127  virtual std::auto_ptr<TextArt> textFrame() const;
128 
136  virtual std::auto_ptr<TextRange> textRange() const;
137 
145  virtual int32_t baselineCount() const;
146 
157  virtual bool baseline(const int32_t index_, ArtboardPoint& start__, ArtboardPoint& end__) const;
158 
159 
160  private:
161  friend plugin::TextLine* __accessImpl(const TextLine&);
162  friend TextLine __accessCtor(const plugin::TextLine&);
163 
167  plugin::TextLine* __impl;
168 
174  TextLine(const plugin::TextLine&);
175  };
176 
177  typedef std::auto_ptr<TextLine> TextLineAP;
178 
179  extern plugin::TextLine* __accessImpl(const TextLine&);
180  extern TextLine __accessCtor(const plugin::TextLine&);
181  }
182 }
183 
184 #endif
185 // __HDI_CORE_TEXT_LINE__
virtual bool baseline(const int32_t index_, ArtboardPoint &start__, ArtboardPoint &end__) const
Retrieves a baseline with a start and end point in the coordinate space of the containing text frame...
virtual bool isEmpty() const
Gets whether the target TextLine object is empty.
virtual bool operator!=(const TextLine &rhs_) const
Tests whether a given TextLine object is not the same as another.
virtual TextLine & operator=(const TextLine &rhs_)
Overloaded assignment operator for TextLine objects.
TextLine()
Creates a new TextLine object.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreTextLine.h:28
virtual std::auto_ptr< ATE::ITextLine > ateTextLine() const
Gets the ATE text line ref around which the target object is wrapped.
Definition: hdicoreaiArray.h:12
virtual bool operator==(const TextLine &rhs_) const
Tests whether a given TextLine object is the same as another.
virtual std::auto_ptr< TextRange > textRange() const
Retrieves the text range for this line.
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:28
virtual ~TextLine()
Destructs a TextLine object.
virtual std::auto_ptr< TextArt > textFrame() const
Retrieves the parent text frame of this line.
virtual TextGlyphRunVector glyphRuns() const
Retrieves all glyph-runs for the target text line.
virtual int32_t baselineCount() const
Retrieves the count of baselines.