Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreDashStyleMapPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_DASH_STYLE_MAP_PREF__
8 #define __HDI_CORE_DASH_STYLE_MAP_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 DashStyleMapPref : public PrefData
26  {
27  public:
40 
49 
61  DashStyleMapPref(const DashStyle::Map& value_, const std::string& name_ = "");
62 
68  virtual ~DashStyleMapPref();
69 
78  virtual DashStyleMapPref& operator=(const DashStyleMapPref& rhs_);
79 
93  virtual DashStyleMapPref* clone() const;
94 
104  virtual Type dataType() const;
105 
113  virtual DashStyle::Map dashStyleMap() const;
114 
123  virtual bool setDashStyleMap(const DashStyle::Map& value_);
124 
125 
126  private:
127  friend class StrokeStyleMapPref;
128 
134  DashStyleMapPref(plugin::PersistentDictionary*&);
135  };
136 
137  typedef std::auto_ptr<DashStyleMapPref> DashStyleMapPrefAP;
138  }
139 }
140 
141 #endif
142 // __HDI_CORE_DASH_STYLE_MAP_PREF__
virtual DashStyleMapPref & operator=(const DashStyleMapPref &rhs_)
Allows one DashStyleMapPref object to be assigned from another.
virtual ~DashStyleMapPref()
Destructs a DashStyleMapPref object.
Acts as a DashStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:30
Allows for storage of dash style maps.
Definition: hdicoreDashStyleMapPref.h:25
virtual Type dataType() const
Gets the type of persistent data.
Allows for storage of stroke style maps.
Definition: hdicoreStrokeStyleMapPref.h:25
Header file for path style-related classes.
virtual DashStyleMapPref * clone() const
Convenience method to clone an DashStyleMapPref object on the heap.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
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
DashStyleMapPref()
Constructs an empty DashStyleMapPref object.
Header file for general preference data storage.
virtual DashStyle::Map dashStyleMap() const
Gets the dash style map value for this object.
virtual bool setDashStyleMap(const DashStyle::Map &value_)
Sets the dash style map value for this object.