Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreNotification.h
Go to the documentation of this file.
1
6
7#ifndef __HDI_CORE_NOTIFICATION__
8#define __HDI_CORE_NOTIFICATION__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include <vector>
13
14#include "hdicoreTypes.h"
15
16namespace hdi
17{
18 namespace core
19 {
20 class Message;
21 class Symbol;
22
27 {
28 public:
34 virtual ~Notification();
35
43 virtual NotifierType type() const;
44
45
46 protected:
50 void* _data;
51
58
65
74 };
75
79 class ArtObjectsChangedNotification : public Notification
80 {
81 public:
82 typedef std::vector< std::string > UUIDVector;
83
90
98 const UUIDVector* const addedArt() const;
99
107 const UUIDVector* const removedArt() const;
108
116 const UUIDVector* const changedArt() const;
117
118
119 private:
120 // Only NotifyMessage can construct an ArtObjectsChangedNotification object
121 friend class NotifyMessage;
122
128 ArtObjectsChangedNotification(const NotifierType, void*);
129
135 ArtObjectsChangedNotification(const ArtObjectsChangedNotification&);
136
142 ArtObjectsChangedNotification& operator=(const ArtObjectsChangedNotification&);
143 };
144
148 class ArtSymbolSetChangedNotification : public Notification
149 {
150 public:
151 typedef std::vector< std::shared_ptr<Symbol> > SymbolVector;
152
159
167 SymbolVector addedSymbols() const;
168
176 SymbolVector removedSymbols() const;
177
185 SymbolVector changedSymbols() const;
186
194 SymbolVector renamedSymbols() const;
195
196
197 private:
198 // Only NotifyMessage can construct an ArtSymbolSetChangedNotification object
199 friend class NotifyMessage;
200
206 ArtSymbolSetChangedNotification(const NotifierType, void*);
207
213 ArtSymbolSetChangedNotification(const ArtSymbolSetChangedNotification&);
214
220 ArtSymbolSetChangedNotification& operator=(const ArtSymbolSetChangedNotification&);
221 };
222 }
223}
224
225#endif
226// HDI_CORE_AIP_MODE
227
228#endif
229// __HDI_CORE_NOTIFICATION__
const UUIDVector *const removedArt() const
Gets a vector containing the UUID of each removed piece of art.
const UUIDVector *const changedArt() const
Gets a vector containing the UUID of each changed piece of art.
const UUIDVector *const addedArt() const
Gets a vector containing the UUID of each added piece of art.
virtual ~ArtObjectsChangedNotification()
Destructs a ArtObjectsChangedNotification object.
SymbolVector removedSymbols() const
Gets a vector containing each removed symbol.
SymbolVector renamedSymbols() const
Gets a vector containing each renamed symbol.
virtual ~ArtSymbolSetChangedNotification()
Destructs a ArtSymbolSetChangedNotification object.
SymbolVector changedSymbols() const
Gets a vector containing each changed symbol.
SymbolVector addedSymbols() const
Gets a vector containing each added symbol.
Base class for all *Message subclasses.
Definition hdicoreMessage.h:48
virtual ~Notification()
Destructs a Notification object.
virtual NotifierType type() const
Gets the type of notification data the target object represents.
Notification(const Notification &)
Unused.
Notification & operator=(const Notification &)
Unused.
void * _data
Stores private implementation data.
Definition hdicoreNotification.h:50
Notification()
Internal use only.
Handles general symbol-related functionality.
Definition hdicoreSymbol.h:27
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
NotifierType
Describes the types of Illustrator notifiers for which subscriptions are available.
Definition hdicoreTypes.h:1297