LibreOffice Module sc (master) 1
|
#include <seltrans.hxx>
Public Member Functions | |
virtual | ~ScSelectionTransferObj () override |
void | ForgetView () |
ScTabView * | GetView () const |
ScTransferObj * | GetCellData () |
ScDrawTransferObj * | GetDrawData () |
virtual void | AddSupportedFormats () override |
virtual bool | GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override |
virtual void | ObjectReleased () override |
virtual sal_Bool SAL_CALL | isComplex () override |
Public Member Functions inherited from TransferableHelper | |
virtual css::uno::Any SAL_CALL | getTransferData (const css::datatransfer::DataFlavor &rFlavor) override |
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL | getTransferDataFlavors () override |
virtual sal_Bool SAL_CALL | isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override |
virtual css::uno::Any SAL_CALL | getTransferData2 (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override |
virtual sal_Bool SAL_CALL | isComplex () override |
void | PrepareOLE (const TransferableObjectDescriptor &rObjDesc) |
void | CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const |
void | CopyToClipboard (vcl::Window *pWindow) const |
void | CopyToPrimarySelection () const |
void | StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions) |
Static Public Member Functions | |
static rtl::Reference< ScSelectionTransferObj > | CreateFromView (ScTabView *pSource) |
Static Public Member Functions inherited from TransferableHelper | |
static void | ClearPrimarySelection () |
Private Member Functions | |
ScSelectionTransferObj (ScTabView *pSource, ScSelectionTransferMode eNewMode) | |
void | CreateCellData () |
void | CreateDrawData () |
Private Attributes | |
ScTabView * | pView |
ScSelectionTransferMode | eMode |
rtl::Reference< ScTransferObj > | mxCellData |
rtl::Reference< ScDrawTransferObj > | mxDrawData |
Additional Inherited Members | |
Protected Member Functions inherited from TransferableHelper | |
~TransferableHelper () | |
const css::uno::Reference< css::datatransfer::clipboard::XClipboard > & | getOwnClipboard () const |
void | implCallOwnLostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &_rxClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &_rxTrans) |
void | AddFormat (SotClipboardFormatId nFormat) |
void | AddFormat (const css::datatransfer::DataFlavor &rFlavor) |
void | RemoveFormat (SotClipboardFormatId nFormat) |
void | RemoveFormat (const css::datatransfer::DataFlavor &rFlavor) |
bool | HasFormat (SotClipboardFormatId nFormat) |
void | ClearFormats () |
bool | SetAny (const css::uno::Any &rAny) |
bool | SetString (const OUString &rString) |
bool | SetBitmapEx (const BitmapEx &rBitmap, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetGDIMetaFile (const GDIMetaFile &rMtf) |
bool | SetGraphic (const Graphic &rGraphic) |
bool | SetImageMap (const ImageMap &rIMap) |
bool | SetTransferableObjectDescriptor (const TransferableObjectDescriptor &rDesc) |
bool | SetINetBookmark (const INetBookmark &rBmk, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetINetImage (const INetImage &rINtImg, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetObject (void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) |
virtual void | AddSupportedFormats ()=0 |
virtual bool | GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc)=0 |
virtual bool | WriteObject (tools::SvRef< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) |
virtual void | DragFinished (sal_Int8 nDropAction) |
virtual void | ObjectReleased () |
void | CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const |
Definition at line 41 of file seltrans.hxx.
|
private |
store range for StillValid
Definition at line 143 of file seltrans.cxx.
References eMode.
Referenced by CreateFromView().
|
overridevirtual |
Definition at line 150 of file seltrans.cxx.
References ForgetView(), ScModule::GetSelectionTransfer(), pView, SC_MOD, and ScModule::SetSelectionTransfer().
|
overridevirtual |
Implements TransferableHelper.
Definition at line 174 of file seltrans.cxx.
References TransferableHelper::AddFormat(), eMode, SC_SELTRANS_CELL, SC_SELTRANS_CELLS, SC_SELTRANS_DRAW_BITMAP, SC_SELTRANS_DRAW_BOOKMARK, SC_SELTRANS_DRAW_GRAPHIC, SC_SELTRANS_DRAW_OLE, and SC_SELTRANS_DRAW_OTHER.
|
private |
Definition at line 253 of file seltrans.cxx.
References ScViewFunc::CopyToClip(), SfxObjectShell::FillTransferableObjectDescriptor(), tools::SvRef< typename T >::get(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScMarkData::GetMarkArea(), ScViewData::GetMarkData(), SfxObjectShell::GetMedium(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScViewData::GetView(), ScTabView::GetViewData(), ScDocument::HasOLEObjectsInArea(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), TransferableObjectDescriptor::maDisplayName, ScMarkData::MarkToSimple(), mxCellData, pView, SCDOCMODE_CLIP, and ScDrawLayer::SetGlobalDrawPersist().
Referenced by GetCellData().
|
private |
Definition at line 308 of file seltrans.cxx.
References ScDrawView::CheckOle(), E3dView::CreateMarkedObjModel(), SfxObjectShell::FillTransferableObjectDescriptor(), tools::SvRef< typename T >::get(), ScViewData::GetDocShell(), SdrMarkView::GetMarkedObjectList(), SfxObjectShell::GetMedium(), ScTabView::GetScDrawView(), INetURLObject::GetURLNoPass(), SfxMedium::GetURLObject(), ScTabView::GetViewData(), TransferableObjectDescriptor::maDisplayName, mxDrawData, pView, and ScDrawLayer::SetGlobalDrawPersist().
Referenced by GetDrawData().
|
static |
Definition at line 70 of file seltrans.cxx.
References ScRange::aEnd, ScRange::aStart, eMode, SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), ScViewData::GetMarkData(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), ScTabView::GetScDrawView(), ScViewData::GetSimpleArea(), ScTabView::GetViewData(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), lcl_IsURLButton(), pView, SC_MARK_SIMPLE, SC_MARK_SIMPLE_FILTERED, SC_SELTRANS_CELL, SC_SELTRANS_CELLS, SC_SELTRANS_DRAW_BITMAP, SC_SELTRANS_DRAW_BOOKMARK, SC_SELTRANS_DRAW_GRAPHIC, SC_SELTRANS_DRAW_OLE, SC_SELTRANS_DRAW_OTHER, SC_SELTRANS_INVALID, and ScSelectionTransferObj().
Referenced by ScTabView::CheckSelectionTransfer().
void ScSelectionTransferObj::ForgetView | ( | ) |
Definition at line 165 of file seltrans.cxx.
References eMode, mxCellData, mxDrawData, pView, and SC_SELTRANS_INVALID.
Referenced by ScTabView::CheckSelectionTransfer(), ObjectReleased(), ~ScSelectionTransferObj(), and ScTabView::~ScTabView().
ScTransferObj * ScSelectionTransferObj::GetCellData | ( | ) |
Definition at line 353 of file seltrans.cxx.
References CreateCellData(), eMode, mxCellData, SC_SELTRANS_CELL, and SC_SELTRANS_CELLS.
Referenced by GetData(), and ScGridWindow::PasteSelection().
|
overridevirtual |
Implements TransferableHelper.
Definition at line 369 of file seltrans.cxx.
References aHelper, eMode, GetCellData(), GetDrawData(), SC_SELTRANS_CELL, SC_SELTRANS_CELLS, SC_SELTRANS_DRAW_BITMAP, SC_SELTRANS_DRAW_BOOKMARK, SC_SELTRANS_DRAW_GRAPHIC, SC_SELTRANS_DRAW_OLE, SC_SELTRANS_DRAW_OTHER, and TransferableHelper::SetAny().
ScDrawTransferObj * ScSelectionTransferObj::GetDrawData | ( | ) |
Definition at line 360 of file seltrans.cxx.
References CreateDrawData(), eMode, mxDrawData, SC_SELTRANS_DRAW_BITMAP, SC_SELTRANS_DRAW_BOOKMARK, SC_SELTRANS_DRAW_GRAPHIC, SC_SELTRANS_DRAW_OLE, and SC_SELTRANS_DRAW_OTHER.
Referenced by GetData(), and ScGridWindow::PasteSelection().
|
inline |
Definition at line 61 of file seltrans.hxx.
References pView.
Referenced by ScTabView::~ScTabView().
|
overridevirtual |
Reimplemented from TransferableHelper.
Definition at line 417 of file seltrans.cxx.
References eMode, SC_SELTRANS_CELL, and SC_SELTRANS_CELLS.
|
overridevirtual |
Reimplemented from TransferableHelper.
Definition at line 404 of file seltrans.cxx.
References ForgetView(), ScModule::GetSelectionTransfer(), TransferableHelper::ObjectReleased(), SC_MOD, and ScModule::SetSelectionTransfer().
|
private |
Definition at line 45 of file seltrans.hxx.
Referenced by AddSupportedFormats(), CreateFromView(), ForgetView(), GetCellData(), GetData(), GetDrawData(), and isComplex().
|
private |
Definition at line 46 of file seltrans.hxx.
Referenced by CreateCellData(), ForgetView(), and GetCellData().
|
private |
Definition at line 47 of file seltrans.hxx.
Referenced by CreateDrawData(), ForgetView(), and GetDrawData().
|
private |
Definition at line 44 of file seltrans.hxx.
Referenced by CreateCellData(), CreateDrawData(), CreateFromView(), ForgetView(), GetView(), and ~ScSelectionTransferObj().