InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyXMLElementProvider.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 __IInCopyXMLElementProvider__
25 #define __IInCopyXMLElementProvider__
26 
27 #include "IPMUnknown.h"
28 
29 #include "InCopyWorkflowID.h"
30 
31 #include "IXMLOutStream.h"
32 
35 
37 {
38 public:
39  enum { kDefaultIID = IID_IINCOPYXMLELEMENTPROVIDER };
40 
41  // This method is called during export of a story to the xml out stream. During
42  // import this interface is asked to handle the element. Make sure the provider
43  // uses the same element name on import and export.
44  virtual void ExportData
45  (
46  const UIDRef& storyRef,
47  IXMLOutStream* stream
48  ) = 0;
49 
50 
51  // This method is called during import. Return an IInCopyXMLElementHandler if this
52  // provider supports the named element, otherwise returns nil
53  virtual IInCopyXMLElementHandler* QueryElementHandler
54  (
55  const UIDRef& storyRef,
56  const WideString& localName,
57  const WideString& qName,
58  const WideString& uri,
59  IInCopyXMLElementAttr* iAttrs
60  ) = 0;
61 
62 
63 
64 };
65 
66 
67 #endif // __IInCopyWorkflow__
68 
69 
70