Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreTextTabStopSet.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_TAB_STOP_SET__
8 #define __HDI_CORE_TEXT_TAB_STOP_SET__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace plugin
15  {
16  class TextTabStopSet;
17  }
18 
19  namespace core
20  {
21  class TextTabStop;
22 
24  {
25  public:
37  class Iterator
38  {
39  public:
47  Iterator(const Iterator& iter_);
48 
54  ~Iterator();
55 
65  Iterator& operator=(const Iterator& iter_);
66 
75  bool operator==(const Iterator& iter_) const;
76 
85  bool operator!=(const Iterator& iter_) const;
86 
95 
103  Iterator operator++(int);
104 
113  bool atEnd() const;
114 
123  std::auto_ptr<TextTabStop> tabStop() const;
124 
125 
126  private:
127  // Only TextTabStopSet can construct a new Iterator object
128  friend class TextTabStopSet;
129 
133  void* __data;
134 
140  Iterator();
141 
149  explicit Iterator(const TextTabStopSet& set_);
150 
156  Iterator& operator--();
157 
163  Iterator operator--(int);
164  };
165 
166  typedef std::auto_ptr<Iterator> IteratorAP;
167 
177  TextTabStopSet();
178 
186  TextTabStopSet(const TextTabStopSet& tss_);
187 
193  virtual ~TextTabStopSet();
194 
200  virtual TextTabStopSet& operator=(const TextTabStopSet& rhs_);
201 
210  virtual bool operator==(const TextTabStopSet& rhs_) const;
211 
220  virtual bool operator!=(const TextTabStopSet& rhs_) const;
221 
233  virtual std::auto_ptr<ATE::ITabStops> ateTabStopSet() const;
234 
244  virtual bool isEmpty() const;
245 
253  virtual int32_t size() const;
254 
270  virtual Iterator begin() const;
271 
279  virtual void replaceOrAdd(const TextTabStop& ts_);
280 
291  virtual std::auto_ptr<TextTabStop> tabStop(const int32_t index_) const;
292 
300  virtual void remove(const int32_t index_);
301 
307  virtual void removeAll();
308 
309 
310  private:
311  friend plugin::TextTabStopSet* __accessImpl(const TextTabStopSet&);
312  friend TextTabStopSet __accessCtor(const plugin::TextTabStopSet&);
313 
317  plugin::TextTabStopSet* __impl;
318 
324  TextTabStopSet(const plugin::TextTabStopSet&);
325  };
326 
327  typedef std::auto_ptr<TextTabStopSet> TextTabStopSetAP;
328 
329  extern plugin::TextTabStopSet* __accessImpl(const TextTabStopSet&);
330  extern TextTabStopSet __accessCtor(const plugin::TextTabStopSet&);
331  }
332 }
333 
334 #endif
335 // __HDI_CORE_TEXT_TAB_STOP_SET__
virtual void removeAll()
Removes all members from the set.
Definition: hdicoreTextTabStopSet.h:23
virtual bool isEmpty() const
Gets whether the target TextTabStopSet object is empty.
Iterator & operator++()
Prefix increment operator for forward iteration.
~Iterator()
Destructs an Iterator object.
virtual int32_t size() const
Retrieves the number of members of the target set.
std::auto_ptr< TextTabStop > tabStop() const
Gets the current paragraph style pointed to by the iterator.
virtual bool operator!=(const TextTabStopSet &rhs_) const
Tests whether a given TextTabStopSet object is not the same as another.
Allows for iteration through the children of a tab stop set, a la std::vector iteration.
Definition: hdicoreTextTabStopSet.h:37
virtual std::auto_ptr< TextTabStop > tabStop(const int32_t index_) const
Retrieves a member of the target set by position index.
Definition: hdicoreTextTabStop.h:21
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
virtual void replaceOrAdd(const TextTabStop &ts_)
Replaces or adds a tab stop to the target set.
virtual ~TextTabStopSet()
Destructs a TextTabStopSet object.
bool operator!=(const Iterator &iter_) const
Tests whether a given Iterator object is not the same as another.
Definition: hdicoreaiArray.h:12
virtual bool operator==(const TextTabStopSet &rhs_) const
Tests whether a given TextTabStopSet object is the same as another.
bool atEnd() const
Determines whether iteration should stop; works well as the conditional in a for() loop...
bool operator==(const Iterator &iter_) const
Tests whether a given Iterator object is the same as another.
Iterator & operator=(const Iterator &iter_)
Assigns one Iterator object to another.
virtual std::auto_ptr< ATE::ITabStops > ateTabStopSet() const
Gets the ATE tab stop set ref around which the target object is wrapped.
TextTabStopSet()
Creates a new TextTabStopSet object.
virtual Iterator begin() const
Gets an iterator for the set.
virtual TextTabStopSet & operator=(const TextTabStopSet &rhs_)
Overloaded assignment operator for TextTabStopSet objects.