Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTextParaStyle.h
Go to the documentation of this file.
1
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
26 {
27 public:
38
47
53 virtual ~TextParaStyle();
54
60 virtual TextParaStyle& operator=(const TextParaStyle& rhs_);
61
70 virtual bool operator==(const TextParaStyle& rhs_) const;
71
80 virtual bool operator!=(const TextParaStyle& rhs_) const;
81
93 virtual std::unique_ptr<ATE::IParaStyle> ateParaStyle() 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<TextParaStyle> parent() const;
131
140 virtual bool setParent(const TextParaStyle& parent_);
141
149 virtual bool hasParent() const;
150
158 virtual std::unique_ptr<TextParaFeatures> features() const;
159
167 virtual void setFeatures(const TextParaFeatures& feat_);
168
178 virtual void replaceOrAddFeatures(const TextParaFeatures& feat_);
179
180
181 private:
182 friend aip::TextParaStyle* __accessImpl(const TextParaStyle&);
183 friend TextParaStyle __accessCtor(const aip::TextParaStyle&);
184
188 aip::TextParaStyle* __impl;
189
195 TextParaStyle(const aip::TextParaStyle&);
196 };
197
198 typedef std::unique_ptr<TextParaStyle> TextParaStyleUP;
199 typedef std::shared_ptr<TextParaStyle> TextParaStyleSP;
200 typedef std::weak_ptr<TextParaStyle> TextParaStyleWP;
201
202 extern aip::TextParaStyle* __accessImpl(const TextParaStyle&);
203 extern TextParaStyle __accessCtor(const aip::TextParaStyle&);
204 }
205}
206
207#endif
208// HDI_CORE_AIP_MODE
209
210#endif
211// __HDI_CORE_TEXT_PARA_STYLE__
Allows for easy manipulation of Illustrator text paragraph features.
Definition: hdicoreTextParaFeatures.h:30
Definition: hdicoreTextParaStyle.h:26
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.