diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-02-28 00:11:15 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-28 14:42:37 +0000 |
commit | 04df3cb2b9e1026b8aeb809805bc4878c047eb76 (patch) | |
tree | 97971787611751d64ddc109325d24c7aabfc282a /vcl/inc | |
parent | 4626cda96af778ee34599f572567cfbc89d06983 (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 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/cmdevt.h | 50 | ||||
-rw-r--r-- | vcl/inc/vcl/cmdevt.hxx | 53 |
2 files changed, 0 insertions, 103 deletions
diff --git a/vcl/inc/vcl/cmdevt.h b/vcl/inc/vcl/cmdevt.h deleted file mode 100644 index a829869c7e1d..000000000000 --- a/vcl/inc/vcl/cmdevt.h +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef _VCL_CMDEVT_H -#define _VCL_CMDEVT_H - -// -------------------- -// - CommandVoiceData - -// -------------------- - -#define DICTATIONCOMMAND_UNKNOWN 0x0001 -#define DICTATIONCOMMAND_NEWPARAGRAPH 0x0002 -#define DICTATIONCOMMAND_NEWLINE 0x0003 -#define DICTATIONCOMMAND_BOLD_ON 0x0004 -#define DICTATIONCOMMAND_BOLD_OFF 0x0005 -#define DICTATIONCOMMAND_ITALIC_ON 0x0006 -#define DICTATIONCOMMAND_ITALIC_OFF 0x0007 -#define DICTATIONCOMMAND_UNDERLINE_ON 0x0008 -#define DICTATIONCOMMAND_UNDERLINE_OFF 0x0009 -#define DICTATIONCOMMAND_NUMBERING_ON 0x0010 -#define DICTATIONCOMMAND_NUMBERING_OFF 0x0011 -#define DICTATIONCOMMAND_TAB 0x0012 -#define DICTATIONCOMMAND_LEFT 0x0013 -#define DICTATIONCOMMAND_RIGHT 0x0014 -#define DICTATIONCOMMAND_UP 0x0015 -#define DICTATIONCOMMAND_DOWN 0x0016 -#define DICTATIONCOMMAND_UNDO 0x0017 -#define DICTATIONCOMMAND_REPEAT 0x0018 -#define DICTATIONCOMMAND_DEL 0x0019 - -#endif // _VCL_CMDEVT_H - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/vcl/cmdevt.hxx b/vcl/inc/vcl/cmdevt.hxx index bf4e8102776e..a437a5b00a67 100644 --- a/vcl/inc/vcl/cmdevt.hxx +++ b/vcl/inc/vcl/cmdevt.hxx @@ -213,49 +213,6 @@ inline CommandScrollData::CommandScrollData( long nDeltaX, long nDeltaY ) mnDeltaY = nDeltaY; } -// -------------------- -// - CommandVoiceData - -// -------------------- - -enum DictationCommandType -{ - VOICECOMMANDTYPE_DICTATION, - VOICECOMMANDTYPE_CONTROL -}; - -class VCL_DLLPUBLIC CommandVoiceData -{ -private: - XubString maText; - sal_uInt16 mnCommand; - DictationCommandType meType; - -public: - CommandVoiceData(); - CommandVoiceData( const XubString& rStr, - DictationCommandType eType, - sal_uInt16 nCommand ); - - const XubString& GetText() const { return maText; } - sal_uInt16 GetCommand() const { return mnCommand; } - DictationCommandType GetType() const { return meType; } -}; - -inline CommandVoiceData::CommandVoiceData() -{ - meType = VOICECOMMANDTYPE_DICTATION; - mnCommand = 0; -} - -inline CommandVoiceData::CommandVoiceData( const XubString& rStr, - DictationCommandType eType, - sal_uInt16 nCommand ) : - maText( rStr ), - mnCommand( nCommand ), - meType( eType ) -{ -} - // --------------------- // - CommandModKeyData - // --------------------- @@ -380,7 +337,6 @@ inline CommandSelectionChangeData::CommandSelectionChangeData( sal_uLong nStart, #define COMMAND_WHEEL ((sal_uInt16)3) #define COMMAND_STARTAUTOSCROLL ((sal_uInt16)4) #define COMMAND_AUTOSCROLL ((sal_uInt16)5) -#define COMMAND_VOICE ((sal_uInt16)6) #define COMMAND_STARTEXTTEXTINPUT ((sal_uInt16)7) #define COMMAND_EXTTEXTINPUT ((sal_uInt16)8) #define COMMAND_ENDEXTTEXTINPUT ((sal_uInt16)9) @@ -417,7 +373,6 @@ public: const CommandInputContextData* GetInputContextChangeData() const; const CommandWheelData* GetWheelData() const; const CommandScrollData* GetAutoScrollData() const; - const CommandVoiceData* GetVoiceData() const; const CommandModKeyData* GetModKeyData() const; const CommandDialogData* GetDialogData() const; sal_Int16 GetMediaCommand() const; @@ -472,14 +427,6 @@ inline const CommandScrollData* CommandEvent::GetAutoScrollData() const return NULL; } -inline const CommandVoiceData* CommandEvent::GetVoiceData() const -{ - if ( mnCommand == COMMAND_VOICE ) - return (const CommandVoiceData*)mpData; - else - return NULL; -} - inline const CommandModKeyData* CommandEvent::GetModKeyData() const { if( mnCommand == COMMAND_MODKEYCHANGE ) |