diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-11-25 17:59:28 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-11-25 18:33:41 +0400 |
commit | 7f0581e15e1ac3b42ec3a98f3497d4900ac50bcc (patch) | |
tree | f39869289c1db212ae1b40143cb5ccb270600898 /svx | |
parent | 6f3f04597f9c4260511d3bd352f1c89a29fa1973 (diff) |
findbar: disable up/down buttons by default, there is no text to search
Change-Id: I67550f0b40e1c0d294bf8837a2e6ad3bb30dac8a
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 5005d9c40cd7..acbb95e26b30 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -428,9 +428,15 @@ void SAL_CALL FindTextToolbarController::initialize( const css::uno::Sequence< : { ::rtl::OUString sItemCommand = pToolBox->GetItemCommand(i); if ( sItemCommand == COMMAND_DOWNSEARCH ) + { + pToolBox->EnableItem(i, sal_False); m_nDownSearchId = i; + } else if ( sItemCommand == COMMAND_UPSEARCH ) + { + pToolBox->EnableItem(i, sal_False); m_nUpSearchId = i; + } } } |