diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-16 15:08:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-16 16:59:09 +0100 |
commit | fc2a0de9368db335f03461d76491d7fd733697e8 (patch) | |
tree | 9ee0c0304f90805afc5f281bb3b1a2cf4d68b88d /sw/source/ui/misc | |
parent | 4e4a350dff08ef1393cd87d48e095e18bf423821 (diff) |
turn the no-space edit widgets into a editwidget feature
especially because most of them don't handle intercepting text getting *pasted*
into them right, so start with the one which does that right.
Change-Id: If6770798872ed3c72c469656ebf0d4fd76d2171d
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 677dc2b2d2ae..db58cafe8834 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -116,7 +116,8 @@ struct GroupUserData class SwNewGlosNameDlg : public ModalDialog { Edit* m_pNewName; - NoSpaceEdit* m_pNewShort; + TextFilter m_aNoSpaceFilter; + Edit* m_pNewShort; OKButton* m_pOk; Edit* m_pOldName; Edit* m_pOldShort; @@ -142,6 +143,7 @@ SwNewGlosNameDlg::SwNewGlosNameDlg(Window* pParent, { get(m_pNewName, "newname"); get(m_pNewShort, "newsc"); + m_pNewShort->SetTextFilter(&m_aNoSpaceFilter); get(m_pOk, "ok"); get(m_pOldName, "oldname"); get(m_pOldShort, "oldsc"); @@ -185,6 +187,7 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame, get(m_pNameED, "name"); get(m_pShortNameLbl, "shortnameft"); get(m_pShortNameEdit, "shortname"); + m_pShortNameEdit->SetTextFilter(&m_aNoSpaceFilter); get(m_pCategoryBox, "category"); get(m_pFileRelCB, "relfile"); get(m_pNetRelCB, "relnet"); |