InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBlackBoxCommands.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Robin_Briggs
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 __IBlackBoxCommands__
25 #define __IBlackBoxCommands__
26 
27 
28 #include "IPMUnknown.h"
29 #include "DocFrameworkID.h"
30 #include "IBlackBoxData.h" // for BlackBoxKey
31 
32 class XMLReference;
33 
38 class IBlackBoxCommands : public IPMUnknown {
39 public:
40  enum { kDefaultIID = IID_IBLACKBOXCOMMANDS };
41 
49  virtual ErrorCode AddData(const UIDRef& obj, BlackBoxKey key, void *buffer, int32 length) = 0;
50 
58  virtual ErrorCode AddData(const XMLReference& obj, BlackBoxKey key, void *buffer, int32 length) = 0;
59 
65  virtual ErrorCode RemoveData(const UIDRef& obj, BlackBoxKey key) = 0;
66 
72  virtual ErrorCode RemoveData(const XMLReference& obj, BlackBoxKey key) = 0;
73 
81  virtual int32 GetData(const UIDRef& obj, BlackBoxKey key, void *buffer, int32 amountToRead) = 0;
82 
90  virtual int32 GetData(const XMLReference& obj, BlackBoxKey key, void *buffer, int32 amountToRead) = 0;
91 
92 
93 };
94 
95 
96 
97 #endif // __IBlackBoxCommands__