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

Public Member Functions | |
| CScrapSuite_Extensible (IPMUnknown *boss) | |
| virtual ErrorCode | Cut (IClipboardController *clipboard) |
| virtual ErrorCode | Clear ()=0 |
| virtual ErrorCode | Copy (IClipboardController *clipboard)=0 |
| virtual ErrorCode | Duplicate (const PBPMPoint &offset, IControlView *view, bool8 selectDuplicate=kTrue)=0 |
| virtual ErrorCode | CopyToScrap (IDataExchangeController *dataController)=0 |
| virtual void | BuildFlavorListForExternalize (IDataExchangeController *dataController, OrderedFlavorList &flavorList) const =0 |
| virtual void | BuildFlavorListForInternalize (IDataExchangeController *dataController, OrderedFlavorList &flavorList) const |
| virtual ServiceID | GetScrapSuitePasteHelperServiceID () const =0 |
Extensible Abilities | |
The following methods have been overridden to delegate to the paste helpers associated with this scrap suite. Framework use only - subclasses should not override these methods. | |
| virtual bool16 | CanPaste (IClipboardController *clipboard) |
| virtual bool16 | CanPasteInside (IClipboardController *clipboard, IControlView *view=nil, const PBPMPoint &point=kInvalidPoint) |
| virtual bool16 | CanCut (IClipboardController *clipboard) |
Extensible Manipulators | |
The following methods methods have been overridden to delegate to the paste helpers associated with this scrap suite. Framework use only - subclasses should not override these methods. | |
| virtual ErrorCode | Paste (IClipboardController *clipboard, IControlView *view, bool16 ignoreAttributes) |
| virtual ErrorCode | PasteInside (IClipboardController *clipboard, IControlView *view, const PBPMPoint &point=kInvalidPoint) |
| virtual ErrorCode | PasteFromScrap (IDataExchangeController *dataController, IControlView *view, bool16 ignoreAttributes) |
| virtual ErrorCode | PasteInsideFromScrap (IDataExchangeController *dataController, IControlView *view, const PBPMPoint &point=kInvalidPoint) |
Public Member Functions inherited from CPMUnknown< IScrapSuite > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Public Member Functions inherited from IScrapSuite | |
| virtual bool16 | CanDeselectAll ()=0 |
| virtual ErrorCode | DeselectAll ()=0 |
eActionType | |
enumeration of the different actions an IScrapSuitePasteHelper can be called upon to perform | |
| enum | eActionType { kPasteAction = 0, kPasteInsideAction, kPasteFromScrapAction, kPasteInsideFromScrapAction, kActionType_Max = kPasteInsideFromScrapAction } |
| virtual bool16 | CanClear ()=0 |
| virtual bool16 | CanCopy (IClipboardController *clipboard)=0 |
| virtual bool16 | CanDuplicate ()=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 |
Additional Inherited Members | |
Public Types inherited from IScrapSuite | |
| enum | { kDefaultIID = IID_ISCRAPSUITE } |
Protected Member Functions inherited from CPMUnknown< IScrapSuite > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IScrapSuite > | |
| HelperInterface | fHelperInterface |
Extensible implementation of the IScrapSuite interface used for clipboard paste operations. Implementors of IScrapSuite will usually derive from CScrapSuite_Extensible, unless they have a good reason to avoid extensibility.
| 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 |
Implements IScrapSuite.
| virtual |
Overridden to delegate to the paste helpers associated with this scrap suite.
Implements IScrapSuite.
| pure virtual |
| pure virtual |
Can the (selected) pageitem(s) be copied?
| clipboard | the clipboard the items copied to |
Implements IScrapSuite.
| virtual |
Can the (selected) pageitem(s) be cut?
| clipboard | the clipboard the items copied to |
Implements IScrapSuite.
| pure virtual |
| virtual |
Can the pageitem(s) in the clipboard be pasted (selection accept paste)?
| clipboard | the clipboard stores the items |
Implements IScrapSuite.
| 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. |
Implements IScrapSuite.
| pure virtual |
Does current selection accept pasteinside?
| view | Control view paste to(ususally front view; active context's view) |
Implements IScrapSuite.
| pure virtual |
Does current selection accept paste?
| none |
Implements IScrapSuite.
| pure virtual |
Does current selection accept pasteinside?
| none |
Implements IScrapSuite.
| pure virtual |
| pure virtual |
Clear (delete) the selection
| none |
Implements IScrapSuite.
| pure virtual |
Copy item or selection to clipboard
| clipboard | the clipboard the items copied to |
Implements IScrapSuite.
| pure virtual |
Copy item or selection to scrap (specified by dataController)
| dataController | Data exchange controller, such as clipboard, dragdrop, libraryscrapcontroller etc. |
Implements IScrapSuite.
| virtual |
Provides the default implementation of Copy followed by Clear
Implements IScrapSuite.
| 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 |
Implements IScrapSuite.
| pure virtual |
Override this to return the service ID that paste helpers for this suite will respond to.
| 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 |
Implements IScrapSuite.
| 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 |
Implements IScrapSuite.
| 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. |
Implements IScrapSuite.
| 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. |
Implements IScrapSuite.