summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-28 00:11:15 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-02-28 14:42:37 +0000
commit04df3cb2b9e1026b8aeb809805bc4878c047eb76 (patch)
tree97971787611751d64ddc109325d24c7aabfc282a /sc
parent4626cda96af778ee34599f572567cfbc89d06983 (diff)
Remove dead voice command code
I don't see voice input commands being generated anywhere. Nobody seems to know what this code has been used for. Change-Id: I4e4221dd4dff76086d0268be286c3605e669bae7 Reviewed-on: https://gerrit.libreoffice.org/2452 Reviewed-by: Niko Rönkkö <ronkko@iki.fi> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx28
2 files changed, 1 insertions, 29 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index bd2cc81d8614..fb85f3d18265 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1565,7 +1565,7 @@ void ScTextWnd::Command( const CommandEvent& rCEvt )
{
bInputMode = sal_True;
sal_uInt16 nCommand = rCEvt.GetCommand();
- if ( pEditView /* && ( nCommand == COMMAND_STARTDRAG || nCommand == COMMAND_VOICE ) */ )
+ if ( pEditView /* && nCommand == COMMAND_STARTDRAG */ )
{
ScModule* pScMod = SC_MOD();
ScTabViewShell* pStartViewSh = ScTabViewShell::GetActiveViewShell();
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 9aebe4bab7fe..4663fa48c777 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2840,34 +2840,6 @@ void ScGridWindow::Command( const CommandEvent& rCEvt )
return;
}
- if ( nCmd == COMMAND_VOICE )
- {
- // Der Handler wird nur gerufen, wenn ein Text-Cursor aktiv ist,
- // also muss es eine EditView oder ein editiertes Zeichenobjekt geben
-
- ScInputHandler* pHdl = pScMod->GetInputHdl( pViewData->GetViewShell() );
- if ( pHdl && pViewData->HasEditView( eWhich ) )
- {
- EditView* pEditView = pViewData->GetEditView( eWhich ); // ist dann nicht 0
- pHdl->DataChanging();
- pEditView->Command( rCEvt );
- pHdl->DataChanged();
- return; // erledigt
- }
- SdrView* pSdrView = pViewData->GetView()->GetSdrView();
- if ( pSdrView )
- {
- OutlinerView* pOlView = pSdrView->GetTextEditOutlinerView();
- if ( pOlView && pOlView->GetWindow() == this )
- {
- pOlView->Command( rCEvt );
- return; // erledigt
- }
- }
- Window::Command(rCEvt); // sonst soll sich die Basisklasse drum kuemmern...
- return;
- }
-
if ( nCmd == COMMAND_PASTESELECTION )
{
if ( bEEMouse )