OSL_TRACE->SAL in chart2..oox

Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2
Reviewed-on: https://gerrit.libreoffice.org/31907
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2016-12-12 16:31:57 +02:00
parent a005fbeddc
commit c3586b684c
60 changed files with 110 additions and 462 deletions

View File

@ -104,7 +104,6 @@ void DataEditor::dispose()
SvtMiscOptions aMiscOptions;
aMiscOptions.RemoveListenerLink( LINK( this, DataEditor, MiscHdl ) );
OSL_TRACE( "DataEditor: DTOR" );
m_pTbxData.clear();
m_xBrwData.disposeAndClear();
ModalDialog::dispose();

View File

@ -112,8 +112,6 @@ ChartModel::ChartModel(uno::Reference<uno::XComponentContext > const & xContext)
,bSet(false)
, mpOpenGLWindow(nullptr)
{
OSL_TRACE( "ChartModel: CTOR called" );
osl_atomic_increment(&m_refCount);
{
m_xOldModelAgg.set(
@ -158,8 +156,6 @@ ChartModel::ChartModel( const ChartModel & rOther )
, bSet(false)
, mpOpenGLWindow(nullptr)
{
OSL_TRACE( "ChartModel: Copy-CTOR called" );
osl_atomic_increment(&m_refCount);
{
m_xOldModelAgg.set(
@ -195,7 +191,6 @@ ChartModel::ChartModel( const ChartModel & rOther )
ChartModel::~ChartModel()
{
OSL_TRACE( "ChartModel: DTOR called" );
if( m_xOldModelAgg.is())
m_xOldModelAgg->setDelegator( nullptr );
}
@ -455,7 +450,7 @@ void SAL_CALL ChartModel::unlockControllers() throw(uno::RuntimeException, std::
return; //behave passive if already disposed or closed or throw exception @todo?
if( m_nControllerLockCount == 0 )
{
OSL_TRACE( "ChartModel: unlockControllers called with m_nControllerLockCount == 0" );
SAL_WARN("chart2", "ChartModel: unlockControllers called with m_nControllerLockCount == 0" );
return;
}
--m_nControllerLockCount;
@ -579,8 +574,6 @@ void SAL_CALL ChartModel::dispose() throw(uno::RuntimeException, std::exception)
if( m_xOldModelAgg.is())
m_xOldModelAgg->setDelegator( nullptr );
OSL_TRACE( "ChartModel: dispose() called" );
}
void SAL_CALL ChartModel::addEventListener( const uno::Reference< lang::XEventListener > & xListener )

View File

@ -189,7 +189,7 @@ Reference< document::XFilter > ChartModel::impl_createFilter(
// fall-back: create XML-Filter
if( ! xFilter.is())
{
OSL_TRACE( "No FilterName passed in MediaDescriptor" );
SAL_WARN("chart2", "No FilterName passed in MediaDescriptor" );
xFilter.set(
m_xContext->getServiceManager()->createInstanceWithContext(
"com.sun.star.comp.chart2.XMLFilter", m_xContext ),

View File

@ -118,7 +118,7 @@ bool LifeTimeManager::dispose()
if( m_bDisposed || m_bInDispose )
{
OSL_TRACE( "This component is already disposed " );
SAL_WARN("chart2", "This component is already disposed " );
return false; //behave passive if already disposed
}

View File

@ -161,19 +161,12 @@ static bool is_option(
if (len == 2 && arg[ 1 ] == option_info->m_short_option)
{
++(*pIndex);
#if OSL_DEBUG_LEVEL > 1
OSL_TRACE(
__FILE__": identified option \'%c\'", option_info->m_short_option );
#endif
return true;
}
if (arg[ 1 ] == '-' && rtl_ustr_ascii_compare(
arg.pData->buffer + 2, option_info->m_name ) == 0)
{
++(*pIndex);
#if OSL_DEBUG_LEVEL > 1
OSL_TRACE( __FILE__": identified option \'%s\'", option_info->m_name );
#endif
return true;
}
return false;
@ -199,11 +192,6 @@ static bool read_argument(
{
osl_getCommandArg( *pIndex, &pValue->pData );
++(*pIndex);
#if OSL_DEBUG_LEVEL > 1
OString cstr_val(
OUStringToOString( *pValue, osl_getThreadTextEncoding() ) );
OSL_TRACE( __FILE__": argument value: %s\n", cstr_val.getStr() );
#endif
return true;
}
--(*pIndex);

View File

@ -124,7 +124,6 @@ namespace comphelper
{
::osl::MutexGuard aGuard( m_xImpl->aMutex );
OSL_TRACE( "AsyncEventNotifier(%p): adding %p", this, _rEvent.get() );
// remember this event
m_xImpl->aEvents.push_back( ProcessableEvent( _rEvent, _xProcessor ) );
@ -149,9 +148,6 @@ namespace comphelper
{
aEvent = m_xImpl->aEvents.front();
m_xImpl->aEvents.pop_front();
OSL_TRACE(
"AsyncEventNotifier(%p): popping %p", this,
aEvent.aEvent.get());
}
if (m_xImpl->aEvents.empty())
{

View File

@ -41,7 +41,7 @@ sal_Int16 getNumberFormatType(const css::uno::Reference<css::util::XNumberFormat
}
catch(...)
{
OSL_TRACE("getNumberFormatType : invalid key! (maybe created with another formatter ?)");
SAL_WARN("comphelper", "getNumberFormatType : invalid key! (maybe created with another formatter ?)");
}
}
return nReturn;
@ -72,7 +72,7 @@ css::uno::Any getNumberFormatDecimals(const css::uno::Reference<css::util::XNumb
}
catch(...)
{
OSL_TRACE("getNumberFormatDecimals : invalid key! (may be created with another formatter ?)");
SAL_WARN("comphelper", "getNumberFormatDecimals : invalid key! (may be created with another formatter ?)");
}
}
return css::uno::makeAny((sal_Int16)0);

View File

@ -697,7 +697,7 @@ void ONDXNode::Write(SvStream &rStream, const ONDXPage& rPage) const
{
if (sizeof(double) != rIndex.getHeader().db_keylen)
{
OSL_TRACE("this key length cannot possibly be right?");
SAL_WARN("connectivity.dbase", "this key length cannot possibly be right?");
}
if (aKey.getValue().isNull())
{
@ -935,8 +935,8 @@ SvStream& connectivity::dbase::WriteONDXPage(SvStream &rStream, const ONDXPage&
void ONDXPage::PrintPage()
{
OSL_TRACE("\nSDB: -----------Page: %d Parent: %d Count: %d Child: %d-----",
nPagePos, HasParent() ? aParent->GetPagePos() : 0 ,nCount, aChild.GetPagePos());
SAL_WARN("connectivity.dbase", "SDB: -----------Page: " << nPagePos << " Parent: " << (HasParent() ? aParent->GetPagePos() : 0)
<< " Count: " << nCount << " Child: " << aChild.GetPagePos() << "-----");
for (sal_uInt16 i = 0; i < nCount; i++)
{
@ -947,18 +947,20 @@ void ONDXPage::PrintPage()
if (rKey.getValue().isNull())
{
OSL_TRACE("SDB: [%d,NULL,%d]",rKey.GetRecord(), rNode.GetChild().GetPagePos());
SAL_WARN("connectivity.dbase", "SDB: [" << rKey.GetRecord() << ",NULL," << rNode.GetChild().GetPagePos() << "]");
}
else if (rIndex.getHeader().db_keytype)
{
OSL_TRACE("SDB: [%d,%f,%d]",rKey.GetRecord(), rKey.getValue().getDouble(),rNode.GetChild().GetPagePos());
SAL_WARN("connectivity.dbase", "SDB: [" << rKey.GetRecord() << "," << rKey.getValue().getDouble()
<< "," << rNode.GetChild().GetPagePos() << "]");
}
else
{
OSL_TRACE("SDB: [%d,%s,%d]",rKey.GetRecord(), OUStringToOString(rKey.getValue().getString(), rIndex.m_pTable->getConnection()->getTextEncoding()).getStr(),rNode.GetChild().GetPagePos());
SAL_WARN("connectivity.dbase", "SDB: [" << rKey.GetRecord() << "," << rKey.getValue().getString()
<< "," << rNode.GetChild().GetPagePos() << "]" );
}
}
OSL_TRACE("SDB: -----------------------------------------------");
SAL_WARN("connectivity.dbase", "SDB: -----------------------------------------------");
if (!IsLeaf())
{
#if OSL_DEBUG_LEVEL > 1
@ -970,7 +972,7 @@ void ONDXPage::PrintPage()
}
#endif
}
OSL_TRACE("SDB: ===============================================");
SAL_WARN("connectivity.dbase", "SDB: ===============================================");
}
#endif

View File

@ -306,7 +306,6 @@ ODatabaseMetaDataResultSet::ORows& OEvoabDatabaseMetaData::getColumnRows( const
aRow[5] = new ORowSetValueDecorator( static_cast<sal_Int16>( getFieldType( i ) ) );
aRow[6] = new ORowSetValueDecorator( getFieldTypeName( i ) );
OSL_TRACE( "ColumnName = '%s'", g_param_spec_get_name( pFields[i]->pField ) );
// COLUMN_NAME
aRow[4] = new ORowSetValueDecorator( getFieldName( i ) );
// ORDINAL_POSITION

View File

@ -263,10 +263,8 @@ getValue( EContact* pContact, sal_Int32 nColumnNum, GType nType, GValue* pStackV
if ( G_PARAM_SPEC_VALUE_TYPE (pSpec) != nType )
{
OSL_TRACE( "Wrong type (0x%x) (0x%x) '%s'",
(int)G_PARAM_SPEC_VALUE_TYPE (pSpec), (int) nType,
pSpec->name ? pSpec->name : "<noname>");
SAL_WARN("connectivity.evoab", "Wrong type (0x" << std::hex << (int)G_PARAM_SPEC_VALUE_TYPE(pSpec) << ") (0x"
<< std::hex << (int) nType << ") " << (pSpec->name ? pSpec->name : "<noname>"));
return false;
}
@ -290,7 +288,7 @@ getValue( EContact* pContact, sal_Int32 nColumnNum, GType nType, GValue* pStackV
pStackValue );
if ( G_VALUE_TYPE( pStackValue ) != nType )
{
OSL_TRACE( "Fetched type mismatch" );
SAL_WARN("connectivity.evoab", "Fetched type mismatch" );
g_value_unset( pStackValue );
return false;
}
@ -1079,8 +1077,6 @@ void SAL_CALL OEvoabResultSet::cancel( ) throw(RuntimeException, std::exception
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
OSL_TRACE("In/Out: OEvoabResultSet::cancel" );
}
//XCloseable
@ -1090,7 +1086,6 @@ void SAL_CALL OEvoabResultSet::close( ) throw(SQLException, RuntimeException, s
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
}
OSL_TRACE("In/Out: OEvoabResultSet::close" );
dispose();
}
@ -1098,13 +1093,11 @@ void SAL_CALL OEvoabResultSet::close( ) throw(SQLException, RuntimeException, s
void SAL_CALL OEvoabResultSet::clearWarnings( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OEvoabResultSet::clearWarnings" );
m_aWarnings.clearWarnings();
}
Any SAL_CALL OEvoabResultSet::getWarnings( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OEvoabResultSet::getWarnings" );
return m_aWarnings.getWarnings();
}

View File

@ -75,7 +75,6 @@ namespace connectivity
}
}
}
//OSL_TRACE("QuotedTokenizedString::nTokCount = %d\n", ((OUtoCStr(OUString(nTokCount))) ? (OUtoCStr(OUString(nTokCount))):("NULL")) );
return nTokCount;
}

View File

@ -358,8 +358,8 @@ namespace connectivity
{
if (env->ExceptionCheck())
env->ExceptionClear();
SAL_WARN("connectivity.hsqldb", "forwarding Exception: " << _aException.Message );
OString cstr( OUStringToOString(_aException.Message, RTL_TEXTENCODING_JAVA_UTF8 ) );
OSL_TRACE( __FILE__": forwarding Exception: %s", cstr.getStr() );
env->ThrowNew(env->FindClass("java/io/IOException"), cstr.getStr());
}

View File

@ -79,8 +79,7 @@ extern "C" SAL_JNI_EXPORT jboolean JNICALL Java_com_sun_star_sdbcx_comp_hsqldb_S
OSL_FAIL("Exception caught! : Java_com_sun_star_sdbcx_comp_hsqldb_StorageFileAccess_isStreamElement");
if (env->ExceptionCheck())
env->ExceptionClear();
OString cstr( OUStringToOString(e.Message, RTL_TEXTENCODING_JAVA_UTF8 ) );
OSL_TRACE( __FILE__": forwarding Exception: %s", cstr.getStr() );
SAL_WARN("connectivity.hsqldb", "forwarding Exception: " << e.Message);
}
}
return JNI_FALSE;

View File

@ -397,8 +397,6 @@ Reference< XResultSet > SAL_CALL KabCommonStatement::executeQuery(
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
OSL_TRACE("KDE Address book - SQL Request: %s", OUtoCStr(sql));
KabResultSet* pResult = new KabResultSet(this);
Reference< XResultSet > xRS = pResult;
OUString aErr;

View File

@ -404,8 +404,6 @@ Reference< XResultSet > SAL_CALL MacabCommonStatement::executeQuery(
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(rBHelper.bDisposed);
OSL_TRACE("Mac OS Address book - SQL Request: %s", OUtoCStr(sql));
MacabResultSet* pResult = new MacabResultSet(this);
Reference< XResultSet > xRS = pResult;
OUString aErr;

View File

@ -358,7 +358,6 @@ void OConnection::disposing()
Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
{
OSL_TRACE("IN OConnection::createCatalog()" );
::osl::MutexGuard aGuard( m_aMutex );
Reference< XTablesSupplier > xTab = m_xCatalog;
if(!m_xCatalog.is())
@ -367,7 +366,6 @@ Reference< XTablesSupplier > SAL_CALL OConnection::createCatalog()
xTab = pCat;
m_xCatalog = xTab;
}
OSL_TRACE( "\tOUT OConnection::createCatalog()" );
return xTab;
}

View File

@ -13,12 +13,6 @@
#include <connectivity/dbtools.hxx>
#include <com/sun/star/sdbc/ColumnValue.hpp>
#if OSL_DEBUG_LEVEL > 0
# define OUtoCStr( x ) ( OUStringToOString ( (x), RTL_TEXTENCODING_ASCII_US).getStr())
#else /* OSL_DEBUG_LEVEL */
# define OUtoCStr( x ) ("dummy")
#endif /* OSL_DEBUG_LEVEL */
using namespace ::comphelper;
using namespace connectivity;
using namespace connectivity::mork;
@ -167,7 +161,6 @@ void SAL_CALL OPreparedStatement::setString( sal_Int32 parameterIndex, const OUS
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
OSL_TRACE("prepStmt::setString( %s )", OUtoCStr( x ) );
setParameter( parameterIndex, x );
}
@ -184,7 +177,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection( ) throw(SQ
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
OSL_TRACE("In: OPreparedStatement::executeQuery" );
checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
// our statement has already been parsed in lateInit, no need to do all this (potentially expensive)

View File

@ -79,17 +79,13 @@ MQueryHelper::MQueryHelper(const OColumnAlias& _ca)
MQueryHelper::~MQueryHelper()
{
clear_results();
OSL_TRACE("OUT MQueryHelper::~MQueryHelper()");
}
void MQueryHelper::setAddressbook(OUString &ab)
{
::osl::MutexGuard aGuard(m_aMutex);
m_aAddressbook = ab;
OSL_TRACE("\tOUT MQuery::setAddressbook()");
}
void MQueryHelper::append(MQueryHelperResultEntry* resEnt)

View File

@ -398,7 +398,6 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
// here you have to implement your movements
// return true means there is no data
OSL_TRACE("In/Out: OResultSet::isBeforeFirst" );
return( m_nRowPos < 1 );
}
@ -407,7 +406,6 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
SAL_WARN("connectivity.mork", "OResultSet::isAfterLast() NOT IMPLEMENTED!");
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::isAfterLast" );
// return sal_True;
return m_nRowPos > currentRowCount() && MQueryHelper::queryComplete();
}
@ -416,7 +414,6 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException,
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::isFirst" );
return m_nRowPos == 1;
}
@ -425,7 +422,6 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException, s
SAL_WARN("connectivity.mork", "OResultSet::isLast() NOT IMPLEMENTED!");
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::isLast" );
// return sal_True;
return m_nRowPos == currentRowCount() && MQueryHelper::queryComplete();
}
@ -435,7 +431,6 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException,
ResultSetEntryGuard aGuard( *this );
// move before the first row so that isBeforeFirst returns false
OSL_TRACE("In/Out: OResultSet::beforeFirst" );
if ( first() )
previous();
}
@ -443,7 +438,6 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException,
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException, std::exception)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::afterLast" );
if(last())
next();
@ -452,48 +446,40 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException, st
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::close" );
dispose();
}
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::first" );
return seekRow( FIRST_POS );
}
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::last" );
return seekRow( LAST_POS );
}
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::absolute" );
return seekRow( ABSOLUTE_POS, row );
}
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::relative" );
return seekRow( RELATIVE_POS, row );
}
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException, std::exception)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::previous" );
return seekRow( PRIOR_POS );
}
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException, std::exception)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::getStatement" );
return m_xStatement;
}
@ -536,25 +522,19 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException,
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException, std::exception)
{
ResultSetEntryGuard aGuard( *this );
OSL_TRACE("In/Out: OResultSet::cancel" );
}
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::clearWarnings" );
}
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::getWarnings" );
return Any();
}
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("In/Out: OResultSet::refreshRow" );
if (fetchRow(getCurrentCardNumber(),true)) {
//force fetch current row will cause we lose all change to the current row
m_pStatement->getOwnConnection()->throwSQLException( STR_ERROR_REFRESH_ROW, *this );
@ -746,7 +726,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
if ( SQL_ISRULE(parseTree,where_clause) )
{
OSL_TRACE("analyseSQL : Got WHERE clause");
// Reset Parameter Counter
resetParameters();
analyseWhereClause( parseTree->getChild( 1 ), queryExpression );
@ -755,8 +734,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
SQL_ISPUNCTUATION(parseTree->getChild(0),"(") &&
SQL_ISPUNCTUATION(parseTree->getChild(2),")"))
{
OSL_TRACE("analyseSQL : Got Punctuation ()");
MQueryExpression *subExpression = new MQueryExpression();
analyseWhereClause( parseTree->getChild( 1 ), *subExpression );
queryExpression.addExpression( subExpression );
@ -764,9 +741,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
else if ((SQL_ISRULE(parseTree,search_condition) || (SQL_ISRULE(parseTree,boolean_term)))
&& parseTree->count() == 3) // Handle AND/OR
{
OSL_TRACE("analyseSQL : Got AND/OR clause");
// TODO - Need to take care or AND, for now match is always OR
analyseWhereClause( parseTree->getChild( 0 ), queryExpression );
analyseWhereClause( parseTree->getChild( 2 ), queryExpression );
@ -817,7 +791,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
}
if ( columnName == "0" && op == MQueryOp::Is && matchString == "1" ) {
OSL_TRACE("Query always evaluates to FALSE");
m_bIsAlwaysFalseQuery = true;
}
queryExpression.addExpression( new MQueryExpressionString( columnName, op, matchString ));
@ -826,8 +799,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
{
OSL_ENSURE(parseTree->count() == 2, "Error parsing LIKE predicate");
OSL_TRACE("analyseSQL : Got LIKE rule");
if ( !(SQL_ISRULE(parseTree->getChild(0), column_ref)) )
{
m_pStatement->getOwnConnection()->throwSQLException( STR_QUERY_INVALID_LIKE_COLUMN, *this );
@ -851,8 +822,6 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
( pAtom->getChild(0) && pAtom->getChild(0)->getNodeType() == SQLNodeType::String )
) )
{
OSL_TRACE("analyseSQL : pAtom->count() = %zu", pAtom->count() );
m_pStatement->getOwnConnection()->throwSQLException( STR_QUERY_INVALID_LIKE_STRING, *this );
}
@ -985,8 +954,7 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
}
else
{
OSL_TRACE( "Unexpected statement!!!" );
SAL_WARN("connectivity.mork", "Unexpected statement!!!" );
m_pStatement->getOwnConnection()->throwSQLException( STR_QUERY_TOO_COMPLEX, *this );
}
}
@ -1024,8 +992,6 @@ void OResultSet::fillRowData()
{
// Extract required info
OSL_TRACE("\tHave a Where Clause");
analyseWhereClause( pParseTree, queryExpression );
}
// If the query is a 0=1 then set Row count to 0 and return
@ -1052,8 +1018,6 @@ void OResultSet::fillRowData()
determineReadOnly();
SAL_INFO("connectivity.mork", "executeQuery returned " << rv);
OSL_TRACE( "\tOUT OResultSet::fillRowData()" );
}
@ -1189,13 +1153,10 @@ void SAL_CALL OResultSet::executeQuery() throw(css::sdbc::SQLException,
// query to the mozilla addressbooks has returned all
// values.
OSL_TRACE("Query is to be sorted");
OSL_ENSURE( MQueryHelper::queryComplete(), "Query not complete!!");
OSortIndex aSortIndex(eKeyType,m_aOrderbyAscending);
OSL_TRACE("OrderbyColumnNumber->size() = %zu",m_aOrderbyColumnNumber.size());
#if OSL_DEBUG_LEVEL > 0
for ( ::std::vector<sal_Int32>::size_type i = 0; i < m_aColMapping.size(); i++ )
SAL_INFO(
@ -1374,9 +1335,6 @@ bool OResultSet::validRow( sal_uInt32 nRow)
sal_Int32 nNumberOfRecords = m_aQueryHelper.getResultCount();
while ( nRow > (sal_uInt32)nNumberOfRecords && !MQueryHelper::queryComplete() ) {
#if OSL_DEBUG_LEVEL > 0
OSL_TRACE("validRow: waiting...");
#endif
if (!m_aQueryHelper.checkRowAvailable( nRow ))
{
SAL_INFO(
@ -1438,30 +1396,22 @@ bool OResultSet::seekRow( eRowPosition pos, sal_Int32 nOffset )
SAL_INFO("connectivity.mork", "nCurPos = " << nCurPos);
switch( pos ) {
case NEXT_POS:
OSL_TRACE("seekRow: NEXT");
nCurPos++;
break;
case PRIOR_POS:
OSL_TRACE("seekRow: PRIOR");
if ( nCurPos > 0 )
nCurPos--;
break;
case FIRST_POS:
OSL_TRACE("seekRow: FIRST");
nCurPos = 1;
break;
case LAST_POS:
OSL_TRACE("seekRow: LAST");
nCurPos = nRetrievedRows;
break;
case ABSOLUTE_POS:
SAL_INFO("connectivity.mork", "ABSOLUTE : " << nOffset);
nCurPos = nOffset;
break;
case RELATIVE_POS:
SAL_INFO("connectivity.mork", "RELATIVE : " << nOffset);
nCurPos += sal_uInt32( nOffset );
break;
}
@ -1584,7 +1534,6 @@ void OResultSet::checkPendingUpdate() throw(SQLException, RuntimeException)
{
OSL_FAIL( "OResultSet::checkPendingUpdate() not implemented" );
/*
OSL_TRACE("checkPendingUpdate, m_nRowPos = %u", m_nRowPos );
const sal_Int32 nCurrentRow = getCurrentCardNumber();
if ((m_nNewRow && nCurrentRow != m_nNewRow)
@ -1803,13 +1752,11 @@ bool OResultSet::determineReadOnly()
void OResultSet::setTable(OTable* _rTable)
{
OSL_TRACE("In : setTable");
m_pTable = _rTable;
m_pTable->acquire();
m_xTableColumns = m_pTable->getColumns();
if(m_xTableColumns.is())
m_aColumnNames = m_xTableColumns->getElementNames();
OSL_TRACE("Out : setTable");
}
void OResultSet::setOrderByColumns(const ::std::vector<sal_Int32>& _aColumnOrderBy)

View File

@ -33,12 +33,6 @@
#include "resource/mork_res.hrc"
#include "resource/common_res.hrc"
#if OSL_DEBUG_LEVEL > 0
# define OUtoCStr( x ) ( OUStringToOString ( (x), RTL_TEXTENCODING_ASCII_US).getStr())
#else /* OSL_DEBUG_LEVEL */
# define OUtoCStr( x ) ("dummy")
#endif /* OSL_DEBUG_LEVEL */
static ::osl::Mutex m_ThreadMutex;
using namespace ::comphelper;
@ -126,12 +120,6 @@ OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql
m_pParseTree = m_aParser.parseTree(aErr,sql);
#if OSL_DEBUG_LEVEL > 0
{
OSL_TRACE("ParseSQL: %s", OUtoCStr( sql ) );
}
#endif // OSL_DEBUG_LEVEL
if(m_pParseTree)
{
m_pSQLIterator->setParseTree(m_pParseTree);
@ -143,13 +131,6 @@ OCommonStatement::StatementType OCommonStatement::parseSql( const OUString& sql
getOwnConnection()->throwSQLException( STR_QUERY_AT_LEAST_ONE_TABLES, *this );
}
#if OSL_DEBUG_LEVEL > 0
OSQLTables::const_iterator citer;
for( citer = rTabs.begin(); citer != rTabs.end(); ++citer ) {
OSL_TRACE("SELECT Table : %s", OUtoCStr(citer->first) );
}
#endif
Reference<XIndexAccess> xNames;
switch(m_pSQLIterator->getStatementType())
{
@ -242,8 +223,6 @@ sal_Bool SAL_CALL OCommonStatement::execute( const OUString& sql ) throw(SQLExce
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
OSL_TRACE("Statement::execute( %s )", OUtoCStr( sql ) );
Reference< XResultSet > xRS = executeQuery( sql );
// returns true when a resultset is available
return xRS.is();
@ -255,8 +234,6 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery( const OUString&
::osl::MutexGuard aGuard( m_ThreadMutex );
checkDisposed(OCommonStatement_IBASE::rBHelper.bDisposed);
OSL_TRACE("Statement::executeQuery( %s )", OUtoCStr( sql ) );
// parse the statement
StatementType eStatementType = parseSql( sql );
if ( eStatementType != eSelect )

View File

@ -28,10 +28,6 @@ IniParser::IniParser(OUString const & rIniName) throw(css::io::IOException, std:
return;
#if OSL_DEBUG_LEVEL > 0
OString sFile = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE(__FILE__" -- parser() - %s\n", sFile.getStr());
#endif
oslFileHandle handle=nullptr;
oslFileError fileError = osl_File_E_INVAL;
try{
@ -40,10 +36,7 @@ IniParser::IniParser(OUString const & rIniName) throw(css::io::IOException, std:
}
catch(const css::io::IOException&)
{
#if OSL_DEBUG_LEVEL > 0
OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE( __FILE__" -- couldn't open file: %s", file_tmp.getStr() );
#endif
SAL_WARN("connectivity.mozab", "couldn't open file: " << iniUrl );
}
if (osl_File_E_None == fileError)
@ -92,13 +85,10 @@ IniParser::IniParser(OUString const & rIniName) throw(css::io::IOException, std:
}
osl_closeFile(handle);
}
#if OSL_DEBUG_LEVEL > 0
else
{
OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE( __FILE__" -- couldn't open file: %s", file_tmp.getStr() );
SAL_WARN("connectivity.mozab", "couldn't open file: " << iniUrl );
}
#endif
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -478,7 +478,7 @@ static void properties2arrays( const Sequence< PropertyValue > & args,
else
{
// ignore for now
OSL_TRACE("sdbc-postgresql: unknown argument '%s'", OUStringToOString( args[i].Name, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_WARN("connectivity.postgresql", "sdbc-postgresql: unknown argument " << args[i].Name );
}
}
}

View File

@ -73,10 +73,6 @@ public:
throw css::io::IOException();
#if OSL_DEBUG_LEVEL > 1
OString sFile = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE(__FILE__" -- parser() - %s\n", sFile.getStr());
#endif
oslFileHandle handle=NULL;
if (iniUrl.getLength() &&
osl_File_E_None == osl_openFile(iniUrl.pData, &handle, osl_File_OpenFlag_Read))
@ -128,8 +124,7 @@ public:
#if OSL_DEBUG_LEVEL > 1
else
{
OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE( __FILE__" -- couldn't open file: %s", file_tmp.getStr() );
SAL_WARN("connectivity", "couldn't open file: " << iniUrl );
throw css::io::IOException();
}
#endif
@ -142,19 +137,13 @@ public:
for(;iBegin != iEnd;iBegin++)
{
ini_Section *aSection = &(*iBegin).second;
OString sec_name_tmp = OUStringToOString(aSection->sName, RTL_TEXTENCODING_ASCII_US);
for(NameValueList::iterator itor=aSection->lList.begin();
itor != aSection->lList.end();
itor++)
{
struct ini_NameValue * aValue = &(*itor);
OString name_tmp = OUStringToOString(aValue->sName, RTL_TEXTENCODING_ASCII_US);
OString value_tmp = OUStringToOString(aValue->sValue, RTL_TEXTENCODING_UTF8);
OSL_TRACE(
" section=%s name=%s value=%s\n",
sec_name_tmp.getStr(),
name_tmp.getStr(),
value_tmp.getStr() );
SAL_WARN("connectivity",
" section=" << aSection->sName << " name=" << aValue->sName << " value=" << aValue->sValue );
}
}

View File

@ -716,7 +716,7 @@ void newTypeDescription(
&& (pStructMembers == nullptr || eTypeClass == typelib_TypeClass_STRUCT));
if (typelib_TypeClass_TYPEDEF == eTypeClass)
{
OSL_TRACE( "### unexpected typedef!" );
SAL_WARN("cppu", "unexpected typedef!" );
typelib_typedescriptionreference_getDescription( ppRet, pType );
return;
}

View File

@ -656,7 +656,7 @@ void writeLine(
}
else
{
OSL_TRACE( "%s", pLine );
SAL_WARN("cppu", pLine );
}
}
}

View File

@ -204,7 +204,7 @@ void OComponentHelper::dispose()
// in a multithreaded environment, it can't be avoided
// that dispose is called twice.
// However this condition is traced, because it MAY indicate an error.
OSL_TRACE( "OComponentHelper::dispose() - dispose called twice" );
SAL_WARN("cppuhelper", "OComponentHelper::dispose() - dispose called twice" );
}
}

View File

@ -592,18 +592,12 @@ static void SAL_CALL typelib_callback(
catch (container::NoSuchElementException & exc)
{
(void) exc; // avoid warning about unused variable
OSL_TRACE(
"typelibrary type not available: %s",
OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_WARN("cppuhelper", "typelibrary type not available: " << exc.Message );
}
catch (Exception & exc)
{
(void) exc; // avoid warning about unused variable
OSL_TRACE(
"%s",
OUStringToOString(
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_WARN("cppuhelper", exc.Message );
}
}
}

View File

@ -97,8 +97,6 @@
#include "dlgname.hxx"
#define PRTSTR(x) OUStringToOString(x, RTL_TEXTENCODING_ASCII_US).pData->buffer
#define ENTRY_HEIGHT 16
static const char ITEM_DESCRIPTOR_COMMANDURL[] = "CommandURL";
@ -136,7 +134,7 @@ void printPropertySet(
uno::Sequence< beans::Property > aPropDetails =
xPropSetInfo->getProperties();
OSL_TRACE("printPropertySet: %d properties", aPropDetails.getLength());
SAL_WARN("cui", "printPropertySet: " << aPropDetails.getLength() << " properties" );
for ( sal_Int32 i = 0; i < aPropDetails.getLength(); ++i )
{
@ -147,18 +145,15 @@ void printPropertySet(
if ( a >>= tmp )
{
OSL_TRACE("%s: Got property: %s = %s",
PRTSTR(prefix), PRTSTR(aPropDetails[i].Name), PRTSTR(tmp));
SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << tmp);
}
else if ( ( a >>= ival ) )
{
OSL_TRACE("%s: Got property: %s = %d",
PRTSTR(prefix), PRTSTR(aPropDetails[i].Name), ival);
SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << " = " << ival);
}
else
{
OSL_TRACE("%s: Got property: %s of type %s",
PRTSTR(prefix), PRTSTR(aPropDetails[i].Name), PRTSTR(a.getValueTypeName()));
SAL_WARN("cui", prefix << ": Got property: " << aPropDetails[i].Name << " of type " << a.getValueTypeName());
}
}
}
@ -173,8 +168,7 @@ void printProperties(
aProp[i].Value >>= tmp;
OSL_TRACE("%s: Got property: %s = %s",
PRTSTR(prefix), PRTSTR(aProp[i].Name), PRTSTR(tmp));
SAL_WARN("cui", prefix << ": Got property: " << aProp[i].Name << " = " << tmp);
}
}
@ -186,7 +180,7 @@ void printEntries(SvxEntries* entries)
{
SvxConfigEntry* entry = *iter;
OSL_TRACE("printEntries: %s", PRTSTR(entry->GetName()));
SAL_WARN("cui", "printEntries: " << entry->GetName());
}
}
@ -405,8 +399,6 @@ void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry* pChildEntry )
bool
SvxConfigPage::CanConfig( const OUString& aModuleId )
{
OSL_TRACE("SupportsDocumentConfig: %s", PRTSTR(aModuleId));
if ( aModuleId == "com.sun.star.script.BasicIDE" || aModuleId == "com.sun.star.frame.Bibliography" )
{
return false;
@ -1197,15 +1189,15 @@ bool MenuSaveInData::Apply()
}
catch ( container::NoSuchElementException& )
{
OSL_TRACE("caught container::NoSuchElementException saving settings");
SAL_WARN("cui.customize", "caught container::NoSuchElementException saving settings");
}
catch ( css::io::IOException& )
{
OSL_TRACE("caught IOException saving settings");
SAL_WARN("cui.customize", "caught IOException saving settings");
}
catch ( css::uno::Exception& )
{
OSL_TRACE("caught some other exception saving settings");
SAL_WARN("cui.customize", "caught some other exception saving settings");
}
SetModified( false );
@ -3482,7 +3474,7 @@ IMPL_LINK( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, void )
}
catch ( uno::Exception& )
{
OSL_TRACE("Error restoring image");
SAL_WARN("cui.customize", "Error restoring image");
}
break;
}
@ -3557,7 +3549,7 @@ IMPL_LINK( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, void )
}
catch ( uno::Exception& )
{
OSL_TRACE("Error replacing image");
SAL_WARN("cui.customize", "Error replacing image");
}
}
}
@ -3617,7 +3609,7 @@ IMPL_LINK( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, void )
}
catch ( uno::Exception& )
{
OSL_TRACE("Error resetting image");
SAL_WARN("cui.customize", "Error resetting image");
}
break;
}
@ -3784,7 +3776,7 @@ void ToolbarSaveInData::SetSystemStyle(
catch ( uno::Exception& )
{
// do nothing, a default value is returned
OSL_TRACE("Exception setting toolbar style");
SAL_WARN("cui.customize", "Exception setting toolbar style");
}
}
}
@ -4140,7 +4132,7 @@ void ToolbarSaveInData::Reset()
}
catch ( uno::Exception& )
{
OSL_TRACE("Error resetting all icons when resetting toolbars");
SAL_WARN("cui.customize", "Error resetting all icons when resetting toolbars");
}
}
@ -4239,15 +4231,15 @@ void ToolbarSaveInData::ApplyToolbar( SvxConfigEntry* pToolbar )
}
catch ( container::NoSuchElementException& )
{
OSL_TRACE("caught container::NoSuchElementException saving settings");
SAL_WARN("cui.customize", "caught container::NoSuchElementException saving settings");
}
catch ( css::io::IOException& )
{
OSL_TRACE("caught IOException saving settings");
SAL_WARN("cui.customize", "caught IOException saving settings");
}
catch ( css::uno::Exception& )
{
OSL_TRACE("caught some other exception saving settings");
SAL_WARN("cui.customize", "caught some other exception saving settings");
}
PersistChanges( GetConfigManager() );
@ -4275,19 +4267,19 @@ void ToolbarSaveInData::CreateToolbar( SvxConfigEntry* pToolbar )
}
catch ( container::ElementExistException& )
{
OSL_TRACE("caught ElementExistsException saving settings");
SAL_WARN("cui.customize", "caught ElementExistsException saving settings");
}
catch ( css::lang::IllegalArgumentException& )
{
OSL_TRACE("caught IOException saving settings");
SAL_WARN("cui.customize", "caught IOException saving settings");
}
catch ( css::lang::IllegalAccessException& )
{
OSL_TRACE("caught IOException saving settings");
SAL_WARN("cui.customize", "caught IOException saving settings");
}
catch ( css::uno::Exception& )
{
OSL_TRACE("caught some other exception saving settings");
SAL_WARN("cui.customize", "caught some other exception saving settings");
}
GetEntries()->push_back( pToolbar );
@ -4369,10 +4361,10 @@ void ToolbarSaveInData::RestoreToolbar( SvxConfigEntry* pToolbar )
{
GetImageManager()->removeImages( GetImageType(), aURLSeq );
}
catch ( uno::Exception& )
{
OSL_TRACE("Error restoring icon when resetting toolbar");
}
catch ( uno::Exception& )
{
SAL_WARN("cui.customize", "Error restoring icon when resetting toolbar");
}
}
PersistChanges( GetImageManager() );
}
@ -5574,17 +5566,17 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL )
}
else
{
OSL_TRACE("could not create Image from XGraphic");
SAL_WARN("cui.customize", "could not create Image from XGraphic");
}
}
else
{
OSL_TRACE("could not get query XGraphic");
SAL_WARN("cui.customize", "could not get query XGraphic");
}
}
catch( uno::Exception& e )
{
OSL_TRACE("Caught exception importing XGraphic: %s", PRTSTR(e.Message));
SAL_WARN("cui.customize", "Caught exception importing XGraphic: " << e.Message);
}
return result;
}

View File

@ -182,9 +182,7 @@ void SFTreeListBox::Init( const OUString& language )
}
catch( Exception& e )
{
OSL_TRACE("Exception getting root browse node from factory: %s",
OUStringToOString(
e.Message , RTL_TEXTENCODING_ASCII_US ).pData->buffer );
SAL_WARN("cui.dialogs", "Exception getting root browse node from factory: " << e.Message );
// TODO exception handling
}
@ -762,8 +760,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton, void )
}
catch( Exception& e )
{
OSL_TRACE("Caught exception trying to invoke %s", OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).pData->buffer );
SAL_WARN("cui.dialogs", "Caught exception trying to invoke " << e.Message );
}
}
}
@ -940,9 +937,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
}
catch( Exception& e )
{
OSL_TRACE("Caught exception trying to Create %s",
OUStringToOString(
e.Message, RTL_TEXTENCODING_ASCII_US ).pData->buffer );
SAL_WARN("cui.dialogs", "Caught exception trying to Create " << e.Message );
}
}
if ( aChildNode.is() )
@ -1044,9 +1039,7 @@ void SvxScriptOrgDialog::renameEntry( SvTreeListEntry* pEntry )
}
catch( Exception& e )
{
OSL_TRACE("Caught exception trying to Rename %s",
OUStringToOString(
e.Message, RTL_TEXTENCODING_ASCII_US ).pData->buffer );
SAL_WARN("cui.dialogs", "Caught exception trying to Rename " << e.Message );
}
}
if ( aChildNode.is() )
@ -1092,9 +1085,7 @@ void SvxScriptOrgDialog::deleteEntry( SvTreeListEntry* pEntry )
}
catch( Exception& e )
{
OSL_TRACE("Caught exception trying to delete %s",
OUStringToOString(
e.Message, RTL_TEXTENCODING_ASCII_US ).pData->buffer );
SAL_WARN("cui.dialogs", "Caught exception trying to delete " << e.Message );
}
}

View File

@ -290,19 +290,15 @@ void SvxProxyTabPage::ReadConfigData_Impl()
m_pNoProxyForED->SetText( aStringValue );
}
}
catch (const container::NoSuchElementException&) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" );
}
catch (const css::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" );
}
catch (const RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" );
}
}
void SvxProxyTabPage::ReadConfigDefaults_Impl()
@ -351,16 +347,14 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl()
}
catch (const beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
catch (const css::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
catch (const RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
}
@ -382,19 +376,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl()
Reference< util::XChangesBatch > xChangesBatch(m_xConfigurationUpdateAccess, UNO_QUERY_THROW);
xChangesBatch->commitChanges();
}
catch (const beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
catch (const css::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
catch (const RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
}
@ -480,25 +471,20 @@ bool SvxProxyTabPage::FillItemSet(SfxItemSet* )
Reference< util::XChangesBatch > xChangesBatch(m_xConfigurationUpdateAccess, UNO_QUERY_THROW);
xChangesBatch->commitChanges();
}
catch (const css::lang::IllegalArgumentException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" );
}
catch (const beans::UnknownPropertyException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" );
}
catch (const beans::PropertyVetoException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" );
}
catch (const css::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" );
}
catch (const RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" );
SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: RuntimeException caught" );
}
return bModified;

View File

@ -414,8 +414,7 @@ IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, CheckNowHdl_Impl, Button*, void)
}
catch( const uno::Exception& e )
{
OSL_TRACE( "Caught exception: %s\n thread terminated.\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("cui.options", "Caught exception, thread terminated. " << e.Message);
}
}

View File

@ -154,8 +154,6 @@ ODatabaseDocument::ODatabaseDocument(const ::rtl::Reference<ODatabaseModelImpl>&
,m_bHasBeenRecovered( false )
,m_bEmbedded(false)
{
OSL_TRACE( "DD: ctor: %p: %p", this, m_pImpl.get() );
osl_atomic_increment( &m_refCount );
{
impl_reparent_nothrow( m_xForms );
@ -189,7 +187,6 @@ ODatabaseDocument::ODatabaseDocument(const ::rtl::Reference<ODatabaseModelImpl>&
ODatabaseDocument::~ODatabaseDocument()
{
OSL_TRACE( "DD: dtor: %p: %p", this, m_pImpl.get() );
if ( !ODatabaseDocument_OfficeDocument::rBHelper.bInDispose && !ODatabaseDocument_OfficeDocument::rBHelper.bDisposed )
{
acquire();
@ -1790,7 +1787,6 @@ void ODatabaseDocument::impl_notifyStorageChange_nolck_nothrow( const Reference<
void ODatabaseDocument::disposing()
{
OSL_TRACE( "DD: disp: %p: %p", this, m_pImpl.get() );
if ( !m_pImpl.is() )
{
// this means that we're already disposed

View File

@ -746,7 +746,7 @@ bool OApplicationController::paste( ElementType _eType, const svx::ODataAccessDe
}
}
else
OSL_TRACE("There should be a sequence in it!");
SAL_WARN("dbaccess", "There should be a sequence in it!");
return true;
}
else if ( _rPasteData.has(DataAccessDescriptorProperty::Component) ) // forms or reports

View File

@ -560,7 +560,6 @@ void syncRepositories(
Reference<task::XRestartManager> restarter(task::OfficeRestartManager::get(comphelper::getProcessComponentContext()));
if (restarter.is())
{
OSL_TRACE( "Request restart for modified extensions manager" );
restarter->requestRestart(xCmdEnv.is() ? xCmdEnv->getInteractionHandler() :
Reference<task::XInteractionHandler>());
}

View File

@ -1202,9 +1202,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveInsertion(
try {
set->insert(css::uno::Any(*factory++));
} catch (const container::ElementExistException &) {
OSL_TRACE(
"implementation %s already registered",
OUStringToOString(*i, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("desktop", "implementation already registered " << *i);
}
}
if (!data.singletons.empty()) {
@ -1226,10 +1224,7 @@ void BackendImpl::ComponentPackageImpl::componentLiveInsertion(
try {
cont->insertByName(name, css::uno::Any());
} catch (const container::ElementExistException &) {
OSL_TRACE(
"singleton %s already registered",
OUStringToOString(
i->first, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("desktop", "singleton already registered " << i->first);
cont->replaceByName(name, css::uno::Any());
}
}

View File

@ -117,9 +117,6 @@ namespace accessibility
// #i27138#
mpParaManager( _pParaManager )
{
#ifdef DBG_UTIL
OSL_TRACE( "AccessibleEditableTextPara received ID: %d", mnNotifierClientId );
#endif
try
{
@ -148,9 +145,6 @@ namespace accessibility
try
{
::comphelper::AccessibleEventNotifier::revokeClient( getNotifierClientId() );
#ifdef DBG_UTIL
OSL_TRACE( "AccessibleEditableTextPara revoked ID: %d", mnNotifierClientId );
#endif
}
catch (const uno::Exception&)
{
@ -307,9 +301,6 @@ namespace accessibility
// #106234# Delegate to EventNotifier
::comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing( nClientId, xThis );
#ifdef DBG_UTIL
OSL_TRACE( "Disposed ID: %d", nClientId );
#endif
}
catch (const uno::Exception&)
{
@ -710,11 +701,7 @@ namespace accessibility
uno::Reference< XAccessible > SAL_CALL AccessibleEditableTextPara::getAccessibleParent() throw (uno::RuntimeException, std::exception)
{
#ifdef DBG_UTIL
if( !mxParent.is() )
OSL_TRACE( "AccessibleEditableTextPara::getAccessibleParent: no frontend set, did somebody forgot to call AccessibleTextHelper::SetEventSource()?");
#endif
SAL_WARN_IF(!mxParent.is(), "editeng", "AccessibleEditableTextPara::getAccessibleParent: no frontend set, did somebody forgot to call AccessibleTextHelper::SetEventSource()?");
return mxParent;
}

View File

@ -63,10 +63,6 @@ namespace accessibility
// fetched. Nevertheless, normally should employ RAII here...
mnNotifierClientId(::comphelper::AccessibleEventNotifier::registerClient())
{
#ifdef DBG_UTIL
OSL_TRACE( "Received ID: %d", mnNotifierClientId );
#endif
try
{
// Create the state set.
@ -91,9 +87,6 @@ namespace accessibility
try
{
::comphelper::AccessibleEventNotifier::revokeClient( getNotifierClientId() );
#ifdef DBG_UTIL
OSL_TRACE( "AccessibleImageBullet revoked ID: %d", mnNotifierClientId );
#endif
}
catch( const uno::Exception& ) {}
}
@ -401,9 +394,6 @@ namespace accessibility
// #106234# Delegate to EventNotifier
::comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing( nClientId, xThis );
#ifdef DBG_UTIL
OSL_TRACE( "AccessibleImageBullet disposed ID: %d", nClientId );
#endif
}
catch( const uno::Exception& ) {}
}

View File

@ -3079,7 +3079,7 @@ bool SvxCharScaleWidthItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberI
return true;
}
OSL_TRACE( "SvxCharScaleWidthItem::PutValue - Wrong type!" );
SAL_WARN("editeng", "SvxCharScaleWidthItem::PutValue - Wrong type!" );
return false;
}

View File

@ -140,22 +140,18 @@ bool LdapUserProfileBe::readLdapConfiguration(
}
catch (const uno::Exception & e)
{
OSL_TRACE("LdapUserProfileBackend: access to configuration data failed: %s",
OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() );
SAL_WARN("extensions.config", "LdapUserProfileBackend: access to configuration data failed: " << e.Message);
return false;
}
osl::Security aSecurityContext;
if (!aSecurityContext.getUserName(*loggedOnUser))
OSL_TRACE("LdapUserProfileBackend - could not get Logged on user from system");
SAL_WARN("extensions.config", "LdapUserProfileBackend - could not get Logged on user from system");
sal_Int32 nIndex = loggedOnUser->indexOf('/');
if (nIndex > 0)
*loggedOnUser = loggedOnUser->copy(nIndex+1);
//Remember to remove
OSL_TRACE("Logged on user is %s", OUStringToOString(*loggedOnUser,RTL_TEXTENCODING_ASCII_US).getStr());
return true;
}

View File

@ -248,21 +248,18 @@ namespace pcr
void SAL_CALL PropertyControlContext_Impl::focusGained( const Reference< XPropertyControl >& Control ) throw (RuntimeException, std::exception)
{
OSL_TRACE( "PropertyControlContext_Impl: FOCUS_GAINED" );
impl_notify_throw( Control, FOCUS_GAINED );
}
void SAL_CALL PropertyControlContext_Impl::valueChanged( const Reference< XPropertyControl >& Control ) throw (RuntimeException, std::exception)
{
OSL_TRACE( "PropertyControlContext_Impl: VALUE_CHANGED" );
impl_notify_throw( Control, VALUE_CHANGED );
}
void SAL_CALL PropertyControlContext_Impl::activateNextControl( const Reference< XPropertyControl >& CurrentControl ) throw (RuntimeException, std::exception)
{
OSL_TRACE( "PropertyControlContext_Impl: ACTIVATE_NEXT" );
impl_notify_throw( CurrentControl, ACTIVATE_NEXT );
}
@ -304,15 +301,12 @@ namespace pcr
switch ( rControlEvent.eType )
{
case FOCUS_GAINED:
OSL_TRACE( "PropertyControlContext_Impl::processEvent: FOCUS_GAINED" );
m_pContext->focusGained( rControlEvent.xControl );
break;
case VALUE_CHANGED:
OSL_TRACE( "PropertyControlContext_Impl::processEvent: VALUE_CHANGED" );
m_pContext->valueChanged( rControlEvent.xControl );
break;
case ACTIVATE_NEXT:
OSL_TRACE( "PropertyControlContext_Impl::processEvent: ACTIVATE_NEXT" );
m_pContext->activateNextControl( rControlEvent.xControl );
break;
}

View File

@ -537,8 +537,7 @@ UpdateCheckThread::run()
catch(const uno::Exception& e) {
// Silently catch all errors
OSL_TRACE( "Caught exception: %s\n thread terminated.\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() );
SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message );
}
}
@ -553,8 +552,7 @@ ManualUpdateCheckThread::run()
}
catch(const uno::Exception& e) {
// Silently catch all errors
OSL_TRACE( "Caught exception: %s\n thread terminated.\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() );
SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message );
}
}

View File

@ -141,8 +141,7 @@ void SAL_CALL InitUpdateCheckJobThread::run()
aController->showDialog( true );
} catch (const uno::Exception &e) {
// fdo#64962 - don't bring the app down on some unexpected exception.
OSL_TRACE( "Caught init update exception: %s\n thread terminated.\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() );
SAL_WARN("extensions.update", "Caught init update exception, thread terminated. " << e.Message );
}
}
@ -246,8 +245,7 @@ void UpdateCheckJob::handleExtensionUpdates( const uno::Sequence< beans::NamedVa
}
catch( const uno::Exception& e )
{
OSL_TRACE( "Caught exception: %s\n thread terminated.\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message);
}
}

View File

@ -80,8 +80,6 @@ checkForUpdates(
uno::Reference< task::XInteractionHandler > const & rxInteractionHandler,
const uno::Reference< deployment::XUpdateInformationProvider >& rUpdateInfoProvider)
{
OSL_TRACE("checking for updates ..");
OUString myArch;
OUString myOS;

View File

@ -70,16 +70,14 @@ SAL_IMPLEMENT_MAIN()
{
uno::Sequence< uno::Reference< xml::dom::XElement > > theUpdateInfo =
rUpdateInformationProvider->getUpdateInformation( theURLs, aExtension );
OSL_TRACE( "getUpdateInformation returns %d element(s)", theUpdateInfo.getLength() );
}
catch( const uno::Exception & e )
{
OSL_TRACE( "exception caught: %s", OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr());
SAL_WARN("extensions.update", "exception caught: " << e.Message);
}
catch( ... )
{
OSL_TRACE( "exception of undetermined type caught" );
SAL_WARN("extensions.update", "exception of undetermined type caught" );
}

View File

@ -85,16 +85,12 @@ public:
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException)
{
sal_Int32 n = m_xStream->readBytes(aData, nBytesToRead);
if ( n )
OSL_TRACE( "Read [%d] bytes: %s", n, aData.get()->elements );
return n;
};
virtual sal_Int32 SAL_CALL readSomeBytes(uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead)
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException)
{
sal_Int32 n = m_xStream->readSomeBytes(aData, nMaxBytesToRead);
if ( n )
OSL_TRACE( "Read [%d] bytes: %s", n, aData.get()->elements );
return n;
};
virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )

View File

@ -60,13 +60,12 @@ void CustomToolBarImportHelper::applyIcons()
uno::Sequence< uno::Reference< graphic::XGraphic > > images(1);
images[ 0 ] = it->image;
OSL_TRACE("About to applyIcons for command %s, have image ? %s", OUStringToOString( commands[ 0 ], RTL_TEXTENCODING_UTF8 ).getStr(), images[ 0 ].is() ? "yes" : "no" );
uno::Reference< ui::XImageManager > xImageManager( getCfgManager()->getImageManager(), uno::UNO_QUERY_THROW );
sal_uInt16 nColor = ui::ImageType::COLOR_NORMAL;
vcl::Window* topwin = Application::GetActiveTopWindow();
if ( topwin != nullptr && topwin->GetDisplayBackground().GetColor().IsDark() )
nColor = css::ui::ImageType::COLOR_HIGHCONTRAST;
if ( topwin != nullptr && topwin->GetDisplayBackground().GetColor().IsDark() )
nColor = css::ui::ImageType::COLOR_HIGHCONTRAST;
ScaleImage( images[ 0 ], 16 );
xImageManager->replaceImages( ui::ImageType::SIZE_DEFAULT | nColor, commands, images );

View File

@ -92,7 +92,6 @@ SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath )
osl::FileBase::getFileURLFromSystemPath( sMacroURLOrPath, aURL );
aObj.SetURL( aURL );
}
OSL_TRACE("Trying to find shell for url %s", OUStringToOString( aURL, RTL_TEXTENCODING_UTF8 ).getStr() );
while ( pShell )
{
@ -185,10 +184,6 @@ bool hasMacro( SfxObjectShell* pShell, const OUString& sLibrary, OUString& sMod,
#else
if ( !sLibrary.isEmpty() && !sMacro.isEmpty() )
{
OSL_TRACE("** Searching for %s.%s in library %s"
,OUStringToOString( sMod, RTL_TEXTENCODING_UTF8 ).getStr()
,OUStringToOString( sMacro, RTL_TEXTENCODING_UTF8 ).getStr()
,OUStringToOString( sLibrary, RTL_TEXTENCODING_UTF8 ).getStr() );
BasicManager* pBasicMgr = pShell-> GetBasicManager();
if ( pBasicMgr )
{

View File

@ -39,7 +39,6 @@ inline sal_uInt8 hex2int( char val )
void setFourBitColor( double& rChannel, char nChar )
{
const sal_uInt8 nVal(hex2int(nChar));
OSL_TRACE( "setFourBitCOlor %d color", nVal );
rChannel = (nVal*16+nVal)/255.0;
}
@ -47,20 +46,17 @@ void setEightBitColor( double& rChannel, const char* pStart, const char* )
{
const sal_uInt8 nVal0(hex2int(pStart[0]));
const sal_uInt8 nVal1(hex2int(pStart[1]));
OSL_TRACE( "setEightbitCOlor %d, %d color", nVal0, nVal1 );
rChannel = (nVal0*16+nVal1)/255.0;
}
void setIntColor( double& rChannel, sal_uInt8 nVal )
{
OSL_TRACE( "setIntColor %d color", nVal );
rChannel = nVal/255.0;
}
void setPercentColor( double& rChannel, double nVal )
{
rChannel = nVal/100.0;
SAL_INFO("svg", "setPercentColor " << nVal << " " << rChannel);
}
void calcRotation(std::vector<geometry::AffineMatrix2D>& rTransforms,
@ -72,7 +68,6 @@ void calcRotation(std::vector<geometry::AffineMatrix2D>& rTransforms,
aCurr.rotate(fRotationAngle*M_PI/180);
aCurr.translate(rCurrTransform.m02,rCurrTransform.m12);
OSL_TRACE("calcRotation - fRotationAngle - %f", fRotationAngle);
rTransforms.push_back(
basegfx::unotools::affineMatrixFromHomMatrix(
rCurrTransform,

View File

@ -473,14 +473,6 @@ struct AnnotatingVisitor
maCurrState.maCTM = maCurrState.maCTM*maCurrState.maTransform*aLocalTransform;
OSL_TRACE("annotateStyle - CTM is: %f %f %f %f %f %f",
maCurrState.maCTM.get(0,0),
maCurrState.maCTM.get(0,1),
maCurrState.maCTM.get(0,2),
maCurrState.maCTM.get(1,0),
maCurrState.maCTM.get(1,1),
maCurrState.maCTM.get(1,2));
// if necessary, serialize to automatic-style section
writeStyle(xElem,nTagId);
}
@ -1869,14 +1861,6 @@ struct ShapeWritingVisitor
xAttrs->Clear();
OSL_TRACE("writePath - the CTM is: %f %f %f %f %f %f",
maCurrState.maCTM.get(0,0),
maCurrState.maCTM.get(0,1),
maCurrState.maCTM.get(0,2),
maCurrState.maCTM.get(1,0),
maCurrState.maCTM.get(1,1),
maCurrState.maCTM.get(1,2));
// TODO(F2): separate out shear, rotate etc.
// apply transformation to polygon, to keep draw
// import in 100th mm
@ -2087,29 +2071,17 @@ struct DumpingVisitor
{
void operator()( const uno::Reference<xml::dom::XElement>& xElem )
{
OSL_TRACE("name: %s",
OUStringToOString(
xElem->getTagName(),
RTL_TEXTENCODING_UTF8 ).getStr());
SAL_WARN("filter", "name: " << xElem->getTagName());
}
void operator()( const uno::Reference<xml::dom::XElement>& xElem,
const uno::Reference<xml::dom::XNamedNodeMap>& xAttributes )
{
OSL_TRACE("name: %s",
OUStringToOString(
xElem->getTagName(),
RTL_TEXTENCODING_UTF8 ).getStr());
SAL_WARN("filter", "name: " << xElem->getTagName());
const sal_Int32 nNumAttrs( xAttributes->getLength() );
for( sal_Int32 i=0; i<nNumAttrs; ++i )
{
OSL_TRACE(" %s=%s",
OUStringToOString(
xAttributes->item(i)->getNodeName(),
RTL_TEXTENCODING_UTF8 ).getStr(),
OUStringToOString(
xAttributes->item(i)->getNodeValue(),
RTL_TEXTENCODING_UTF8 ).getStr());
SAL_WARN("filter", xAttributes->item(i)->getNodeName() << "=" << xAttributes->item(i)->getNodeValue());
}
}

View File

@ -28,7 +28,6 @@ public:
ARGBColor aOut(16, 32, 48);
CPPUNIT_ASSERT_MESSAGE( "Consuming color #112233",
parseColor( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing color #112233",
aOut==aTmp );
@ -36,7 +35,6 @@ public:
aOut=ARGBColor(51, 34, 17);
CPPUNIT_ASSERT_MESSAGE( "Consuming color #321",
parseColor( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing color #321",
aOut==aTmp );
@ -44,7 +42,6 @@ public:
aOut=ARGBColor(100, 200, 50);
CPPUNIT_ASSERT_MESSAGE( "Consuming color rgb(100,200,50)",
parseColor( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing color rgb(100,200,50)",
aOut==aTmp );
@ -52,7 +49,6 @@ public:
aOut=ARGBColor(0.1, 0.2, 0.9);
CPPUNIT_ASSERT_MESSAGE( "Consuming color rgb(0.1,0.2,0.9)",
parseColor( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing color rgb(0.1,0.2,0.9)",
aOut==aTmp );
@ -60,7 +56,6 @@ public:
aOut=ARGBColor(222,184,135);
CPPUNIT_ASSERT_MESSAGE( "Consuming color burlywood",
parseColor( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing color burlywood",
aOut==aTmp );
}
@ -73,7 +68,6 @@ public:
ARGBColor aOut(0.123, 0.0, 0.0, 0.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming opacity 0.123",
parseOpacity( sIn, aTmp ) );
OSL_TRACE("color is: a:%f r:%f g:%f b:%f", aTmp.a, aTmp.r, aTmp.g, aTmp.b);
CPPUNIT_ASSERT_MESSAGE( "Parsing opacity 0.123",
aOut==aTmp );
}
@ -86,8 +80,6 @@ public:
basegfx::B2DHomMatrix aTmp;
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation none",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation none",
aOut==aTmp );
@ -96,8 +88,6 @@ public:
aOut.scale(10.0,10.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation scale(10)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation scale(10)",
aOut==aTmp );
@ -106,8 +96,6 @@ public:
aOut.scale(10.0,20.12);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation scale(10 20.12)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation scale(10 20.12)",
aOut==aTmp );
@ -116,8 +104,6 @@ public:
aOut.set(0,0,1.0); aOut.set(1,0,2.0); aOut.set(0,1,3.0); aOut.set(1,1,4.0); aOut.set(0,2,5.0); aOut.set(1,2,6.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation matrix(1,2,3,4,5,6)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation matrix(1,2,3,4,5,6)",
aOut==aTmp );
@ -126,8 +112,6 @@ public:
aOut.set(0,0,0.0); aOut.set(1,0,10.0); aOut.set(0,1,-10.0); aOut.set(1,1,0.0); aOut.set(0,2,0.0); aOut.set(1,2,0.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation matrix(1,2,3,4,5,6)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation matrix(1,2,3,4,5,6)",
aOut==aTmp );
@ -136,8 +120,6 @@ public:
aOut.set(0,0,1.0); aOut.set(1,0,1.0); aOut.set(0,1,0.0); aOut.set(1,1,1.0); aOut.set(0,2,0.0); aOut.set(1,2,0.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation skewX(45)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation skewX(45)",
aOut==aTmp );
@ -146,8 +128,6 @@ public:
aOut.set(0,0,1.0); aOut.set(1,0,0.0); aOut.set(0,1,1.0); aOut.set(1,1,1.0); aOut.set(0,2,0.0); aOut.set(1,2,0.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming transformation skewY(45)",
parseTransform( sIn, aTmp ) );
OSL_TRACE("transformation is: m00:%f m01:%f m02:%f m10:%f m11:%f m12:%f",
aTmp.get(0,0), aTmp.get(0,1), aTmp.get(0,2), aTmp.get(1,0), aTmp.get(1,1), aTmp.get(1,2) );
CPPUNIT_ASSERT_MESSAGE( "Parsing transformation skewY(45)",
aOut==aTmp );
}
@ -160,7 +140,6 @@ public:
basegfx::B2DRange aOut(10,20,40.5,25);
CPPUNIT_ASSERT_MESSAGE( "Consuming 10,20,30.5,5",
parseViewBox( sIn, aTmp ) );
OSL_TRACE("viewbox is: x1:%f y1:%f x2:%f y2:%f", aTmp.getMinX(), aTmp.getMinY(), aTmp.getMaxX(), aTmp.getMaxY());
CPPUNIT_ASSERT_MESSAGE( "Parsing 10,20,30.5,5",
aOut==aTmp );
}
@ -173,7 +152,6 @@ public:
std::vector<double> aOut; aOut.push_back(10.0); aOut.push_back(20.0); aOut.push_back(-10.0);
CPPUNIT_ASSERT_MESSAGE( "Consuming 10,20,-10.00",
parseDashArray( sIn, aTmp ) );
OSL_TRACE("dash array is: len %d, %f %f %f", aTmp.size(), aTmp[0], aTmp[1], aTmp[2] );
CPPUNIT_ASSERT_MESSAGE( "Parsing 10,20,-10.00",
aOut==aTmp );
}

View File

@ -68,7 +68,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
if( argc != 4 )
{
OSL_TRACE( "Invocation: svg2odf <base_url> <dst_url> <ini_file>. Exiting" );
SAL_WARN("filter.svg", "Invocation: svg2odf <base_url> <dst_url> <ini_file>. Exiting" );
return 1;
}
@ -98,7 +98,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
xFactory.set(xCtx->getServiceManager(), uno::UNO_QUERY);
if (!xFactory.is())
{
OSL_TRACE( "Could not bootstrap UNO, installation must be in disorder. Exiting." );
SAL_WARN("filter.svg", "Could not bootstrap UNO, installation must be in disorder. Exiting." );
return 1;
}
@ -107,7 +107,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
osl::File aInputFile(aSrcURL);
if( osl::FileBase::E_None!=aInputFile.open(osl_File_OpenFlag_Read) )
{
OSL_TRACE( "Cannot open input file" );
SAL_WARN("filter.svg", "Cannot open input file" );
return 1;
}

View File

@ -82,7 +82,7 @@ double convLength( const OUString& value, SvgUnit unit, const State& rState, cha
fRet *= fBoxLen/100.0;
}
break;
default: OSL_TRACE( "Unknown length type" ); break;
default: SAL_WARN("filter.svg", "Unknown length type" ); break;
}
return fRet;

View File

@ -541,31 +541,18 @@ namespace frm
if ( bNeedParametrizedDispatcher )
{
#if OSL_DEBUG_LEVEL > 0
OString sTrace( "ORichTextPeer::implCreateDispatcher: creating *parametrized* dispatcher for " );
sTrace += OString( _rURL.Complete.getStr(), _rURL.Complete.getLength(), RTL_TEXTENCODING_ASCII_US );
OSL_TRACE( "%s", sTrace.getStr() );
#endif
pAttributeDispatcher = new OParametrizedAttributeDispatcher( pRichTextControl->getView(), _nSlotId, _rURL, pRichTextControl );
}
else
{
#if OSL_DEBUG_LEVEL > 0
OString sTrace( "ORichTextPeer::implCreateDispatcher: creating *normal* dispatcher for " );
sTrace += OString( _rURL.Complete.getStr(), _rURL.Complete.getLength(), RTL_TEXTENCODING_ASCII_US );
OSL_TRACE( "%s", sTrace.getStr() );
#endif
pAttributeDispatcher = new OAttributeDispatcher( pRichTextControl->getView(), _nSlotId, _rURL, pRichTextControl );
}
}
#if OSL_DEBUG_LEVEL > 0
else
{
OString sTrace( "ORichTextPeer::implCreateDispatcher: not creating dispatcher (unsupported slot) for " );
sTrace += OString( _rURL.Complete.getStr(), _rURL.Complete.getLength(), RTL_TEXTENCODING_ASCII_US );
OSL_TRACE( "%s", sTrace.getStr() );
SAL_WARN("forms.richtext", "ORichTextPeer::implCreateDispatcher: not creating dispatcher (unsupported slot) for "
<< _rURL.Complete);
}
#endif
}
break;
}

View File

@ -237,7 +237,6 @@ void FilterHelper::ensureFilterList( const ::rtl::OUString& _rInitialCurrentFilt
// set the first filter to the current filter
m_aCurrentFilter = _rInitialCurrentFilter;
OSL_TRACE("ensureFilterList filter:%s", OUStringToOString(m_aCurrentFilter, RTL_TEXTENCODING_UTF8).getStr());
}
}
@ -250,23 +249,6 @@ void FilterHelper::SetCurFilter( const rtl::OUString& rFilter )
m_aCurrentFilter = rFilter;
}
//only for output purposes
#if OSL_DEBUG_LEVEL > 0
FilterList::iterator aFilter = ::std::find_if(m_pFilterList->begin(), m_pFilterList->end(), FilterTitleMatch(m_aCurrentFilter));
if (aFilter != m_pFilterList->end()) {
OUStringList suffixes = aFilter->getFilterSuffixList();
if (!suffixes.empty()) {
SAL_INFO("fpicker.aqua", "Current active suffixes: ");
OUStringList::iterator suffIter = suffixes.begin();
while(suffIter != suffixes.end()) {
SAL_INFO("fpicker.aqua", *suffIter);
suffIter++;
}
}
} else {
SAL_INFO("fpicker.aqua", "No filter entry was found for that name!");
}
#endif
}
void FilterHelper::SetFilters()
@ -274,8 +256,6 @@ void FilterHelper::SetFilters()
// set the default filter
if( m_aCurrentFilter.getLength() > 0 )
{
OSL_TRACE( "Setting current filter to %s", OUStringToOString(m_aCurrentFilter, RTL_TEXTENCODING_UTF8).getStr());
SetCurFilter( m_aCurrentFilter );
}
}
@ -343,7 +323,7 @@ throw (css::lang::IllegalArgumentException, css::uno::RuntimeException)
bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
{
if (m_aCurrentFilter.isEmpty()) {
OSL_TRACE("filter name is empty");
SAL_WARN("fpicker", "filter name is empty");
return true;
}
@ -363,7 +343,7 @@ bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
FilterList::iterator filter = ::std::find_if(m_pFilterList->begin(), m_pFilterList->end(), FilterTitleMatch(m_aCurrentFilter));
if (filter == m_pFilterList->end()) {
OSL_TRACE("filter not found in list");
SAL_WARN("fpicker", "filter not found in list");
return true;
}

View File

@ -51,7 +51,6 @@ static Reference< XInterface > SAL_CALL createInstance(
if (bVistaOrNewer)
{
OSL_TRACE("use special (vista) system file picker ...");
xDlg.set(
static_cast< XFilePicker2* >(
new ::fpicker::win32::vista::VistaFilePicker( rServiceManager ) ) );
@ -59,7 +58,6 @@ static Reference< XInterface > SAL_CALL createInstance(
else
#endif
{
OSL_TRACE("use normal system file picker ...");
xDlg.set(
static_cast< XFilePicker2* >(
new CFilePicker( rServiceManager ) ) );

View File

@ -83,6 +83,7 @@ certain functionality.
@li @c connectivity.kab
@li @c connectivity.macab
@li @c connectivity.mork
@li @c connectivity.mozab
@li @c connectivity.odbc
@li @c connectivity.parse
@li @c connectivity.postgresql
@ -190,7 +191,9 @@ certain functionality.
@li @c extensions.abpilot
@li @c extensions.biblio
@li @c extensions.config
@li @c extensions.dbpilots
@li @c extensions.evoab
@li @c extensions.olebridge - OLE automation bridge
@li @c extensions.plugin
@li @c extensions.propctrlr

View File

@ -554,22 +554,6 @@ sal_Int32 OConnection::getMysqlVersion()
return version;
}
// TODO: Not used
//sal_Int32 OConnection::sdbcColumnType(rtl::OUString typeName)
//{
// SAL_WARNx("mysqlc", "OConnection::sdbcColumnType");
// int i = 0;
// while (mysqlc_types[i].typeName) {
// if (rtl::OUString::createFromAscii(mysqlc_types[i].typeName).equals(
// typeName.toAsciiUpperCase()))
// {
// return mysqlc_types[i].dataType;
// }
// i++;
// }
// return 0;
//}
rtl::OUString OConnection::transFormPreparedStatement(const rtl::OUString& _sSQL)
{
rtl::OUString sSqlStatement = _sSQL;

View File

@ -69,7 +69,6 @@ void lclCreateTextFields( std::list< Reference< XTextField > > & aFields,
bool bIsDate = true;
int idx = p.toInt32();
sal_uInt16 nNumFmt;
// SAL_WARNx("oox", "OOX: p = %s, %d", p.pData->buffer, idx );
xIface = xFactory->createInstance( "com.sun.star.text.TextField.DateTime" );
aFields.push_back( Reference< XTextField > ( xIface, UNO_QUERY ) );
Reference< XPropertySet > xProps( xIface, UNO_QUERY_THROW );

View File

@ -120,7 +120,6 @@ void BulletList::setSuffixMinusRight()
void BulletList::setType( sal_Int32 nType )
{
OSL_ASSERT((nType & sal_Int32(0xFFFF0000))==0);
// SAL_WARNx("oox", "OOX: set list numbering type %d", nType);
switch( nType )
{
case XML_alphaLcParenBoth:

View File

@ -2598,8 +2598,7 @@ HtmlTextBoxModel::importBinaryModel( BinaryInputStream& rInStrm )
OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() );
// in msocximex ( where this is ported from, it appears *nothing* is read
// from the control stream ), surely there is some useful info there ?
SAL_WARNx("oox", "HtmlTextBoxModel::importBinaryModel - string contents of stream :");
SAL_WARNx("oox", "%s", OUStringToOString( sStringContents, RTL_TEXTENCODING_UTF8 ).getStr() );
SAL_WARN("oox", "HtmlTextBoxModel::importBinaryModel - string contents of stream: " << sStringContents );
#else
(void) rInStrm;
#endif