summaryrefslogtreecommitdiff
path: root/sw/source/ui/cctrl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-04 16:49:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:44 +0100
commitbc347f9f247e141b7377a531a966da076dcd2351 (patch)
tree9baaa81a80f74b31b445a447bbe4908d41e5632c /sw/source/ui/cctrl
parent0553a0b10267f824100fa5a9c2aa0d5749a46868 (diff)
Drop .src layout for inserttable and use Gokul's .ui
Change-Id: Ibc09a1d208720607944f24139eaf45e62699e69e
Diffstat (limited to 'sw/source/ui/cctrl')
-rw-r--r--sw/source/ui/cctrl/actctrl.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx
index 2910585b4df5..0f2d02afc61f 100644
--- a/sw/source/ui/cctrl/actctrl.cxx
+++ b/sw/source/ui/cctrl/actctrl.cxx
@@ -64,6 +64,12 @@ NoSpaceEdit::NoSpaceEdit( Window* pParent, const ResId& rResId)
{
}
+NoSpaceEdit::NoSpaceEdit(Window* pParent)
+ : Edit(pParent),
+ sForbiddenChars(String::CreateFromAscii(" "))
+{
+}
+
NoSpaceEdit::~NoSpaceEdit()
{
}
@@ -119,4 +125,16 @@ void ReturnActionEdit::KeyInput( const KeyEvent& rEvt)
Edit::KeyInput(rEvt);
}
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeTableNameEdit(Window *pParent)
+{
+ TableNameEdit* pTableNameEdit = new TableNameEdit(pParent);
+ pTableNameEdit->SetMaxWidthInChars(25);
+ return pTableNameEdit;
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeNoSpaceEdit(Window *pParent)
+{
+ return new NoSpaceEdit(pParent);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */