InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISnippetExport.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 __ISnippetExport__
25 #define __ISnippetExport__
26 
27 // Adobe Patent or Adobe Patent Pending Invention Included Within this File
28 // Adobe patent application tracking B234, entitled Method and apparatus for formatting portion of content, inventors: Craig Rainwater, Steve Pellegrin, Robin Briggs
29 
30 #include "SnippetID.h"
31 #include "IPMUnknown.h"
32 #include "IDOMElement.h"
33 #include "INXOptions.h"
34 
35 class XMLReference;
36 class IScript;
37 class IXMLOutStream;
38 class IDocument;
40 
52 class ISnippetExport : public IPMUnknown
53 {
54 public:
55  enum { kDefaultIID = IID_ISNIPPETEXPORT };
56 
62  virtual ErrorCode ExportXMLElements(IPMStream *stream, const K2Vector<XMLReference>& elementRefList) = 0;
63 
69  virtual ErrorCode ExportPageitems(IPMStream *s, const UIDList& uidList) = 0;
70 
78  virtual ErrorCode ExportInCopyInterchange(IPMStream *s, const UIDList& uidList) = 0;
79 
98  typedef enum { kInclude, kExclude } PreferenceOperation;
99  virtual ErrorCode ExportAppPrefs( IPMStream *stream, PreferenceOperation operation = kExclude, const K2Vector<ScriptID>& preferenceIDs = K2Vector<ScriptID>(), IAppPrefsExportDelegate* delegate = nil ) = 0;
100 
105  virtual bool16 GetSelectedPageItemsToExport(UIDList& pageItems) = 0;
106 
111  virtual ErrorCode ExportSelectedPageItems(IPMStream *s) = 0;
112 };
113 
114 #endif // __ISnippetExport__
115 
116