Tag: cws_src680_warnings01 User: sb Date: 06/05/23 16:54:24 Modified: /dba/dbaccess/source/ui/inc/ DExport.hxx
Log: RESYNC: (1.14-1.16); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: DExport.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/DExport.hxx?r1=1.14.4.1&r2=1.14.4.2 Delta lines: +31 -17 --------------------- --- DExport.hxx 24 Mar 2006 15:36:14 -0000 1.14.4.1 +++ DExport.hxx 23 May 2006 23:54:21 -0000 1.14.4.2 @@ -41,12 +41,6 @@ #ifndef _COM_SUN_STAR_SDBC_XRESULTSETMETADATA_HPP_ #include <com/sun/star/sdbc/XResultSetMetaData.hpp> #endif -#ifndef _COM_SUN_STAR_SDBC_XRESULTSETUPDATE_HPP_ -#include <com/sun/star/sdbc/XResultSetUpdate.hpp> -#endif -#ifndef _COM_SUN_STAR_SDBC_XROWUPDATE_HPP_ -#include <com/sun/star/sdbc/XRowUpdate.hpp> -#endif #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ #include <com/sun/star/beans/XPropertySet.hpp> #endif @@ -78,15 +72,24 @@ #ifndef _DBAUI_COMMON_TYPES_HXX_ #include "commontypes.hxx" #endif +#ifndef DBAUI_IUPDATEHELPER_HXX +#include "IUpdateHelper.hxx" +#endif -namespace com { namespace sun { namespace star { namespace awt -{ +namespace com { namespace sun { namespace star { + namespace awt{ struct FontDescriptor; -}}}} + } + namespace sdbc{ + class XPreparedStatement; + class XDatabaseMetaData; + } +}}} #define COLUMN_POSITION_NOT_FOUND ((sal_Int32)-1) class Window; +class SvNumberFormatter; namespace dbaui { class OFieldDescription; @@ -112,14 +115,17 @@ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xTables; // container SharedConnection m_xConnection; // dest conn + ::boost::shared_ptr<IUpdateHelper> m_pUpdateHelper; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > m_xResultSet; // - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetUpdate > m_xResultSetUpdate; // ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > m_xResultSetMetaData; // - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowUpdate > m_xRowUpdate; // ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > m_xFormatter; // a number formatter working with the connection's NumberFormatsSupplier ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xFactory; + SvNumberFormatter* m_pFormatter; + String m_sTextToken; // Zellen Inhalt + String m_sNumToken; /// SDNUM value + String m_sValToken; /// SDVAL value TOTypeInfoSP m_pTypeInfo; // contains the default type const TColumnVector* m_pColumnList; const OTypeInfoMap* m_pInfoMap; @@ -143,9 +149,12 @@ virtual OWizTypeSelect* createPage(Window* _pParent) = 0; void CreateDefaultColumn(const ::rtl::OUString& _rColumnName); sal_Int32 CheckString(const String& aToken, sal_Int32 _nOldFormat); + void adjustFormat(); + void eraseTokens(); void insertValueIntoColumn(); sal_Bool createRowSet(); void showErrorDialog(const ::com::sun::star::sdbc::SQLException& e); + void ensureFormatter(); /** executeWizard calls a wizard to create/append data @param _sTableName the tablename @@ -170,14 +179,19 @@ const TPositions& _rColumnPositions, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >& _rxNumberF, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM, - const TColumnVector* rList = 0, - const OTypeInfoMap* _pInfoMap = 0); + const TColumnVector* rList, + const OTypeInfoMap* _pInfoMap, + sal_Bool _bAutoIncrementEnabled); void SetColumnTypes(const TColumnVector* rList,const OTypeInfoMap* _pInfoMap); virtual void release() = 0; void enableCheckOnly() { m_bCheckOnly = sal_True; } sal_Bool isCheckEnabled() const { return m_bCheckOnly; } + + static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement > createPreparedStatment( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData>& _xMetaData + ,const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xDestTable + ,const TPositions& _rvColumns); }; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
