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

#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 PrepareForCopyTextRange (SwPaM &rPaM)
 
void CalculateAndCopy ()
 
bool CopyGlossary (SwTextBlocks &rGlossary, const OUString &rStr)
 
void RemoveDDELinkFormat (vcl::Window &rWin)
 
void StartDrag (vcl::Window *pWin, const Point &rPos)
 
SwWrtShellGetShell ()
 
void SetCleanUp (bool bFlag)
 
bool PrivateDrop (SwWrtShell &rSh, const Point &rDragPt, bool bMove, bool bIsXSelection)
 
void Invalidate ()
 
- 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 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, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT)
 
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, PasteTableType nPaste=PasteTableType::PASTE_DEFAULT)
 
static bool IsPasteSpecial (const SwWrtShell &rWrtShell, const TransferableDataHelper &)
 
static bool IsPasteOwnFormat (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 (const SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
 
static void SelectPasteFormat (TransferableDataHelper &rData, sal_uInt8 &nAction, SotClipboardFormatId &nFormat)
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearPrimarySelection ()
 

Private Member Functions

css::uno::Reference< css::embed::XEmbeddedObject > FindOLEObj (sal_Int64 &nAspect) const
 
const GraphicFindOLEReplacementGraphic () const
 
void DeleteSelection ()
 
bool PrivatePaste (SwWrtShell &rShell, SwPasteContext *pContext=nullptr, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT)
 
void SetDataForDragAndDrop (const Point &rSttPos)
 
 SwTransferable (const SwTransferable &)=delete
 
SwTransferableoperator= (const SwTransferable &)=delete
 
virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual bool WriteObject (tools::SvRef< SotTempStream > &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
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 

Static Private Member Functions

static SwTransferableGetSwTransferable (const TransferableDataHelper &rData)
 
static void SetSelInShell (SwWrtShell &, bool, const Point *)
 
static bool CheckForURLOrLNKFile (const TransferableDataHelper &rData, OUString &rFileName, OUString *pTitle=nullptr)
 
static bool TestAllowedFormat (const TransferableDataHelper &rData, SotClipboardFormatId nFormat, SotExchangeDest nDestination)
 
static bool PasteFileContent (const 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 (const TransferableDataHelper &rData, SwWrtShell &rSh, SwPasteSdr nAction, const Point *pPt, bool bInsertGRF)
 
static bool PasteDDE (const TransferableDataHelper &rData, SwWrtShell &rWrtShell, bool bReReadGrf, bool bMsg)
 
static bool PasteSdrFormat (const TransferableDataHelper &rData, SwWrtShell &rSh, SwPasteSdr nAction, const Point *pPt, SotExchangeActionFlags nActionFlags, bool bNeedToSelectBeforePaste)
 
static bool PasteGrf (const 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 (const TransferableDataHelper &rData, SwWrtShell &rSh)
 
static bool PasteAsHyperlink (const 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 (const TransferableDataHelper &rData, SwWrtShell &rSh, SotClipboardFormatId nFormat, bool bLink, const Point *pDragPt, bool bMsg)
 
static bool PasteFileList (const 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::optional< Graphicm_oClpGraphic
 
std::optional< Graphicm_oClpBitmap
 
Graphicm_pOrigGraphic
 
std::optional< INetBookmarkm_oBookmark
 
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
 

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
 

Detailed Description

Definition at line 76 of file swdtflvr.hxx.

Constructor & Destructor Documentation

◆ SwTransferable() [1/2]

SwTransferable::SwTransferable ( const SwTransferable )
privatedelete

Referenced by CreateSelection().

◆ SwTransferable() [2/2]

SwTransferable::SwTransferable ( SwWrtShell rSh)

◆ ~SwTransferable()

SwTransferable::~SwTransferable ( )
overridevirtual

Member Function Documentation

◆ AddSupportedFormats()

void SwTransferable::AddSupportedFormats ( )
overrideprivatevirtual

◆ CalculateAndCopy()

void SwTransferable::CalculateAndCopy ( )

◆ CheckForURLOrLNKFile()

bool SwTransferable::CheckForURLOrLNKFile ( const TransferableDataHelper rData,
OUString &  rFileName,
OUString *  pTitle = nullptr 
)
staticprivate

◆ ClearSelection()

void SwTransferable::ClearSelection ( const SwWrtShell rSh,
const SwFrameShell pCreator = nullptr 
)
static

◆ Copy()

int SwTransferable::Copy ( bool  bIsCut = false)

◆ CopyGlossary()

bool SwTransferable::CopyGlossary ( SwTextBlocks rGlossary,
const OUString &  rStr 
)

◆ CreateSelection()

void SwTransferable::CreateSelection ( SwWrtShell rSh,
const SwFrameShell pCreator = nullptr 
)
static

◆ Cut()

int SwTransferable::Cut ( )

Definition at line 834 of file swdtflvr.cxx.

References Copy(), and DeleteSelection().

◆ DeleteSelection()

void SwTransferable::DeleteSelection ( )
private

◆ DragFinished()

void SwTransferable::DragFinished ( sal_Int8  nDropAction)
overrideprivatevirtual

◆ FillClipFormatItem()

void SwTransferable::FillClipFormatItem ( const SwWrtShell rSh,
const TransferableDataHelper rData,
SvxClipboardFormatItem rToFill 
)
static

◆ FindOLEObj()

uno::Reference< embed::XEmbeddedObject > SwTransferable::FindOLEObj ( sal_Int64 &  nAspect) const
private

◆ FindOLEReplacementGraphic()

const Graphic * SwTransferable::FindOLEReplacementGraphic ( ) const
private

◆ GetData()

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

Implements TransferableHelper.

Definition at line 474 of file swdtflvr.cxx.

References SwViewShell::ActionPend(), SwContentAtPos::aFnd, DbForm, SfxObjectShell::DoInitNew(), DrawObject, FindOLEObj(), FindOLEReplacementGraphic(), g_bExecuteDrag, tools::SvRef< typename T >::get(), SfxItemSet::Get(), TransferableDataHelper::GetAny(), SwViewShell::GetAttrPool(), GetBitmapEx(), 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(), SwFormatINetFormat::GetValue(), SwWrtShell::GetView(), Graphic, TransferableHelper::HasFormat(), SwCursorShell::HasMark(), uno::Any::hasValue(), InetAttr, InetField, InitOle(), SfxObjectShellLock::Is(), tools::SvRef< typename T >::is(), SwFEShell::IsFrameSelected(), SfxObjectShell::IsReadOnly(), lcl_GetDoc(), IDocumentFieldsAccess::LockExpFields(), m_aDocShellRef, m_aObjDesc, m_eBufferType, m_oBookmark, m_oClpBitmap, m_oClpGraphic, m_pClpDocFac, 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.

◆ GetShell()

SwWrtShell * SwTransferable::GetShell ( )
inline

Definition at line 224 of file swdtflvr.hxx.

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

◆ GetSotDestination()

SotExchangeDest SwTransferable::GetSotDestination ( const SwWrtShell rSh)
static

◆ GetSwTransferable()

SwTransferable * SwTransferable::GetSwTransferable ( const TransferableDataHelper rData)
staticprivate

◆ InitOle()

void SwTransferable::InitOle ( SfxObjectShell pDoc)
static

◆ Invalidate()

void SwTransferable::Invalidate ( )
inline

Definition at line 239 of file swdtflvr.hxx.

◆ isComplex()

sal_Bool SAL_CALL SwTransferable::isComplex ( )
overrideprivatevirtual

◆ IsPaste()

bool SwTransferable::IsPaste ( const SwWrtShell rSh,
const TransferableDataHelper rData 
)
static

◆ IsPasteOwnFormat()

bool SwTransferable::IsPasteOwnFormat ( const TransferableDataHelper rData)
static

Definition at line 3392 of file swdtflvr.cxx.

References GetSwTransferable().

Referenced by SwView::IsPasteSpreadsheet().

◆ IsPasteSpecial()

bool SwTransferable::IsPasteSpecial ( const SwWrtShell rWrtShell,
const TransferableDataHelper rData 
)
static

◆ ObjectReleased()

void SwTransferable::ObjectReleased ( )
overrideprivatevirtual

Reimplemented from TransferableHelper.

Definition at line 328 of file swdtflvr.cxx.

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

◆ operator=()

SwTransferable & SwTransferable::operator= ( const SwTransferable )
privatedelete

References Copy, and Cut.

◆ Paste()

bool SwTransferable::Paste ( SwWrtShell rSh,
TransferableDataHelper rData,
RndStdIds  nAnchorType = RndStdIds::FLY_AT_PARA,
bool  bIgnoreComments = false,
PasteTableType  ePasteTable = PasteTableType::PASTE_DEFAULT 
)
static

Definition at line 1455 of file swdtflvr.cxx.

References a, SwViewShell::ActionPend(), IDocumentMarkAccess::deleteMark(), SwEditShell::DoesUndo(), EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_DEFAULT, EXCHG_IN_ACTION_MOVE, EXCHG_INOUT_ACTION_NONE, EXCHG_OUT_ACTION_INSERT_DRAWOBJ, EXCHG_OUT_ACTION_INSERT_PRIVATE, EXCHG_OUT_ACTION_INSERT_STRING, SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), SwNode::FindTableBoxStartNode(), SwNode::FindTableNode(), FN_CHAR_LEFT, FN_LINE_UP, FN_PARAM_INSERT_AFTER, FN_PASTE_NESTED_TABLE, FN_START_OF_DOCUMENT, FN_TABLE_DELETE_TABLE, FN_TABLE_INSERT_COL_BEFORE, FN_TABLE_INSERT_ROW_BEFORE, FN_TABLE_PASTE_COL_BEFORE, FN_TABLE_PASTE_ROW_BEFORE, FN_TABLE_SELECT_ALL, SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), TransferableDataHelper::GetDataFlavorExVector(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SotExchange::GetExchangeAction(), SwTable::GetFrameFormat(), SwViewShell::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwFormat::GetName(), SwPaM::GetPoint(), SwPaM::GetPointNode(), IDocumentRedlineAccess::GetRedlineFlags(), GetSotDestination(), TransferableDataHelper::GetString(), GetSwTransferable(), SwTableNode::GetTable(), SwFEShell::GetTableInsertMode(), o3tl::getToken(), comphelper::string::getTokenCount(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), TransferableDataHelper::GetXTransferable(), SwWrtShell::GotoMark(), TransferableDataHelper::HasFormat(), Ignore, SwDoc::IsInTable(), lcl_getLevel(), lcl_getTransferPointer(), On, PASTE_COLUMN, PASTE_ROW, PASTE_TABLE, PasteData(), RES_PRINT(), SwTable::SEARCH_NONE, SwTable::SEARCH_ROW, SelectPasteFormat(), SwCursorShell::SetBookmark(), IDocumentRedlineAccess::SetRedlineFlags(), SwDoc::SetRowNotTracked(), and IDocumentMarkAccess::UNO_BOOKMARK.

Referenced by SwBaseShell::ExecClpbrd(), SwXTextView::insertTransferable(), and SwTranslateHelper::PasteHTMLToPaM().

◆ PasteAsHyperlink()

bool SwTransferable::PasteAsHyperlink ( const TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat 
)
staticprivate

◆ PasteData()

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,
PasteTableType  nPaste = PasteTableType::PASTE_DEFAULT 
)
static

Definition at line 1706 of file swdtflvr.cxx.

References SwView::AutoCaption(), CheckForURLOrLNKFile(), CNT_HasGrf, DND_ACTION_LINK, DND_ACTION_MOVE, 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(), SwCursorShell::GetCursorCnt(), NaviContentBookmark::GetDefaultDragType(), INetBookmark::GetDescription(), SwView::GetDocShell(), SwFEShell::GetFormatFromObj(), TransferableDataHelper::GetINetBookmark(), SwCursorShell::GetSelText(), TransferableDataHelper::GetString(), GetSwTransferable(), INetBookmark::GetURL(), SwWrtShell::GetView(), GRAPHIC_CAP, SwWrtShell::HasSelection(), Insert, SwEditShell::InsertURL(), SwFEShell::IsFrameSelected(), SwCursorShell::IsTableMode(), SwModule::m_pDragDrop, SwModule::m_pXSelection, SwWrtShell::NavigatorPaste(), NaviContentBookmark::Paste(), PasteAsHyperlink(), PasteDBData(), PasteDDE(), PasteFileContent(), PasteFileList(), PasteFileName(), PasteGrf(), PasteImageMap(), PasteOLE(), PasteSdrFormat(), PasteTargetURL(), PrivateDrop(), Replace, SetAttr, SetSelInShell(), SwView::StopShellTimer(), SW_MOD, and SwCursorShell::TestCurrPam().

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

◆ PasteDBData()

bool SwTransferable::PasteDBData ( const TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
bool  bLink,
const Point pDragPt,
bool  bMsg 
)
staticprivate

◆ PasteDDE()

bool SwTransferable::PasteDDE ( const TransferableDataHelper rData,
SwWrtShell rWrtShell,
bool  bReReadGrf,
bool  bMsg 
)
staticprivate

◆ PasteFileContent()

bool SwTransferable::PasteFileContent ( const TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
bool  bMsg,
bool  bIgnoreComments = false 
)
staticprivate

◆ PasteFileList()

bool SwTransferable::PasteFileList ( const TransferableDataHelper rData,
SwWrtShell rSh,
bool  bLink,
const Point pPt,
bool  bMsg 
)
staticprivate

◆ PasteFileName()

bool SwTransferable::PasteFileName ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
SwPasteSdr  nAction,
const Point pPt,
SotExchangeActionFlags  nActionFlags,
bool *  graphicInserted 
)
staticprivate

◆ PasteFormat()

bool SwTransferable::PasteFormat ( SwWrtShell rSh,
TransferableDataHelper rData,
SotClipboardFormatId  nFormat 
)
static

◆ PasteGrf()

bool SwTransferable::PasteGrf ( const 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

◆ PasteImageMap()

bool SwTransferable::PasteImageMap ( const TransferableDataHelper rData,
SwWrtShell rSh 
)
staticprivate

◆ PasteOLE()

bool SwTransferable::PasteOLE ( TransferableDataHelper rData,
SwWrtShell rSh,
SotClipboardFormatId  nFormat,
SotExchangeActionFlags  nActionFlags,
bool  bMsg 
)
staticprivate

◆ PasteSdrFormat()

bool SwTransferable::PasteSdrFormat ( const TransferableDataHelper rData,
SwWrtShell rSh,
SwPasteSdr  nAction,
const Point pPt,
SotExchangeActionFlags  nActionFlags,
bool  bNeedToSelectBeforePaste 
)
staticprivate

◆ PasteTargetURL()

bool SwTransferable::PasteTargetURL ( const TransferableDataHelper rData,
SwWrtShell rSh,
SwPasteSdr  nAction,
const Point pPt,
bool  bInsertGRF 
)
staticprivate

◆ PasteUnformatted()

bool SwTransferable::PasteUnformatted ( SwWrtShell rSh,
TransferableDataHelper rData 
)
static

Definition at line 3481 of file swdtflvr.cxx.

References PasteFormat().

Referenced by SwBaseShell::ExecClpbrd().

◆ PrepareForCopy()

int SwTransferable::PrepareForCopy ( bool  bIsCut = false)

Definition at line 950 of file swdtflvr.cxx.

References TransferableHelper::AddFormat(), constOleSize100mm(), o3tl::convert(), SwFEShell::Copy(), SwCursorShell::CreateCursor(), DbForm, DeleteDDEMarks(), Document, DocumentWord, SfxObjectShell::DoInitNew(), Drawing, DrawObject, FindOLEObj(), FindOLEReplacementGraphic(), SfxItemSet::Get(), SwViewShell::GetAttrPool(), Graphic::GetBitmapEx(), SfxObjectShell::GetCreateMode(), TransferableDataHelper::GetDataFlavorExVector(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), SwView::GetDocShell(), SwFEShell::GetDrawObjGraphic(), SwFEShell::GetFlyFrameAttr(), SwEditShell::GetGraphic(), SwEditShell::GetGrfNms(), SwDoc::getIDocumentFieldsAccess(), SwFormatURL::GetMap(), SwFEShell::GetObjSize(), SwWrtShell::GetSelectionType(), SwFEShell::GetTableCopied(), SwFEShell::GetTableInsertMode(), SwFormatURL::GetTargetFrameName(), SwDoc::GetTmpDocShell(), TransferableDataHelper::GetTransferable(), 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(), m_aDocShellRef, m_aObjDesc, m_eBufferType, m_oClpBitmap, m_oClpGraphic, m_pClpDocFac, m_pImageMap, m_pOrigGraphic, m_pTargetURL, m_pWrtShell, m_xDdeLink, TransferableObjectDescriptor::maSize, o3tl::mm100, SwWrtShell::NO_WORD, Ole, TransferableHelper::PrepareOLE(), RES_URL(), SwTable::SEARCH_COL, SwTable::SEARCH_NONE, SwTable::SEARCH_ROW, SwFEShell::SetTableCopied(), SwFEShell::SetTableInsertMode(), SwDoc::SetTmpDocShell(), SwCursorShell::ShouldWait(), Table, TableCell, TableCol, TableRow, and o3tl::twip.

Referenced by Copy().

◆ PrepareForCopyTextRange()

void SwTransferable::PrepareForCopyTextRange ( SwPaM rPaM)

◆ PrePasteSpecial()

void SwTransferable::PrePasteSpecial ( const SwWrtShell rSh,
TransferableDataHelper rData,
const VclPtr< SfxAbstractPasteDialog > &  pDlg 
)
static

◆ PrivateDrop()

bool SwTransferable::PrivateDrop ( SwWrtShell rSh,
const Point rDragPt,
bool  bMove,
bool  bIsXSelection 
)

Definition at line 3891 of file swdtflvr.cxx.

References SwRewriter::AddRule(), SwPosition::Assign(), aURL, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::back(), SwEditShell::CalcLayout(), SwEditShell::Delete(), SwCursorShell::DeleteCurrent, SwPaM::DeleteMark(), IDocumentMarkAccess::deleteMark(), SwEditShell::DelINetAttrWithText(), SwWrtShell::DelRight(), SwCursorShell::DestroyCursor(), SwWrtShell::Down(), DrawObject, SwCursorShell::EndAction(), SwWrtShell::EndSelect(), SwEditShell::EndUndo(), SwWrtShell::EnterSelFrameMode(), SwWrtShell::EnterStdMode(), SfxDispatcher::Execute(), SwCursorShell::ExtendSelection(), FN_TABLE_DELETE_COL, FN_TABLE_DELETE_ROW, FN_TABLE_DELETE_TABLE, FN_TABLE_PASTE_COL_BEFORE, FN_TABLE_PASTE_ROW_BEFORE, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::front(), g_bDDINetAttr, g_bFrameDrag, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwCursorShell::GetCursor(), SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SwFEShell::GetFlyFrameAttr(), SwFEShell::GetFormatFromObj(), SwEditShell::GetGraphic(), SwEditShell::GetGrfNms(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwFEShell::GetObjRect(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTableLines::GetPos(), SwWrtShell::GetSelDescr(), SwTableCursor::GetSelectedBoxes(), SwWrtShell::GetSelectionType(), GetShell(), SwNode::GetStartNode(), SwTableNode::GetTable(), SwNode::GetTableBox(), SwCursorShell::GetTableCursor(), SwTable::GetTabLines(), SwTableBox::GetUpper(), INetBookmark::GetURL(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwCursorShell::GoNextCursor(), SwCursorShell::GoPrevCursor(), SwWrtShell::GotoMark(), Graphic, SwFEShell::HasWholeTabSelection(), SwCursorShell::HideCursor(), InetField, SwWrtShell::IntelligentCut(), SwWrtShell::IsAddMode(), SwWrtShell::IsBlockMode(), SwCursorShell::IsCursorInTable(), SwWrtShell::IsEndWrd(), SwFEShell::IsFrameSelected(), SwFEShell::IsInsideSelectedObj(), SwCursorShell::IsInWord(), SwFEShell::IsObjSelected(), IDocumentRedlineAccess::IsRedlineOn(), SwWrtShell::IsSelFrameMode(), SwFEShell::IsSelObjProtected(), SwCursorShell::IsStartWord(), SwCursorShell::IsSttPara(), SwCursorShell::IsTableMode(), SwCursorShell::KillPams(), SwWrtShell::LeaveSelFrameMode(), m_eBufferType, m_oBookmark, NONE, SwWrtShell::Pop(), Pos, SwRect::Pos(), SwCursorShell::Push(), SfxItemSet::Put(), SwEditShell::ReRead(), RES_PRINT(), RES_TXTATR_INETFMT(), RES_URL(), SAL_WARN, SwFEShell::SelectObj(), SwWrtShell::SelectTextAttr(), SwCursorShell::SetBookmark(), SwFEShell::SetFlyFrameAttr(), SwPaM::SetMark(), SwDoc::SetRowNotTracked(), SwCursorShell::ShowCursor(), SwCursorShell::StartAction(), SwEditShell::StartUndo(), SwWrtShell::SttSelect(), SwCursorShell::SwapPam(), TableCol, TableRow, SwCursorShell::TestCurrPam(), UI_DRAG_AND_COPY, UI_DRAG_AND_MOVE, UndoArg1, IDocumentMarkAccess::UNO_BOOKMARK, SwWrtShell::UnSelectFrame(), SwCursorShell::UnSetVisibleCursor(), SwWrtShell::Up(), SwWrtShell::WORD_SPACE_AFTER, and SwWrtShell::WORD_SPACE_BEFORE.

Referenced by PasteData().

◆ PrivatePaste()

bool SwTransferable::PrivatePaste ( SwWrtShell rShell,
SwPasteContext pContext = nullptr,
PasteTableType  ePasteTable = PasteTableType::PASTE_DEFAULT 
)
private

◆ RemoveDDELinkFormat()

void SwTransferable::RemoveDDELinkFormat ( vcl::Window rWin)

◆ SelectPasteFormat()

void SwTransferable::SelectPasteFormat ( TransferableDataHelper rData,
sal_uInt8 nAction,
SotClipboardFormatId nFormat 
)
static

◆ SetCleanUp()

void SwTransferable::SetCleanUp ( bool  bFlag)
inline

Definition at line 225 of file swdtflvr.hxx.

◆ SetDataForDragAndDrop()

void SwTransferable::SetDataForDragAndDrop ( const Point rSttPos)
private

◆ SetSelInShell()

void SwTransferable::SetSelInShell ( SwWrtShell rSh,
bool  bSelectFrame,
const Point pPt 
)
staticprivate

◆ StartDrag() [1/2]

void SwTransferable::StartDrag ( vcl::Window pWin,
const Point rPos 
)

◆ StartDrag() [2/2]

void TransferableHelper::StartDrag ( vcl::Window pWindow,
sal_Int8  nDragSourceActions 
)
private

◆ TestAllowedFormat()

bool SwTransferable::TestAllowedFormat ( const TransferableDataHelper rData,
SotClipboardFormatId  nFormat,
SotExchangeDest  nDestination 
)
staticprivate

◆ WriteObject()

bool SwTransferable::WriteObject ( tools::SvRef< SotTempStream > &  rxOStm,
void *  pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
overrideprivatevirtual

Friends And Related Function Documentation

◆ SwView_Impl

friend class SwView_Impl
friend

Definition at line 78 of file swdtflvr.hxx.

Member Data Documentation

◆ m_aDocShellRef

SfxObjectShellLock SwTransferable::m_aDocShellRef
private

◆ m_aObjDesc

TransferableObjectDescriptor SwTransferable::m_aObjDesc
private

◆ m_bCleanUp

bool SwTransferable::m_bCleanUp
private

Definition at line 98 of file swdtflvr.hxx.

Referenced by DragFinished(), and StartDrag().

◆ m_bOldIdle

bool SwTransferable::m_bOldIdle
private

Definition at line 97 of file swdtflvr.hxx.

Referenced by DragFinished(), and StartDrag().

◆ m_eBufferType

TransferBufferType SwTransferable::m_eBufferType
private

◆ m_oBookmark

std::optional<INetBookmark> SwTransferable::m_oBookmark
private

Definition at line 91 of file swdtflvr.hxx.

Referenced by GetData(), and PrivateDrop().

◆ m_oClpBitmap

std::optional<Graphic> SwTransferable::m_oClpBitmap
private

Definition at line 89 of file swdtflvr.hxx.

Referenced by GetData(), and PrepareForCopy().

◆ m_oClpGraphic

std::optional<Graphic> SwTransferable::m_oClpGraphic
private

Definition at line 88 of file swdtflvr.hxx.

Referenced by GetData(), and PrepareForCopy().

◆ m_pClpDocFac

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

◆ m_pCreatorView

const SwFrameShell* SwTransferable::m_pCreatorView
private

Definition at line 86 of file swdtflvr.hxx.

Referenced by ClearSelection().

◆ m_pImageMap

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

Definition at line 92 of file swdtflvr.hxx.

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

◆ m_pOrigGraphic

Graphic* SwTransferable::m_pOrigGraphic
private

Definition at line 90 of file swdtflvr.hxx.

Referenced by GetData(), and PrepareForCopy().

◆ m_pTargetURL

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

Definition at line 93 of file swdtflvr.hxx.

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

◆ m_pWrtShell

SwWrtShell* SwTransferable::m_pWrtShell
private

◆ m_xDdeLink

tools::SvRef<sfx2::SvBaseLink> SwTransferable::m_xDdeLink
private

Definition at line 81 of file swdtflvr.hxx.

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


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