diff options
author | Noel Power <noel.power@suse.com> | 2012-08-16 17:43:12 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-08-16 17:43:12 +0100 |
commit | d88325f73e6912928913eb41297e6aa4643655f5 (patch) | |
tree | 61b91a97ac06b00444920a832de8a04c1b5fcd5a | |
parent | 094654fcebe35af07a9e12137becdf85277ef706 (diff) |
Revert "fix for fdo#48200.diff import regrex state for filter"
This reverts commit 094654fcebe35af07a9e12137becdf85277ef706.
20 files changed, 3 insertions, 18 deletions
diff --git a/connectivity/source/drivers/ado/APreparedStatement.cxx b/connectivity/source/drivers/ado/APreparedStatement.cxx index 07ddbeef5c64..d12d0c2179aa 100644 --- a/connectivity/source/drivers/ado/APreparedStatement.cxx +++ b/connectivity/source/drivers/ado/APreparedStatement.cxx @@ -151,7 +151,6 @@ void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException) { - printf("OPreparedStatement::execute"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/ado/AStatement.cxx b/connectivity/source/drivers/ado/AStatement.cxx index 63e17467d970..cf0e8c6886b1 100644 --- a/connectivity/source/drivers/ado/AStatement.cxx +++ b/connectivity/source/drivers/ado/AStatement.cxx @@ -252,7 +252,6 @@ void OStatement_Base::assignRecordSet( ADORecordset* _pRS ) // ------------------------------------------------------------------------- sal_Bool SAL_CALL OStatement_Base::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("OStatement_Base::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx index 6c94688e08c2..3265547c84f6 100644 --- a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx +++ b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx @@ -128,7 +128,6 @@ void SAL_CALL OEvoabPreparedStatement::close( ) throw(SQLException, RuntimeExce sal_Bool SAL_CALL OEvoabPreparedStatement::execute( ) throw(SQLException, RuntimeException) { - printf("OEvoabPreparedStatement::execute()\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/evoab2/NStatement.cxx b/connectivity/source/drivers/evoab2/NStatement.cxx index 136f92e90d8f..7bf00160321b 100644 --- a/connectivity/source/drivers/evoab2/NStatement.cxx +++ b/connectivity/source/drivers/evoab2/NStatement.cxx @@ -615,7 +615,6 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( OStatement, OCommonStatement, OStatement_IBase // ------------------------------------------------------------------------- sal_Bool SAL_CALL OStatement::execute( const ::rtl::OUString& _sql ) throw(SQLException, RuntimeException) { - printf("OStatement::execute()\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx index ee6f01c72069..0d810fcc2b32 100644 --- a/connectivity/source/drivers/file/FPreparedStatement.cxx +++ b/connectivity/source/drivers/file/FPreparedStatement.cxx @@ -169,7 +169,6 @@ void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException) { - printf("OPreparedStatement::execute() #2\n"); RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OPreparedStatement::execute" ); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx index d8453ddf879a..5667260e73ca 100644 --- a/connectivity/source/drivers/file/FStatement.cxx +++ b/connectivity/source/drivers/file/FStatement.cxx @@ -285,7 +285,6 @@ void SAL_CALL OStatement::release() throw() // ------------------------------------------------------------------------- sal_Bool SAL_CALL OStatement::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("OStatement::execute() #2\n"); ::osl::MutexGuard aGuard( m_aMutex ); executeQuery(sql); diff --git a/connectivity/source/drivers/file/fcomp.cxx b/connectivity/source/drivers/file/fcomp.cxx index 5a9ad3c33c27..7dbb6c6d0fd3 100644 --- a/connectivity/source/drivers/file/fcomp.cxx +++ b/connectivity/source/drivers/file/fcomp.cxx @@ -140,7 +140,6 @@ void OPredicateCompiler::start(OSQLParseNode* pSQLParseNode) //------------------------------------------------------------------ OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode) { - printf("OPredicateCompiler::execute()\n"); OOperand* pOperand = NULL; if (pPredicateNode->count() == 3 && // Expression is bracketed SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"(") && diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx index c3f01633a026..a7e24bcccb05 100644 --- a/connectivity/source/drivers/jdbc/JStatement.cxx +++ b/connectivity/source/drivers/jdbc/JStatement.cxx @@ -220,7 +220,6 @@ void SAL_CALL java_sql_Statement::clearBatch( ) throw(::com::sun::star::sdbc::S sal_Bool SAL_CALL java_sql_Statement_Base::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("java_sql_Statement_Base::execute() #2\n"); m_aLogger.log( LogLevel::FINE, STR_LOG_EXECUTE_STATEMENT, sql ); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(java_sql_Statement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/kab/KPreparedStatement.cxx b/connectivity/source/drivers/kab/KPreparedStatement.cxx index 4315a7fa6faa..26167b358d12 100644 --- a/connectivity/source/drivers/kab/KPreparedStatement.cxx +++ b/connectivity/source/drivers/kab/KPreparedStatement.cxx @@ -142,7 +142,6 @@ void SAL_CALL KabPreparedStatement::close() throw(SQLException, RuntimeException // ------------------------------------------------------------------------- sal_Bool SAL_CALL KabPreparedStatement::execute() throw(SQLException, RuntimeException) { - printf("KabPreparedStatement::execute() #4\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/kab/KStatement.cxx b/connectivity/source/drivers/kab/KStatement.cxx index 85c64a92d4a1..a84d476d4927 100644 --- a/connectivity/source/drivers/kab/KStatement.cxx +++ b/connectivity/source/drivers/kab/KStatement.cxx @@ -394,7 +394,6 @@ void SAL_CALL KabCommonStatement::close( ) throw(SQLException, RuntimeException sal_Bool SAL_CALL KabCommonStatement::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("KabCommonStatement::execute() #4\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx index bb5275d4a506..79a65cc74438 100644 --- a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx +++ b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx @@ -155,7 +155,6 @@ void SAL_CALL MacabPreparedStatement::close() throw(SQLException, RuntimeExcepti // ------------------------------------------------------------------------- sal_Bool SAL_CALL MacabPreparedStatement::execute() throw(SQLException, RuntimeException) { - printf("MacabPreparedStatement::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx b/connectivity/source/drivers/macab/MacabStatement.cxx index 4d5ecd211e33..7ea31f7e35b4 100644 --- a/connectivity/source/drivers/macab/MacabStatement.cxx +++ b/connectivity/source/drivers/macab/MacabStatement.cxx @@ -402,7 +402,6 @@ void SAL_CALL MacabCommonStatement::close( ) throw(SQLException, RuntimeExcepti sal_Bool SAL_CALL MacabCommonStatement::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("MacabCommonStatement::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/mozab/MPreparedStatement.cxx b/connectivity/source/drivers/mozab/MPreparedStatement.cxx index dfecab73db4c..9a650effd215 100644 --- a/connectivity/source/drivers/mozab/MPreparedStatement.cxx +++ b/connectivity/source/drivers/mozab/MPreparedStatement.cxx @@ -174,7 +174,6 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData( ) thr // ------------------------------------------------------------------------- sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException) { - printf("--- OPreparedStatement::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/mozab/MStatement.cxx b/connectivity/source/drivers/mozab/MStatement.cxx index 723788fe4cc2..c1041d909cae 100644 --- a/connectivity/source/drivers/mozab/MStatement.cxx +++ b/connectivity/source/drivers/mozab/MStatement.cxx @@ -305,7 +305,6 @@ void OCommonStatement::cacheResultSet( const ::rtl::Reference< OResultSet >& _pR // ------------------------------------------------------------------------- sal_Bool SAL_CALL OCommonStatement::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("--- OCommentStatement::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx index 4174c1481b1b..a5d24dddc628 100644 --- a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx @@ -144,7 +144,6 @@ void SAL_CALL OPreparedStatement::close( ) throw(SQLException, RuntimeException sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeException) { - printf("--- OPreparedStatement::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); diff --git a/connectivity/source/drivers/odbcbase/OStatement.cxx b/connectivity/source/drivers/odbcbase/OStatement.cxx index 08a398450e8b..ce92dee3fc0f 100644 --- a/connectivity/source/drivers/odbcbase/OStatement.cxx +++ b/connectivity/source/drivers/odbcbase/OStatement.cxx @@ -331,7 +331,6 @@ sal_Int32 OStatement_Base::getColumnCount () throw( SQLException) sal_Bool SAL_CALL OStatement_Base::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException) { - printf("--- OStatement_Base::execute\n"); ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OStatement_BASE::rBHelper.bDisposed); m_sSqlStatement = sql; diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx index e56432ef387d..9c35eefc63eb 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.cxx @@ -388,7 +388,6 @@ sal_Int32 PreparedStatement::executeUpdate( ) sal_Bool PreparedStatement::execute( ) throw (SQLException, RuntimeException) { - printf("--- PreparedStatement::execute\n"); osl::MutexGuard guard( m_refMutex->mutex ); OStringBuffer buf( m_stmt.getLength() *2 ); diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index b597832764fd..7304b153bbe8 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -897,7 +897,6 @@ Reference< XResultSet > getGeneratedValuesFromLastInsert( sal_Bool Statement::execute( const OUString& sql ) throw (SQLException, RuntimeException) { - printf("--- Statement::execute\n"); osl::MutexGuard guard( m_refMutex->mutex ); checkClosed(); OString cmd = OUStringToOString( sql, m_pSettings ); diff --git a/sc/source/filter/xml/xmlfilti.cxx b/sc/source/filter/xml/xmlfilti.cxx index ff4d2a3eddf1..c3db5be4df73 100644 --- a/sc/source/filter/xml/xmlfilti.cxx +++ b/sc/source/filter/xml/xmlfilti.cxx @@ -57,6 +57,7 @@ ScXMLFilterContext::ScXMLFilterContext( ScXMLImport& rImport, pDatabaseRangeContext(pTempDatabaseRangeContext), bSkipDuplicates(false), bCopyOutputData(false), + bUseRegularExpressions(false), bConditionSourceRange(false) { ScDocument* pDoc(GetScImport().GetDocument()); @@ -147,6 +148,7 @@ SvXMLImportContext *ScXMLFilterContext::CreateChildContext( sal_uInt16 nPrefix, void ScXMLFilterContext::EndElement() { + mrQueryParam.bRegExp = bUseRegularExpressions; mrQueryParam.bInplace = !bCopyOutputData; mrQueryParam.bDuplicate = !bSkipDuplicates; diff --git a/sc/source/filter/xml/xmlfilti.hxx b/sc/source/filter/xml/xmlfilti.hxx index 052829ecdc8b..8a9715dc8183 100644 --- a/sc/source/filter/xml/xmlfilti.hxx +++ b/sc/source/filter/xml/xmlfilti.hxx @@ -62,6 +62,7 @@ class ScXMLFilterContext : public SvXMLImportContext sal_Int16 nUserListIndex; bool bSkipDuplicates; bool bCopyOutputData; + bool bUseRegularExpressions; bool bEnabledUserList; bool bConditionSourceRange; std::vector<ConnStackItem> maConnStack; |