diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-25 12:02:28 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-25 12:02:28 +0000 |
commit | d399d5728638b2dbd44e6024f6b3c2d9b7bb2f49 (patch) | |
tree | 8879d95a8e255d62065dfd313ebdaebabcc92572 /dbaccess/source/ui/tabledesign/TableFieldControl.cxx | |
parent | a3b9202b308717c9bc6bcf8c1a6828977f80b50f (diff) |
INTEGRATION: CWS dba30d (1.12.30); FILE MERGED
2008/05/29 11:27:01 fs 1.12.30.1: during #i80943#: refactoring: IController now passed around as reference, not as pointer
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableFieldControl.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableFieldControl.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx index 3ae315703cf0..4558ec4ed33a 100644 --- a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx +++ b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TableFieldControl.cxx,v $ - * $Revision: 1.12 $ + * $Revision: 1.13 $ * * This file is part of OpenOffice.org. * @@ -89,7 +89,7 @@ sal_Bool OTableFieldControl::IsReadOnly() if( !bRead ) { // Die Spalten einer ::com::sun::star::sdbcx::View knnen nicht verndert werden - Reference<XPropertySet> xTable = GetCtrl()->GetView()->getController()->getTable(); + Reference<XPropertySet> xTable = GetCtrl()->GetView()->getController().getTable(); if(xTable.is() && ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == ::rtl::OUString::createFromAscii("VIEW")) bRead = sal_True; else @@ -128,17 +128,17 @@ void OTableFieldControl::DeactivateAggregate( EControlType eType ) // ----------------------------------------------------------------------------- void OTableFieldControl::SetModified(BOOL bModified) { - GetCtrl()->GetView()->getController()->setModified(bModified); + GetCtrl()->GetView()->getController().setModified(bModified); } // ----------------------------------------------------------------------------- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> OTableFieldControl::getConnection() { - return GetCtrl()->GetView()->getController()->getConnection(); + return GetCtrl()->GetView()->getController().getConnection(); } // ----------------------------------------------------------------------------- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData> OTableFieldControl::getMetaData() { - Reference<XConnection> xCon = GetCtrl()->GetView()->getController()->getConnection(); + Reference<XConnection> xCon = GetCtrl()->GetView()->getController().getConnection(); if(!xCon.is()) return NULL; return xCon->getMetaData(); @@ -146,17 +146,17 @@ void OTableFieldControl::SetModified(BOOL bModified) // ----------------------------------------------------------------------------- Reference< XNumberFormatter > OTableFieldControl::GetFormatter() const { - return GetCtrl()->GetView()->getController()->getNumberFormatter(); + return GetCtrl()->GetView()->getController().getNumberFormatter(); } // ----------------------------------------------------------------------------- TOTypeInfoSP OTableFieldControl::getTypeInfo(sal_Int32 _nPos) { - return GetCtrl()->GetView()->getController()->getTypeInfo(_nPos); + return GetCtrl()->GetView()->getController().getTypeInfo(_nPos); } // ----------------------------------------------------------------------------- const OTypeInfoMap* OTableFieldControl::getTypeInfo() const { - return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController()->getTypeInfo(); + return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController().getTypeInfo(); } // ----------------------------------------------------------------------------- Locale OTableFieldControl::GetLocale() const @@ -166,12 +166,12 @@ Locale OTableFieldControl::GetLocale() const // ----------------------------------------------------------------------------- sal_Bool OTableFieldControl::isAutoIncrementValueEnabled() const { - return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController()->isAutoIncrementValueEnabled(); + return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController().isAutoIncrementValueEnabled(); } // ----------------------------------------------------------------------------- ::rtl::OUString OTableFieldControl::getAutoIncrementValue() const { - return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController()->getAutoIncrementValue(); + return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController().getAutoIncrementValue(); } // ----------------------------------------------------------------------------- |