Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreTextRangeSet.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_RANGE_SET__
8 #define __HDI_CORE_TEXT_RANGE_SET__
9 
10 #include <vector>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace plugin
17  {
18  class TextRangeSet;
19  }
20 
21  namespace core
22  {
23  class TextCharFeatures;
24  class TextCharInspector;
25  class TextPara;
26  class TextParaFeatures;
27  class TextParaInspector;
28  class TextRange;
29  class TextWord;
30 
32  {
33  public:
34  typedef std::vector< TextPara* > TextParaVector;
35  typedef std::vector< TextRange* > TextRangeVector;
36  typedef std::vector< TextWord* > TextWordVector;
37 
47  TextRangeSet();
48 
56  TextRangeSet(const TextRangeSet& rs_);
57 
63  virtual ~TextRangeSet();
64 
70  virtual TextRangeSet& operator=(const TextRangeSet& rhs_);
71 
80  virtual bool operator==(const TextRangeSet& rhs_) const;
81 
90  virtual bool operator!=(const TextRangeSet& rhs_) const;
91 
103  virtual std::auto_ptr<ATE::ITextRanges> ateTextRangeSet() const;
104 
112  virtual bool isEmpty() const;
113 
121  virtual int32_t size() const;
122 
130  virtual std::auto_ptr<TextRangeSet> selections() const;
131 
141  virtual TextParaVector paragraphs() const;
142 
152  virtual TextWordVector words() const;
153 
163  virtual TextRangeVector runs() const;
164 
173  virtual std::auto_ptr<TextCharInspector> charInspector() const;
174 
183  virtual std::auto_ptr<TextParaInspector> paraInspector() const;
184 
191  virtual void clearNamedCharStyle();
192 
199  virtual void clearNamedParaStyle();
200 
209  virtual std::auto_ptr<TextCharFeatures> uniqueCharFeatures() const;
210 
219  virtual std::auto_ptr<TextParaFeatures> uniqueParaFeatures() const;
220 
229  virtual bool hasLocalCharFeatures();
230 
239  virtual bool hasLocalParaFeatures();
240 
251  virtual std::auto_ptr<TextCharFeatures> localCharFeatures();
252 
264  virtual void setLocalCharFeatures(const TextCharFeatures& feat_);
265 
275  virtual void replaceOrAddLocalCharFeatures(const TextCharFeatures& feat_);
276 
284  virtual void clearLocalCharFeatures();
285 
296  virtual std::auto_ptr<TextParaFeatures> localParaFeatures();
297 
309  virtual void setLocalParaFeatures(const TextParaFeatures& feat_);
310 
320  virtual void replaceOrAddLocalParaFeatures(const TextParaFeatures& feat_);
321 
329  virtual void clearLocalParaFeatures();
330 
339  virtual void select(const bool addToCurrSelection_ = false);
340 
347  virtual void deselect();
348 
362  virtual std::string contents(const std::string& le_ = "\n") const;
363 
371  virtual void changeCase(const CaseChangeType type_);
372 
380  virtual void add(const TextRange& range_);
381 
390  virtual std::auto_ptr<TextRange> textRange(const int32_t index_) const;
391 
399  virtual void remove(const int32_t index_);
400 
406  virtual void removeAll();
407 
408 
409  private:
410  friend plugin::TextRangeSet* __accessImpl(const TextRangeSet&);
411  friend TextRangeSet __accessCtor(const plugin::TextRangeSet&);
412 
416  plugin::TextRangeSet* __impl;
417 
423  TextRangeSet(const plugin::TextRangeSet&);
424  };
425 
426  typedef std::auto_ptr<TextRangeSet> TextRangeSetAP;
427 
428  extern plugin::TextRangeSet* __accessImpl(const TextRangeSet&);
429  extern TextRangeSet __accessCtor(const plugin::TextRangeSet&);
430  }
431 }
432 
433 #endif
434 // __HDI_CORE_TEXT_RANGE_SET__
Allows for easy manipulation of Illustrator text ranges.
Definition: hdicoreTextRange.h:38
Allows for easy manipulation of Illustrator text character features.
Definition: hdicoreTextCharFeatures.h:31
Definition: hdicoreTextRangeSet.h:31
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Allows for easy manipulation of Illustrator text paragraph features.
Definition: hdicoreTextParaFeatures.h:27
Definition: hdicoreaiArray.h:12
CaseChangeType
Indicates how the case of some text should be changed.
Definition: hdicoreTypes.h:497