Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextCharStyle.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_TEXT_CHAR_STYLE__
8#define __HDI_CORE_TEXT_CHAR_STYLE__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace aip
17 {
18 class TextCharStyle;
19 }
20
21 namespace core
22 {
23 class TextCharFeatures;
24
29 {
30 public:
41
50
56 virtual ~TextCharStyle();
57
66 virtual TextCharStyle& operator=(const TextCharStyle& rhs_);
67
76 virtual bool operator==(const TextCharStyle& rhs_) const;
77
86 virtual bool operator!=(const TextCharStyle& rhs_) const;
87
99 virtual std::unique_ptr<ATE::ICharStyle> ateCharStyle() const;
100
108 virtual bool isEmpty() const;
109
117 virtual std::string name() const;
118
127 virtual bool setName(const std::string& name_);
128
136 virtual std::unique_ptr<TextCharStyle> parent() const;
137
146 virtual bool setParent(const TextCharStyle& parent_);
147
155 virtual bool hasParent() const;
156
164 virtual std::unique_ptr<TextCharFeatures> features() const;
165
173 virtual void setFeatures(const TextCharFeatures& feat_);
174
184 virtual void replaceOrAddFeatures(const TextCharFeatures& feat_);
185
186
187 private:
188 friend aip::TextCharStyle* __accessImpl(const TextCharStyle&);
189 friend TextCharStyle __accessCtor(const aip::TextCharStyle&);
190
194 aip::TextCharStyle* __impl;
195
201 TextCharStyle(const aip::TextCharStyle&);
202 };
203
204 typedef std::unique_ptr<TextCharStyle> TextCharStyleUP;
205 typedef std::shared_ptr<TextCharStyle> TextCharStyleSP;
206 typedef std::weak_ptr<TextCharStyle> TextCharStyleWP;
207
208 extern aip::TextCharStyle* __accessImpl(const TextCharStyle&);
209 extern TextCharStyle __accessCtor(const aip::TextCharStyle&);
210 }
211}
212
213#endif
214// HDI_CORE_AIP_MODE
215
216#endif
217// __HDI_CORE_TEXT_CHAR_STYLE__
Allows for easy manipulation of Illustrator text character features.
Definition hdicoreTextCharFeatures.h:34
Encapsulates character style functionality from the Illustrator SDK.
Definition hdicoreTextCharStyle.h:29
TextCharStyle()
Creates a new TextCharStyle object.
virtual bool hasParent() const
Gets whether the target object has a parent.
virtual ~TextCharStyle()
Destructs a TextCharStyle object.
virtual void setFeatures(const TextCharFeatures &feat_)
Sets the features defined for the target style.
virtual TextCharStyle & operator=(const TextCharStyle &rhs_)
Overloaded assignment operator for TextCharStyle objects.
TextCharStyle(const TextCharStyle &cs_)
TextCharStyle copy constructor.
virtual bool operator!=(const TextCharStyle &rhs_) const
Tests whether a given TextCharStyle object is not the same as another.
virtual std::unique_ptr< TextCharStyle > parent() const
Gets the parent style of the target char style object.
virtual std::unique_ptr< TextCharFeatures > features() const
Gets the features defined for the target style.
virtual std::string name() const
Gets the name of the char style.
virtual bool isEmpty() const
Gets whether the target TextCharStyle object is empty.
virtual bool setName(const std::string &name_)
Sets the name of the char style.
virtual bool setParent(const TextCharStyle &parent_)
Sets the parent style of the target char style object.
virtual void replaceOrAddFeatures(const TextCharFeatures &feat_)
Replaces existing features in the target style, or adds them anew if they were not already present (v...
virtual std::unique_ptr< ATE::ICharStyle > ateCharStyle() const
Gets the ATE char style ref around which the target object is wrapped.
virtual bool operator==(const TextCharStyle &rhs_) const
Tests whether a given TextCharStyle object is the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.