summaryrefslogtreecommitdiff
path: root/extensions/source/logging/csvformatter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/logging/csvformatter.cxx')
-rw-r--r--extensions/source/logging/csvformatter.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx
index 275d6938217b..244b0b3407ba 100644
--- a/extensions/source/logging/csvformatter.cxx
+++ b/extensions/source/logging/csvformatter.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ namespace logging
{
public:
virtual ::rtl::OUString SAL_CALL formatMultiColumn(const Sequence< ::rtl::OUString>& column_data) throw (RuntimeException);
-
+
// XServiceInfo - static version
static ::rtl::OUString SAL_CALL getImplementationName_static();
static Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static();
@@ -145,7 +145,7 @@ namespace
// special treatment for the last character
if(quote_char==str[str_length-1])
buf.append(quote_char);
- // iterating backwards because the index at which we insert wont be shifted
+ // iterating backwards because the index at which we insert wont be shifted
// when moving that way.
for(sal_Int32 i = str_length; i>=0; )
{
@@ -157,8 +157,8 @@ namespace
}
else
buf.append(str);
- };
-
+ };
+
::com::sun::star::uno::Sequence< ::rtl::OUString> initialColumns()
{
com::sun::star::uno::Sequence< ::rtl::OUString> result = ::com::sun::star::uno::Sequence< ::rtl::OUString>(1);
@@ -171,11 +171,11 @@ namespace
namespace logging
{
CsvFormatter::CsvFormatter( const Reference< XComponentContext >& context )
- :m_aContext( context ),
- m_LogEventNo(true),
- m_LogThread(true),
- m_LogTimestamp(true),
- m_LogSource(false),
+ :m_aContext( context ),
+ m_LogEventNo(true),
+ m_LogThread(true),
+ m_LogTimestamp(true),
+ m_LogSource(false),
m_MultiColumn(false),
m_Columnnames(initialColumns())
{ }
@@ -225,7 +225,7 @@ namespace logging
void CsvFormatter::setLogSource(::sal_Bool log_source) throw (RuntimeException)
{
- m_LogSource = log_source;
+ m_LogSource = log_source;
}
void CsvFormatter::setColumnnames(const Sequence< ::rtl::OUString >& columnnames) throw (RuntimeException)
@@ -248,7 +248,7 @@ namespace logging
sal_Int32 columns = m_Columnnames.getLength();
for(sal_Int32 i=0; i<columns; i++)
{
- buf.append(m_Columnnames[i]);
+ buf.append(m_Columnnames[i]);
buf.append(comma_char);
}
buf.setLength(buf.getLength()-1);
@@ -288,7 +288,7 @@ namespace logging
aLogEntry.appendAscii( buffer );
aLogEntry.append(comma_char);
}
-
+
if(m_LogSource)
{
appendEncodedString(aLogEntry, record.SourceClassName);
@@ -310,7 +310,7 @@ namespace logging
aLogEntry.append( dos_newline );
return aLogEntry.makeStringAndClear();
}
-
+
::rtl::OUString SAL_CALL CsvFormatter::getTail( ) throw (RuntimeException)
{
return ::rtl::OUString();
@@ -340,22 +340,22 @@ namespace logging
return sal_True;
return sal_False;
}
-
+
::rtl::OUString SAL_CALL CsvFormatter::getImplementationName() throw(RuntimeException)
{
return getImplementationName_static();
}
-
+
Sequence< ::rtl::OUString > SAL_CALL CsvFormatter::getSupportedServiceNames() throw(RuntimeException)
{
return getSupportedServiceNames_static();
}
-
+
::rtl::OUString SAL_CALL CsvFormatter::getImplementationName_static()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.extensions.CsvFormatter" ) );
}
-
+
Sequence< ::rtl::OUString > SAL_CALL CsvFormatter::getSupportedServiceNames_static()
{
Sequence< ::rtl::OUString > aServiceNames(1);