summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-10 21:05:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-12 20:22:41 +0200
commit7b314c6aceb51d01b9b4314764b0f5852b4fb655 (patch)
tree6b2753bb7cc6d99675c8307bce9395d76f189b13 /dbaccess/source/ui/inc
parent5f7cf9ccba25a94c275ec67936dc29f0adb4129a (diff)
drop now unused DBTreeListBox
Change-Id: I607d0e1519b48effd1b306b8113b2010adee14d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100497 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/inc')
-rw-r--r--dbaccess/source/ui/inc/dbtreelistbox.hxx87
-rw-r--r--dbaccess/source/ui/inc/tabletree.hxx29
2 files changed, 0 insertions, 116 deletions
diff --git a/dbaccess/source/ui/inc/dbtreelistbox.hxx b/dbaccess/source/ui/inc/dbtreelistbox.hxx
index 732d20cf68c2..82f661e1eeea 100644
--- a/dbaccess/source/ui/inc/dbtreelistbox.hxx
+++ b/dbaccess/source/ui/inc/dbtreelistbox.hxx
@@ -24,7 +24,6 @@
#include <com/sun/star/frame/XPopupMenuController.hpp>
#include <vcl/InterimItemWindow.hxx>
-#include <vcl/treelistbox.hxx>
#include <vcl/transfer.hxx>
#include <vcl/timer.hxx>
#include <vcl/weld.hxx>
@@ -52,92 +51,6 @@ namespace dbaui
class IControlActionListener;
class IContextMenuProvider;
- class DBTreeListBox :public SvTreeListBox
- {
- OScrollHelper m_aScrollHelper;
- Timer m_aTimer; // is needed for table updates
- Point m_aMousePos;
- std::set<SvTreeListEntry*> m_aSelectedEntries;
- SvTreeListEntry* m_pDragedEntry;
- IControlActionListener* m_pActionListener;
- IContextMenuProvider* m_pContextMenuProvider;
- ImplSVEvent* m_pResetEvent;
- css::uno::Reference<css::frame::XPopupMenuController> m_xMenuController;
-
- Link<SvTreeListEntry*,bool> m_aPreExpandHandler; // handler to be called before a node is expanded
- Link<LinkParamNone*,void> m_aSelChangeHdl; // handler to be called (asynchronously) when the selection changes in any way
- Link<LinkParamNone*,void> m_aCopyHandler; // called when someone press CTRL+C
- Link<LinkParamNone*,void> m_aPasteHandler; // called when someone press CTRL+V
- Link<LinkParamNone*,void> m_aDeleteHandler; // called when someone press DELETE Key
- Link<DBTreeListBox*,void> m_aEnterKeyHdl;
-
- private:
- void init();
- DECL_LINK( OnTimeOut, Timer*, void );
- DECL_LINK( OnResetEntryHdl, void*, void );
- DECL_LINK( ScrollUpHdl, LinkParamNone*, void );
- DECL_LINK( ScrollDownHdl, LinkParamNone*, void );
- DECL_LINK( MenuEventListener, VclMenuEvent&, void );
-
- public:
- DBTreeListBox( vcl::Window* pParent, WinBits nWinStyle);
- virtual ~DBTreeListBox() override;
- virtual void dispose() override;
-
- void setControlActionListener( IControlActionListener* _pListener ) { m_pActionListener = _pListener; }
- void setContextMenuProvider( IContextMenuProvider* _pContextMenuProvider ) { m_pContextMenuProvider = _pContextMenuProvider; }
-
- void SetPreExpandHandler(const Link<SvTreeListEntry*,bool>& _rHdl) { m_aPreExpandHandler = _rHdl; }
- void SetSelChangeHdl( const Link<LinkParamNone*,void>& _rHdl ) { m_aSelChangeHdl = _rHdl; }
- void setCopyHandler(const Link<LinkParamNone*,void>& _rHdl) { m_aCopyHandler = _rHdl; }
- void setPasteHandler(const Link<LinkParamNone*,void>& _rHdl) { m_aPasteHandler = _rHdl; }
- void setDeleteHandler(const Link<LinkParamNone*,void>& _rHdl) { m_aDeleteHandler = _rHdl; }
-
- // modified the given entry so that the expand handler is called whenever the entry is expanded
- // (normally, the expand handler is called only once)
- void EnableExpandHandler(SvTreeListEntry* _pEntry);
-
- SvTreeListEntry* GetEntryPosByName( const OUString& aName, SvTreeListEntry* pStart = nullptr, const IEntryFilter* _pFilter = nullptr ) const;
- virtual void RequestingChildren( SvTreeListEntry* pParent ) override;
- virtual void SelectHdl() override;
- virtual void DeselectHdl() override;
- // Window
- virtual void KeyInput( const KeyEvent& rKEvt ) override;
-
- virtual void StateChanged( StateChangedType nStateChange ) override;
- virtual void InitEntry(SvTreeListEntry* pEntry, const OUString& aStr, const Image& aCollEntryBmp, const Image& aExpEntryBmp) override;
-
- // enable editing for tables/views and queries
- virtual bool EditingEntry( SvTreeListEntry* pEntry, Selection& ) override;
- virtual bool EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) override;
-
- virtual bool DoubleClickHdl() override;
-
- virtual VclPtr<PopupMenu> CreateContextMenu() override;
-
- void SetEnterKeyHdl(const Link<DBTreeListBox*,void>& rNewHdl) {m_aEnterKeyHdl = rNewHdl;}
-
- void clearCurrentSelection() { m_aSelectedEntries.clear(); }
-
- protected:
- virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
- virtual void RequestHelp( const HelpEvent& rHEvt ) override;
-
- // DragSourceHelper overridables
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
- // DropTargetHelper overridables
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& _rEvt ) override;
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& _rEvt ) override;
-
- virtual void ModelHasRemoved( SvTreeListEntry* pEntry ) override;
- virtual void ModelHasEntryInvalidated( SvTreeListEntry* pEntry ) override;
-
- void implStopSelectionTimer();
- void implStartSelectionTimer();
-
- protected:
- using SvTreeListBox::ExecuteDrop;
- };
class TreeListBox;
diff --git a/dbaccess/source/ui/inc/tabletree.hxx b/dbaccess/source/ui/inc/tabletree.hxx
index 53e425980b13..6279129eb112 100644
--- a/dbaccess/source/ui/inc/tabletree.hxx
+++ b/dbaccess/source/ui/inc/tabletree.hxx
@@ -96,18 +96,6 @@ public:
void CheckButtons(); // make the button states consistent (bottom-up)
- /** does a wildcard check of the given entry
- <p>There are two different 'checked' states: If the user checks all children of an entry, this is different
- from checking the entry itself. The second is called 'wildcard' checking, 'cause in the resulting
- table filter it's represented by a wildcard.</p>
- */
- void checkWildcard(SvTreeListEntry* _pEntry);
-
- /** determine if the given entry is 'wildcard checked'
- @see checkWildcard
- */
- static bool isWildcardChecked(SvTreeListEntry* pEntry);
-
private:
void CheckButtonHdl();
@@ -187,10 +175,6 @@ public:
void SuppressEmptyFolders() { m_bNoEmptyFolders = true; }
- /** determines whether the given entry denotes a tables folder
- */
- static bool isFolderEntry( const SvTreeListEntry* _pEntry );
-
/** fill the table list with the tables belonging to the connection described by the parameters
@param _rxConnection
the connection, which must support the service com.sun.star.sdb.Connection
@@ -214,11 +198,6 @@ public:
const css::uno::Sequence< OUString>& _rViews
);
- /** returns a NamedDatabaseObject record which describes the given entry
- */
- css::sdb::application::NamedDatabaseObject
- describeObject( SvTreeListEntry* _pEntry );
-
/** to be used if a foreign instance added a table
*/
std::unique_ptr<weld::TreeIter> addedTable( const OUString& _rName );
@@ -227,14 +206,6 @@ public:
*/
void removedTable( const OUString& _rName );
- /** returns the fully qualified name of a table entry
- @param _pEntry
- the entry whose name is to be obtained. Must not denote a folder entry.
- */
- OUString getQualifiedTableName( SvTreeListEntry* _pEntry ) const;
-
- SvTreeListEntry* getEntryByQualifiedName( const OUString& _rName );
-
std::unique_ptr<weld::TreeIter> getAllObjectsEntry() const;
/** does a wildcard check of the given entry