Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextCharStyle.h
Go to the documentation of this file.
1
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
26 {
27 public:
38
47
53 virtual ~TextCharStyle();
54
60 virtual TextCharStyle& operator=(const TextCharStyle& rhs_);
61
70 virtual bool operator==(const TextCharStyle& rhs_) const;
71
80 virtual bool operator!=(const TextCharStyle& rhs_) const;
81
93 virtual std::unique_ptr<ATE::ICharStyle> ateCharStyle() const;
94
102 virtual bool isEmpty() const;
103
111 virtual std::string name() const;
112
121 virtual bool setName(const std::string& name_);
122
130 virtual std::unique_ptr<TextCharStyle> parent() const;
131
140 virtual bool setParent(const TextCharStyle& parent_);
141
149 virtual bool hasParent() const;
150
158 virtual std::unique_ptr<TextCharFeatures> features() const;
159
167 virtual void setFeatures(const TextCharFeatures& feat_);
168
178 virtual void replaceOrAddFeatures(const TextCharFeatures& feat_);
179
180
181 private:
182 friend aip::TextCharStyle* __accessImpl(const TextCharStyle&);
183 friend TextCharStyle __accessCtor(const aip::TextCharStyle&);
184
188 aip::TextCharStyle* __impl;
189
195 TextCharStyle(const aip::TextCharStyle&);
196 };
197
198 typedef std::unique_ptr<TextCharStyle> TextCharStyleUP;
199 typedef std::shared_ptr<TextCharStyle> TextCharStyleSP;
200 typedef std::weak_ptr<TextCharStyle> TextCharStyleWP;
201
202 extern aip::TextCharStyle* __accessImpl(const TextCharStyle&);
203 extern TextCharStyle __accessCtor(const aip::TextCharStyle&);
204 }
205}
206
207#endif
208// HDI_CORE_AIP_MODE
209
210#endif
211// __HDI_CORE_TEXT_CHAR_STYLE__
Allows for easy manipulation of Illustrator text character features.
Definition: hdicoreTextCharFeatures.h:34
Definition: hdicoreTextCharStyle.h:26
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.