Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextWord.h
Go to the documentation of this file.
1
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
26 {
27 public:
38
46 TextWord(const TextWord& w_);
47
53 virtual ~TextWord();
54
60 virtual TextWord& operator=(const TextWord& rhs_);
61
70 virtual bool operator==(const TextWord& rhs_) const;
71
80 virtual bool operator!=(const TextWord& rhs_) const;
81
93 virtual std::unique_ptr<ATE::IWordsIterator> ateWord() const;
94
102 virtual bool isEmpty() const;
103
111 std::unique_ptr<TextRange> range() const;
112
121 int32_t trailingSpaceCount() const;
122
132 int32_t trailingCount() const;
133
143
144
145 private:
146 friend aip::TextWord* __accessImpl(const TextWord&);
147 friend TextWord __accessCtor(const aip::TextWord&);
148
152 aip::TextWord* __impl;
153
159 TextWord(const aip::TextWord&);
160 };
161
162 typedef std::unique_ptr<TextWord> TextWordUP;
163 typedef std::shared_ptr<TextWord> TextWordSP;
164 typedef std::weak_ptr<TextWord> TextWordWP;
165
166 extern aip::TextWord* __accessImpl(const TextWord&);
167 extern TextWord __accessCtor(const aip::TextWord&);
168 }
169}
170
171#endif
172// HDI_CORE_AIP_MODE
173
174#endif
175// __HDI_CORE_TEXT_WORD__
Definition: hdicoreTextWord.h:26
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.