Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreTextWord.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_WORD__
8 #define __HDI_CORE_TEXT_WORD__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace plugin
15  {
16  class TextWord;
17  }
18 
19  namespace core
20  {
21  class TextRange;
22 
23  class TextWord
24  {
25  public:
35  TextWord();
36 
44  TextWord(const TextWord& w_);
45 
51  virtual ~TextWord();
52 
58  virtual TextWord& operator=(const TextWord& rhs_);
59 
68  virtual bool operator==(const TextWord& rhs_) const;
69 
78  virtual bool operator!=(const TextWord& rhs_) const;
79 
91  virtual std::auto_ptr<ATE::IWordsIterator> ateWord() const;
92 
100  virtual bool isEmpty() const;
101 
109  std::auto_ptr<TextRange> range() const;
110 
119  int32_t trailingSpaceCount() const;
120 
130  int32_t trailingCount() const;
131 
140  int32_t trailingTerminatingPunctuationCount() const;
141 
142 
143  private:
144  friend plugin::TextWord* __accessImpl(const TextWord&);
145  friend TextWord __accessCtor(const plugin::TextWord&);
146 
150  plugin::TextWord* __impl;
151 
157  TextWord(const plugin::TextWord&);
158  };
159 
160  typedef std::auto_ptr<TextWord> TextWordAP;
161 
162  extern plugin::TextWord* __accessImpl(const TextWord&);
163  extern TextWord __accessCtor(const plugin::TextWord&);
164  }
165 }
166 
167 #endif
168 // __HDI_CORE_TEXT_WORD__
int32_t trailingCount() const
Retrieves the total number of trailing characters for the current word, including spaces...
Definition: hdicoreTextWord.h:23
std::auto_ptr< TextRange > range() const
Retrieves the text range for the current word, including trailing characters.
virtual std::auto_ptr< ATE::IWordsIterator > ateWord() const
Gets the ATE word ref around which the target object is wrapped.
virtual bool isEmpty() const
Gets whether the target TextWord object is empty.
TextWord()
Creates a new TextWord object.
virtual bool operator==(const TextWord &rhs_) const
Tests whether a given TextWord object is the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
virtual TextWord & operator=(const TextWord &rhs_)
Overloaded assignment operator for TextWord objects.
Definition: hdicoreaiArray.h:12
virtual bool operator!=(const TextWord &rhs_) const
Tests whether a given TextWord object is not the same as another.
virtual ~TextWord()
Destructs a TextWord object.
int32_t trailingSpaceCount() const
Retrieves the number of trailing spaces for the current word. Trailing spaces are those after the wor...
int32_t trailingTerminatingPunctuationCount() const
Retrieves the number of trailing punctuation characters for the current word. Trailing characters are...