InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRIDXNotifierHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Danielle Darling
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IRIDXNOTIFIERHANDLER__
25 #define __IRIDXNOTIFIERHANDLER__
26 
27 #include "IPMUnknown.h"
28 #include "AppFrameworkID.h"
29 
30 class IDataBase;
31 class RIDXSource;
32 
33 // ===================================================================================
34 // class IRIDXNotifierHandler
35 // ===================================================================================
40 {
41 public:
42  // ----- Constants -----
43  enum {kDefaultIID = IID_IRIDXNOTIFIERHANDLER};
44 
47  enum NotificationType {kBeingDeleted, kWillBeModified, kTestActivelyUsed, kSwatchesWillBeConvertedLocalToGlobal};
51  enum NotificationStatus {kHandledStatus, kDidntHandleStatus, kTrueStatus, kFalseStatus};
52 
62  virtual NotificationStatus Notify(const NotificationType type, IDataBase *db, const UID targetUID,
63  const RIDXSource& source, const IPMUnknown *data) const = 0;
64 
75  virtual NotificationStatus Notify(const NotificationType type, IDataBase *db, const UIDList& targetUIDList,
76  const RIDXSource& source, const IPMUnknown *data) const = 0;
83  virtual bool16 WantsNotification(const NotificationType type, const ClassID classIDOfTarget) const = 0;
84 
85 
92  virtual bool16 AlwaysNotifyForNonPersistReferences (const NotificationType type, const ClassID classIDOfTarget) const = 0;
93 
102  virtual NotificationStatus Notify(const NotificationType type, IDataBase *db, const UIDList& targetUIDList, const IPMUnknown *data) const = 0;
103 };
104 
105 #endif
106