summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-26 08:35:39 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-26 08:35:39 +0000
commitbc5ae2f2e4aee29535293fc274bd1748f35218cd (patch)
tree3ac9b06128683e829c46e5161970c5aa29d3c4af /dbaccess/source/ui/tabledesign
parent18eb32f0f0cf8697d328bb0f8ea946db133b2370 (diff)
#95146# new controls inserted for auto retrieving
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.cxx14
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.hxx6
-rw-r--r--dbaccess/source/ui/tabledesign/table.src14
3 files changed, 28 insertions, 6 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
index c2cec8409355..7d8639f881ce 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableFieldControl.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2002-07-09 13:19:52 $
+ * last change: $Author: oj $ $Date: 2002-07-26 09:35:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -187,6 +187,16 @@ Locale OTableFieldControl::GetLocale() const
return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getLocale();
}
// -----------------------------------------------------------------------------
+sal_Bool OTableFieldControl::isAutoIncrementValueEnabled() const
+{
+ return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController()->isAutoIncrementValueEnabled();
+}
+// -----------------------------------------------------------------------------
+::rtl::OUString OTableFieldControl::getAutoIncrementValue() const
+{
+ return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController()->getAutoIncrementValue();
+}
+// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
index e9c04d6c956c..1f6da3e3de21 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableFieldControl.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: oj $ $Date: 2002-07-09 13:19:53 $
+ * last change: $Author: oj $ $Date: 2002-07-26 09:35:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,8 @@ namespace dbaui
virtual const OTypeInfo* getTypeInfo(sal_Int32 _nPos);
virtual const OTypeInfoMap* getTypeInfo() const;
+ virtual sal_Bool isAutoIncrementValueEnabled() const;
+ virtual ::rtl::OUString getAutoIncrementValue() const;
public:
OTableFieldControl( Window* pParent, OTableDesignHelpBar* pHelpBar) :OFieldDescControl(pParent,pHelpBar) {};
diff --git a/dbaccess/source/ui/tabledesign/table.src b/dbaccess/source/ui/tabledesign/table.src
index 70a162aeed5f..7e32d6dd8647 100644
--- a/dbaccess/source/ui/tabledesign/table.src
+++ b/dbaccess/source/ui/tabledesign/table.src
@@ -2,9 +2,9 @@
*
* $RCSfile: table.src,v $
*
- * $Revision: 1.60 $
+ * $Revision: 1.61 $
*
- * last change: $Author: oj $ $Date: 2002-04-29 08:57:01 $
+ * last change: $Author: oj $ $Date: 2002-07-26 09:35:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2223,4 +2223,14 @@ QueryBox TABLE_DESIGN_ALL_ROWS_DELETED
Message [ English ] = "You are trying to delete all columns in the table. A table cannot exist without columns. Should the table be deleted from the database? If not, the table will remain unchanged." ;
};
+String STR_AUTOINCREMENT_VALUE
+{
+ Text = "A~uto-Increment-Ausdruck" ;
+ Text [ ENGLISH ] = "A~uto-increment statement" ;
+};
+String STR_HELP_AUTOINCREMENT_VALUE
+{
+ Text = "Geben Sie hier einen SQL Ausdruck fr das Auto-Increment-Feld an.\n\nDieser Ausdruck wird beim Erzeugen der Tabelle direkt an die Datenbank bertragen." ;
+ Text [ english ] = "Enter an SQL statement for the auto-increment field.\n\nThis statement will be directly transferred to the database when the table is created." ;
+};