InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyXMLElementAttr.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jeff Argast
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 __IInCopyXMLElementAttr__
25 #define __IInCopyXMLElementAttr__
26 
27 #include "IPMUnknown.h"
28 
29 #include "InCopyWorkflowID.h"
30 #include "WideString.h"
31 
32 
34 {
35 public:
36  enum { kDefaultIID = IID_IINCOPYXMLELEMENTATTR };
37 
38  // localName = the local part of the element name
39  // qName = the qualified element name
40 
41  //For internal use only. Clients should not call this method
42  virtual void Initialize (void* privateData) = 0;
43 
44  // return the number of attributes in the interface
45  virtual int32 Length () const = 0;
46 
47  // Get the Nth localName
48  virtual void GetNthLocalName (int32 n, WideString* localName) const = 0;
49 
50  // Get the Nth qualified Name
51  virtual void GetNthQName (int32 n, WideString* qName) const = 0;
52 
53  // Get the Nth attribute value
54  virtual void GetNthValue (int32 n, WideString* attrValue) const = 0;
55 
56  // Get the value associated with the attribute qName. returns kTrue if found, kFalse
57  // if not found
58  virtual bool16 GetValue (const WideString& qName, WideString* attrValue) const = 0;
59  bool16 GetValue (const UTF16TextChar* qName, WideString* attrValue) const
60  { return this->GetValue(WideString(qName), attrValue); }
61 };
62 
63 
64 #endif // __IInCopyWorkflow__
65 
66 
67