InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImportExportFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jonathan W. Brown
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 // Description:
24 // A high level API for dealing with import and export.
25 //
26 //========================================================================================
27 
28 #ifndef __IImportExportFacade__
29 #define __IImportExportFacade__
30 
31 // ----- Includes -----
32 #include "IPMUnknown.h"
33 
34 #include "IPlaceGun.h"
35 #include "OpenPlaceID.h"
36 #include "UIDList.h"
37 #include "URI.h"
38 #include "Utils.h"
39 
40 class ICmdCollection ;
41 class IDataBase ;
43 class ISpread;
44 
50 namespace Facade
51 {
53  {
54  public:
55  enum { kDefaultIID = IID_IIMPORTEXPORTFACADE };
56 
59 
60  enum PlaceGunContent {
61  kFirstItem,
62  kAllItems
63  } ;
64 
70  virtual ErrorCode LoadPlaceGun( const UIDList& itemList, IPlaceGun::PlaceGunLocation location ) const = 0 ;
71 
77  virtual ErrorCode LoadPlaceGun( ICmdCollection* cmdCollection, IPlaceGun::PlaceGunLocation location ) const = 0 ;
78 
84  virtual ErrorCode ClearPlaceGun( IPlaceGun* placeGun, PlaceGunContent what ) const = 0 ;
85 
91  virtual ErrorCode AbortPlaceGun( IPlaceGun* placeGun, PlaceGunContent what ) const = 0 ;
92 
104  virtual ErrorCode ImportAndLoadPlaceGun( IDataBase* db, const URI& uri, UIFlags flags,
105  bool16 retainFormat, bool16 convertQuotes, bool16 applyCJKGrid,
106  UID uidPreview, IPlaceGun::PlaceGunLocation location ) const = 0 ;
112  virtual ErrorCode ImportAndLoadPlaceGun( IImportResourceCmdData* cmdData, IPlaceGun::PlaceGunLocation location ) const = 0 ;
124  virtual ErrorCode ImportAndLoadPlaceGun( IDataBase* db, const URI& uri, UIFlags flags,
125  bool16 retainFormat, bool16 convertQuotes, bool16 applyCJKGrid,
126  bool16& useClippingFrame, bool16& skipPlace ) const = 0 ;
138  virtual ErrorCode ImportAndLoadPlaceGun( IDataBase* db, UID linkResourceUID, UIFlags flags,
139  bool16 retainFormat, bool16 convertQuotes, bool16 applyCJKGrid,
140  bool16& useClippingFrame, bool16& skipPlace ) const = 0 ;
141 
147  virtual ErrorCode RotatePlaceGun( IPlaceGun* placeGun, bool16 forward ) const = 0 ;
149 
158  virtual ErrorCode ReplacePageItem( IDataBase* db, UID oldPageItem, UID newPageItem, bool16 useClippingFrame, UIDList& replaceList ) const = 0 ;
159 
165  virtual ErrorCode PlaceExternalFile(ISpread* spread, const IDFile& filePath, const PBPMPoint& pbPoint) const = 0;
166 
173  virtual ErrorCode PlaceExternalFileWithUIFlags(ISpread* spread, const IDFile& filePath, const PBPMPoint& pbPoint, const UIFlags uiFlags ) const = 0;
174  };
175 } // namespace Facade
176 
177 #endif // __IImportExportFacade__