Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextPara.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_TEXT_PARA__
8#define __HDI_CORE_TEXT_PARA__
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 TextPara;
21 }
22
23 namespace core
24 {
25 class TextRange;
26 class TextRangeSet;
27 class TextStory;
28 class TextWord;
29
31 {
32 public:
33 typedef std::vector< std::shared_ptr<TextWord> > TextWordVector;
34
45
53 TextPara(const TextPara& p_);
54
60 virtual ~TextPara();
61
67 virtual TextPara& operator=(const TextPara& rhs_);
68
77 virtual bool operator==(const TextPara& rhs_) const;
78
87 virtual bool operator!=(const TextPara& rhs_) const;
88
100 virtual std::unique_ptr<ATE::IParagraph> ateParagraph() const;
101
109 virtual bool isEmpty() const;
110
118 virtual int32_t length() const;
119
127 virtual std::unique_ptr<TextStory> story() const;
128
136 virtual std::unique_ptr<TextRange> textRange() const;
137
145 virtual std::unique_ptr<TextRangeSet> textRangeSet() const;
146
154 virtual std::unique_ptr<TextRangeSet> selections() const;
155
163 virtual TextWordVector words() const;
164
178 virtual std::string contents(const std::string& le_ = "\n");
179
180
181 private:
182 friend aip::TextPara* __accessImpl(const TextPara&);
183 friend TextPara __accessCtor(const aip::TextPara&);
184
188 aip::TextPara* __impl;
189
195 TextPara(const aip::TextPara&);
196 };
197
198 typedef std::unique_ptr<TextPara> TextParaUP;
199 typedef std::shared_ptr<TextPara> TextParaSP;
200 typedef std::weak_ptr<TextPara> TextParaWP;
201
202 extern aip::TextPara* __accessImpl(const TextPara&);
203 extern TextPara __accessCtor(const aip::TextPara&);
204 }
205}
206
207#endif
208// HDI_CORE_AIP_MODE
209
210#endif
211// __HDI_CORE_TEXT_PARA__
Definition: hdicoreTextPara.h:31
virtual int32_t length() const
Retrieves the length of this paragraph.
TextPara(const TextPara &p_)
TextPara copy constructor.
virtual TextPara & operator=(const TextPara &rhs_)
Overloaded assignment operator for TextPara objects.
TextPara()
Creates a new TextPara object.
virtual std::string contents(const std::string &le_="\n")
Gets the value (contents) of the text range.
virtual std::unique_ptr< ATE::IParagraph > ateParagraph() const
Gets the ATE paragraph ref around which the target object is wrapped.
virtual std::unique_ptr< TextRangeSet > textRangeSet() const
Retrieves the set of text ranges corresponding to this paragraph.
virtual bool operator!=(const TextPara &rhs_) const
Tests whether a given TextPara object is not the same as another.
virtual std::unique_ptr< TextRangeSet > selections() const
Retrieves the text selection in this paragraph.
virtual bool operator==(const TextPara &rhs_) const
Tests whether a given TextPara object is the same as another.
virtual TextWordVector words() const
Retrieves a vector of the words in this paragraph.
virtual bool isEmpty() const
Gets whether the target TextPara object is empty.
virtual std::unique_ptr< TextRange > textRange() const
Retrieves the text range corresponding to this paragraph.
virtual std::unique_ptr< TextStory > story() const
Retrieves the story that contains this paragraph.
virtual ~TextPara()
Destructs a TextPara object.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.