summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/cctrl/actctrl.cxx17
-rw-r--r--sw/source/uibase/inc/actctrl.hxx4
2 files changed, 1 insertions, 20 deletions
diff --git a/sw/source/uibase/cctrl/actctrl.cxx b/sw/source/uibase/cctrl/actctrl.cxx
index eb5fe931fae6..4009eadf9f2b 100644
--- a/sw/source/uibase/cctrl/actctrl.cxx
+++ b/sw/source/uibase/cctrl/actctrl.cxx
@@ -54,23 +54,6 @@ NoSpaceEdit::NoSpaceEdit(Window* pParent)
{
}
-NoSpaceEdit::~NoSpaceEdit()
-{
-}
-
-void NoSpaceEdit::KeyInput(const KeyEvent& rEvt)
-{
- bool bCallParent = true;
- if(rEvt.GetCharCode())
- {
- OUString sKey(rEvt.GetCharCode());
- if( -1 != sForbiddenChars.indexOf(sKey))
- bCallParent = false;
- }
- if(bCallParent)
- Edit::KeyInput(rEvt);
-}
-
void NoSpaceEdit::Modify()
{
Selection aSel = GetSelection();
diff --git a/sw/source/uibase/inc/actctrl.hxx b/sw/source/uibase/inc/actctrl.hxx
index 0ff473775715..00d71fd5baef 100644
--- a/sw/source/uibase/inc/actctrl.hxx
+++ b/sw/source/uibase/inc/actctrl.hxx
@@ -43,12 +43,10 @@ class SW_DLLPUBLIC NoSpaceEdit : public Edit
{
OUString sForbiddenChars;
protected:
- virtual void KeyInput( const KeyEvent& ) SAL_OVERRIDE;
- virtual void Modify() SAL_OVERRIDE;
+ virtual void Modify() SAL_OVERRIDE;
public:
NoSpaceEdit( Window* pParent );
- virtual ~NoSpaceEdit();
void SetForbiddenChars(const OUString& rSet){sForbiddenChars = rSet;}
const OUString& GetForbiddenChars(){return sForbiddenChars;}
};