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