Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextCharStyleSet.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_TEXT_CHAR_STYLE_SET__
8#define __HDI_CORE_TEXT_CHAR_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 TextCharStyleSet;
19 }
20
21 namespace core
22 {
23 class TextCharStyle;
24 class TextRange;
25
30 {
31 public:
44 {
45 public:
53 Iterator(const Iterator& iter_);
54
61
71 Iterator& operator=(const Iterator& iter_);
72
81 bool operator==(const Iterator& iter_) const;
82
91 bool operator!=(const Iterator& iter_) const;
92
101
110
119
128
137 bool atEnd() const;
138
147 std::unique_ptr<TextCharStyle> style() const;
148
149
150 private:
151 // Only TextCharStyleSet can construct a new Iterator object
152 friend class TextCharStyleSet;
153
157 void* __data;
158
164 Iterator();
165
173 explicit Iterator(const TextCharStyleSet& set_);
174 };
175
176 typedef std::unique_ptr<Iterator> IteratorUP;
177 typedef std::shared_ptr<Iterator> IteratorSP;
178 typedef std::weak_ptr<Iterator> IteratorWP;
179
190
199
206
216
225 virtual bool operator==(const TextCharStyleSet& rhs_) const;
226
235 virtual bool operator!=(const TextCharStyleSet& rhs_) const;
236
248 virtual std::unique_ptr<ATE::ICharStyles> ateCharStyleSet() const;
249
259 virtual bool isEmpty() const;
260
268 virtual int32_t size() const;
269
285 virtual Iterator begin() const;
286
292 virtual void showAllStyles() const;
293
299 virtual void showOnlyUnreferencedStyles() const;
300
308 virtual void showOnlyStylesReferencedIn(const TextRange& range_);
309
318 virtual void moveStyleTo(const TextCharStyle& style_, const int32_t pos_);
319
320
321 private:
322 friend aip::TextCharStyleSet* __accessImpl(const TextCharStyleSet&);
323 friend TextCharStyleSet __accessCtor(const aip::TextCharStyleSet&);
324
328 aip::TextCharStyleSet* __impl;
329
335 TextCharStyleSet(const aip::TextCharStyleSet&);
336 };
337
338 typedef std::unique_ptr<TextCharStyleSet> TextCharStyleSetUP;
339 typedef std::shared_ptr<TextCharStyleSet> TextCharStyleSetSP;
340 typedef std::weak_ptr<TextCharStyleSet> TextCharStyleSetWP;
341
342 extern aip::TextCharStyleSet* __accessImpl(const TextCharStyleSet&);
343 extern TextCharStyleSet __accessCtor(const aip::TextCharStyleSet&);
344 }
345}
346
347#endif
348// HDI_CORE_AIP_MODE
349
350#endif
351// __HDI_CORE_TEXT_CHAR_STYLE_SET__
Encapsulates character style functionality from the Illustrator SDK.
Definition hdicoreTextCharStyle.h:29
Allows for iteration through the children of a character style set, a la std::vector iteration.
Definition hdicoreTextCharStyleSet.h:44
std::unique_ptr< TextCharStyle > style() const
Gets the current paragraph style pointed to by the iterator.
Iterator operator++(int)
Postfix increment operator for forward iteration.
~Iterator()
Destructs an Iterator object.
Iterator & operator--()
Prefix decrement operator for reverse iteration.
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 not the same as another.
Iterator operator--(int)
Postfix decrement operator for reverse iteration.
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 the same as another.
Iterator & operator++()
Prefix increment operator for forward iteration.
Iterator & operator=(const Iterator &iter_)
Assigns one Iterator object to another.
Encapsulates character style set functionality from the Illustrator SDK.
Definition hdicoreTextCharStyleSet.h:30
TextCharStyleSet()
Creates a new TextCharStyleSet object.
virtual TextCharStyleSet & operator=(const TextCharStyleSet &rhs_)
Overloaded assignment operator for TextCharStyleSet objects.
virtual bool operator==(const TextCharStyleSet &rhs_) const
Tests whether a given TextCharStyleSet object is the same as another.
virtual std::unique_ptr< ATE::ICharStyles > ateCharStyleSet() const
Gets the ATE char style set ref around which the target object is wrapped.
virtual Iterator begin() const
Gets an iterator for the set.
virtual ~TextCharStyleSet()
Destructs a TextCharStyleSet object.
virtual bool isEmpty() const
Gets whether the target TextCharStyleSet object is empty.
virtual bool operator!=(const TextCharStyleSet &rhs_) const
Tests whether a given TextCharStyleSet object is not the same as another.
TextCharStyleSet(const TextCharStyleSet &css_)
TextCharStyleSet copy constructor.
virtual void showOnlyUnreferencedStyles() const
Shows only styles to which there are not references in text.
virtual void showAllStyles() const
Shows all char styles.
virtual int32_t size() const
Gets the count of the contained char styles.
virtual void showOnlyStylesReferencedIn(const TextRange &range_)
Shows only styles that are used in the given text range.
virtual void moveStyleTo(const TextCharStyle &style_, const int32_t pos_)
Reorders styles in this set by moving a style to a given position.
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.