InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISAXAttributeList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lin Xia
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 __ISAXAttributeList_h__
25 #define __ISAXAttributeList_h__
26 
27 #include "IPMUnknown.h"
28 #include "XMLParserID.h"
29 
30 namespace BIB_NAMESPACE {
31  class CAXEAttributeList;
32 }
33 
35 
112 {
113 public:
114  enum { kDefaultIID = IID_ISAXATTRIBUTELIST };
115 
121  virtual void Adopt(BIB_NAMESPACE::CAXEAttributeList attributes, ISAXDOMSerializerServices* owner) = 0;
122 
132  virtual int32 GetLength() const = 0;
133 
141  virtual void AttributeHandled(uint32 index) = 0;
142 
161  virtual bool16 GetURI(uint32 index, WideString& uri) const = 0;
162 
182  virtual bool16 GetLocalName(uint32 index, WideString& localName) const = 0;
183 
203  virtual bool16 GetQName(uint32 index, WideString& qName) const = 0;
204 
224  virtual bool16 GetType(uint32 index, WideString& attributeType) const = 0;
225 
241  virtual bool16 GetValue(uint32 index, WideString& attributeValue) const = 0;
242 
255  virtual bool16 GetIndex(const WideString& uri, const WideString& localPart, uint32& index) const = 0;
256 
267  virtual bool16 GetIndex(const WideString& qName, uint32& index) const = 0;
268 
287  virtual bool16 GetType(const WideString& uri, const WideString& localPart, WideString& attributeType) const = 0;
288 
304  virtual bool16 GetType(const WideString& qName, WideString& attributeType) const = 0;
305 
321  virtual bool16 GetValue(const WideString& uri, const WideString& localPart, WideString& attributeValue) const = 0;
322 
336  virtual bool16 GetValue(const WideString& qName, WideString& attributeValue) const = 0;
337 };
338 
339 #endif