summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx11
-rw-r--r--svtools/source/contnr/treelistbox.cxx5
-rw-r--r--svtools/source/inc/svimpbox.hxx1
3 files changed, 13 insertions, 4 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 8c3f8ed0e093..1b0e4ac4f509 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -2037,10 +2037,13 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt )
}
if( pEntry->HasChildren() || pEntry->HasChildrenOnDemand() )
{
- if( pView->IsExpanded(pEntry) )
- pView->Collapse( pEntry );
- else
- pView->Expand( pEntry );
+ if( bSubLstOpDblClick )
+ {
+ if( pView->IsExpanded(pEntry) )
+ pView->Collapse( pEntry );
+ else
+ pView->Expand( pEntry );
+ }
if( pEntry == pCursor ) // only if Entryitem was clicked
// (Nodebutton is not an Entryitem!)
pView->Select( pCursor );
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 02e5d0416c91..c3da96e85bf5 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1434,6 +1434,11 @@ void SvTreeListBox::SetSublistOpenWithLeftRight()
pImpl->bSubLstOpLR = true;
}
+void SvTreeListBox::SetSublistNotOpenWithDoubleClick()
+{
+ pImpl->bSubLstOpDblClick = false;
+}
+
void SvTreeListBox::Resize()
{
if( IsEditingActive() )
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index 373c715e3577..5b69e16c479f 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -135,6 +135,7 @@ private:
bool bAsyncBeginDrag : 1;
bool bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with false
bool bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with false
+ bool bSubLstOpDblClick : 1; // open/close sublist with mouse double click, defaulted with true
bool bContextMenuHandling : 1;
bool bIsCellFocusEnabled : 1;
bool bAreChildrenTransient;