InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IScrapSuite.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Michael Burbidge
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 __IScrapSuite__
25
#define __IScrapSuite__
26
27
#include "IPMUnknown.h"
28
#include "IControlView.h"
29
#include "PMPoint.h"
30
#include "K2Vector.h"
31
#include "ShuksanID.h"
32
#include "PMFlavorTypes.h"
33
34
//========================================================================================
35
// Forward declarations
36
//========================================================================================
37
38
class
IClipboardController
;
39
class
IDataExchangeController
;
40
class
ICommand
;
41
class
UIDList
;
42
class
IDataExchangeHandler
;
43
44
//========================================================================================
45
// CLASS IScrapSuite
46
//========================================================================================
51
class
IScrapSuite
:
public
IPMUnknown
52
{
53
// ----- Abilities
54
public
:
55
enum
{ kDefaultIID = IID_ISCRAPSUITE };
56
61
virtual
bool16
CanClear
() = 0;
62
67
virtual
bool16
CanCopy
(
IClipboardController
* clipboard) = 0;
68
73
virtual
bool16
CanCut
(
IClipboardController
* clipboard) = 0;
74
79
virtual
bool16
CanPaste
(
IClipboardController
* clipboard) = 0;
80
87
virtual
bool16
CanPasteInside
(
IClipboardController
* clipboard,
IControlView
* view = nil,
const
PBPMPoint
& point = kInvalidPoint) = 0;
88
93
virtual
bool16
CanDuplicate
() = 0;
94
99
virtual
bool16
CanDeselectAll
() = 0;
100
101
// Does current selection support Copy/Paste (part of the answer to CanXXX() operations, above)
102
107
virtual
bool16
CanSelectionBeCopied
()
const
= 0;
108
113
virtual
bool16
CanSelectionAcceptPaste
()
const
= 0;
114
119
virtual
bool16
CanSelectionAcceptPasteInside
()
const
= 0;
120
121
126
virtual
bool16
CanPasteInsideAtPoint
(
IControlView
* view,
const
PBPMPoint
& point)
const
= 0;
127
128
// Get the external flavors that can be Externalized (Copy), or Internalized (Paste)
129
public
:
130
136
virtual
void
BuildFlavorListForExternalize
(
IDataExchangeController
* dataController,
OrderedFlavorList
& flavorList)
const
= 0;
137
143
virtual
void
BuildFlavorListForInternalize
(
IDataExchangeController
* dataController,
OrderedFlavorList
& flavorList)
const
= 0;
144
145
// ----- Manipulators
146
public
:
147
152
virtual
ErrorCode
Clear
() = 0;
153
158
virtual
ErrorCode
Copy
(
IClipboardController
* clipboard) = 0;
159
164
virtual
ErrorCode
Cut
(
IClipboardController
* clipboard) = 0;
165
172
virtual
ErrorCode
Paste
(
IClipboardController
* clipboard,
IControlView
* view, bool16 ignoreAttributes = kFalse) = 0;
173
180
virtual
ErrorCode
Duplicate
(
const
PBPMPoint
& offset,
IControlView
* view, bool8 selectDuplicate = kTrue) = 0;
181
186
virtual
ErrorCode
DeselectAll
() = 0;
187
188
195
virtual
ErrorCode
PasteInside
(
IClipboardController
* clipboard,
IControlView
* view,
const
PBPMPoint
& point = kInvalidPoint) = 0;
196
201
virtual
ErrorCode
CopyToScrap
(
IDataExchangeController
* dataController) = 0;
202
209
virtual
ErrorCode
PasteFromScrap
(
IDataExchangeController
* dataController,
IControlView
* view, bool16 ignoreAttributes = kFalse) = 0;
210
217
virtual
ErrorCode
PasteInsideFromScrap
(
IDataExchangeController
* dataController,
IControlView
* view,
const
PBPMPoint
& point = kInvalidPoint) = 0;
218
219
};
220
221
#endif
tmpdoxygeninput
IScrapSuite.h
Generated on Sat Jul 19 2025 02:54:15 for InDesign SDK by
1.8.3.1