diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-11-15 14:15:05 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-11-15 14:15:05 +0000 |
commit | 7242ac42e16f4fcc5d8ad13541ba251df65650b8 (patch) | |
tree | 88e08fd8e4b404cbfc60a3d26573cf4f6aa1e468 /dbaccess/source/ui/inc/WCopyTable.hxx | |
parent | b0a5c84c535c51b3a3ad365329cd0b30b5276f9e (diff) |
#94820# check type of dest database and adjust if possible
Diffstat (limited to 'dbaccess/source/ui/inc/WCopyTable.hxx')
-rw-r--r-- | dbaccess/source/ui/inc/WCopyTable.hxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/dbaccess/source/ui/inc/WCopyTable.hxx b/dbaccess/source/ui/inc/WCopyTable.hxx index 2b2bd3188bf9..9a6b43e20621 100644 --- a/dbaccess/source/ui/inc/WCopyTable.hxx +++ b/dbaccess/source/ui/inc/WCopyTable.hxx @@ -2,9 +2,9 @@ * * $RCSfile: WCopyTable.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2001-10-26 14:45:22 $ + * last change: $Author: oj $ $Date: 2001-11-15 15:15:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -193,10 +193,14 @@ namespace dbaui // need for table creation void appendColumns(::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier>& _rxColSup,const ODatabaseExport::TColumnVector* _pVec,sal_Bool _bKeyColumns=sal_False); void appendKey(::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XKeysSupplier>& _rxSup,const ODatabaseExport::TColumnVector* _pVec); + // checks if the type is supported in the destination database + sal_Bool supportsType(sal_Int32 _nDataType,sal_Int32& _rNewDataType); protected: OTypeInfoMap m_aTypeInfo; ::std::vector<OTypeInfoMap::iterator> m_aTypeInfoIndex; + OTypeInfoMap m_aDestTypeInfo; + ::std::vector<OTypeInfoMap::iterator> m_aDestTypeInfoIndex; TNameMapping m_mNameMapping; ::std::vector<sal_Int32> m_vColumnPos; @@ -206,6 +210,7 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection; // dest conn ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSourceObject; + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xSourceConnection; // source conn ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xSourceColumns; // container ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > m_xFormatter; @@ -214,6 +219,7 @@ namespace dbaui ::rtl::OUString m_sName; // for a table the name is composed ::rtl::OUString m_sSourceName; ::rtl::OUString m_aKeyName; + OTypeInfo* m_pTypeInfo; // default type public: enum Wizard_Create_Style { @@ -239,6 +245,7 @@ namespace dbaui // used for copy tables or queries OCopyTableWizard(Window * pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _xSourceObject, + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xSourceConnection, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >& _xFormatter, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rM); @@ -273,8 +280,12 @@ namespace dbaui // return sal_True if I need to set the autoincrement value by myself otherwise sal_False sal_Bool SetAutoincrement() const; - const OTypeInfo* getTypeInfo(sal_Int32 _nPos) const { return m_aTypeInfoIndex[_nPos]->second; } - const OTypeInfoMap* getTypeInfo() const { return &m_aTypeInfo; } + const OTypeInfo* getTypeInfo(sal_Int32 _nPos) const { return m_aTypeInfoIndex[_nPos]->second; } + const OTypeInfoMap* getTypeInfo() const { return &m_aTypeInfo; } + + const OTypeInfo* getDestTypeInfo(sal_Int32 _nPos) const { return m_aDestTypeInfoIndex[_nPos]->second; } + const OTypeInfoMap* getDestTypeInfo() const { return &m_aDestTypeInfo; } + ::com::sun::star::lang::Locale GetLocale() const { return m_aLocale; } ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > GetFormatter() const { return m_xFormatter; } ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> GetFactory() const { return m_xFactory; } @@ -300,6 +311,7 @@ namespace dbaui const ::rtl::OUString& _sColumnName, const ::rtl::OUString& _sExtraChars, sal_Int32 _nMaxNameLen); + const OTypeInfo* convertType(const OTypeInfo* _pType); }; } |