FlavorPackageExternalizer
FlavorPackageInternalizer
ReadWriteMemBufferPackage
ReaderClipboardFlavorPackage
ReaderFlavorPackage
WriterClipboardFlavorPackage
WriterFlavorPackage
This module defines the packaged up contents of serialized data. This data is usually used to exchange in drag and drop, and clipboard operations. But its sometimes used/saved for other purposes, like UNDO and hidable text.
FlavorPackageExternalizer [public]
virtual MarkerOwner
Helper class for implementing externalizing. Can be subclassed to add new formats.
Call it with a WriterFlavorPackage
, and a range to copy from, and the externalizing will be done.
See also FlavorPackageInternalizer
.
Member Details |
---|
Externalize to the given FlavorPackageExternalizer::WriterFlavorPackage the text in the
given range. This can be for a Drag&Drop package, a ClipBoard package, or whatever
(see |
Externalize to the given FlavorPackageExternalizer::WriterFlavorPackage the text in the
given range. This can be for a Drag&Drop package, a ClipBoard package, or whatever
(see This method externalizes in the native OS text format (with any embedded NUL-characters in the text eliminated). |
Externalize to the given FlavorPackageExternalizer::WriterFlavorPackage the text in the
given range. This can be for a Drag&Drop package, a ClipBoard package, or whatever
(see |
FlavorPackageInternalizer [public]
virtual MarkerOwner
Helper class for implementing internalizing. Can be subclassed to add new formats.
Call it with a ReaderFlavorPackage
, and a range to insert it into, and the internalizing will be done.
See also FlavorPackageExternalizer
.
ReadWriteMemBufferPackage [public]
ReaderFlavorPackage
, WriterFlavorPackage
Dual purpose, store-and-reuse package. Useful for undo.
ReaderClipboardFlavorPackage [public]
ReaderFlavorPackage
NB: On windows - it is REQUIRED the ClipboardFlavorPackage objects only be created in the context of Open/Close clipboard operations (for example done in OnPasteCommand_Before/OnPasteCommand_After - so typically no problem).
NB: For X-Windows, the clip data is just stored in the global variable ReaderClipboardFlavorPackage::sPrivateClipData.
ReaderFlavorPackage [public]
Abstraction wrapping both Drag&Drop packages, and clipboard access. Used by FlavorPackageInternalizer
.
Member Details |
---|
Return an upper bound on the size of the given flavor element. Try to get the right size, but the OS frequently makes this impossible. Just garuantee that when you do a ReaderFlavorPackage::ReadFlavorData you get the right size, and that is smaller or equal to what this returns. |
Return the data of a given clip format, copied into the passed in buffer. The caller must allocate/free
the buffer. An upper bound on the size needed for the buffer can be retrieved with |
WriterClipboardFlavorPackage [public]
WriterFlavorPackage
NB: On windows - it is REQUIRED the ClipboardFlavorPackage objects only be created in the context of Open/Close clipboard operations (for example done in OnCopyCommand_Before/OnCopyCommand_After - so typically no problem).
See also ReaderClipboardFlavorPackage
.
WriterFlavorPackage [public]
Abstraction wrapping both Drag&Drop packages, and clipboard access. Used by FlavorPackageExternalizer
.