Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextParaStyleSet.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_TEXT_PARA_STYLE_SET__
8#define __HDI_CORE_TEXT_PARA_STYLE_SET__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace aip
17 {
18 class TextParaStyleSet;
19 }
20
21 namespace core
22 {
23 class TextParaStyle;
24 class TextRange;
25
27 {
28 public:
41 {
42 public:
50 Iterator(const Iterator& iter_);
51
58
68 Iterator& operator=(const Iterator& iter_);
69
78 bool operator==(const Iterator& iter_) const;
79
88 bool operator!=(const Iterator& iter_) const;
89
98
107
116
125
134 bool atEnd() const;
135
144 std::unique_ptr<TextParaStyle> style() const;
145
146
147 private:
148 // Only TextParaStyleSet can construct a new Iterator object
149 friend class TextParaStyleSet;
150
154 void* __data;
155
161 Iterator();
162
170 explicit Iterator(const TextParaStyleSet& set_);
171 };
172
173 typedef std::unique_ptr<Iterator> IteratorUP;
174 typedef std::shared_ptr<Iterator> IteratorSP;
175 typedef std::weak_ptr<Iterator> IteratorWP;
176
187
196
203
210
219 virtual bool operator==(const TextParaStyleSet& rhs_) const;
220
229 virtual bool operator!=(const TextParaStyleSet& rhs_) const;
230
242 virtual std::unique_ptr<ATE::IParaStyles> ateParaStyleSet() const;
243
253 virtual bool isEmpty() const;
254
262 virtual int32_t size() const;
263
279 virtual Iterator begin() const;
280
286 virtual void showAllStyles() const;
287
293 virtual void showOnlyUnreferencedStyles() const;
294
302 virtual void showOnlyStylesReferencedIn(const TextRange& range_);
303
312 virtual void moveStyleTo(const TextParaStyle& style_, const int32_t pos_);
313
314
315 private:
316 friend aip::TextParaStyleSet* __accessImpl(const TextParaStyleSet&);
317 friend TextParaStyleSet __accessCtor(const aip::TextParaStyleSet&);
318
322 aip::TextParaStyleSet* __impl;
323
329 TextParaStyleSet(const aip::TextParaStyleSet&);
330 };
331
332 typedef std::unique_ptr<TextParaStyleSet> TextParaStyleSetUP;
333 typedef std::shared_ptr<TextParaStyleSet> TextParaStyleSetSP;
334 typedef std::weak_ptr<TextParaStyleSet> TextParaStyleSetWP;
335
336 extern aip::TextParaStyleSet* __accessImpl(const TextParaStyleSet&);
337 extern TextParaStyleSet __accessCtor(const aip::TextParaStyleSet&);
338 }
339}
340
341#endif
342// HDI_CORE_AIP_MODE
343
344#endif
345// __HDI_CORE_TEXT_PARA_STYLE_SET__
Definition: hdicoreTextParaStyle.h:26
Allows for iteration through the children of a paragraph style set, a la std::vector iteration.
Definition: hdicoreTextParaStyleSet.h:41
Iterator & operator--()
Prefix decrement operator for reverse iteration.
Iterator operator++(int)
Postfix increment operator for forward iteration.
Iterator & operator=(const Iterator &iter_)
Assigns one Iterator object to another.
Iterator(const Iterator &iter_)
Constructs an Iterator object from an existing Iterator object (copy constructor)
bool operator!=(const Iterator &iter_) const
Tests whether a given Iterator object is not the same as another.
bool operator==(const Iterator &iter_) const
Tests whether a given Iterator object is the same as another.
~Iterator()
Destructs an Iterator object.
Iterator operator--(int)
Postfix decrement operator for reverse iteration.
bool atEnd() const
Determines whether iteration should stop; works well as the conditional in a for() loop.
Iterator & operator++()
Prefix increment operator for forward iteration.
std::unique_ptr< TextParaStyle > style() const
Gets the current paragraph style pointed to by the iterator.
Definition: hdicoreTextParaStyleSet.h:27
virtual void showAllStyles() const
Shows all paragraph styles.
virtual Iterator begin() const
Gets an iterator for the set.
virtual bool isEmpty() const
Gets whether the target TextParaStyleSet object is empty.
virtual void showOnlyUnreferencedStyles() const
Shows only styles to which there are not references in text.
virtual TextParaStyleSet & operator=(const TextParaStyleSet &rhs_)
Overloaded assignment operator for TextParaStyleSet objects.
TextParaStyleSet(const TextParaStyleSet &pss_)
TextParaStyleSet copy constructor.
TextParaStyleSet()
Creates a new TextParaStyleSet object.
virtual void moveStyleTo(const TextParaStyle &style_, const int32_t pos_)
Reorders styles in this set by moving a style to a given position.
virtual int32_t size() const
Gets the count of the contained paragraph styles.
virtual bool operator!=(const TextParaStyleSet &rhs_) const
Tests whether a given TextParaStyleSet object is not the same as another.
virtual bool operator==(const TextParaStyleSet &rhs_) const
Tests whether a given TextParaStyleSet object is the same as another.
virtual ~TextParaStyleSet()
Destructs a TextParaStyleSet object.
virtual std::unique_ptr< ATE::IParaStyles > ateParaStyleSet() const
Gets the ATE paragraph style set ref around which the target object is wrapped.
virtual void showOnlyStylesReferencedIn(const TextRange &range_)
Shows only styles that are used in the given text range.
Allows for easy manipulation of Illustrator text ranges.
Definition: hdicoreTextRange.h:41
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.