diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-07-25 12:57:12 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-07-25 12:57:12 +0000 |
commit | a76a8f622cac34dc23aa56b17a4bb8334c43fb13 (patch) | |
tree | 3a53c61683b1986b1bb6e8105ce3fa6ea6d77c8d /svx/source/fmcomp/gridctrl.cxx | |
parent | 99566dd2eaeab9fd83f592541c4c0a4611a700e4 (diff) |
#88927# use DBTOOLS with load-on-demand
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 5a4f0e984f..292b287bc8 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gridctrl.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: fs $ $Date: 2001-07-20 12:44:16 $ + * last change: $Author: fs $ $Date: 2001-07-25 13:57:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,7 +70,9 @@ #ifndef _SVX_GRIDCELL_HXX #include "gridcell.hxx" #endif - +#ifndef SVX_DBTOOLSCLIENT_HXX +#include "dbtoolsclient.hxx" +#endif #ifndef _SVX_FMTOOLS_HXX #include "fmtools.hxx" #endif @@ -196,6 +198,7 @@ using namespace ::dbtools; using namespace ::svxform; using namespace ::svt; using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::util; using namespace ::com::sun::star::datatransfer; #define ROWSTATUS(row) !row.Is() ? "NULL" : row->GetStatus() == GRS_CLEAN ? "CLEAN" : row->GetStatus() == GRS_MODIFIED ? "MODIFIED" : row->GetStatus() == GRS_DELETED ? "DELETED" : "INVALID" @@ -974,7 +977,7 @@ DbGridControl::DbGridControl( ,m_bSynchDisplay(sal_True) ,m_bForceROController(sal_False) ,m_bHandle(sal_False) - ,m_aNullDate(DBTypeConversion::getStandardDate()) + ,m_aNullDate(OTypeConversionClient().getStandardDate()) ,m_nAsynAdjustEvent(0) ,m_pDataSourcePropMultiplexer(NULL) ,m_pDataSourcePropListener(NULL) @@ -1010,7 +1013,7 @@ DbGridControl::DbGridControl( ,m_bSynchDisplay(sal_True) ,m_bForceROController(sal_False) ,m_bHandle(sal_False) - ,m_aNullDate(DBTypeConversion::getStandardDate()) + ,m_aNullDate(OTypeConversionClient().getStandardDate()) ,m_pDataSourcePropMultiplexer(NULL) ,m_pDataSourcePropListener(NULL) ,m_pFieldListeners(NULL) @@ -1483,7 +1486,7 @@ void DbGridControl::setDataSource(const ::com::sun::star::uno::Reference< ::com: // get a new formatter and data cursor m_xFormatter = NULL; - ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = ::dbtools::getNumberFormats(::dbtools::getConnection(_xCursor), sal_True); + Reference< XNumberFormatsSupplier > xSupplier = OStaticDataAccessTools().getNumberFormats(getRowsetConnection(_xCursor), sal_True); if (xSupplier.is() && m_xServiceFactory.is()) { m_xFormatter = ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >( |