Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextWord.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_TEXT_WORD__
8#define __HDI_CORE_TEXT_WORD__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace aip
17 {
18 class TextWord;
19 }
20
21 namespace core
22 {
23 class TextRange;
24
29 {
30 public:
41
49 TextWord(const TextWord& w_);
50
56 virtual ~TextWord();
57
66 virtual TextWord& operator=(const TextWord& rhs_);
67
76 virtual bool operator==(const TextWord& rhs_) const;
77
86 virtual bool operator!=(const TextWord& rhs_) const;
87
99 virtual std::unique_ptr<ATE::IWordsIterator> ateWord() const;
100
108 virtual bool isEmpty() const;
109
117 std::unique_ptr<TextRange> range() const;
118
127 int32_t trailingSpaceCount() const;
128
138 int32_t trailingCount() const;
139
149
150
151 private:
152 friend aip::TextWord* __accessImpl(const TextWord&);
153 friend TextWord __accessCtor(const aip::TextWord&);
154
158 aip::TextWord* __impl;
159
165 TextWord(const aip::TextWord&);
166 };
167
168 typedef std::unique_ptr<TextWord> TextWordUP;
169 typedef std::shared_ptr<TextWord> TextWordSP;
170 typedef std::weak_ptr<TextWord> TextWordWP;
171
172 extern aip::TextWord* __accessImpl(const TextWord&);
173 extern TextWord __accessCtor(const aip::TextWord&);
174 }
175}
176
177#endif
178// HDI_CORE_AIP_MODE
179
180#endif
181// __HDI_CORE_TEXT_WORD__
Allows for easy manipulation of Illustrator text ranges.
Definition hdicoreTextRange.h:41
Encapsulates text word functionality from the Illustrator SDK.
Definition hdicoreTextWord.h:29
int32_t trailingCount() const
Retrieves the total number of trailing characters for the current word, including spaces,...
virtual TextWord & operator=(const TextWord &rhs_)
Overloaded assignment operator for TextWord objects.
virtual bool operator!=(const TextWord &rhs_) const
Tests whether a given TextWord object is not the same as another.
TextWord()
Creates a new TextWord object.
int32_t trailingSpaceCount() const
Retrieves the number of trailing spaces for the current word. Trailing spaces are those after the wor...
virtual std::unique_ptr< ATE::IWordsIterator > ateWord() const
Gets the ATE word ref around which the target object is wrapped.
virtual ~TextWord()
Destructs a TextWord object.
TextWord(const TextWord &w_)
TextWord copy constructor.
std::unique_ptr< TextRange > range() const
Retrieves the text range for the current word, including trailing characters.
int32_t trailingTerminatingPunctuationCount() const
Retrieves the number of trailing punctuation characters for the current word. Trailing characters are...
virtual bool operator==(const TextWord &rhs_) const
Tests whether a given TextWord object is the same as another.
virtual bool isEmpty() const
Gets whether the target TextWord object is empty.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.