InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScrapSuitePasteHelper.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 // Interface definition for Scrap SuitePaste extensibility
24 //
25 //========================================================================================
26 
27 #ifndef __IScrapSuitePasteHelper__
28 #define __IScrapSuitePasteHelper__
29 
30 #include "DragDropConstants.h"
31 #include "DragDropID.h"
32 
33 #include "IScrapSuite.h"
34 
35 // --- Defaults for creating text frames when pasting text and dragging/dropping text.
36 // An unlikely place for these constants to reside...
37 const PMReal kDefaultTextFrameHeight = 150.0;
38 const PMReal kDefaultTextFrameWidth = 150.0;
39 
53 {
54  public:
55  enum { kDefaultIID = IID_ISCRAPSUITEPASTEHELPER };
56 
64  virtual DragDrop::eHelperType
65  GetHelperType() const = 0;
66 
67  // ----- Abilities
74  virtual DataExchangeResponse CanPaste(const IScrapSuite*, IDataExchangeController* dataController) const = 0;
75 
84  virtual DataExchangeResponse CanPasteInside(const IScrapSuite*, IDataExchangeController* dataController, IControlView* view = nil, const PBPMPoint& point = kInvalidPoint) const = 0;
85 
94  virtual void AddInternalizeableFlavorsToList(const IScrapSuite*, IDataExchangeController*, OrderedFlavorList& flavorList) const = 0;
95 
96  // ----- Manipulators
105  virtual ErrorCode Paste(const IScrapSuite*, IClipboardController* clipboard, IControlView* view, bool16 ignoreAttributes = kFalse) = 0;
106 
115  virtual ErrorCode PasteInside(const IScrapSuite*, IClipboardController* clipboard, IControlView* view, const PBPMPoint& point = kInvalidPoint) = 0;
116 
125  virtual ErrorCode PasteFromScrap(const IScrapSuite*, IDataExchangeController* dataController, IControlView* view, bool16 ignoreAttributes = kFalse) = 0;
126 
135  virtual ErrorCode PasteInsideFromScrap(const IScrapSuite*, IDataExchangeController* dataController, IControlView* view, const PBPMPoint& point = kInvalidPoint) = 0;
136 };
137 
138 #endif