Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextTabStopSet.h
Go to the documentation of this file.
1
6
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
29 {
30 public:
43 {
44 public:
52 Iterator(const Iterator& iter_);
53
60
70 Iterator& operator=(const Iterator& iter_);
71
80 bool operator==(const Iterator& iter_) const;
81
90 bool operator!=(const Iterator& iter_) const;
91
100
109
118 bool atEnd() const;
119
128 std::unique_ptr<TextTabStop> tabStop() const;
129
130
131 private:
132 // Only TextTabStopSet can construct a new Iterator object
133 friend class TextTabStopSet;
134
138 void* __data;
139
145 Iterator();
146
154 explicit Iterator(const TextTabStopSet& set_);
155
161 Iterator& operator--();
162
168 Iterator operator--(int);
169 };
170
171 typedef std::unique_ptr<Iterator> IteratorUP;
172 typedef std::shared_ptr<Iterator> IteratorSP;
173 typedef std::weak_ptr<Iterator> IteratorWP;
174
185
194
201
211
220 virtual bool operator==(const TextTabStopSet& rhs_) const;
221
230 virtual bool operator!=(const TextTabStopSet& rhs_) const;
231
243 virtual std::unique_ptr<ATE::ITabStops> ateTabStopSet() const;
244
254 virtual bool isEmpty() const;
255
263 virtual int32_t size() const;
264
280 virtual Iterator begin() const;
281
289 virtual void replaceOrAdd(const TextTabStop& ts_);
290
299 virtual std::unique_ptr<TextTabStop> tabStop(const int32_t index_) const;
300
308 virtual void remove(const int32_t index_);
309
315 virtual void removeAll();
316
317
318 private:
319 friend aip::TextTabStopSet* __accessImpl(const TextTabStopSet&);
320 friend TextTabStopSet __accessCtor(const aip::TextTabStopSet&);
321
325 aip::TextTabStopSet* __impl;
326
332 TextTabStopSet(const aip::TextTabStopSet&);
333 };
334
335 typedef std::unique_ptr<TextTabStopSet> TextTabStopSetUP;
336 typedef std::shared_ptr<TextTabStopSet> TextTabStopSetSP;
337 typedef std::weak_ptr<TextTabStopSet> TextTabStopSetWP;
338
339 extern aip::TextTabStopSet* __accessImpl(const TextTabStopSet&);
340 extern TextTabStopSet __accessCtor(const aip::TextTabStopSet&);
341 }
342}
343
344#endif
345// HDI_CORE_AIP_MODE
346
347#endif
348// __HDI_CORE_TEXT_TAB_STOP_SET__
Encapsulates tab stop functionality from the Illustrator SDK.
Definition hdicoreTextTabStop.h:27
Allows for iteration through the children of a tab stop set, a la std::vector iteration.
Definition hdicoreTextTabStopSet.h:43
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)
Encapsulates tab stop set functionality from the Illustrator SDK.
Definition hdicoreTextTabStopSet.h:29
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.