Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace aip
17 {
18 class TextTabStopSet;
19 }
20
21 namespace core
22 {
23 class TextTabStop;
24
26 {
27 public:
40 {
41 public:
49 Iterator(const Iterator& iter_);
50
57
67 Iterator& operator=(const Iterator& iter_);
68
77 bool operator==(const Iterator& iter_) const;
78
87 bool operator!=(const Iterator& iter_) const;
88
97
106
115 bool atEnd() const;
116
125 std::unique_ptr<TextTabStop> tabStop() const;
126
127
128 private:
129 // Only TextTabStopSet can construct a new Iterator object
130 friend class TextTabStopSet;
131
135 void* __data;
136
142 Iterator();
143
151 explicit Iterator(const TextTabStopSet& set_);
152
158 Iterator& operator--();
159
165 Iterator operator--(int);
166 };
167
168 typedef std::unique_ptr<Iterator> IteratorUP;
169 typedef std::shared_ptr<Iterator> IteratorSP;
170 typedef std::weak_ptr<Iterator> IteratorWP;
171
182
191
198
205
214 virtual bool operator==(const TextTabStopSet& rhs_) const;
215
224 virtual bool operator!=(const TextTabStopSet& rhs_) const;
225
237 virtual std::unique_ptr<ATE::ITabStops> ateTabStopSet() const;
238
248 virtual bool isEmpty() const;
249
257 virtual int32_t size() const;
258
274 virtual Iterator begin() const;
275
283 virtual void replaceOrAdd(const TextTabStop& ts_);
284
293 virtual std::unique_ptr<TextTabStop> tabStop(const int32_t index_) const;
294
302 virtual void remove(const int32_t index_);
303
309 virtual void removeAll();
310
311
312 private:
313 friend aip::TextTabStopSet* __accessImpl(const TextTabStopSet&);
314 friend TextTabStopSet __accessCtor(const aip::TextTabStopSet&);
315
319 aip::TextTabStopSet* __impl;
320
326 TextTabStopSet(const aip::TextTabStopSet&);
327 };
328
329 typedef std::unique_ptr<TextTabStopSet> TextTabStopSetUP;
330 typedef std::shared_ptr<TextTabStopSet> TextTabStopSetSP;
331 typedef std::weak_ptr<TextTabStopSet> TextTabStopSetWP;
332
333 extern aip::TextTabStopSet* __accessImpl(const TextTabStopSet&);
334 extern TextTabStopSet __accessCtor(const aip::TextTabStopSet&);
335 }
336}
337
338#endif
339// HDI_CORE_AIP_MODE
340
341#endif
342// __HDI_CORE_TEXT_TAB_STOP_SET__
Definition: hdicoreTextTabStop.h:24
Allows for iteration through the children of a tab stop set, a la std::vector iteration.
Definition: hdicoreTextTabStopSet.h:40
std::unique_ptr< TextTabStop > tabStop() const
Gets the current paragraph style pointed to by the iterator.
Iterator & operator++()
Prefix increment operator for forward iteration.
Iterator operator++(int)
Postfix increment operator for forward iteration.
Iterator & operator=(const Iterator &iter_)
Assigns one Iterator object to 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.
bool operator!=(const Iterator &iter_) const
Tests whether a given Iterator object is not the same as another.
~Iterator()
Destructs an Iterator object.
Iterator(const Iterator &iter_)
Constructs an Iterator object from an existing Iterator object (copy constructor)
Definition: hdicoreTextTabStopSet.h:26
TextTabStopSet(const TextTabStopSet &tss_)
TextTabStopSet copy constructor.
TextTabStopSet()
Creates a new TextTabStopSet object.
virtual std::unique_ptr< ATE::ITabStops > ateTabStopSet() const
Gets the ATE tab stop set ref around which the target object is wrapped.
virtual TextTabStopSet & operator=(const TextTabStopSet &rhs_)
Overloaded assignment operator for TextTabStopSet objects.
virtual int32_t size() const
Retrieves the number of members of the target set.
virtual void removeAll()
Removes all members from the set.
virtual bool operator!=(const TextTabStopSet &rhs_) const
Tests whether a given TextTabStopSet object is not the same as another.
virtual void remove(const int32_t index_)
Removes a member from the set.
virtual ~TextTabStopSet()
Destructs a TextTabStopSet object.
virtual std::unique_ptr< TextTabStop > tabStop(const int32_t index_) const
Retrieves a member of the target set by position index.
virtual Iterator begin() const
Gets an iterator for the set.
virtual bool operator==(const TextTabStopSet &rhs_) const
Tests whether a given TextTabStopSet object is the same as another.
virtual void replaceOrAdd(const TextTabStop &ts_)
Replaces or adds a tab stop to the target set.
virtual bool isEmpty() const
Gets whether the target TextTabStopSet object is empty.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.