Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicorePathStyle.h"
13#include "hdicorePrefData.h"
14
15namespace hdi
16{
17 namespace aip
18 {
19 class PersistentDictionary;
20 }
21
22 namespace core
23 {
28 {
29 public:
42
51
63 DashStyleMapPref(const DashStyle::Map& value_, const std::string& name_ = "");
64
71
81
95 virtual DashStyleMapPref* clone() const;
96
106 virtual Type dataType() const;
107
116
125 virtual bool setDashStyleMap(const DashStyle::Map& value_);
126
127
128 private:
129 friend class StrokeStyleMapPref;
130
136 DashStyleMapPref(aip::PersistentDictionary*&);
137 };
138
139 typedef std::unique_ptr<DashStyleMapPref> DashStyleMapPrefUP;
140 typedef std::shared_ptr<DashStyleMapPref> DashStyleMapPrefSP;
141 typedef std::weak_ptr<DashStyleMapPref> DashStyleMapPrefWP;
142 }
143}
144
145#endif
146// HDI_CORE_AIP_MODE
147
148#endif
149// __HDI_CORE_DASH_STYLE_MAP_PREF__
Acts as a DashStyle value map, indicating which values are "known".
Definition: hdicorePathStyle.h:33
Allows for storage of dash style maps.
Definition: hdicoreDashStyleMapPref.h:28
virtual Type dataType() const
Gets the type of persistent data.
DashStyleMapPref(const DashStyle::Map &value_, const std::string &name_="")
Constructs a DashStyleMapPref object, with new data, to be added to a container at a later time.
virtual bool setDashStyleMap(const DashStyle::Map &value_)
Sets the dash style map value for this object.
virtual ~DashStyleMapPref()
Destructs a DashStyleMapPref object.
DashStyleMapPref(const DashStyleMapPref &ds_)
Constructs a new DashStyleMapPref object from an existing DashStyleMapPref object (copy constructor)
DashStyleMapPref()
Constructs an empty DashStyleMapPref object.
virtual DashStyle::Map dashStyleMap() const
Gets the dash style map value for this object.
virtual DashStyleMapPref & operator=(const DashStyleMapPref &rhs_)
Allows one DashStyleMapPref object to be assigned from another.
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:25
Type
Describes the type of the data the PrefData object contains; useful for determining which subclass to...
Definition: hdicorePrefData.h:32
Allows for storage of stroke style maps.
Definition: hdicoreStrokeStyleMapPref.h:28
Header file for path style-related classes.
Header file for general preference data storage.