summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-16 13:54:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-16 16:59:08 +0100
commit4e4a350dff08ef1393cd87d48e095e18bf423821 (patch)
treeb6ad09e55dc3644c38e3cab86a58b34484ab0502
parent564b8d8ed5243b95772194da33334ad72acf9594 (diff)
we can shrink the NoSpaceEdit down further
Change-Id: I0ebb18a8ad2fec70ced535200139e5cd34822c84
-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;}
};