LibreOffice Module sw (master) 1
|
#include <swdtflvr.hxx>
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) |
SwWrtShell * | GetShell () |
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 Graphic * | FindOLEReplacementGraphic () const |
void | DeleteSelection () |
bool | PrivatePaste (SwWrtShell &rShell, SwPasteContext *pContext=nullptr, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT) |
void | SetDataForDragAndDrop (const Point &rSttPos) |
SwTransferable (const SwTransferable &)=delete | |
SwTransferable & | operator= (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 SwTransferable * | GetSwTransferable (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::SvBaseLink > | m_xDdeLink |
SwWrtShell * | m_pWrtShell |
const SwFrameShell * | m_pCreatorView |
std::unique_ptr< SwDocFac, o3tl::default_delete< SwDocFac > > | m_pClpDocFac |
std::optional< Graphic > | m_oClpGraphic |
std::optional< Graphic > | m_oClpBitmap |
Graphic * | m_pOrigGraphic |
std::optional< INetBookmark > | m_oBookmark |
std::unique_ptr< ImageMap > | m_pImageMap |
std::unique_ptr< INetImage > | m_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 |
Definition at line 76 of file swdtflvr.hxx.
|
privatedelete |
Referenced by CreateSelection().
SwTransferable::SwTransferable | ( | SwWrtShell & | rSh | ) |
Definition at line 255 of file swdtflvr.cxx.
References SwView::AddTransferable(), SfxObjectShell::FillTransferableObjectDescriptor(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SfxMedium::GetURLObject(), SwWrtShell::GetView(), m_aObjDesc, TransferableObjectDescriptor::maDisplayName, INetURLObject::NONE, TransferableHelper::PrepareOLE(), URIHelper::removePassword(), INetURLObject::Unambiguous, and INetURLObject::WasEncoded.
|
overridevirtual |
Definition at line 281 of file swdtflvr.cxx.
References SfxObjectShellLock::Clear(), tools::SvRef< typename T >::clear(), Disconnect, SfxObjectShell::DoClose(), tools::SvRef< typename T >::get(), SfxObjectShellLock::Is(), tools::SvRef< typename T >::is(), m_aDocShellRef, m_eBufferType, m_pClpDocFac, SwModule::m_pDragDrop, m_pWrtShell, SwModule::m_pXSelection, m_xDdeLink, NONE, and SW_MOD.
|
overrideprivatevirtual |
Implements TransferableHelper.
Definition at line 339 of file swdtflvr.cxx.
References comphelper::LibreOfficeKit::isActive(), SwModule::m_pXSelection, SetDataForDragAndDrop(), and SW_MOD.
void SwTransferable::CalculateAndCopy | ( | ) |
Definition at line 1206 of file swdtflvr.cxx.
References TransferableHelper::AddFormat(), aStr, SwEditShell::Calculate(), SwFEShell::Copy(), TransferableHelper::CopyToClipboard(), Document, SwView::GetDocShell(), SwView::GetEditWin(), SwWrtShell::GetView(), lcl_GetDoc(), m_eBufferType, m_pClpDocFac, and m_pWrtShell.
|
staticprivate |
Definition at line 3361 of file swdtflvr.cxx.
References INetBookmark::GetDescription(), TransferableDataHelper::GetINetBookmark(), and INetBookmark::GetURL().
Referenced by PasteAsHyperlink(), PasteData(), PasteFileName(), PasteGrf(), and PasteTargetURL().
|
static |
Definition at line 4382 of file swdtflvr.cxx.
References TransferableHelper::ClearPrimarySelection(), m_pCreatorView, m_pWrtShell, SwModule::m_pXSelection, and SW_MOD.
Referenced by SwWrtShell::EnterStdMode(), SwWrtShell::ResetSelect(), SwWrtShell::UnSelectFrame(), SwDrawBaseShell::~SwDrawBaseShell(), SwFrameShell::~SwFrameShell(), and SwWrtShell::~SwWrtShell().
int SwTransferable::Copy | ( | bool | bIsCut = false | ) |
Definition at line 1188 of file swdtflvr.cxx.
References TransferableHelper::CopyToClipboard(), SwView::GetEditWin(), SfxViewShell::GetObjectShell(), SwWrtShell::GetView(), SfxObjectShell::isContentExtractionLocked(), m_pWrtShell, and PrepareForCopy().
Referenced by Cut().
bool SwTransferable::CopyGlossary | ( | SwTextBlocks & | rGlossary, |
const OUString & | rStr | ||
) |
Definition at line 1223 of file swdtflvr.cxx.
References TransferableHelper::AddFormat(), constOleSize100mm(), TransferableHelper::CopyToClipboard(), Document, SwView::GetDocShell(), SwView::GetEditWin(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentFieldsAccess(), SwDoc::GetNodes(), SwDoc::GetTmpDocShell(), SwWrtShell::GetView(), SwNodes::GoNext(), InitOle(), SwDoc::InsertGlossary(), SfxObjectShellLock::Is(), lcl_GetDoc(), IDocumentFieldsAccess::LockExpFields(), m_aDocShellRef, m_aObjDesc, m_eBufferType, m_pClpDocFac, m_pWrtShell, TransferableObjectDescriptor::maSize, TransferableHelper::PrepareOLE(), SwDoc::SetTmpDocShell(), and SwNode::StartOfSectionNode().
|
static |
Definition at line 4370 of file swdtflvr.cxx.
References SwModule::m_pXSelection, SW_MOD, and SwTransferable().
Referenced by SwWrtShell::Do(), SwWrtShell::SelectNextPrevHyperlink(), SwWrtShell::SttSelect(), SwDrawBaseShell::SwDrawBaseShell(), and SwFrameShell::SwFrameShell().
int SwTransferable::Cut | ( | ) |
Definition at line 834 of file swdtflvr.cxx.
References Copy(), and DeleteSelection().
|
private |
Definition at line 843 of file swdtflvr.cxx.
References SwFEShell::DeleteTable(), SwWrtShell::DelRight(), END, SwEditShell::EndUndo(), SfxDispatcher::Execute(), FN_TABLE_DELETE_COL, SfxViewFrame::GetDispatcher(), SwWrtShell::GetSelectionType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwFEShell::HasWholeTabSelection(), SwWrtShell::IntelligentCut(), m_pWrtShell, START, SwEditShell::StartUndo(), Table, TableCell, TableCol, TableRow, and Text.
Referenced by Cut().
|
overrideprivatevirtual |
Reimplemented from TransferableHelper.
Definition at line 3748 of file swdtflvr.cxx.
References SwFEShell::DeleteTableSel(), SwWrtShell::DelRight(), DND_ACTION_MOVE, SwEditWin::DragFinished(), DrawObject, SwEditShell::EndAllAction(), SwEditShell::EndUndo(), SwWrtShell::EnterSelFrameMode(), Frame, SwView::GetEditWin(), SwWrtShell::GetSelectionType(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), Graphic, SwCursorShell::HideCursor(), SwWrtShell::IntelligentCut(), SwFEShell::IsObjSelected(), SwWrtShell::IsSelFrameMode(), SwCursorShell::IsTableMode(), m_bCleanUp, m_bOldIdle, m_pWrtShell, Ole, SwViewOption::SetIdle(), SwCursorShell::ShowCursor(), SwEditShell::StartAllAction(), SwEditShell::StartUndo(), and UI_DRAG_AND_MOVE.
|
static |
Definition at line 3543 of file swdtflvr.cxx.
References SvxClipboardFormatItem::AddClipbrdFormat(), aPasteSpecialIds, Document, SvPasteObjectHelper::GetEmbeddedName(), GetSotDestination(), GetSwTransferable(), TransferableDataHelper::GetTransferableObjectDescriptor(), Graphic, TransferableDataHelper::HasFormat(), m_eBufferType, TransferableObjectDescriptor::maTypeName, Ole, sName, SwResId(), and TestAllowedFormat().
Referenced by IsPasteSpecial(), and SwBaseShell::StateClpbrd().
|
private |
Definition at line 358 of file swdtflvr.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), m_pClpDocFac, SwIterator< TElementType, TSource, eMode >::Next(), and Ole.
Referenced by GetData(), and PrepareForCopy().
|
private |
Definition at line 375 of file swdtflvr.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), m_pClpDocFac, SwIterator< TElementType, TSource, eMode >::Next(), and Ole.
Referenced by GetData(), and PrepareForCopy().
|
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.
|
inline |
Definition at line 224 of file swdtflvr.hxx.
Referenced by SwEditWin::AcceptDrop(), and PrivateDrop().
|
static |
Definition at line 2100 of file swdtflvr.cxx.
References SwView::GetDocShell(), SwFEShell::GetFlyFrameFormat(), SwEditShell::GetGrfNms(), SwFormatURL::GetMap(), SwFEShell::GetObjCntTypeOfSelection(), SwFormat::GetURL(), SwWrtShell::GetView(), OBJCNT_CONTROL, OBJCNT_FLY, OBJCNT_GRF, OBJCNT_GROUPOBJ, OBJCNT_OLE, OBJCNT_SIMPLE, and OBJCNT_URLBUTTON.
Referenced by SwClipboardChangeListener::changedContents(), FillClipFormatItem(), IsPaste(), SwView::IsPasteAllowed(), SwView::IsPasteSpecialAllowed(), Paste(), PasteFormat(), and PrePasteSpecial().
|
staticprivate |
Definition at line 4394 of file swdtflvr.cxx.
References TransferableDataHelper::GetTransferable().
Referenced by FillClipFormatItem(), IsPaste(), IsPasteOwnFormat(), Paste(), PasteData(), PasteFormat(), and PrePasteSpecial().
|
static |
Definition at line 349 of file swdtflvr.cxx.
References constOleSizeTwip, DOCUMENTBORDER, SfxObjectShell::SetVisArea(), and SwRect::SVRect().
Referenced by CopyGlossary(), GetData(), SwDocShell::InitNew(), SwDocShell::Load(), PrepareForCopy(), and PrepareForCopyTextRange().
|
inline |
Definition at line 239 of file swdtflvr.hxx.
|
overrideprivatevirtual |
Reimplemented from TransferableHelper.
Definition at line 434 of file swdtflvr.cxx.
References Count, DrawObject, SwpHints::Get(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::GetNodes(), sw::Ring< value_type >::GetRingContainer(), SwWrtShell::GetSelectionType(), SwTextNode::GetSwpHints(), SwTextNode::GetText(), SwNode::GetTextNode(), SwTextNode::HasHints(), m_pWrtShell, nIndex, RES_TXTATR_FLYCNT(), and SwTextAttr::Which().
|
static |
Definition at line 1367 of file swdtflvr.cxx.
References EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_DEFAULT, EXCHG_IN_ACTION_MOVE, EXCHG_INOUT_ACTION_NONE, TransferableDataHelper::GetDataFlavorExVector(), SotExchange::GetExchangeAction(), GetSotDestination(), GetSwTransferable(), TransferableDataHelper::GetXTransferable(), and lcl_getTransferPointer().
Referenced by SwClipboardChangeListener::changedContents(), SwBaseShell::ExecClpbrd(), SwXTextView::insertTransferable(), SwXTextDocument::isMimeTypeSupported(), SwView::IsPasteAllowed(), and SwView::IsPasteSpecialAllowed().
|
static |
Definition at line 3392 of file swdtflvr.cxx.
References GetSwTransferable().
Referenced by SwView::IsPasteSpreadsheet().
|
static |
Definition at line 3383 of file swdtflvr.cxx.
References SvxClipboardFormatItem::Count(), and FillClipFormatItem().
Referenced by SwClipboardChangeListener::changedContents(), SwView::IsPasteAllowed(), SwView::IsPasteSpecialAllowed(), and SwTranslateHelper::PasteHTMLToPaM().
|
overrideprivatevirtual |
Reimplemented from TransferableHelper.
Definition at line 328 of file swdtflvr.cxx.
References SwModule::m_pDragDrop, SwModule::m_pXSelection, and SW_MOD.
|
privatedelete |
|
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().
|
staticprivate |
Definition at line 3074 of file swdtflvr.cxx.
References aURL, CheckForURLOrLNKFile(), SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwFEShell::GetFlyFrameAttr(), SwFormatURL::GetName(), SwFEShell::GetObjCntTypeOfSelection(), TransferableDataHelper::GetString(), SwEditShell::InsertURL(), INetURLObject::NONE, OBJCNT_FLY, OBJCNT_GRF, OBJCNT_OLE, SfxItemSet::Put(), RES_URL(), SwFEShell::SetFlyFrameAttr(), SwFormatURL::SetName(), and SwFormatURL::SetURL().
Referenced by PasteData().
|
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().
|
staticprivate |
Definition at line 3219 of file swdtflvr.cxx.
References Any, FmFormView::CreateFieldControl(), Application::CreateMessageDialog(), FmFormView::CreateXFormsControl(), SfxDispatcher::ExecuteList(), FN_DB_COLUMN_ANY, FN_DB_CONNECTION_ANY, FN_DB_DATA_COLUMN_NAME_ANY, FN_DB_DATA_COMMAND_ANY, FN_DB_DATA_COMMAND_TYPE_ANY, FN_DB_DATA_CURSOR_ANY, FN_DB_DATA_SELECTION_ANY, FN_DB_DATA_SOURCE_ANY, FN_QRY_INSERT, FN_QRY_INSERT_FIELD, FN_QRY_MERGE_FIELD, TransferableDataHelper::GetDataFlavorExVector(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDrawView(), TransferableDataHelper::GetString(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwViewShell::MakeDrawView(), SwView::StopShellTimer(), and SwResId().
Referenced by PasteData().
|
staticprivate |
Definition at line 2611 of file swdtflvr.cxx.
References aName, Application::CreateMessageDialog(), Dde, DdeLink, SwWrtShell::DelRight(), GetAppCmpStrIgnore(), SwDDEFieldType::GetCmd(), SwEditShell::GetFieldType(), SwEditShell::GetFieldTypeCount(), TransferableDataHelper::GetGraphic(), SwFieldType::GetName(), TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::GetString(), o3tl::getToken(), comphelper::string::getTokenCount(), SwDDEFieldType::GetType(), TransferableDataHelper::HasFormat(), SwWrtShell::HasSelection(), i, INIT_FLDTYPES, SwEditShell::InsertDDETable(), SwWrtShell::InsertField2(), SwEditShell::InsertFieldType(), SwWrtShell::InsertGraphic(), SwEditShell::InsertSection(), sfx2::MakeLnkName(), read_zeroTerminated_uInt8s_ToOUString(), SwEditShell::RemoveFieldType(), SwEditShell::ReRead(), SAL_MAX_UINT16, SwSectionData::SetLinkFileName(), SwSectionData::SetProtectFlag(), SplitLayout, SwResId(), and SwFieldType::Which().
Referenced by PasteData().
|
staticprivate |
Definition at line 2153 of file swdtflvr.cxx.
References SwCursorShell::CallChgLnk(), Application::CreateMessageDialog(), tools::SvRef< typename T >::get(), SwCursorShell::GetChgLnk(), SwCursorShell::GetCursor(), Reader::GetReaderOpt(), SwReaderWriter::GetRtfReader(), TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::GetString(), tools::SvRef< typename T >::is(), ErrCode::IsError(), MSE40HTMLClipFormatObj::IsValid(), SwReader::Read(), ReadAscii, ReadHTML, SwCursorShell::SaveTableBoxContent(), SwgReaderOption::SetASCIIOpts(), SwAsciiOptions::SetCharSet(), SwCursorShell::SetChgLnk(), SvStream::SetEndian(), Reader::SetIgnoreHTMLComments(), Reader::SetReadUTF8(), SwPaM::Start(), and SwResId().
Referenced by PasteData().
|
staticprivate |
Definition at line 3319 of file swdtflvr.cxx.
References SL::aData, FileList::Count(), Application::CreateMessageDialog(), FileList::GetFile(), TransferableDataHelper::GetFileList(), SwFEShell::GetFlyName(), SwWrtShell::GotoFly(), Insert, n, PasteFileName(), SetAttr, SetSelInShell(), and SwResId().
Referenced by PasteData().
|
staticprivate |
Definition at line 3118 of file swdtflvr.cxx.
References aURL, CheckForURLOrLNKFile(), SfxDispatcher::ExecuteList(), FileLink, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwIoSystem::GetFileFilter(), SwFEShell::GetFlyFrameAttr(), INetURLObject::GetMainURL(), SwFormatURL::GetName(), SwFEShell::GetObjCntTypeOfSelection(), TransferableDataHelper::GetString(), SwDoc::GetUniqueSectionName(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), TransferableDataHelper::HasFormat(), Insert, SwEditShell::InsertURL(), avmedia::MediaWindow::isMediaURL(), INetURLObject::NONE, OBJCNT_FLY, OBJCNT_GRF, OBJCNT_OLE, PasteGrf(), PasteOLE(), SfxItemSet::Put(), RES_URL(), SetAttr, SwFEShell::SetFlyFrameAttr(), SwSectionData::SetLinkFileName(), SwFormatURL::SetName(), SwSectionData::SetProtectFlag(), INetURLObject::SetSmartURL(), SwFormatURL::SetURL(), URIHelper::SmartRel2Abs(), and SwWrtShell::StartInsertRegionDialog().
Referenced by PasteData(), and PasteFileList().
|
static |
Definition at line 3397 of file swdtflvr.cxx.
References Document, EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_DEFAULT, EXCHG_IN_ACTION_MOVE, EXCHG_INOUT_ACTION_NONE, TransferableDataHelper::GetDataFlavorExVector(), SwView::GetDocShell(), SotExchange::GetExchangeAction(), GetSotDestination(), GetSwTransferable(), SwWrtShell::GetView(), TransferableDataHelper::GetXTransferable(), Graphic, TransferableDataHelper::HasFormat(), lcl_getTransferPointer(), m_eBufferType, Ole, PasteData(), and PrivatePaste().
Referenced by SwBaseShell::ExecClpbrd(), and PasteUnformatted().
|
staticprivate |
!! check at FileSystem - only then it makes sense to test the graphics !!!
Definition at line 2810 of file swdtflvr.cxx.
References aBuf, aMap, aURL, CheckForURLOrLNKFile(), DND_ACTION_LINK, ERRCODE_NONE, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwView::GetDocShell(), SvStream::GetError(), SwFEShell::GetFlyFrameAttr(), INetURLObject::GetFull(), TransferableDataHelper::GetGraphic(), GraphicFilter::GetGraphicFilter(), TransferableDataHelper::GetINetBookmark(), SfxMedium::GetInStream(), SwFEShell::GetObjCntTypeOfSelection(), TransferableDataHelper::GetSotStorageStream(), TransferableDataHelper::GetString(), Graphic::GetType(), INetBookmark::GetURL(), SwWrtShell::GetView(), IMAP_ERR_OK, Insert, SwWrtShell::InsertGraphic(), SwFEShell::IsFrameSelected(), SwFEShell::IsObjSelected(), GraphicFilter::LoadGraphic(), NONE, OBJCNT_GRF, SwFEShell::Paste(), PasteImageMap(), PasteTargetURL(), SfxItemSet::Put(), TypeSerializer::readGraphic(), Replace, SwEditShell::ReRead(), RES_URL(), SetAttr, SwFEShell::SetFlyFrameAttr(), SetSelInShell(), and URIHelper::SmartRel2Abs().
Referenced by PasteData(), and PasteFileName().
|
staticprivate |
Definition at line 3049 of file swdtflvr.cxx.
References aURL, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwFEShell::GetFlyFrameAttr(), TransferableDataHelper::GetImageMap(), TransferableDataHelper::HasFormat(), SfxItemSet::Put(), RES_URL(), and SwFEShell::SetFlyFrameAttr().
Referenced by PasteData(), and PasteGrf().
|
staticprivate |
Definition at line 2259 of file swdtflvr.cxx.
References aName, Application::CreateMessageDialog(), SfxObjectShell::CreateShellID(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetEmbeddedObjectContainer(), SotExchange::GetFormatDataFlavor(), SotStorage::GetFormatID(), TransferableDataHelper::GetGDIMetaFile(), TransferableDataHelper::GetInputStream(), svt::EmbeddedObjectRef::GetSize(), comphelper::OStorageHelper::GetStorageFromInputStream(), TransferableDataHelper::GetString(), comphelper::OStorageHelper::GetTemporaryStorage(), TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::HasFormat(), Size::Height(), comphelper::EmbeddedObjectContainer::InsertEmbeddedObject(), SwWrtShell::InsertOleObject(), ErrCode::IsError(), OutputDevice::LogicToLogic(), comphelper::makePropertyValue(), TransferableObjectDescriptor::maSize, TransferableObjectDescriptor::mnViewAspect, nId, NONE, PasteTargetURL(), SwReader::Read(), ReadXML, svt::EmbeddedObjectRef::SetGraphic(), Graphic::SetPrefMapMode(), Graphic::SetPrefSize(), SwResId(), SwOLEObj::UnloadObject(), VCLUnoHelper::UnoEmbed2VCLMapUnit(), and Size::Width().
Referenced by PasteData(), and PasteFileName().
|
staticprivate |
Definition at line 2784 of file swdtflvr.cxx.
References TransferableDataHelper::GetSotStorageStream(), NONE, SwFEShell::Paste(), PasteTargetURL(), SetSelInShell(), and SOFFICE_FILEFORMAT_50.
Referenced by PasteData().
|
staticprivate |
!! check at FileSystem - only then it makes sense to test graphics !!!
Definition at line 2494 of file swdtflvr.cxx.
References aURL, CheckForURLOrLNKFile(), ERRCODE_NONE, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwCursorShell::GetCursorDocPos(), SwFEShell::GetFlyFrameAttr(), GraphicFilter::GetGraphicFilter(), INetImage::GetImageURL(), TransferableDataHelper::GetINetImage(), SwFEShell::GetObjCntTypeOfSelection(), INetImage::GetTargetFrame(), INetImage::GetTargetURL(), TransferableDataHelper::HasFormat(), Insert, SwWrtShell::InsertGraphic(), SwFEShell::IsObjSelected(), GraphicFilter::LoadGraphic(), OBJCNT_GRF, SwFEShell::Paste(), SfxItemSet::Put(), Replace, SwFEShell::ReplaceSdrObj(), SwEditShell::ReRead(), RES_URL(), SetAttr, SwFEShell::SetFlyFrameAttr(), and SetSelInShell().
Referenced by PasteData(), PasteGrf(), PasteOLE(), and PasteSdrFormat().
|
static |
Definition at line 3481 of file swdtflvr.cxx.
References PasteFormat().
Referenced by SwBaseShell::ExecClpbrd().
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().
void SwTransferable::PrepareForCopyTextRange | ( | SwPaM & | rPaM | ) |
Definition at line 894 of file swdtflvr.cxx.
References TransferableHelper::AddFormat(), CheckPosInFly, sw::MetaFieldManager::copyDocumentProperties(), IDocumentContentOperations::CopyRange(), DeleteDDEMarks(), DeleteRedlines, SwNode::GetContentNode(), SwPaM::GetDoc(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), SwDoc::GetMetaFieldManager(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwDoc::GetTmpDocShell(), SwWrtShell::GetView(), InitOle(), SfxObjectShellLock::Is(), lcl_GetDoc(), SwContentNode::Len(), IDocumentFieldsAccess::LockExpFields(), m_aDocShellRef, m_pClpDocFac, m_pWrtShell, NONE, SwDoc::ReplaceCompatibilityOptions(), SwDoc::ReplaceDefaults(), SwDoc::ReplaceStyles(), IDocumentRedlineAccess::SetRedlineFlags_intern(), SwDoc::SetTmpDocShell(), and SwCursorShell::ShouldWait().
|
static |
PrePasteSpecial Prepares the given dialog without actually running it.
rSh | |
rFormatUsed |
Definition at line 3487 of file swdtflvr.cxx.
References aPasteSpecialIds, Document, TransferableDataHelper::GetDataFlavorExVector(), GetSotDestination(), GetSwTransferable(), TransferableDataHelper::GetTransferableObjectDescriptor(), Graphic, TransferableDataHelper::HasFormat(), m_aObjDesc, m_eBufferType, TransferableObjectDescriptor::maClassName, DataFlavorEx::mnSotId, Ole, SwResId(), and TestAllowedFormat().
Referenced by SwBaseShell::ExecClpbrd().
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().
|
private |
Definition at line 3811 of file swdtflvr.cxx.
References SwViewShell::ActionPend(), DbForm, SwWrtShell::DelRight(), DocumentWord, DrawObject, SwPasteContext::forget(), Frame, SwCursorShell::GetCharRect(), SwViewShell::GetDoc(), SwWrtShell::GetSelectionType(), Graphic, SwWrtShell::HasSelection(), SwWrtShell::IsEndWrd(), SwCursorShell::IsInWord(), SwCursorShell::IsStartWord(), SwCursorShell::KillPams(), m_eBufferType, m_pClpDocFac, m_pWrtShell, NumberList, Ole, SwFEShell::Paste(), PASTE_TABLE, SwRect::Pos(), SwPasteContext::remember(), SwWrtShell::ResetSelect(), SwWrtShell::SetRetainSelection(), and TableCell.
Referenced by PasteFormat().
void SwTransferable::RemoveDDELinkFormat | ( | vcl::Window & | rWin | ) |
Definition at line 390 of file swdtflvr.cxx.
References TransferableHelper::CopyToClipboard(), and TransferableHelper::RemoveFormat().
|
static |
Definition at line 1408 of file swdtflvr.cxx.
References EXCHG_OUT_ACTION_INSERT_OLE, TransferableDataHelper::GetTransferableObjectDescriptor(), TransferableDataHelper::HasFormat(), TransferableObjectDescriptor::maClassName, and SO3_SW_CLASSID.
Referenced by Paste().
|
inline |
Definition at line 225 of file swdtflvr.hxx.
|
private |
Definition at line 3596 of file swdtflvr.cxx.
References TransferableHelper::AddFormat(), constOleSize100mm(), DbForm, Document, DocumentWord, Drawing, DrawObject, SfxItemSet::Get(), SwViewShell::GetAttrPool(), SwCursorShell::GetContentAtPos(), SwEditWin::GetDDStartPosX(), SwEditWin::GetDDStartPosY(), SwFEShell::GetFlyFrameAttr(), SwEditShell::GetGraphic(), SwEditShell::GetGrfNms(), SwFormatURL::GetMap(), SwWrtShell::GetSelectionType(), SwFormatURL::GetTargetFrameName(), SwFormatURL::GetURL(), SwWrtShell::GetURLFromButton(), Graphic, SwCursorShell::HasMark(), InetAttr, InetField, SwWrtShell::IntelligentCut(), SwFEShell::IsFrameSelected(), SwFEShell::IsObjSelected(), SwCursorShell::IsSelection(), Graphic::IsSupportedGraphic(), m_aObjDesc, m_eBufferType, m_pImageMap, m_pTargetURL, m_pWrtShell, TransferableObjectDescriptor::maDragStartPos, TransferableObjectDescriptor::maSize, SwWrtShell::NO_WORD, Ole, TransferableHelper::PrepareOLE(), RES_URL(), Table, TableCell, and Text.
Referenced by AddSupportedFormats(), and StartDrag().
|
staticprivate |
Definition at line 2576 of file swdtflvr.cxx.
References SwWrtShell::EnterSelFrameMode(), SwWrtShell::EnterStdMode(), g_bFrameDrag, SfxViewFrame::GetDispatcher(), SwView::GetDrawFuncPtr(), SwView::GetEditWin(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwCursorShell::HideCursor(), SwFEShell::IsFrameSelected(), SfxDispatcher::IsLocked(), SwFEShell::IsObjSelected(), SwWrtShell::LeaveSelFrameMode(), SwView::NoRotate(), SwFEShell::SelectObj(), SwEditWin::StopInsFrame(), and SwWrtShell::UnSelectFrame().
Referenced by PasteData(), PasteFileList(), PasteGrf(), PasteSdrFormat(), and PasteTargetURL().
void SwTransferable::StartDrag | ( | vcl::Window * | pWin, |
const Point & | rPos | ||
) |
Definition at line 3724 of file swdtflvr.cxx.
References DND_ACTION_COPYMOVE, DND_ACTION_LINK, SwView::GetDocShell(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), SwCursorShell::HasReadonlySel(), SwViewOption::IsIdle(), SfxObjectShell::IsReadOnly(), SwWrtShell::IsSelFrameMode(), m_bCleanUp, m_bOldIdle, m_pWrtShell, SetDataForDragAndDrop(), SwViewOption::SetIdle(), SwCursorShell::ShowCursor(), TransferableHelper::StartDrag(), and SW_MOD.
|
private |
|
staticprivate |
Definition at line 3441 of file swdtflvr.cxx.
References EXCHG_IN_ACTION_COPY, EXCHG_INOUT_ACTION_NONE, TransferableDataHelper::GetDataFlavorExVector(), SotExchange::GetExchangeAction(), TransferableDataHelper::GetXTransferable(), TransferableDataHelper::HasFormat(), and lcl_getTransferPointer().
Referenced by FillClipFormatItem(), and PrePasteSpecial().
|
overrideprivatevirtual |
Reimplemented from TransferableHelper.
Definition at line 687 of file swdtflvr.cxx.
References a, SfxObjectShell::DoSaveCompleted(), SfxObjectShell::DoSaveObjectAs(), EE_CHAR_FONTHEIGHT(), ERRCODE_NONE, GetASCWriter(), SfxItemPool::GetDefaultItem(), SvxFontHeightItem::GetHeight(), GetHTMLWriter(), SdrModel::GetItemPool(), SdrModel::GetMasterPageCount(), SdrObject::GetMergedItem(), SdrModel::GetPage(), SdrModel::GetPageCount(), GetRTFWriter(), comphelper::OStorageHelper::GetStorageFromStream(), utl::TempFileFast::GetStream(), tools::SvRef< typename T >::is(), comphelper::LibreOfficeKit::isActive(), ErrCode::IsError(), SdrObjListIter::IsMore(), m_eBufferType, SdrObjListIter::Next(), pObject, SwAsciiOptions::SetCharSet(), SdrObject::SetMergedItem(), SfxObjectShell::SetupStorage(), SOFFICE_FILEFORMAT_CURRENT, SvxDrawingLayerExport(), SWTRANSFER_OBJECTTYPE_DDE, SWTRANSFER_OBJECTTYPE_DRAWMODEL, SWTRANSFER_OBJECTTYPE_HTML, SWTRANSFER_OBJECTTYPE_RICHTEXT, SWTRANSFER_OBJECTTYPE_RTF, SWTRANSFER_OBJECTTYPE_STRING, SWTRANSFER_OBJECTTYPE_SWOLE, Table, SwWriter::Write(), and xStream.
|
friend |
Definition at line 78 of file swdtflvr.hxx.
|
private |
Definition at line 79 of file swdtflvr.hxx.
Referenced by CopyGlossary(), GetData(), PrepareForCopy(), PrepareForCopyTextRange(), and ~SwTransferable().
|
private |
Definition at line 80 of file swdtflvr.hxx.
Referenced by CopyGlossary(), GetData(), PrepareForCopy(), PrePasteSpecial(), SetDataForDragAndDrop(), and SwTransferable().
|
private |
Definition at line 98 of file swdtflvr.hxx.
Referenced by DragFinished(), and StartDrag().
|
private |
Definition at line 97 of file swdtflvr.hxx.
Referenced by DragFinished(), and StartDrag().
|
private |
Definition at line 95 of file swdtflvr.hxx.
Referenced by CalculateAndCopy(), CopyGlossary(), FillClipFormatItem(), GetData(), PasteFormat(), PrepareForCopy(), PrePasteSpecial(), PrivateDrop(), PrivatePaste(), SetDataForDragAndDrop(), WriteObject(), and ~SwTransferable().
|
private |
Definition at line 91 of file swdtflvr.hxx.
Referenced by GetData(), and PrivateDrop().
|
private |
Definition at line 89 of file swdtflvr.hxx.
Referenced by GetData(), and PrepareForCopy().
|
private |
Definition at line 88 of file swdtflvr.hxx.
Referenced by GetData(), and PrepareForCopy().
|
private |
Definition at line 87 of file swdtflvr.hxx.
Referenced by CalculateAndCopy(), CopyGlossary(), FindOLEObj(), FindOLEReplacementGraphic(), GetData(), PrepareForCopy(), PrepareForCopyTextRange(), PrivatePaste(), and ~SwTransferable().
|
private |
Definition at line 86 of file swdtflvr.hxx.
Referenced by ClearSelection().
|
private |
Definition at line 92 of file swdtflvr.hxx.
Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().
|
private |
Definition at line 90 of file swdtflvr.hxx.
Referenced by GetData(), and PrepareForCopy().
|
private |
Definition at line 93 of file swdtflvr.hxx.
Referenced by GetData(), PrepareForCopy(), and SetDataForDragAndDrop().
|
private |
Definition at line 83 of file swdtflvr.hxx.
Referenced by CalculateAndCopy(), ClearSelection(), Copy(), CopyGlossary(), DeleteSelection(), DragFinished(), GetData(), isComplex(), PrepareForCopy(), PrepareForCopyTextRange(), PrivatePaste(), SetDataForDragAndDrop(), StartDrag(), and ~SwTransferable().
|
private |
Definition at line 81 of file swdtflvr.hxx.
Referenced by GetData(), PrepareForCopy(), and ~SwTransferable().