Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextLine.h
Go to the documentation of this file.
1
6
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
34 {
35 public:
36 typedef std::vector< std::shared_ptr<TextGlyphRun> > TextGlyphRunVector;
37
48
56 TextLine(const TextLine& tl_);
57
63 virtual ~TextLine();
64
73 virtual TextLine& operator=(const TextLine& rhs_);
74
83 virtual bool operator==(const TextLine& rhs_) const;
84
93 virtual bool operator!=(const TextLine& rhs_) const;
94
106 virtual std::unique_ptr<ATE::ITextLine> ateTextLine() const;
107
115 virtual bool isEmpty() const;
116
124 virtual TextGlyphRunVector glyphRuns() const;
125
133 virtual std::unique_ptr<TextArt> textFrame() const;
134
142 virtual std::unique_ptr<TextRange> textRange() const;
143
151 virtual int32_t baselineCount() const;
152
163 virtual bool baseline(const int32_t index_, ArtboardPoint& start__, ArtboardPoint& end__) const;
164
165
166 private:
167 friend aip::TextLine* __accessImpl(const TextLine&);
168 friend TextLine __accessCtor(const aip::TextLine&);
169
173 aip::TextLine* __impl;
174
180 TextLine(const aip::TextLine&);
181 };
182
183 typedef std::unique_ptr<TextLine> TextLineUP;
184 typedef std::shared_ptr<TextLine> TextLineSP;
185 typedef std::weak_ptr<TextLine> TextLineWP;
186
187 extern aip::TextLine* __accessImpl(const TextLine&);
188 extern TextLine __accessCtor(const aip::TextLine&);
189 }
190}
191
192#endif
193// HDI_CORE_AIP_MODE
194
195#endif
196// __HDI_CORE_TEXT_LINE__
Describes a point on the Illustrator artboard.
Definition hdicoreArtboardPoint.h:31
Allows for text frame manipulation, selection, metadata access, etc.
Definition hdicoreTextArt.h:29
Encapsulates glyph run functionality from the Illustrator SDK.
Definition hdicoreTextGlyphRun.h:32
Encapsulates text line functionality from the Illustrator SDK.
Definition hdicoreTextLine.h:34
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.
Allows for easy manipulation of Illustrator text ranges.
Definition hdicoreTextRange.h:41
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.