InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLParserUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Rich Gartland
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 __IXMLParserUtils_h__
25 #define __IXMLParserUtils_h__
26 
27 #include "Utils.h"
28 #include "XMLParserID.h"
29 
30 class IIDXMLDOMDocument;
31 class ISAXServices;
32 
33 
34 class IIDXMLElement;
35 class XMLReference;
36 #include <map>
37 typedef std::map<XMLReference, K2Vector<int32> > HitMatches;
38 typedef std::map<WideString, WideString> PrefixToURIMap;
39 
44 {
45  public:
46  enum {kDefaultIID = IID_IXMLPARSERUTILS};
47 
59  virtual IIDXMLDOMDocument *CreateNewDOMDocument(const char* const uri = nil, ISAXServices *owner = nil) = 0;
60 
69  virtual bool16 EvaluateXPathsForElement(const K2Vector<WideString>& xPaths, InterfacePtr<IIDXMLElement> rootElement, HitMatches& matches, PrefixToURIMap* prefixMap) const = 0;
70 
71  virtual PMString GetContentAtChild(const PMString &xml, const PMString & valueToFind, bool* pFoundIt = nil) = 0;
72 };
73 
74 #endif