Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextLine.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_TEXT_LINE__
8#define __HDI_CORE_TEXT_LINE__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include <vector>
13
14#include "hdicoreTypes.h"
15
16namespace hdi
17{
18 namespace aip
19 {
20 class TextLine;
21 }
22
23 namespace core
24 {
25 class ArtboardPoint;
26 class TextArt;
27 class TextGlyphRun;
28 class TextRange;
29
31 {
32 public:
33 typedef std::vector< std::shared_ptr<TextGlyphRun> > TextGlyphRunVector;
34
45
53 TextLine(const TextLine& tl_);
54
60 virtual ~TextLine();
61
67 virtual TextLine& operator=(const TextLine& rhs_);
68
77 virtual bool operator==(const TextLine& rhs_) const;
78
87 virtual bool operator!=(const TextLine& rhs_) const;
88
100 virtual std::unique_ptr<ATE::ITextLine> ateTextLine() const;
101
109 virtual bool isEmpty() const;
110
118 virtual TextGlyphRunVector glyphRuns() const;
119
127 virtual std::unique_ptr<TextArt> textFrame() const;
128
136 virtual std::unique_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 aip::TextLine* __accessImpl(const TextLine&);
162 friend TextLine __accessCtor(const aip::TextLine&);
163
167 aip::TextLine* __impl;
168
174 TextLine(const aip::TextLine&);
175 };
176
177 typedef std::unique_ptr<TextLine> TextLineUP;
178 typedef std::shared_ptr<TextLine> TextLineSP;
179 typedef std::weak_ptr<TextLine> TextLineWP;
180
181 extern aip::TextLine* __accessImpl(const TextLine&);
182 extern TextLine __accessCtor(const aip::TextLine&);
183 }
184}
185
186#endif
187// HDI_CORE_AIP_MODE
188
189#endif
190// __HDI_CORE_TEXT_LINE__
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Definition: hdicoreTextLine.h:31
virtual std::unique_ptr< TextArt > textFrame() const
Retrieves the parent text frame of this line.
TextLine()
Creates a new TextLine object.
virtual bool isEmpty() const
Gets whether the target TextLine object is empty.
virtual ~TextLine()
Destructs a TextLine object.
virtual std::unique_ptr< TextRange > textRange() const
Retrieves the text range for this line.
virtual TextLine & operator=(const TextLine &rhs_)
Overloaded assignment operator for TextLine objects.
virtual int32_t baselineCount() const
Retrieves the count of baselines.
virtual bool operator==(const TextLine &rhs_) const
Tests whether a given TextLine object is the same as another.
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 std::unique_ptr< ATE::ITextLine > ateTextLine() const
Gets the ATE text line ref around which the target object is wrapped.
virtual TextGlyphRunVector glyphRuns() const
Retrieves all glyph-runs for the target text line.
TextLine(const TextLine &tl_)
TextLine copy constructor.
virtual bool operator!=(const TextLine &rhs_) const
Tests whether a given TextLine object is not the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.