InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImportProviderUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard
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 __IImportProviderUtils__
25 #define __IImportProviderUtils__
26 
27 #include "IPMUnknown.h"
28 
29 #include "AppFrameworkID.h"
30 #include "PMFlavorTypes.h"
31 #include "Utils.h"
32 
33 class IDocument;
34 class IExportProvider;
35 class IImportProvider;
36 class IPlaceBehavior;
37 class URI;
38 typedef void* ExportSessionToken;
39 
47 {
48 public:
49  enum { kDefaultIID = IID_IIMPORTPROVIDERUTILS };
50 
51 
59  const ExternalPMFlavor fromWhichFlavor, const PMFlavor toWhichInternalFlavor) = 0;
60 
67  virtual bool16 DoesProviderSupportExternalFlavor(IImportProvider *provider, const ExternalPMFlavor flavor) = 0;
68 
74  virtual IImportProvider* QueryImportProviderForFileType(const SysOSType fileType) = 0;
75 
82  virtual bool16 DoesProviderSupportFileType(IImportProvider *provider, const SysOSType fileType) = 0;
83 
91  const PMFlavor fromWhichInternalFlavor, const ExternalPMFlavor toWhichFlavor) = 0;
92 
99  virtual bool16 DoesProviderSupportExternalFlavor(IExportProvider *provider, const ExternalPMFlavor flavor) = 0;
100 
107  virtual uint32 GetFlavorsForExport(const PMFlavor fromWhichInternalFlavor, ExternalPMFlavorList& toWhichFlavors) = 0;
108 
115  virtual uint32 GetFlavorsForImport(const PMFlavor toWhichInternalFlavor, ExternalPMFlavorList& fromWhichFlavors) = 0;
116 
127  virtual ErrorCode SendImportExportSignal( const ServiceID& service, IDocument* document, const URI& uri, const PMString& formatName, UIFlags& uiFlags, bool8 bIsStandAlone = kTrue, ExportSessionToken* sessionToken = nil ) = 0 ;
128 
140  virtual ErrorCode SendImportExportSignal( const ServiceID& service, IDocument* document, const IDFile& sysFile, const PMString& formatName, UIFlags& uiFlags, bool8 bIsStandAlone = kTrue, ExportSessionToken* sessionToken = nil ) = 0 ;
141 
149  virtual ErrorCode SendPlaceReplaceSignal( const ServiceID& service, IPlaceBehavior* source, IPlaceBehavior* target, const UIDList& result ) = 0 ;
150 };
151 
152 #endif // __IImportProviderUtils__