InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IINXImportValidation.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Pellegrin
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 // Used to extract XML from an object, or generate an object instance from XML data.
24 //
25 //========================================================================================
26 
27 #ifndef __IINXImportValidation_h__
28 #define __IINXImportValidation_h__
29 
30 // ----- Interfaces -----
31 
32 #include "IPMUnknown.h"
33 
34 // ----- Includes -----
35 
36 #include "ScriptInfo.h"
37 
38 // ----- ID.h files -----
39 
40 #include "INXCoreID.h"
41 
42 // ----- Forward references -----
43 class WideString;
44 
45 
51 {
52 public:
53  enum { kDefaultIID = IID_IINXIMPORTVALIDATION };
54 
55 public:
61  virtual ErrorCode ValidateINXType(const WideString &type) = 0;
62 
68  virtual ErrorCode ValidateDOMVersion(const ScriptInfo::ScriptVersion &version) = 0;
69 
77  virtual ErrorCode ValidateBuildNumber(int32 buildNumber) = 0;
78 
85  virtual ErrorCode ValidatePI(const WideString &target, const WideString &data) = 0;
86 };
87 
88 #endif // __IINXImportValidation_h__