![]() | InDesign SDK 20.5 |
#include <IScrapSuite.h>

Public Types | |
| enum | { kDefaultIID = IID_ISCRAPSUITE } |
Public Member Functions | |
| virtual bool16 | CanClear ()=0 |
| virtual bool16 | CanCopy (IClipboardController *clipboard)=0 |
| virtual bool16 | CanCut (IClipboardController *clipboard)=0 |
| virtual bool16 | CanPaste (IClipboardController *clipboard)=0 |
| virtual bool16 | CanPasteInside (IClipboardController *clipboard, IControlView *view=nil, const PBPMPoint &point=kInvalidPoint)=0 |
| virtual bool16 | CanDuplicate ()=0 |
| virtual bool16 | CanDeselectAll ()=0 |
| virtual bool16 | CanSelectionBeCopied () const =0 |
| virtual bool16 | CanSelectionAcceptPaste () const =0 |
| virtual bool16 | CanSelectionAcceptPasteInside () const =0 |
| virtual bool16 | CanPasteInsideAtPoint (IControlView *view, const PBPMPoint &point) const =0 |
| virtual void | BuildFlavorListForExternalize (IDataExchangeController *dataController, OrderedFlavorList &flavorList) const =0 |
| virtual void | BuildFlavorListForInternalize (IDataExchangeController *dataController, OrderedFlavorList &flavorList) const =0 |
| virtual ErrorCode | Clear ()=0 |
| virtual ErrorCode | Copy (IClipboardController *clipboard)=0 |
| virtual ErrorCode | Cut (IClipboardController *clipboard)=0 |
| virtual ErrorCode | Paste (IClipboardController *clipboard, IControlView *view, bool16 ignoreAttributes=kFalse)=0 |
| virtual ErrorCode | Duplicate (const PBPMPoint &offset, IControlView *view, bool8 selectDuplicate=kTrue)=0 |
| virtual ErrorCode | DeselectAll ()=0 |
| virtual ErrorCode | PasteInside (IClipboardController *clipboard, IControlView *view, const PBPMPoint &point=kInvalidPoint)=0 |
| virtual ErrorCode | CopyToScrap (IDataExchangeController *dataController)=0 |
| virtual ErrorCode | PasteFromScrap (IDataExchangeController *dataController, IControlView *view, bool16 ignoreAttributes=kFalse)=0 |
| virtual ErrorCode | PasteInsideFromScrap (IDataExchangeController *dataController, IControlView *view, const PBPMPoint &point=kInvalidPoint)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IID_ISCRAPSUITE interface; This interface reside both on page item specifers and selection suites. Normally these method apply on specific item first, then on selections, however, usage of specifier is obseleting.
| pure virtual |
Get the external flavors that can be Externalized(Copy)
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
| flavorList | [IN/OUT] flavor list, store result |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Get the external flavors that can be Internalized (Paste)
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
| flavorList | [IN/OUT] flavor list, store result |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the (selected) pageitem(s) be cleared?
| none |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the (selected) pageitem(s) be copied?
| clipboard | the clipboard the items copied to |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the (selected) pageitem(s) be cut?
| clipboard | the clipboard the items copied to |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the (selected) pageitem(s) all be deselected?
| none |
| pure virtual |
Can the (selected) pageitem(s) be duplicated?
| none |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the pageitem(s) in the clipboard be pasted (selection accept paste)?
| clipboard | the clipboard stores the items |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Can the pageitem(s) in the clipboard be pasted inside to selection?
| clipboard | the clipboard stores the items |
| view | Control view for the point. Use nil to use selection for paste inside. |
| thePoint | point in pasteboard coordinates to use for paste inside. Use kInvalidPoint to ignore and use selection as basis. |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Does current selection accept pasteinside?
| view | Control view paste to(ususally front view; active context's view) |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Does current selection accept paste?
| none |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Does current selection accept pasteinside?
| none |
Implemented in CScrapSuite_Extensible.
| pure virtual |
| pure virtual |
Clear (delete) the selection
| none |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Copy item or selection to clipboard
| clipboard | the clipboard the items copied to |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Copy item or selection to scrap (specified by dataController)
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Copy item or selection to clipboard and delete it.
| clipboard | the clipboard the items copied to |
Implemented in CScrapSuite_Extensible.
| pure virtual |
| pure virtual |
Duplicate a page item
| offset | offset relative to original item |
| view | Control view to duplicate item to(ususally front view; active context's view) |
| selectDuplicate | if kTrue (default), select the duplicated item |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Paste item from the clipboard to the view
| clipboard | the clipboard the items pasted from |
| view | Control view paste to(ususally front view; active context's view) |
| ignoreAttributes | Ignore the attributes when pasting, default to kFalse |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Paste item from scrap (specified by dataController) to the view
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
| view | Control view to paste item to(ususally front view; active context's view) |
| ignoreAttributes | Ignore the attributes when pasting from scrap, default to kFalse |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Paste item on the clipboard inside to selected item (first of selected items)
| clipboard | the clipboard the items pasted from |
| view | Control view paste to(ususally front view; active context's view) |
| thePoint | point in pasteboard coordinates to use for paste inside. Use kInvalidPoint to ignore and use selection as basis. |
Implemented in CScrapSuite_Extensible.
| pure virtual |
Paste item from scrap (specified by dataController) insdie to the selected item in the view
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
| view | Control view to paste item to(ususally front view; active context's view) |
| thePoint | point in pasteboard coordinates to use for paste inside. Use kInvalidPoint to ignore and use selection as basis. |
Implemented in CScrapSuite_Extensible.