summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc/SqlNameEdit.hxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-03-20 07:15:22 +0000
committerOcke Janssen <oj@openoffice.org>2001-03-20 07:15:22 +0000
commita9558954413548163b5a09c1a7b9eb7e873372e6 (patch)
tree71764995053eaa5c503fce73e35529f6afabea8e /dbaccess/source/ui/inc/SqlNameEdit.hxx
parent2b29a089a3ec6b9197068129f16d998dd1332bcb (diff)
new method to allow only uppercase
Diffstat (limited to 'dbaccess/source/ui/inc/SqlNameEdit.hxx')
-rw-r--r--dbaccess/source/ui/inc/SqlNameEdit.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index e411ae3e6d81..f4c109c6f1d0 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SqlNameEdit.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: oj $ $Date: 2001-03-14 07:36:40 $
+ * last change: $Author: oj $ $Date: 2001-03-20 08:15:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,13 +71,22 @@ namespace dbaui
class OSQLNameEdit : public Edit
{
::rtl::OUString m_sAllowedChars;
+ sal_Bool m_bOnlyUpperCase;
public:
OSQLNameEdit(Window* _pParent,const ::rtl::OUString& _rAllowedChars, WinBits nStyle = WB_BORDER)
: Edit(_pParent,nStyle)
,m_sAllowedChars(_rAllowedChars)
+ ,m_bOnlyUpperCase(sal_False)
+ {
+ }
+ OSQLNameEdit(Window* _pParent,const ResId& _rRes,const ::rtl::OUString& _rAllowedChars = ::rtl::OUString())
+ : Edit(_pParent,_rRes)
+ ,m_sAllowedChars(_rAllowedChars)
+ ,m_bOnlyUpperCase(sal_False)
{
}
+ void setUpperCase(sal_Bool _bUpper=sal_True) { m_bOnlyUpperCase = _bUpper; }
void setAllowedChars(const ::rtl::OUString& _rAllowedChars)
{
m_sAllowedChars = _rAllowedChars;