LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
SwTransferable Class Reference

#include <swdtflvr.hxx>

Inheritance diagram for SwTransferable:
[legend]
Collaboration diagram for SwTransferable:
[legend]

Public Member Functions

 SwTransferable (SwWrtShell &)
 
virtual ~SwTransferable () override
 
int Cut ()
 
int Copy (bool bIsCut=false)
 
int PrepareForCopy (bool bIsCut=false)
 
void CalculateAndCopy ()
 
bool CopyGlossary (SwTextBlocks &rGlossary, const OUString &rStr)
 
void RemoveDDELinkFormat (const vcl::Window &rWin)
 
void StartDrag (vcl::Window *pWin, const Point &rPos)
 
SwWrtShellGetShell ()
 
void SetCleanUp (bool bFlag)
 
void Invalidate ()
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 
- Public Member Functions inherited from TransferableHelper
void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToSelection (vcl::Window *pWindow) const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 

Static Public Member Functions

static SotExchangeDest GetSotDestination (const SwWrtShell &rSh)
 
static void InitOle (SfxObjectShell *pDoc)
 
static bool IsPaste (const SwWrtShell &, const TransferableDataHelper &)
 
static bool Paste (SwWrtShell &, TransferableDataHelper &, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA, bool bIgnoreComments=false)
 
static bool PasteData (TransferableDataHelper &rData, SwWrtShell &rSh, sal_uInt8 nAction, SotExchangeActionFlags nActionFlags, SotClipboardFormatId nFormat, SotExchangeDest nDestination, bool bIsPasteFormat, bool bIsDefault, const Point *pDDPos=nullptr, sal_Int8 nDropAction=0, bool bPasteSelection=false, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA, bool bIgnoreComments=false, SwPasteContext *pContext=nullptr)
 
static bool IsPasteSpecial (const SwWrtShell &rWrtShell, const TransferableDataHelper &)
 
static bool PasteUnformatted (SwWrtShell &rSh, TransferableDataHelper &)
 
static void PrePasteSpecial (const SwWrtShell &rSh, TransferableDataHelper &, const VclPtr< SfxAbstractPasteDialog > &pDlg)
 PrePasteSpecial Prepares the given dialog without actually running it. More...
 
static bool PasteFormat (SwWrtShell &rSh, TransferableDataHelper &rData, SotClipboardFormatId nFormat)
 
static void FillClipFormatItem (const SwWrtShell &rSh, const TransferableDataHelper &rData, SvxClipboardFormatItem &rToFill)
 
static void CreateSelection (SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
 
static void ClearSelection (SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected Member Functions

virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual bool WriteObject (tools::SvRef< SotStorageStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
virtual void ObjectReleased () override
 
virtual sal_Bool SAL_CALL isComplex () override
 
- 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, const css::datatransfer::DataFlavor &rFlavor)
 
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)
 

Private Member Functions

css::uno::Reference< css::embed::XEmbeddedObject > FindOLEObj (sal_Int64 &nAspect) const
 
const GraphicFindOLEReplacementGraphic () const
 
void DeleteSelection ()
 
bool PrivateDrop (SwWrtShell &rSh, const Point &rDragPt, bool bMove, bool bIsXSelection)
 
bool PrivatePaste (SwWrtShell &rShell, SwPasteContext *pContext=nullptr)
 
void SetDataForDragAndDrop (const Point &rSttPos)
 
 SwTransferable (const SwTransferable &)=delete
 
SwTransferableoperator= (const SwTransferable &)=delete
 

Static Private Member Functions

static SwTransferableGetSwTransferable (const TransferableDataHelper &rData)
 
static void SetSelInShell (SwWrtShell &, bool, const Point *)
 
static bool CheckForURLOrLNKFile (TransferableDataHelper &rData, OUString &rFileName, OUString *pTitle=nullptr)
 
static bool TestAllowedFormat (const TransferableDataHelper &rData, SotClipboardFormatId nFormat, SotExchangeDest nDestination)
 
static bool PasteFileContent (TransferableDataHelper &, SwWrtShell &rSh, SotClipboardFormatId nFormat, bool bMsg, bool bIgnoreComments=false)
 
static bool PasteOLE (TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat, SotExchangeActionFlags nActionFlags, bool bMsg)
 
static bool PasteTargetURL (TransferableDataHelper &rData, SwWrtShell &rSh, SwPasteSdr nAction, const Point *pPt, bool bInsertGRF)
 
static bool PasteDDE (TransferableDataHelper &rData, SwWrtShell &rWrtShell, bool bReReadGrf, bool bMsg)
 
static bool PasteSdrFormat (TransferableDataHelper &rData, SwWrtShell &rSh, SwPasteSdr nAction, const Point *pPt, SotExchangeActionFlags nActionFlags, bool bNeedToSelectBeforePaste)
 
static bool PasteGrf (TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat, SwPasteSdr nAction, const Point *pPt, SotExchangeActionFlags nActionFlags, sal_Int8 nDropAction, bool bNeedToSelectBeforePaste, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA)
 
static bool PasteImageMap (TransferableDataHelper &rData, SwWrtShell &rSh)
 
static bool PasteAsHyperlink (TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat)
 
static bool PasteFileName (TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat, SwPasteSdr nAction, const Point *pPt, SotExchangeActionFlags nActionFlags, bool *graphicInserted)
 
static bool PasteDBData (TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat, bool bLink, const Point *pDragPt, bool bMsg)
 
static bool PasteFileList (TransferableDataHelper &rData, SwWrtShell &rSh, bool bLink, const Point *pPt, bool bMsg)
 

Private Attributes

SfxObjectShellLock m_aDocShellRef
 
TransferableObjectDescriptor m_aObjDesc
 
tools::SvRef< sfx2::SvBaseLinkm_xDdeLink
 
SwWrtShellm_pWrtShell
 
const SwFrameShellm_pCreatorView
 
std::unique_ptr< SwDocFac, o3tl::default_delete< SwDocFac > > m_pClpDocFac
 
std::unique_ptr< Graphicm_pClpGraphic
 
std::unique_ptr< Graphicm_pClpBitmap
 
Graphicm_pOrigGraphic
 
std::unique_ptr< INetBookmarkm_pBookmark
 
std::unique_ptr< ImageMapm_pImageMap
 
std::unique_ptr< INetImagem_pTargetURL
 
TransferBufferType m_eBufferType
 
bool m_bOldIdle:1
 
bool m_bCleanUp:1
 

Friends

class SwView_Impl
 

Detailed Description

Definition at line 66 of file swdtflvr.hxx.

Constructor & Destructor Documentation

SwTransferable::SwTransferable ( const SwTransferable )
privatedelete

Referenced by CreateSelection().

SwTransferable::SwTransferable ( SwWrtShell rSh)
SwTransferable::~SwTransferable ( )
overridevirtual

Member Function Documentation

void SwTransferable::AddSupportedFormats ( )
overrideprotectedvirtual
void SwTransferable::CalculateAndCopy ( )
bool SwTransferable::CheckForURLOrLNKFile ( TransferableDataHelper rData,
OUString &  rFileName,
OUString *  pTitle = nullptr 
)
staticprivate
void SwTransferable::ClearSelection ( SwWrtShell rSh,
const SwFrameShell pCreator = nullptr 
)
static
int SwTransferable::Copy ( bool  bIsCut = false)
bool SwTransferable::CopyGlossary ( SwTextBlocks rGlossary,
const OUString &  rStr 
)
void SwTransferable::CreateSelection ( SwWrtShell rSh,
const SwFrameShell pCreator = nullptr 
)
static
int SwTransferable::Cut ( )

Definition at line 840 of file swdtflvr.cxx.

References Copy(), and DeleteSelection().

void SwTransferable::DeleteSelection ( )
private
void SwTransferable::DragFinished ( sal_Int8  nDropAction)
overrideprotectedvirtual
void SwTransferable::FillClipFormatItem ( const SwWrtShell rSh,
const TransferableDataHelper rData,
SvxClipboardFormatItem rToFill 
)
static
uno::Reference< embed::XEmbeddedObject > SwTransferable::FindOLEObj ( sal_Int64 &  nAspect) const
private

Definition at line 353 of file swdtflvr.cxx.

References m_pClpDocFac, and Ole.

Referenced by GetData(), and PrepareForCopy().

const Graphic * SwTransferable::FindOLEReplacementGraphic ( ) const
private

Definition at line 370 of file swdtflvr.cxx.

References m_pClpDocFac, and Ole.

Referenced by GetData(), and PrepareForCopy().

bool SwTransferable::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprotectedvirtual

Implements TransferableHelper.

Definition at line 470 of file swdtflvr.cxx.

References SwViewShell::ActionPend(), SwContentAtPos::aFnd, DbForm, SfxObjectShell::DoInitNew(), FindOLEObj(), FindOLEReplacementGraphic(), g_bExecuteDrag, tools::SvRef< T >::get(), TransferableDataHelper::GetAny(), SwViewShell::GetAttrPool(), SwCursorShell::GetContentAtPos(), SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY(), SwView::GetDocShell(), IDocumentDrawModelAccess::GetDrawModel(), SwFEShell::GetDrawObjGraphic(), SwFEShell::GetFlyFrameAttr(), SotExchange::GetFormat(), Graphic::GetGDIMetaFile(), SwDoc::getIDocumentDrawModelAccess(), SwDoc::getIDocumentFieldsAccess(), SwFormatURL::GetMap(), SwWrtShell::GetSelectionType(), SwFormatURL::GetTargetFrameName(), SwDoc::GetTmpDocShell(), SwFormatURL::GetURL(), SwWrtShell::GetURLFromButton(), SwWrtShell::GetView(), Graphic, TransferableHelper::HasFormat(), SwCursorShell::HasMark(), uno::Any::hasValue(), InetAttr, InetField, InitOle(), SfxObjectShellLock::Is(), tools::SvRef< T >::is(), SwFEShell::IsFrameSelected(), SfxObjectShell::IsReadOnly(), lcl_GetDoc(), IDocumentFieldsAccess::LockExpFields(), m_aDocShellRef, m_aObjDesc, m_eBufferType, m_pBookmark, m_pClpBitmap, m_pClpDocFac, m_pClpGraphic, m_pImageMap, m_pOrigGraphic, m_pTargetURL, m_pWrtShell, m_xDdeLink, Ole, SwContentAtPos::pAttr, RES_TXTATR_INETFMT, RES_URL, SwWrtShell::SelectTextAttr(), TransferableHelper::SetAny(), TransferableHelper::SetBitmapEx(), TransferableHelper::SetGDIMetaFile(), TransferableHelper::SetGraphic(), TransferableHelper::SetImageMap(), TransferableHelper::SetINetBookmark(), TransferableHelper::SetINetImage(), TransferableHelper::SetObject(), SwDoc::SetTmpDocShell(), TransferableHelper::SetTransferableObjectDescriptor(), SwContentAtPos::sStr, SWTRANSFER_OBJECTTYPE_DDE, SWTRANSFER_OBJECTTYPE_DRAWMODEL, SWTRANSFER_OBJECTTYPE_HTML, SWTRANSFER_OBJECTTYPE_RICHTEXT, SWTRANSFER_OBJECTTYPE_RTF, SWTRANSFER_OBJECTTYPE_STRING, SWTRANSFER_OBJECTTYPE_SWOLE, and Text.

SwWrtShell* SwTransferable::GetShell ( )
inline

Definition at line 213 of file swdtflvr.hxx.

Referenced by SwEditWin::AcceptDrop(), and PrivateDrop().

sal_Int64 SwTransferable::getSomething ( const css::uno::Sequence< sal_Int8 > &  rId)
overridevirtual

Reimplemented from TransferableHelper.

Definition at line 3997 of file swdtflvr.cxx.

References TransferableHelper::getSomething().

SotExchangeDest SwTransferable::GetSotDestination ( const SwWrtShell rSh)
static
SwTransferable * SwTransferable::GetSwTransferable ( const TransferableDataHelper rData)
staticprivate
const Sequence< sal_Int8 > & SwTransferable::getUnoTunnelId ( )
static

Definition at line 3992 of file swdtflvr.cxx.

References sw::proofreadingiterator::get().

void SwTransferable::InitOle ( SfxObjectShell pDoc)
static
void SwTransferable::Invalidate ( )
inline

Definition at line 224 of file swdtflvr.hxx.

sal_Bool SAL_CALL SwTransferable::isComplex ( )
overrideprotectedvirtual
bool SwTransferable::IsPaste ( const SwWrtShell rSh,
const TransferableDataHelper rData 
)
static
bool SwTransferable::IsPasteSpecial ( const SwWrtShell rWrtShell,
const TransferableDataHelper rData 
)
static
void SwTransferable::ObjectReleased ( )
overrideprotectedvirtual

Reimplemented from TransferableHelper.

Definition at line 325 of file swdtflvr.cxx.

References SwModule::m_pDragDrop, SwModule::m_pXSelection, and SW_MOD.

SwTransferable& SwTransferable::operator= ( const SwTransferable )
privatedelete
bool SwTransferable::Paste ( SwWrtShell rSh,
TransferableDataHelper rData,
RndStdIds  nAnchorType = RndStdIds::FLY_AT_PARA,
bool  bIgnoreComments = false 
)
static
bool SwTransferable::PasteAsHyperlink ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat 
)
staticprivate
bool SwTransferable::PasteData ( TransferableDataHelper rData,
SwWrtShell rSh,
sal_uInt8  nAction,
SotExchangeActionFlags  nActionFlags,
SotClipboardFormatId  nFormat,
SotExchangeDest  nDestination,
bool  bIsPasteFormat,
bool  bIsDefault,
const Point pDDPos = nullptr,
sal_Int8  nDropAction = 0,
bool  bPasteSelection = false,
RndStdIds  nAnchorType = RndStdIds::FLY_AT_PARA,
bool  bIgnoreComments = false,
SwPasteContext pContext = nullptr 
)
static

Definition at line 1532 of file swdtflvr.cxx.

References SwView::AutoCaption(), CheckForURLOrLNKFile(), CNT_HasGrf, DND_ACTION_LINK, DND_ACTION_MOVE, EMBEDDED, SwWrtShell::EnterSelFrameMode(), EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_LINK, EXCHG_IN_ACTION_MOVE, EXCHG_INOUT_ACTION_NONE, EXCHG_OUT_ACTION_GET_ATTRIBUTES, EXCHG_OUT_ACTION_INSERT_BITMAP, EXCHG_OUT_ACTION_INSERT_DDE, EXCHG_OUT_ACTION_INSERT_DRAWOBJ, EXCHG_OUT_ACTION_INSERT_FILE, EXCHG_OUT_ACTION_INSERT_GDIMETAFILE, EXCHG_OUT_ACTION_INSERT_GRAPH, EXCHG_OUT_ACTION_INSERT_HTML, EXCHG_OUT_ACTION_INSERT_HYPERLINK, EXCHG_OUT_ACTION_INSERT_IMAGEMAP, EXCHG_OUT_ACTION_INSERT_INTERACTIVE, EXCHG_OUT_ACTION_INSERT_OLE, EXCHG_OUT_ACTION_INSERT_PRIVATE, EXCHG_OUT_ACTION_INSERT_STRING, EXCHG_OUT_ACTION_INSERT_SVXB, EXCHG_OUT_ACTION_MOVE_PRIVATE, EXCHG_OUT_ACTION_REPLACE_BITMAP, EXCHG_OUT_ACTION_REPLACE_DRAWOBJ, EXCHG_OUT_ACTION_REPLACE_GDIMETAFILE, EXCHG_OUT_ACTION_REPLACE_GRAPH, EXCHG_OUT_ACTION_REPLACE_IMAGEMAP, EXCHG_OUT_ACTION_REPLACE_SVXB, SwEditShell::GetCntType(), NaviContentBookmark::GetDefaultDragType(), INetBookmark::GetDescription(), SwView::GetDocShell(), SwFEShell::GetFormatFromObj(), TransferableDataHelper::GetINetBookmark(), TransferableDataHelper::GetString(), GetSwTransferable(), INetBookmark::GetURL(), SwWrtShell::GetView(), GRAPHIC_CAP, SwWrtShell::HasSelection(), Insert, SwEditShell::InsertURL(), SwFEShell::IsFrameSelected(), SwCursorShell::IsTableMode(), LINK, SwModule::m_pDragDrop, SwModule::m_pXSelection, SwWrtShell::NavigatorPaste(), NONE, NaviContentBookmark::Paste(), PasteAsHyperlink(), PasteDBData(), PasteDDE(), PasteFileContent(), PasteFileList(), PasteFileName(), PasteGrf(), PasteImageMap(), PasteOLE(), PasteSdrFormat(), PasteTargetURL(), PrivateDrop(), Replace, SetAttr, SetSelInShell(), SwView::StopShellTimer(), and SW_MOD.

Referenced by SwEditWin::Command(), SwEditWin::ExecuteDrop(), Paste(), and PasteFormat().

bool SwTransferable::PasteDBData ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
bool  bLink,
const Point pDragPt,
bool  bMsg 
)
staticprivate
bool SwTransferable::PasteDDE ( TransferableDataHelper rData,
SwWrtShell rWrtShell,
bool  bReReadGrf,
bool  bMsg 
)
staticprivate
bool SwTransferable::PasteFileContent ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
bool  bMsg,
bool  bIgnoreComments = false 
)
staticprivate
bool SwTransferable::PasteFileList ( TransferableDataHelper rData,
SwWrtShell rSh,
bool  bLink,
const Point pPt,
bool  bMsg 
)
staticprivate
bool SwTransferable::PasteFileName ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
SwPasteSdr  nAction,
const Point pPt,
SotExchangeActionFlags  nActionFlags,
bool *  graphicInserted 
)
staticprivate
bool SwTransferable::PasteFormat ( SwWrtShell rSh,
TransferableDataHelper rData,
SotClipboardFormatId  nFormat 
)
static
bool SwTransferable::PasteGrf ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
SwPasteSdr  nAction,
const Point pPt,
SotExchangeActionFlags  nActionFlags,
sal_Int8  nDropAction,
bool  bNeedToSelectBeforePaste,
RndStdIds  nAnchorType = RndStdIds::FLY_AT_PARA 
)
staticprivate
bool SwTransferable::PasteImageMap ( TransferableDataHelper rData,
SwWrtShell rSh 
)
staticprivate
bool SwTransferable::PasteOLE ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
SotExchangeActionFlags  nActionFlags,
bool  bMsg 
)
staticprivate
bool SwTransferable::PasteSdrFormat ( TransferableDataHelper rData,
SwWrtShell rSh,
SwPasteSdr  nAction,
const Point pPt,
SotExchangeActionFlags  nActionFlags,
bool  bNeedToSelectBeforePaste 
)
staticprivate
bool SwTransferable::PasteTargetURL ( TransferableDataHelper rData,
SwWrtShell rSh,
SwPasteSdr  nAction,
const Point pPt,
bool  bInsertGRF 
)
staticprivate
bool SwTransferable::PasteUnformatted ( SwWrtShell rSh,
TransferableDataHelper rData 
)
static

Definition at line 3275 of file swdtflvr.cxx.

References PasteFormat().

Referenced by SwBaseShell::ExecClpbrd().

int SwTransferable::PrepareForCopy ( bool  bIsCut = false)

Definition at line 879 of file swdtflvr.cxx.

References TransferableHelper::AddFormat(), SwFEShell::Copy(), SwCursorShell::CreateCursor(), DbForm, IDocumentMarkAccess::DDE_BOOKMARK, IDocumentMarkAccess::deleteMark(), Document, DocumentWord, SfxObjectShell::DoInitNew(), Drawing, DrawObject, FindOLEObj(), FindOLEReplacementGraphic(), IDocumentMarkAccess::getAllMarksBegin(), IDocumentMarkAccess::getAllMarksEnd(), SwViewShell::GetAttrPool(), Graphic::GetBitmapEx(), SfxObjectShell::GetCreateMode(), TransferableDataHelper::GetDataFlavorExVector(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwDoc::GetDocShell(), SwFEShell::GetDrawObjGraphic(), SwFEShell::GetFlyFrameAttr(), SwEditShell::GetGraphic(), SwEditShell::GetGrfNms(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentMarkAccess(), SwFormatURL::GetMap(), SwFEShell::GetObjSize(), SwWrtShell::GetSelectionType(), SwFEShell::GetTableInsertMode(), SwFormatURL::GetTargetFrameName(), SwDoc::GetTmpDocShell(), TransferableDataHelper::GetTransferable(), IDocumentMarkAccess::GetType(), SwFormatURL::GetURL(), SwWrtShell::GetURLFromButton(), SwWrtShell::GetView(), Graphic, SwFEShell::HasWholeTabSelection(), InetField, InitOle(), SwWrtShell::IntelligentCut(), SfxObjectShellLock::Is(), SwWrtShell::IsAddMode(), BitmapEx::IsEmpty(), SwFEShell::IsFrameSelected(), SwFEShell::IsObjSelected(), SwCursorShell::IsSelection(), Graphic::IsSupportedGraphic(), lcl_GetDoc(), IDocumentFieldsAccess::LockExpFields(), OutputDevice::LogicToLogic(), m_aDocShellRef, m_aObjDesc, m_eBufferType, m_pClpBitmap, m_pClpDocFac, m_pClpGraphic, m_pImageMap, m_pOrigGraphic, m_pTargetURL, m_pWrtShell, m_xDdeLink, TransferableObjectDescriptor::maSize, SwWrtShell::NO_WORD, Ole, OLESIZE, TransferableHelper::PrepareOLE(), RES_URL, SwTable::SEARCH_COL, SwTable::SEARCH_NONE, SwTable::SEARCH_ROW, SwFEShell::SetTableInsertMode(), SwDoc::SetTmpDocShell(), SwCursorShell::ShouldWait(), Table, TableCell, TableCol, and TableRow.

Referenced by Copy(), and SwXTextView::getTransferable().

void SwTransferable::PrePasteSpecial ( const SwWrtShell rSh,
TransferableDataHelper rData,
const VclPtr< SfxAbstractPasteDialog > &  pDlg 
)
static
bool SwTransferable::PrivateDrop ( SwWrtShell rSh,
const Point rDragPt,
bool  bMove,
bool  bIsXSelection 
)
private

Definition at line 3690 of file swdtflvr.cxx.

References SwRewriter::AddRule(), SwEditShell::CalcLayout(), SwEditShell::Delete(), SwCursorShell::DeleteCurrent, SwEditShell::DelINetAttrWithText(), SwWrtShell::DelRight(), SwCursorShell::DestroyCursor(), DrawObject, SwCursorShell::EndAction(), SwWrtShell::EndSelect(), SwEditShell::EndUndo(), SwWrtShell::EnterSelFrameMode(), SwWrtShell::EnterStdMode(), SfxDispatcher::Execute(), SwCursorShell::ExtendSelection(), FN_TABLE_DELETE_TABLE, g_bDDINetAttr, g_bFrameDrag, SwViewShell::GetAttrPool(), SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SwFEShell::GetFlyFrameAttr(), SwFEShell::GetFormatFromObj(), SwEditShell::GetGraphic(), SwEditShell::GetGrfNms(), SwFEShell::GetObjRect(), SwWrtShell::GetSelDescr(), SwWrtShell::GetSelectionType(), GetShell(), SwCursorShell::GetSwCursor(), INetBookmark::GetURL(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwCursorShell::GoNextCursor(), SwCursorShell::GoPrevCursor(), Graphic, SwFEShell::HasWholeTabSelection(), SwCursorShell::HideCursor(), InetField, SwWrtShell::IntelligentCut(), SwWrtShell::IsAddMode(), SwWrtShell::IsBlockMode(), SwWrtShell::IsEndWrd(), SwFEShell::IsFrameSelected(), SwFEShell::IsInsideSelectedObj(), SwCursorShell::IsInWord(), SwFEShell::IsObjSelected(), SwWrtShell::IsSelFrameMode(), SwFEShell::IsSelObjProtected(), SwCursorShell::IsStartWord(), SwCursorShell::IsSttPara(), SwCursorShell::IsTableMode(), SwCursorShell::KillPams(), SwWrtShell::LeaveSelFrameMode(), m_eBufferType, m_pBookmark, NONE, SwWrtShell::Pop(), SwRect::Pos(), Pos, SwCursorShell::Push(), SwEditShell::ReRead(), RES_TXTATR_INETFMT, RES_URL, SwFEShell::SelectObj(), SwWrtShell::SelectTextAttr(), SwFEShell::SetFlyFrameAttr(), SwPaM::SetMark(), SwFormatURL::SetURL(), SwCursorShell::ShowCursor(), SwCursorShell::StartAction(), SwEditShell::StartUndo(), SwWrtShell::SttSelect(), SwCursorShell::SwapPam(), SwCursorShell::TestCurrPam(), UI_DRAG_AND_COPY, UI_DRAG_AND_MOVE, UndoArg1, SwWrtShell::UnSelectFrame(), SwCursorShell::UnSetVisibleCursor(), SwWrtShell::WORD_SPACE_AFTER, and SwWrtShell::WORD_SPACE_BEFORE.

Referenced by PasteData().

bool SwTransferable::PrivatePaste ( SwWrtShell rShell,
SwPasteContext pContext = nullptr 
)
private
void SwTransferable::RemoveDDELinkFormat ( const vcl::Window rWin)
void SwTransferable::SetCleanUp ( bool  bFlag)
inline

Definition at line 214 of file swdtflvr.hxx.

void SwTransferable::SetDataForDragAndDrop ( const Point rSttPos)
private
void SwTransferable::SetSelInShell ( SwWrtShell rSh,
bool  bSelectFrame,
const Point pPt 
)
staticprivate
void SwTransferable::StartDrag ( vcl::Window pWin,
const Point rPos 
)
bool SwTransferable::TestAllowedFormat ( const TransferableDataHelper rData,
SotClipboardFormatId  nFormat,
SotExchangeDest  nDestination 
)
staticprivate
bool SwTransferable::WriteObject ( tools::SvRef< SotStorageStream > &  rxOStm,
void pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
overrideprotectedvirtual

Friends And Related Function Documentation

friend class SwView_Impl
friend

Definition at line 68 of file swdtflvr.hxx.

Member Data Documentation

SfxObjectShellLock SwTransferable::m_aDocShellRef
private

Definition at line 69 of file swdtflvr.hxx.

Referenced by CopyGlossary(), GetData(), PrepareForCopy(), and ~SwTransferable().

TransferableObjectDescriptor SwTransferable::m_aObjDesc
private
bool SwTransferable::m_bCleanUp
private

Definition at line 88 of file swdtflvr.hxx.

Referenced by DragFinished(), and StartDrag().

bool SwTransferable::m_bOldIdle
private

Definition at line 87 of file swdtflvr.hxx.

Referenced by DragFinished(), and StartDrag().

TransferBufferType SwTransferable::m_eBufferType
private
std::unique_ptr<INetBookmark> SwTransferable::m_pBookmark
private

Definition at line 81 of file swdtflvr.hxx.

Referenced by GetData(), and PrivateDrop().

std::unique_ptr<Graphic> SwTransferable::m_pClpBitmap
private

Definition at line 79 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().

std::unique_ptr<SwDocFac, o3tl::default_delete<SwDocFac> > SwTransferable::m_pClpDocFac
private
std::unique_ptr<Graphic> SwTransferable::m_pClpGraphic
private

Definition at line 78 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().

const SwFrameShell* SwTransferable::m_pCreatorView
private

Definition at line 76 of file swdtflvr.hxx.

Referenced by ClearSelection().

std::unique_ptr<ImageMap> SwTransferable::m_pImageMap
private

Definition at line 82 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().

Graphic* SwTransferable::m_pOrigGraphic
private

Definition at line 80 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().

std::unique_ptr<INetImage> SwTransferable::m_pTargetURL
private

Definition at line 83 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().

SwWrtShell* SwTransferable::m_pWrtShell
private
tools::SvRef<sfx2::SvBaseLink> SwTransferable::m_xDdeLink
private

Definition at line 71 of file swdtflvr.hxx.

Referenced by GetData(), PrepareForCopy(), and ~SwTransferable().


The documentation for this class was generated from the following files: