summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-10 14:39:17 +0200
committerNoel Grandin <noel@peralex.com>2015-09-11 08:48:54 +0200
commitcf0c04a428754dfd5aa477cebc5441bc74e27005 (patch)
tree6d4657ec370a3378887745b34d217a91bdab2eef /include
parente8ee8473361f09034fdcd4f30a2325a53a512a7a (diff)
convert Link<> to typed
Change-Id: I85658fa35b9b85106a3b9c8ef303584cad6f39b0
Diffstat (limited to 'include')
-rw-r--r--include/svtools/fileview.hxx9
-rw-r--r--include/svtools/treelistbox.hxx6
2 files changed, 8 insertions, 7 deletions
diff --git a/include/svtools/fileview.hxx b/include/svtools/fileview.hxx
index 5c8701980701..3aa326b63444 100644
--- a/include/svtools/fileview.hxx
+++ b/include/svtools/fileview.hxx
@@ -37,6 +37,7 @@ class SvtFileView_Impl;
class SvTreeListEntry;
class HeaderBar;
struct SvtContentEntry;
+class SvTreeListBox;
/// the result of an action in the FileView
enum FileViewResult
@@ -158,12 +159,12 @@ public:
void SetNoSelection();
void SetSelectHdl( const Link<>& rHdl );
- void SetDoubleClickHdl( const Link<>& rHdl );
+ void SetDoubleClickHdl( const Link<SvTreeListBox*,bool>& rHdl );
void SetOpenDoneHdl( const Link<>& rHdl );
- sal_uLong GetSelectionCount() const;
- SvTreeListEntry* FirstSelected() const;
- SvTreeListEntry* NextSelected( SvTreeListEntry* pEntry ) const;
+ sal_uLong GetSelectionCount() const;
+ SvTreeListEntry* FirstSelected() const;
+ SvTreeListEntry* NextSelected( SvTreeListEntry* pEntry ) const;
void EnableAutoResize();
void EnableDelete( bool bEnable );
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx
index 2a3cba9caf30..76113ad610ad 100644
--- a/include/svtools/treelistbox.hxx
+++ b/include/svtools/treelistbox.hxx
@@ -282,7 +282,7 @@ class SVT_DLLPUBLIC SvTreeListBox
SvLBoxItem* pEdItem;
protected:
- Link<> aDoubleClickHdl;
+ Link<SvTreeListBox*,bool> aDoubleClickHdl;
SvTreeListEntry* pTargetEntry;
SvLBoxButtonData* pCheckButtonData;
std::vector<SvLBoxTab*> aTabs;
@@ -477,10 +477,10 @@ public:
void SetSelectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aSelectHdl=rNewHdl; }
void SetDeselectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aDeselectHdl=rNewHdl; }
- void SetDoubleClickHdl(const Link<>& rNewHdl) {aDoubleClickHdl=rNewHdl;}
+ void SetDoubleClickHdl(const Link<SvTreeListBox*,bool>& rNewHdl) {aDoubleClickHdl=rNewHdl;}
const Link<SvTreeListBox*,void>& GetSelectHdl() const { return aSelectHdl; }
const Link<SvTreeListBox*,void>& GetDeselectHdl() const { return aDeselectHdl; }
- const Link<>& GetDoubleClickHdl() const { return aDoubleClickHdl; }
+ const Link<SvTreeListBox*,bool>& GetDoubleClickHdl() const { return aDoubleClickHdl; }
void SetExpandingHdl(const Link<SvTreeListBox*,bool>& rNewHdl){aExpandingHdl=rNewHdl;}
void SetExpandedHdl(const Link<SvTreeListBox*,void>& rNewHdl){aExpandedHdl=rNewHdl;}