Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreDashStylePref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_DASH_STYLE_PREF__
8 #define __HDI_CORE_DASH_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 DashStylePref : public PrefData
26  {
27  public:
39  DashStylePref();
40 
48  DashStylePref(const DashStylePref& ds_);
49 
61  DashStylePref(const DashStyle& value_, const std::string& name_ = "");
62 
68  virtual ~DashStylePref();
69 
78  virtual DashStylePref& operator=(const DashStylePref& rhs_);
79 
93  virtual DashStylePref* clone() const;
94 
104  virtual Type dataType() const;
105 
113  virtual DashStyle dashStyle() const;
114 
123  virtual bool setDashStyle(const DashStyle& value_);
124 
125 
126  private:
127  friend class StrokeStylePref;
128 
134  DashStylePref(plugin::PersistentDictionary*&);
135  };
136 
137  typedef std::auto_ptr<DashStylePref> DashStylePrefAP;
138  }
139 }
140 
141 #endif
142 // __HDI_CORE_DASH_STYLE_PREF__
virtual Type dataType() const
Gets the type of persistent data.
virtual DashStyle dashStyle() const
Gets the dash style value for this object.
virtual bool setDashStyle(const DashStyle &value_)
Sets the dash style value for this object.
Header file for path style-related classes.
Allows for storage of stroke styles.
Definition: hdicoreStrokeStylePref.h:25
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Allows for storage of dash styles.
Definition: hdicoreDashStylePref.h:25
Definition: hdicoreaiArray.h:12
virtual ~DashStylePref()
Destructs a DashStylePref object.
virtual DashStylePref * clone() const
Convenience method to clone an DashStylePref object on the heap.
virtual DashStylePref & operator=(const DashStylePref &rhs_)
Allows one DashStylePref object to be assigned from another.
Type
Describes the type of the data the PrefData object contains; useful for determining which subclass to...
Definition: hdicorePrefData.h:31
Describes the dash styling of a path.
Definition: hdicorePathStyle.h:19
Header file for general preference data storage.
DashStylePref()
Constructs an empty DashStylePref object.