Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace plugin
15  {
16  class TextCharStyle;
17  }
18 
19  namespace core
20  {
21  class TextCharFeatures;
22 
24  {
25  public:
35  TextCharStyle();
36 
44  TextCharStyle(const TextCharStyle& cs_);
45 
51  virtual ~TextCharStyle();
52 
58  virtual TextCharStyle& operator=(const TextCharStyle& rhs_);
59 
68  virtual bool operator==(const TextCharStyle& rhs_) const;
69 
78  virtual bool operator!=(const TextCharStyle& rhs_) const;
79 
91  virtual std::auto_ptr<ATE::ICharStyle> ateCharStyle() const;
92 
100  virtual bool isEmpty() const;
101 
109  virtual std::string name() const;
110 
119  virtual bool setName(const std::string& name_);
120 
128  virtual std::auto_ptr<TextCharStyle> parent() const;
129 
138  virtual bool setParent(const TextCharStyle& parent_);
139 
147  virtual bool hasParent() const;
148 
156  virtual std::auto_ptr<TextCharFeatures> features() const;
157 
165  virtual void setFeatures(const TextCharFeatures& feat_);
166 
176  virtual void replaceOrAddFeatures(const TextCharFeatures& feat_);
177 
178 
179  private:
180  friend plugin::TextCharStyle* __accessImpl(const TextCharStyle&);
181  friend TextCharStyle __accessCtor(const plugin::TextCharStyle&);
182 
186  plugin::TextCharStyle* __impl;
187 
193  TextCharStyle(const plugin::TextCharStyle&);
194  };
195 
196  typedef std::auto_ptr<TextCharStyle> TextCharStyleAP;
197 
198  extern plugin::TextCharStyle* __accessImpl(const TextCharStyle&);
199  extern TextCharStyle __accessCtor(const plugin::TextCharStyle&);
200  }
201 }
202 
203 #endif
204 // __HDI_CORE_TEXT_CHAR_STYLE__
virtual bool setName(const std::string &name_)
Sets the name of the char style.
virtual std::string name() const
Gets the name of the char style.
virtual TextCharStyle & operator=(const TextCharStyle &rhs_)
Overloaded assignment operator for TextCharStyle objects.
virtual bool hasParent() const
Gets whether the target object has a parent.
Allows for easy manipulation of Illustrator text character features.
Definition: hdicoreTextCharFeatures.h:31
virtual ~TextCharStyle()
Destructs a TextCharStyle object.
virtual bool setParent(const TextCharStyle &parent_)
Sets the parent style of the target char style object.
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.
TextCharStyle()
Creates a new TextCharStyle object.
virtual std::auto_ptr< TextCharFeatures > features() const
Gets the features defined for the target style.
virtual bool isEmpty() const
Gets whether the target TextCharStyle object is empty.
virtual void replaceOrAddFeatures(const TextCharFeatures &feat_)
Replaces existing features in the target style, or adds them anew if they were not already present (v...
Definition: hdicoreaiArray.h:12
virtual std::auto_ptr< ATE::ICharStyle > ateCharStyle() const
Gets the ATE char style ref around which the target object is wrapped.
Definition: hdicoreTextCharStyle.h:23
virtual bool operator!=(const TextCharStyle &rhs_) const
Tests whether a given TextCharStyle object is not the same as another.
virtual std::auto_ptr< TextCharStyle > parent() const
Gets the parent style of the target char style object.
virtual void setFeatures(const TextCharFeatures &feat_)
Sets the features defined for the target style.