summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-22 11:11:42 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-22 11:11:42 +0000
commit948cc5ea7a14e9d9606b706c38cd64661475210a (patch)
tree2d19270aa0e2e5b59e4fc05016f85a5a0b47ad0f /dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
parent4eb1aae4517e9bba4d638148bc629d5695ce2c69 (diff)
#101595# outline ctor
Diffstat (limited to 'dbaccess/source/ui/tabledesign/FieldDescriptions.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescriptions.cxx39
1 files changed, 37 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
index 4786f8ee7b5e..955e6795409e 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FieldDescriptions.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2001-07-02 10:31:49 $
+ * last change: $Author: oj $ $Date: 2002-07-22 12:11:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -115,6 +115,7 @@ OFieldDescription::OFieldDescription( const OFieldDescription& rDescr ) :
,m_sTypeName(rDescr.m_sTypeName)
,m_sDescription(rDescr.m_sDescription)
,m_sDefaultValue(rDescr.m_sDefaultValue)
+ ,m_sAutoIncrementValue(rDescr.m_sAutoIncrementValue)
,m_pType(rDescr.m_pType)
,m_nPrecision(rDescr.m_nPrecision)
,m_nScale(rDescr.m_nScale)
@@ -127,6 +128,38 @@ OFieldDescription::OFieldDescription( const OFieldDescription& rDescr ) :
{
DBG_CTOR(OFieldDescription,NULL);
}
+// -----------------------------------------------------------------------------
+OFieldDescription::OFieldDescription( const ::rtl::OUString& _sName,
+ const ::rtl::OUString& _sTypeName,
+ const ::rtl::OUString& _sDescription,
+ const ::rtl::OUString& _sDefaultValue,
+ const ::rtl::OUString& _sAutoIncrementValue,
+ const OTypeInfo* _pType,
+ sal_Int32 _nPrecision,
+ sal_Int32 _nScale,
+ sal_Int32 _nIsNullable,
+ sal_Int32 _nFormatKey,
+ SvxCellHorJustify _eHorJustify,
+ sal_Bool _bIsAutoIncrement,
+ sal_Bool _bIsPrimaryKey,
+ sal_Bool _bIsCurrency) :
+ m_sName(_sName)
+,m_sTypeName(_sTypeName)
+,m_sDescription(_sDescription)
+,m_sDefaultValue(_sDefaultValue)
+,m_sAutoIncrementValue(_sAutoIncrementValue)
+,m_pType(_pType)
+,m_nPrecision(_nPrecision)
+,m_nScale(_nScale)
+,m_nIsNullable(_nIsNullable)
+,m_nFormatKey(_nFormatKey)
+,m_eHorJustify(_eHorJustify)
+,m_bIsAutoIncrement(_bIsAutoIncrement)
+,m_bIsPrimaryKey(_bIsPrimaryKey)
+,m_bIsCurrency(_bIsCurrency)
+{
+ DBG_DTOR(OFieldDescription,NULL);
+}
//------------------------------------------------------------------------------
OFieldDescription::~OFieldDescription()
@@ -157,6 +190,8 @@ OFieldDescription::OFieldDescription(const Reference< XPropertySet >& xAffectedC
SetDescription(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_DESCRIPTION)));
if(xPropSetInfo->hasPropertyByName(PROPERTY_DEFAULTVALUE))
SetDefaultValue(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_DEFAULTVALUE)));
+ if(xPropSetInfo->hasPropertyByName(PROPERTY_AUTOINCREMENTVALUE))
+ SetAutoIncrementValue(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_AUTOINCREMENTVALUE)));
if(xPropSetInfo->hasPropertyByName(PROPERTY_TYPE))
SetTypeValue(::comphelper::getINT32(xAffectedCol->getPropertyValue(PROPERTY_TYPE)));
if(xPropSetInfo->hasPropertyByName(PROPERTY_PRECISION))