Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreStrokeStylePref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_STROKE_STYLE_PREF__
8 #define __HDI_CORE_STROKE_STYLE_PREF__
9 
10 #include "hdicorePathStyle.h"
11 #include "hdicorePrefData.h"
12 
13 namespace hdi
14 {
15  namespace plugin
16  {
17  class PersistentDictionary;
18  }
19 
20  namespace core
21  {
25  class StrokeStylePref : public PrefData
26  {
27  public:
40 
48  StrokeStylePref(const StrokeStylePref& ss_);
49 
61  StrokeStylePref(const StrokeStyle& value_, const std::string& name_ = "");
62 
68  virtual ~StrokeStylePref();
69 
78  virtual StrokeStylePref& operator=(const StrokeStylePref& rhs_);
79 
93  virtual StrokeStylePref* clone() const;
94 
104  virtual Type dataType() const;
105 
113  virtual StrokeStyle strokeStyle() const;
114 
123  virtual bool setStrokeStyle(const StrokeStyle& value_);
124 
125 
126  private:
127  friend class PathStylePref;
128 
134  StrokeStylePref(plugin::PersistentDictionary*&);
135  };
136 
137  typedef std::auto_ptr<StrokeStylePref> StrokeStylePrefAP;
138  }
139 }
140 
141 #endif
142 // __HDI_CORE_STROKE_STYLE_PREF__
virtual StrokeStyle strokeStyle() const
Gets the stroke style value for this object.
virtual StrokeStylePref * clone() const
Convenience method to clone an StrokeStylePref object on the heap.
virtual Type dataType() const
Gets the type of persistent data.
virtual StrokeStylePref & operator=(const StrokeStylePref &rhs_)
Allows one StrokeStylePref object to be assigned from another.
Describes the stroke styling of a path.
Definition: hdicorePathStyle.h:249
Header file for path style-related classes.
Allows for storage of stroke styles.
Definition: hdicoreStrokeStylePref.h:25
StrokeStylePref()
Constructs an empty StrokeStylePref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
virtual bool setStrokeStyle(const StrokeStyle &value_)
Sets the stroke style value for this object.
Definition: hdicoreaiArray.h:12
Type
Describes the type of the data the PrefData object contains; useful for determining which subclass to...
Definition: hdicorePrefData.h:31
virtual ~StrokeStylePref()
Destructs a StrokeStylePref object.
Header file for general preference data storage.
Allows for storage of path styles.
Definition: hdicorePathStylePref.h:20