diff options
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/drwtrans.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/tabvwsh.hxx | 6 | ||||
-rw-r--r-- | sc/source/ui/inc/transobj.hxx | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/sc/source/ui/inc/drwtrans.hxx b/sc/source/ui/inc/drwtrans.hxx index 7550575a33b0..e403e967b7c8 100644 --- a/sc/source/ui/inc/drwtrans.hxx +++ b/sc/source/ui/inc/drwtrans.hxx @@ -79,7 +79,7 @@ public: const css::datatransfer::DataFlavor& rFlavor ) override; virtual void DragFinished( sal_Int8 nDropAction ) override; - SdrModel* GetModel() { return m_pModel.get(); } + SdrModel* GetModel() const { return m_pModel.get(); } void SetDrawPersist( const SfxObjectShellRef& rRef ); void SetDragSource( const ScDrawView* pView ); @@ -92,7 +92,7 @@ public: SdrView* GetDragSourceView() { return m_pDragSourceView.get(); } ScDragSrc GetDragSourceFlags() const { return m_nDragSourceFlags; } - static ScDrawTransferObj* GetOwnClipboard( vcl::Window* ); + static ScDrawTransferObj* GetOwnClipboard(const css::uno::Reference<css::datatransfer::XTransferable2>&); virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override; static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId(); diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index 8a897123a89c..0c6bb6b119ec 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -167,6 +167,9 @@ private: OUString maName; OUString maScope; + // ClipData + css::uno::Reference<css::datatransfer::XTransferable2> m_xClipData; + private: void Construct( TriState nForceDesignMode ); @@ -391,6 +394,9 @@ public: static void notifyAllViewsHeaderInvalidation(bool Columns, SCTAB nCurrentTabIndex); static bool isAnyEditViewInRange(bool bColumns, SCCOLROW nStart, SCCOLROW nEnd); css::uno::Reference<css::drawing::XShapes> getSelectedXShapes(); + + css::uno::Reference<css::datatransfer::XTransferable2> GetClipData() { return m_xClipData; }; + void SetClipData(const css::uno::Reference<css::datatransfer::XTransferable2>& xTransferable) { m_xClipData = xTransferable; } }; #endif diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx index 11f218a4c5b7..ced505cc369e 100644 --- a/sc/source/ui/inc/transobj.hxx +++ b/sc/source/ui/inc/transobj.hxx @@ -78,7 +78,7 @@ public: const css::datatransfer::DataFlavor& rFlavor ) override; virtual void DragFinished( sal_Int8 nDropAction ) override; - ScDocument* GetDocument() { return m_pDoc; } // owned by ScTransferObj + ScDocument* GetDocument() const { return m_pDoc; } // owned by ScTransferObj const ScRange& GetRange() const { return m_aBlock; } SCROW GetNonFilteredRows() const { return m_nNonFiltered; } SCCOL GetDragHandleX() const { return m_nDragHandleX; } @@ -103,7 +103,7 @@ public: void SetDragWasInternal(); SC_DLLPUBLIC void SetUseInApi( bool bSet ); - static SC_DLLPUBLIC ScTransferObj* GetOwnClipboard( vcl::Window* pUIWin ); + static SC_DLLPUBLIC ScTransferObj* GetOwnClipboard(const css::uno::Reference<css::datatransfer::XTransferable2>&); static SfxObjectShell* SetDrawClipDoc( bool bAnyOle ); // update ScGlobal::xDrawClipDocShellRef virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) override; |