summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-12 15:30:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-12 20:23:40 +0200
commit866855dcf8ee3c2afbdf081ad3161df3cce0be6c (patch)
tree5ab2f04afaa8e9a4d04a27fffa1b17043d94c688 /dbaccess/source
parent70a008181aef33272346e7ae45f8838354346ead (diff)
cleanup some unused leftovers
Change-Id: I5971ec431471c528c33b2f3a3f2353a3a825f286 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100603 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/app/AppController.cxx29
-rw-r--r--dbaccess/source/ui/app/AppController.hxx4
-rw-r--r--dbaccess/source/ui/app/AppDetailView.hxx7
-rw-r--r--dbaccess/source/ui/app/AppView.hxx1
-rw-r--r--dbaccess/source/ui/browser/dsbrowserDnD.cxx5
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx5
-rw-r--r--dbaccess/source/ui/inc/TableCopyHelper.hxx1
-rw-r--r--dbaccess/source/ui/inc/TableWindow.hxx2
-rw-r--r--dbaccess/source/ui/inc/callbacks.hxx3
-rw-r--r--dbaccess/source/ui/inc/unodatbr.hxx5
10 files changed, 0 insertions, 62 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 8c097c6a2fb0..739f7a43be9d 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -2268,40 +2268,11 @@ Any OApplicationController::getCurrentSelection( Control& _rControl ) const
return makeAny( aSelection );
}
-bool OApplicationController::requestQuickHelp( const SvTreeListEntry* /*_pEntry*/, OUString& /*_rText*/ ) const
-{
- return false;
-}
-
bool OApplicationController::requestQuickHelp(const void* /*pUserData*/, OUString& /*rText*/) const
{
return false;
}
-bool OApplicationController::requestDrag( const Point& /*_rPosPixel*/ )
-{
- rtl::Reference<TransferableHelper> pTransfer;
- if ( getContainer() && getContainer()->getSelectionCount() )
- {
- try
- {
- pTransfer = copyObject( );
-
- if ( pTransfer && getContainer()->getDetailView() )
- {
- ElementType eType = getContainer()->getElementType();
- pTransfer->StartDrag( getContainer()->getDetailView()->getTreeWindow(), ((eType == E_FORM || eType == E_REPORT) ? DND_ACTION_COPYMOVE : DND_ACTION_COPY) );
- }
- }
- catch(const Exception& )
- {
- DBG_UNHANDLED_EXCEPTION("dbaccess");
- }
- }
-
- return pTransfer.is();
-}
-
bool OApplicationController::requestDrag(const weld::TreeIter& /*rEntry*/)
{
rtl::Reference<TransferableHelper> pTransfer;
diff --git a/dbaccess/source/ui/app/AppController.hxx b/dbaccess/source/ui/app/AppController.hxx
index 1abf501328fb..afd496068650 100644
--- a/dbaccess/source/ui/app/AppController.hxx
+++ b/dbaccess/source/ui/app/AppController.hxx
@@ -42,8 +42,6 @@
#include <memory>
-class SvTreeListEntry;
-class SvTreeListBox;
class TransferableHelper;
class TransferableClipboardListener;
@@ -486,9 +484,7 @@ namespace dbaui
virtual bool isDataSourceReadOnly() const override;
// IControlActionListener overridables
- virtual bool requestQuickHelp( const SvTreeListEntry* _pEntry, OUString& _rText ) const override;
virtual bool requestQuickHelp(const void* pUserData, OUString& rText) const override;
- virtual bool requestDrag( const Point& _rPosPixel ) override;
virtual bool requestDrag(const weld::TreeIter& rEntry) override;
virtual sal_Int8 queryDrop( const AcceptDropEvent& _rEvt, const DataFlavorExVector& _rFlavors ) override;
virtual sal_Int8 executeDrop( const ExecuteDropEvent& _rEvt ) override;
diff --git a/dbaccess/source/ui/app/AppDetailView.hxx b/dbaccess/source/ui/app/AppDetailView.hxx
index c551db1a3adc..5e4612b48abf 100644
--- a/dbaccess/source/ui/app/AppDetailView.hxx
+++ b/dbaccess/source/ui/app/AppDetailView.hxx
@@ -33,8 +33,6 @@
#include <vector>
-class SvTreeListEntry;
-
namespace dbaui
{
class OAppBorderWindow;
@@ -79,11 +77,6 @@ namespace dbaui
DECL_LINK(FocusInHdl, weld::Widget&, void);
DECL_LINK(FocusOutHdl, weld::Widget&, void);
- /** sets a new current entry, and invalidates the old and the new one, if necessary
- @return <TRUE/> if and only if the "current entry" changed
- */
- bool setCurrentEntryInvalidate( SvTreeListEntry* _pEntry );
-
void updateHelpText();
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
diff --git a/dbaccess/source/ui/app/AppView.hxx b/dbaccess/source/ui/app/AppView.hxx
index d8f222433685..598385331ff4 100644
--- a/dbaccess/source/ui/app/AppView.hxx
+++ b/dbaccess/source/ui/app/AppView.hxx
@@ -30,7 +30,6 @@
namespace com::sun::star::beans { class XPropertySet; }
class Control;
-class SvTreeListEntry;
namespace weld
{
class TreeIter;
diff --git a/dbaccess/source/ui/browser/dsbrowserDnD.cxx b/dbaccess/source/ui/browser/dsbrowserDnD.cxx
index f04ea5db5b91..8c2101a9b02f 100644
--- a/dbaccess/source/ui/browser/dsbrowserDnD.cxx
+++ b/dbaccess/source/ui/browser/dsbrowserDnD.cxx
@@ -175,11 +175,6 @@ namespace dbaui
return DND_ACTION_NONE;
}
- bool SbaTableQueryBrowser::requestDrag( const Point& /*rPosPixel*/ )
- {
- return false;
- }
-
bool SbaTableQueryBrowser::requestDrag(const weld::TreeIter& rEntry)
{
// it must be a query/table
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 375df3480a73..1b380a6b314a 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -3485,11 +3485,6 @@ void SbaTableQueryBrowser::implAdministrate(weld::TreeIter& rApplyTo)
}
}
-bool SbaTableQueryBrowser::requestQuickHelp( const SvTreeListEntry* , OUString& ) const
-{
- return false;
-}
-
bool SbaTableQueryBrowser::requestQuickHelp(const void* pUserData, OUString& rText) const
{
const DBTreeListUserData* pData = static_cast<const DBTreeListUserData*>(pUserData);
diff --git a/dbaccess/source/ui/inc/TableCopyHelper.hxx b/dbaccess/source/ui/inc/TableCopyHelper.hxx
index 5049c47cd756..b3f03e2a7ff2 100644
--- a/dbaccess/source/ui/inc/TableCopyHelper.hxx
+++ b/dbaccess/source/ui/inc/TableCopyHelper.hxx
@@ -28,7 +28,6 @@
#include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
-class SvTreeListEntry;
namespace dbaui
{
class OGenericUnoController;
diff --git a/dbaccess/source/ui/inc/TableWindow.hxx b/dbaccess/source/ui/inc/TableWindow.hxx
index f45020de008f..7f5b4d47d10c 100644
--- a/dbaccess/source/ui/inc/TableWindow.hxx
+++ b/dbaccess/source/ui/inc/TableWindow.hxx
@@ -32,8 +32,6 @@
#include <cppuhelper/basemutex.hxx>
#include <o3tl/typed_flags_set.hxx>
-class SvTreeListEntry;
-
// Flags for the size adjustment of SbaJoinTabWins
enum class SizingFlags {
NONE = 0x0000,
diff --git a/dbaccess/source/ui/inc/callbacks.hxx b/dbaccess/source/ui/inc/callbacks.hxx
index e18a6556036f..e3a0ce03751a 100644
--- a/dbaccess/source/ui/inc/callbacks.hxx
+++ b/dbaccess/source/ui/inc/callbacks.hxx
@@ -22,7 +22,6 @@
#include <sot/exchange.hxx>
-class SvTreeListEntry;
class Point;
class PopupMenu;
class Control;
@@ -47,13 +46,11 @@ namespace dbaui
/** requests a quick help text to display
@return <FALSE/> if the default quick help text should be used
*/
- virtual bool requestQuickHelp( const SvTreeListEntry* _pEntry, OUString& _rText ) const = 0;
virtual bool requestQuickHelp(const void* pUserData, OUString& rText) const = 0;
/** handler for StartDrag requests
@return <TRUE/> if a drag operation was started
*/
- virtual bool requestDrag(const Point& _rPosPixel) = 0;
virtual bool requestDrag(const weld::TreeIter& rEntry) = 0;
/** check whether or not a drop request should be accepted
diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx
index f1891596f16d..8c3b99004534 100644
--- a/dbaccess/source/ui/inc/unodatbr.hxx
+++ b/dbaccess/source/ui/inc/unodatbr.hxx
@@ -39,14 +39,11 @@
#include "TableCopyHelper.hxx"
#include "commontypes.hxx"
-class SvTreeListEntry;
class Splitter;
-struct SvSortData;
class ODataClipboard;
namespace com::sun::star::container { class XNameContainer; }
-class SvTreeList;
namespace dbaui
{
@@ -211,9 +208,7 @@ namespace dbaui
virtual void Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) override;
// IControlActionListener overridables
- virtual bool requestQuickHelp( const SvTreeListEntry* _pEntry, OUString& _rText ) const override;
virtual bool requestQuickHelp(const void* pUserData, OUString& rText) const override;
- virtual bool requestDrag( const Point& _rPosPixel ) override;
virtual bool requestDrag(const weld::TreeIter& rEntry) override;
virtual sal_Int8 queryDrop( const AcceptDropEvent& _rEvt, const DataFlavorExVector& _rFlavors ) override;
virtual sal_Int8 executeDrop( const ExecuteDropEvent& _rEvt ) override;