New loplugin:stringconcat

Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
This commit is contained in:
Stephan Bergmann
2014-07-01 15:45:52 +02:00
parent 363e39d636
commit e50ef195bc
61 changed files with 372 additions and 299 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ void SAL_CALL DummyXShape::setPropertyValue( const OUString& rName, const uno::A
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException, std::exception)
{
SAL_INFO("chart2", "DummyXShape::setProperty: " << rName << " " << "Any");
SAL_INFO("chart2", "DummyXShape::setProperty: " << rName << " Any");
maProperties[rName] = rValue;
if(rName == "Transformation")
{
+2 -2
View File
@@ -43,9 +43,9 @@ int static checkGLError(const char *file, int line)
{
const char* sError = OpenGLHelper::GLErrorString(glErr);
if (sError)
SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") " << " in File " << file << " at line: " << line);
SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") in File " << file << " at line: " << line);
else
SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available)" << " in File " << file << " at line: " << line);
SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available) in File " << file << " at line: " << line);
retCode = -1;
return retCode;
}
+2 -2
View File
@@ -84,9 +84,9 @@ int static checkGLError(const char *file, int line)
const char* sError = OpenGLHelper::GLErrorString(glErr);
if (sError)
SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") " << " in File " << file << " at line: " << line);
SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") in File " << file << " at line: " << line);
else
SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available)" << " in File " << file << " at line: " << line);
SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available) in File " << file << " at line: " << line);
retCode = -1;
return retCode;
+3 -4
View File
@@ -2562,7 +2562,7 @@ void PolyStructType::dumpComprehensiveGetCppuType(FileStream & out) {
dec();
out << indent() << "}\n";
dec();
out << indent() << "};\n" << " }" << " }\n\n";
out << indent() << "};\n } }\n\n";
dumpGetCppuTypePreamble(out);
out << indent() << "return *detail::" << staticTypeClass;
dumpTemplateParameters(out);
@@ -3785,8 +3785,7 @@ void SingletonType::dumpHxxFile(
inc();
o << indent() << "assert(the_context.is());\n" << indent()
<< "::css::uno::Reference< " << scopedBaseName
<< " > instance;\n"
<< ("#if defined LO_URE_CURRENT_ENV && defined "
<< (" > instance;\n#if defined LO_URE_CURRENT_ENV && defined "
"LO_URE_CTOR_ENV_")
<< name_.replaceAll(".", "_dot_")
<< " && (LO_URE_CURRENT_ENV) == (LO_URE_CTOR_ENV_"
@@ -3803,7 +3802,7 @@ void SingletonType::dumpHxxFile(
" ::css::uno::UNO_QUERY);\n#else\n")
<< indent() << ("the_context->getValueByName("
"::rtl::OUString( \"/singletons/")
<< name_ << "\" )) >>= instance;\n" << "#endif\n"
<< name_ << "\" )) >>= instance;\n#endif\n"
<< indent() << "if (!instance.is()) {\n";
inc();
o << indent()
+82
View File
@@ -0,0 +1,82 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "plugin.hxx"
namespace {
class StringConcat:
public RecursiveASTVisitor<StringConcat>, public loplugin::Plugin
{
public:
explicit StringConcat(InstantiationData const & data): Plugin(data) {}
void run() override
{ TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
bool VisitCallExpr(CallExpr const * expr);
};
bool StringConcat::VisitCallExpr(CallExpr const * expr) {
if (ignoreLocation(expr)) {
return true;
}
FunctionDecl const * fdecl = expr->getDirectCallee();
if (fdecl == nullptr) {
return true;
}
OverloadedOperatorKind oo = fdecl->getOverloadedOperator();
if ((oo != OverloadedOperatorKind::OO_Plus
&& oo != OverloadedOperatorKind::OO_LessLess)
|| fdecl->getNumParams() != 2 || expr->getNumArgs() != 2
|| !isa<StringLiteral>(expr->getArg(1)->IgnoreParenImpCasts()))
{
return true;
}
CallExpr const * left = dyn_cast<CallExpr>(
expr->getArg(0)->IgnoreParenImpCasts());
if (left == nullptr) {
return true;
}
FunctionDecl const * ldecl = left->getDirectCallee();
if (ldecl == nullptr) {
return true;
}
OverloadedOperatorKind loo = ldecl->getOverloadedOperator();
if ((loo != OverloadedOperatorKind::OO_Plus
&& loo != OverloadedOperatorKind::OO_LessLess)
|| ldecl->getNumParams() != 2 || left->getNumArgs() != 2
|| !isa<StringLiteral>(left->getArg(1)->IgnoreParenImpCasts()))
{
return true;
}
StringRef name {
compiler.getSourceManager().getFilename(
compiler.getSourceManager().getSpellingLoc(expr->getLocStart())) };
if (name == SRCDIR "/sal/qa/rtl/strings/test_ostring_concat.cxx"
|| name == SRCDIR "/sal/qa/rtl/strings/test_oustring_concat.cxx")
{
return true;
}
CXXOperatorCallExpr const * op = dyn_cast<CXXOperatorCallExpr>(expr);
report(
DiagnosticsEngine::Warning,
"replace '%0' between string literals with juxtaposition",
op == nullptr ? expr->getExprLoc() : op->getOperatorLoc())
<< (oo == OverloadedOperatorKind::OO_Plus ? "+" : "<<")
<< SourceRange(
left->getArg(1)->getLocStart(), expr->getArg(1)->getLocEnd());
return true;
}
loplugin::Plugin::Registration<StringConcat> X("stringconcat");
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@@ -404,7 +404,7 @@ Any OPoolCollection::getNodeValue(const OUString& _rPath,const Reference<XInterf
}
catch(NoSuchElementException& e)
{
SAL_WARN("connectivity.cpool", "::getNodeValue: caught a " <<
SAL_WARN("connectivity.cpool", "::getNodeValue: caught a "
"NoSuchElementException while trying to open " <<
e.Message << "!" );
}
+1 -1
View File
@@ -951,7 +951,7 @@ void OFlatTable::setRowPos(const vector<TRowPositionInFile>::size_type rowNum, c
{
SAL_WARN_IF(m_aRowPosToFilePos[rowNum] != rowPos,
"connectivity.flat",
"Setting position for row " << rowNum << " to (" << rowPos.first << ", " << rowPos.second << "), " <<
"Setting position for row " << rowNum << " to (" << rowPos.first << ", " << rowPos.second << "), "
"but already had different position (" << m_aRowPosToFilePos[rowNum].first << ", " << m_aRowPosToFilePos[rowNum].second << ")");
m_aRowPosToFilePos[rowNum] = rowPos;
}
+3 -4
View File
@@ -1053,8 +1053,7 @@ namespace cppcanvas
OSL_ASSERT( ( header >> 12 ) == 0xdbc01 );
SAL_INFO("cppcanvas.emf", "EMF+\tfont\n"
<< "EMF+\theader: 0x" << std::hex << (header >> 12) << " version: 0x" << (header & 0x1fff) << " size: " << std::dec << emSize << " unit: 0x" << std::hex << sizeUnit << std::dec);
SAL_INFO("cppcanvas.emf", "EMF+\tfont\nEMF+\theader: 0x" << std::hex << (header >> 12) << " version: 0x" << (header & 0x1fff) << " size: " << std::dec << emSize << " unit: 0x" << std::hex << sizeUnit << std::dec);
SAL_INFO("cppcanvas.emf", "EMF+\tflags: 0x" << std::hex << fontFlags << " reserved: 0x" << reserved << " length: 0x" << std::hex << length << std::dec);
if( length > 0 && length < 0x4000 ) {
@@ -1804,7 +1803,7 @@ namespace cppcanvas
polygon.append (Map (x + width, y + height));
polygon.append (Map (x, y + height));
SAL_INFO("cppcanvas.emf", "EMF+\trectangle: " << x << "," << " " << width << "x" << height);
SAL_INFO("cppcanvas.emf", "EMF+\trectangle: " << x << ", " << width << "x" << height);
} else {
/* Single's */
float x, y, width, height;
@@ -1816,7 +1815,7 @@ namespace cppcanvas
polygon.append (Map (x + width, y + height));
polygon.append (Map (x, y + height));
SAL_INFO("cppcanvas.emf", "EMF+\trectangle: " << x << "," << " " << width << "x" << height);
SAL_INFO("cppcanvas.emf", "EMF+\trectangle: " << x << ", " << width << "x" << height);
}
::basegfx::B2DPolyPolygon polyPolygon (polygon);
+2 -2
View File
@@ -239,9 +239,9 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
if (constructor.isEmpty()) {
rtl::OUString sym;
if (prefix == "direct") {
sym = implementation.replace('.', '_') + "_" + COMPONENT_GETFACTORY;
sym = implementation.replace('.', '_') + "_" COMPONENT_GETFACTORY;
} else if (!prefix.isEmpty()) {
sym = prefix + "_" + COMPONENT_GETFACTORY;
sym = prefix + "_" COMPONENT_GETFACTORY;
} else {
sym = COMPONENT_GETFACTORY;
}
@@ -770,7 +770,7 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) thr
bCase = m_xMetaData->supportsMixedCaseQuotedIdentifiers();
aSelectColumns = m_aSqlIterator.getSelectColumns();
OUStringBuffer aSQL( m_aPureSelectSQL + STR_WHERE + " ( 0 = 1 )");
OUStringBuffer aSQL( m_aPureSelectSQL + STR_WHERE " ( 0 = 1 )");
// preserve the original WHERE clause
// #i102234#
+1 -1
View File
@@ -112,7 +112,7 @@ namespace dbaui
{ \
const sal_Char* pError = impl_CheckInvariants(); \
if (pError) \
SAL_WARN("dbaccess.ui", methodname << ": " << pError); \
SAL_WARN("dbaccess.ui", methodname ": " << pError); \
}
#else
#define CHECK_INVARIANTS(methodname)
+1 -1
View File
@@ -535,7 +535,7 @@ static void aBasicErrorFunc(const OUString& rError, const OUString& rAction)
static void initialize_uno(const OUString &aAppProgramURL)
{
rtl::Bootstrap::setIniFilename(aAppProgramURL + "/" + SAL_CONFIGFILE("soffice"));
rtl::Bootstrap::setIniFilename(aAppProgramURL + "/" SAL_CONFIGFILE("soffice"));
xContext = cppu::defaultBootstrap_InitialComponentContext();
fprintf(stderr, "Uno initialized %d\n", xContext.is());
+5 -5
View File
@@ -302,7 +302,7 @@ void JavaMigration::migrateJavarc()
return;
OUString sValue;
rtl::Bootstrap javaini(m_sUserDir + "/user/config/" + SAL_CONFIGFILE("java"));
rtl::Bootstrap javaini(m_sUserDir + "/user/config/" SAL_CONFIGFILE("java"));
bool bSuccess = javaini.getFrom("Home", sValue);
OSL_ENSURE(bSuccess, "[Service implementation " IMPL_NAME
"] XJob::execute: Could not get Home entry from java.ini/javarc.");
@@ -415,11 +415,11 @@ void SAL_CALL JavaMigration::setPropertyValue(
bool val;
if (!(aValue >>= val))
throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME +
"[Service implementation " IMPL_NAME
"] XLayerHandler::setPropertyValue received wrong type for Enable property", 0, Any());
if (jfw_setEnabled(val) != JFW_E_NONE)
throw WrappedTargetException(
OUString("[Service implementation ") + IMPL_NAME +
"[Service implementation " IMPL_NAME
"] XLayerHandler::setPropertyValue: jfw_setEnabled failed.", 0, Any());
break;
@@ -429,12 +429,12 @@ void SAL_CALL JavaMigration::setPropertyValue(
OUString cp;
if (!(aValue >>= cp))
throw MalformedDataException(
OUString("[Service implementation ") + IMPL_NAME +
"[Service implementation " IMPL_NAME
"] XLayerHandler::setPropertyValue received wrong type for UserClassPath property", 0, Any());
if (jfw_setUserClassPath(cp.pData) != JFW_E_NONE)
throw WrappedTargetException(
OUString("[Service implementation ") + IMPL_NAME +
"[Service implementation " IMPL_NAME
"] XLayerHandler::setPropertyValue: jfw_setUserClassPath failed.", 0, Any());
break;
}
+3 -5
View File
@@ -268,8 +268,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
dp_misc::writeConsoleError(
"\nERROR: unexpected option " +
cmdArg +
"!\n" +
" Use " + APP_NAME + " " +
"!\n Use " APP_NAME " " +
toString(info_help) +
" to print all options.\n");
return 1;
@@ -537,14 +536,13 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
{
dp_misc::writeConsoleError(
"\nERROR: unknown sub-command " +
subCommand + "!\n" +
" Use " + APP_NAME + " " +
subCommand + "!\n Use " APP_NAME " " +
toString(info_help) + " to print all options.\n");
return 1;
}
if (option_verbose)
dp_misc::writeConsole(OUString("\n") + APP_NAME + " done.\n");
dp_misc::writeConsole("\n" APP_NAME " done.\n");
//Force to release all bridges which connect us to the child processes
dp_misc::disposeBridges(xLocalComponentContext);
return 0;
+3 -3
View File
@@ -112,15 +112,15 @@ bool isOption( OptionInfo const * option_info, sal_uInt32 * pIndex )
if (len == 2 && arg[ 1 ] == option_info->m_short_option)
{
++(*pIndex);
dp_misc::TRACE(OUString(__FILE__) + ": identified option \'"
+ "\'" + OUString( option_info->m_short_option ) + "\n");
dp_misc::TRACE(__FILE__ ": identified option \'\'"
+ OUString( option_info->m_short_option ) + "\n");
return true;
}
if (arg[ 1 ] == '-' && rtl_ustr_ascii_compare(
arg.pData->buffer + 2, option_info->m_name ) == 0)
{
++(*pIndex);
dp_misc::TRACE(OUString( __FILE__) + ": identified option \'"
dp_misc::TRACE(__FILE__ ": identified option \'"
+ OUString::createFromAscii(option_info->m_name) + "\'\n");
return true;
}
+1 -1
View File
@@ -217,7 +217,7 @@ namespace dbp
}
catch(const Exception&)
{
SAL_WARN( "extensions.dbpilots", "OGridWizard::implApplySettings: " <<
SAL_WARN( "extensions.dbpilots", "OGridWizard::implApplySettings: "
"unexpected exception while creating the grid column for field " <<
pFormFieldName->getStr() << "!" );
}
+8 -12
View File
@@ -1092,8 +1092,7 @@ bool SVGTextWriter::nextTextPortion()
}
#if OSL_DEBUG_LEVEL > 0
sInfo += "text field type: " + sFieldName + "; " +
"content: " + xTextField->getPresentation( /* show command: */ sal_False ) + "; ";
sInfo += "text field type: " + sFieldName + "; content: " + xTextField->getPresentation( /* show command: */ sal_False ) + "; ";
#endif
if( sFieldName.equalsAscii( "DateTime" ) || sFieldName.equalsAscii( "Header" )
|| sFieldName.equalsAscii( "Footer" ) || sFieldName.equalsAscii( "PageNumber" ) )
@@ -1253,9 +1252,9 @@ void SVGTextWriter::startTextPosition( bool bExportX, bool bExportY )
Point aRot( maTextPos );
OUString aTransform =
OUString("translate(") + OUString::number( aRot.X() ) +
"," + OUString::number( aRot.Y() ) + ")" +
" rotate(" + OUString::number( rFont.GetOrientation() * -0.1 ) +
")" + " translate(" + OUString::number( -aRot.X() ) +
"," + OUString::number( aRot.Y() ) + ") rotate(" +
OUString::number( rFont.GetOrientation() * -0.1 ) +
") translate(" + OUString::number( -aRot.X() ) +
"," + OUString::number( -aRot.Y() ) + ")";
mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrTransform, aTransform );
@@ -2435,13 +2434,10 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const OUString& rText,
{
Point aRot( aPos );
OUString aTransform =
OUString("translate") +
"(" + OUString::number( aRot.X() ) +
"," + OUString::number( aRot.Y() ) + ")" +
" rotate" +
"(" + OUString::number( rFont.GetOrientation() * -0.1 ) + ")" +
" translate" +
"(" + OUString::number( -aRot.X() ) +
"translate(" + OUString::number( aRot.X() ) +
"," + OUString::number( aRot.Y() ) + ") rotate(" +
OUString::number( rFont.GetOrientation() * -0.1 ) +
") translate(" + OUString::number( -aRot.X() ) +
"," + OUString::number( -aRot.Y() ) + ")";
mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrTransform, aTransform );
+1 -1
View File
@@ -1962,7 +1962,7 @@ bool OBoundControlModel::connectToField(const Reference<XRowSet>& rForm)
else
{
SAL_WARN("forms.component", "OBoundControlModel::connectToField: property " << PROPERTY_VALUE << " not supported!");
SAL_WARN("forms.component", "OBoundControlModel::connectToField: property " PROPERTY_VALUE " not supported!");
impl_setField_noNotify( NULL );
}
+1 -2
View File
@@ -176,8 +176,7 @@ css::uno::Reference< css::lang::XComponent > LoadEnv::loadComponentFromURL(const
case LoadEnvException::ID_UNSUPPORTED_CONTENT:
throw css::lang::IllegalArgumentException(
("Unsupported URL <" + sURL + ">" + ": \"" + ex.m_sMessage
+ "\""),
"Unsupported URL <" + sURL + ">: \"" + ex.m_sMessage + "\"",
xLoader, 1);
default:
+1 -2
View File
@@ -357,8 +357,7 @@ void HelpLinker::link() throw(HelpProcessingException, BasicCodeTagger::TaggerEx
SAL_WARN("helpcompiler",
"ERROR: input list entry '"
<< xhpFileName
<< "' has the wrong extension (only files with extension .xhp "
<< "are accepted)");
<< "' has the wrong extension (only files with extension .xhp are accepted)");
continue;
}
@@ -871,13 +871,11 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
theMapBcp47::get().insert( ::std::make_pair( pImpl->maBcp47, pImpl)));
if (res.second)
{
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: cross-inserted '" << pImpl->maBcp47 << "'"
<< " for 0x" << ::std::hex << mnLangID);
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: cross-inserted '" << pImpl->maBcp47 << "' for 0x" << ::std::hex << mnLangID);
}
else
{
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: not cross-inserted '" << pImpl->maBcp47 << "'"
<< " for 0x" << ::std::hex << mnLangID << " have 0x"
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: not cross-inserted '" << pImpl->maBcp47 << "' for 0x" << ::std::hex << mnLangID << " have 0x"
<< ::std::hex << (*res.first).second->mnLangID);
}
}
@@ -885,8 +883,7 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
{
if (!pImpl->mbInitializedBcp47)
pImpl->convertLocaleToBcp47();
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: not cross-inserted '" << pImpl->maBcp47 << "'"
<< " for 0x" << ::std::hex << mnLangID << " round-trip to 0x" << ::std::hex << nLang);
SAL_INFO( "i18nlangtag", "LanguageTag::registerImpl: not cross-inserted '" << pImpl->maBcp47 << "' for 0x" << ::std::hex << mnLangID << " round-trip to 0x" << ::std::hex << nLang);
}
}
}
@@ -691,7 +691,7 @@ void Calendar_gregorian::setValue() throw(RuntimeException)
DUMP_ICU_CAL_MSG(("%s\n","setValue() after Zone/DST glitch 2nd resubmit"));
DUMP_I18N_CAL_MSG(("%s\n","setValue() after Zone/DST glitch 2nd resubmit"));
}
SAL_INFO( "i18npool", "Calendar_gregorian::setValue:" <<
SAL_INFO( "i18npool", "Calendar_gregorian::setValue:"
" nZone0 " << nZone0 << ", nDST0 " << nDST0 <<
", nZone1 " << nZone1 << ", nDST1 " << nDST1 <<
", nZone2 " << nZone2 << ", nDST2 " << nDST2 <<
+5 -8
View File
@@ -889,9 +889,8 @@ rtl::Reference<VendorBase> getJREInfoByPath(
if (entry2 != mapJREs.end())
{
JFW_TRACE2(OUString("[Java framework] sunjavaplugin")
+ SAL_DLLEXTENSION + ": "
+ "JRE found again (detected before): " + sResolvedDir
+ ".\n");
+ SAL_DLLEXTENSION ": JRE found again (detected before): "
+ sResolvedDir + ".\n");
return entry2->second;
}
@@ -941,9 +940,8 @@ rtl::Reference<VendorBase> getJREInfoByPath(
if (entry != mapJREs.end())
{
JFW_TRACE2(OUString("[Java framework] sunjavaplugin")
+ SAL_DLLEXTENSION + ": "
+ "JRE found again (detected before): " + sFilePath
+ ".\n");
+ SAL_DLLEXTENSION ": JRE found again (detected before): "
+ sFilePath + ".\n");
return entry->second;
}
@@ -1038,8 +1036,7 @@ rtl::Reference<VendorBase> getJREInfoByPath(
else
{
JFW_TRACE2(OUString("[Java framework] sunjavaplugin")
+ SAL_DLLEXTENSION + ": "
+ "Found JRE: " + sResolvedDir
+ SAL_DLLEXTENSION ": Found JRE: " + sResolvedDir
+ " \n at: " + path + ".\n");
mapJREs.insert(MAPJRE::value_type(sResolvedDir, ret));
+6 -6
View File
@@ -95,12 +95,12 @@ void writeUsage(const OString& rName, const OString& rFileType)
std::cout
<< " Syntax: " << rName.getStr()
<< " -i FileIn -o FileOut [-m DataBase] [-l Lang] [-b]\n"
<< " FileIn: Source files (" << rFileType.getStr() << ")\n"
<< " FileOut: Destination file (*.*)\n"
<< " DataBase: Mergedata (*.po)\n"
<< " Lang: Restrict the handled language; one element of\n"
<< " (de, en-US, ...) or all\n"
<< " -b: Add UTF-8 Byte Order Mark to FileOut(use with -m option)\n";
" FileIn: Source files (" << rFileType.getStr() << ")\n"
" FileOut: Destination file (*.*)\n"
" DataBase: Mergedata (*.po)\n"
" Lang: Restrict the handled language; one element of\n"
" (de, en-US, ...) or all\n"
" -b: Add UTF-8 Byte Order Mark to FileOut(use with -m option)\n";
}
void writePoEntry(
+8 -8
View File
@@ -37,14 +37,14 @@
void WriteUsage()
{
std::cout
<< " Syntax: Helpex -[m]i FileIn -o FileOut [-m DataBase] [-l Lang]\n"
<< " FileIn + i: Source file (*.xhp)\n"
<< " FileIn + -mi: File including paths of source files"
<< " (only for merge)\n"
<< " FileOut: Destination file (*.*) or files (in case of -mi)\n"
<< " DataBase: Mergedata (*.po)\n"
<< " Lang: Restrict the handled languages; one element of\n"
<< " (de, en-US, ...) or all\n";
<< (" Syntax: Helpex -[m]i FileIn -o FileOut [-m DataBase] [-l Lang]\n"
" FileIn + i: Source file (*.xhp)\n"
" FileIn + -mi: File including paths of source files"
" (only for merge)\n"
" FileOut: Destination file (*.*) or files (in case of -mi)\n"
" DataBase: Mergedata (*.po)\n"
" Lang: Restrict the handled languages; one element of\n"
" (de, en-US, ...) or all\n");
}
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
+18 -6
View File
@@ -134,8 +134,12 @@ void InitPoFile(
if (osl::FileBase::getFileURLFromSystemPath(outDir, outDirUrl)
!= osl::FileBase::E_None)
{
cerr << "Error: Cannot convert pathname to URL in " << __FILE__ << ", in line " << __LINE__ << "\n"
<< " outDir: " << OUStringToOString(outDir, RTL_TEXTENCODING_ASCII_US).getStr() << "\n";
cerr
<< ("Error: Cannot convert pathname to URL in " __FILE__
", in line ")
<< __LINE__ << "\n outDir: "
<< OUStringToOString(outDir, RTL_TEXTENCODING_ASCII_US).getStr()
<< "\n";
throw false; //TODO
}
osl::Directory::createPath(outDirUrl);
@@ -411,8 +415,12 @@ void handleDirectory(
if (osl::FileBase::getFileURLFromSystemPath(sPoPath, sPoUrl)
!= osl::FileBase::E_None)
{
cerr << "Error: Cannot convert pathname to URL in " << __FILE__ << ", in line " << __LINE__ << "\n"
<< OUStringToOString(sPoPath, RTL_TEXTENCODING_UTF8).getStr() << "\n";
cerr
<< ("Error: Cannot convert pathname to URL in " __FILE__
", in line ")
<< __LINE__ << "\n"
<< OUStringToOString(sPoPath, RTL_TEXTENCODING_UTF8).getStr()
<< "\n";
throw false; //TODO
}
osl::Directory::remove(sPoUrl);
@@ -435,8 +443,12 @@ void handleProjects(char * sSourceRoot, char const * sDestRoot)
if (osl::FileBase::getFileURLFromSystemPath(root16, rootUrl)
!= osl::FileBase::E_None)
{
cerr << "Error: Cannot convert pathname to URL in " << __FILE__ << ", in line " << __LINE__ << "\n"
<< " root16: " << OUStringToOString(root16, RTL_TEXTENCODING_ASCII_US).getStr() << "\n";
cerr
<< ("Error: Cannot convert pathname to URL in " __FILE__
", in line ")
<< __LINE__ << "\n root16: "
<< OUStringToOString(root16, RTL_TEXTENCODING_ASCII_US).getStr()
<< "\n";
throw false; //TODO
}
handleDirectory(rootUrl, 0, OString(), OString(sDestRoot));
+20 -14
View File
@@ -272,9 +272,11 @@ static void checkFunctionNames(const OString& aLanguage)
{
if( it->second > 1 )
{
std::cout << "ERROR: Spreadsheet function name translations must be unique.\n" <<
"Language: " << aLanguage <<
"\nDuplicated translation is: " << it->first << "\n\n";
std::cout
<< ("ERROR: Spreadsheet function name translations must be"
" unique.\nLanguage: ")
<< aLanguage << "\nDuplicated translation is: " << it->first
<< "\n\n";
}
}
@@ -377,12 +379,14 @@ static void checkVerticalBar(const OString& aLanguage)
if( !aPoEntry.isFuzzy() && aPoEntry.getMsgId().endsWith("|") &&
!aPoEntry.getMsgStr().isEmpty() && !aPoEntry.getMsgStr().endsWith("|") )
{
std::cout << "ERROR: Missing '|' character at the end of translated string.\n" <<
"It causes runtime error in installer.\n" <<
"File: " << aPoPath << std::endl <<
"Language: " << aLanguage << std::endl <<
"English: " << aPoEntry.getMsgId() << std::endl <<
"Localized: " << aPoEntry.getMsgStr() << std::endl << std::endl;
std::cout
<< ("ERROR: Missing '|' character at the end of translated"
" string.\nIt causes runtime error in installer.\nFile: ")
<< aPoPath << std::endl
<< "Language: " << aLanguage << std::endl
<< "English: " << aPoEntry.getMsgId() << std::endl
<< "Localized: " << aPoEntry.getMsgStr() << std::endl
<< std::endl;
bError = true;
}
else
@@ -425,11 +429,13 @@ static void checkMathSymbolNames(const OString& aLanguage)
if( !aPoEntry.isFuzzy() && aPoEntry.getGroupId() == "RID_UI_SYMBOL_NAMES" &&
!aPoEntry.getMsgStr().isEmpty() && (aPoEntry.getMsgStr().indexOf(" ") != -1) )
{
std::cout << "ERROR: Math symbol names must not contain spaces.\n" <<
"File: " << aPoPath << std::endl <<
"Language: " << aLanguage << std::endl <<
"English: " << aPoEntry.getMsgId() << std::endl <<
"Localized: " << aPoEntry.getMsgStr() << std::endl << std::endl;
std::cout
<< "ERROR: Math symbol names must not contain spaces.\nFile: "
<< aPoPath << std::endl
<< "Language: " << aLanguage << std::endl
<< "English: " << aPoEntry.getMsgId() << std::endl
<< "Localized: " << aPoEntry.getMsgStr() << std::endl
<< std::endl;
bError = true;
}
else
+2 -2
View File
@@ -175,8 +175,8 @@ void PropParser::Merge( const OString &rMergeSrc, const OString &rDestinationFil
if( vLanguages.size()>=1 && vLanguages[0] != m_sLang )
{
std::cerr
<< "Propex error: given language conflicts with "
<< "language of Mergedata file: "
<< ("Propex error: given language conflicts with language of"
" Mergedata file: ")
<< m_sLang.getStr() << " - "
<< vLanguages[0].getStr() << std::endl;
delete pMergeDataFile;
+2 -2
View File
@@ -262,8 +262,8 @@ void TreeParser::Merge(
if( vLanguages.size()>=1 && vLanguages[0] != m_sLang )
{
std::cerr
<< "Treex error: given language conflicts with "
<< "language of Mergedata file: "
<< ("Treex error: given language conflicts with language of"
" Mergedata file: ")
<< m_sLang.getStr() << " - "
<< vLanguages[0].getStr() << std::endl;
delete pMergeDataFile;
+8 -8
View File
@@ -17,14 +17,14 @@
void WriteUsage()
{
std::cout
<< "Syntax: Treex [-r Root] -i FileIn -o FileOut"
<< " [-m DataBase] [-l Lang]\n"
<< " Root: Path to root of localized xhp files\n"
<< " FileIn: Source files (*.tree)\n"
<< " FileOut: Destination file (*.*)\n"
<< " DataBase: Mergedata (*.po)\n"
<< " Lang: Restrict the handled languages; one element of\n"
<< " (de, en-US, ...) or all\n";
<< ("Syntax: Treex [-r Root] -i FileIn -o FileOut"
" [-m DataBase] [-l Lang]\n"
" Root: Path to root of localized xhp files\n"
" FileIn: Source files (*.tree)\n"
" FileOut: Destination file (*.*)\n"
" DataBase: Mergedata (*.po)\n"
" Lang: Restrict the handled languages; one element of\n"
" (de, en-US, ...) or all\n");
}
+2 -3
View File
@@ -113,9 +113,8 @@ namespace
if (sOut.isEmpty())
continue;
aDestination << " <e "
<< "g=\"" << aI->second->sGID.getStr() << "\" "
<< "i=\"" << aI->second->sLID.getStr() << "\">"
aDestination << " <e g=\"" << aI->second->sGID.getStr() << "\" i=\""
<< aI->second->sLID.getStr() << "\">"
<< helper::QuotHTML(sOut).getStr() << "</e>\n";
}
@@ -193,7 +193,7 @@ void XFImageStyle::ToXml(IXFStream *pStrm)
OUString clip = "rect(" + OUString::number(m_fClipTop) + "cm " +
OUString::number(m_fClipRight) + "cm " +
OUString::number(m_fClipBottom) + "cm " +
OUString::number(m_fClipLeft) + "cm" + ")";
OUString::number(m_fClipLeft) + "cm)";
pAttrList->AddAttribute("fo:clip",clip);
}
@@ -73,16 +73,16 @@ OUString XFShadow::ToString()
switch(m_ePosition)
{
case enumXFShadowRightBottom:
buf = m_aColor.ToString() + " " + strOff + "cm" + " " + strOff + "cm";
buf = m_aColor.ToString() + " " + strOff + "cm " + strOff + "cm";
break;
case enumXFShadowRightTop:
buf = m_aColor.ToString() + " " + strOff + "cm" + " -" + strOff + "cm";
buf = m_aColor.ToString() + " " + strOff + "cm -" + strOff + "cm";
break;
case enumXFShadowLeftBottom:
buf = m_aColor.ToString() + " -" + strOff + "cm" + " " + strOff + "cm";
buf = m_aColor.ToString() + " -" + strOff + "cm " + strOff + "cm";
break;
case enumXFShadowLeftTop:
buf = m_aColor.ToString() + " -" + strOff + "cm" + " -" + strOff + "cm";
buf = m_aColor.ToString() + " -" + strOff + "cm -" + strOff + "cm";
break;
default:
buf = m_aColor.ToString();
+5 -10
View File
@@ -87,8 +87,7 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) {
rSet.m_aMap[i] == 0xFFFF);
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(OUString("aUnicode[" + OUString::number(j) + "] == " +
OUString::number(aUnicode[j], 16) +
", " +
"rSet.m_aMap[" + OUString::number(i) + "] == " +
", rSet.m_aMap[" + OUString::number(i) + "] == " +
OUString::number(rSet.m_aMap[i], 16)),
RTL_TEXTENCODING_UTF8).getStr(),
aUnicode[j] == rSet.m_aMap[i]);
@@ -225,8 +224,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
for (sal_Size i = 0; i < rTest.m_nUnicodeSize; ++i) {
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(OUString("aUnicode[" + OUString::number(i) + "] == " +
OUString::number(aUnicode[i], 16) +
", " +
"rTest.m_aUnicode[" + OUString::number(i) + "] == " +
", rTest.m_aUnicode[" + OUString::number(i) + "] == " +
OUString::number(rTest.m_aUnicode[i], 16)),
RTL_TEXTENCODING_UTF8).getStr(),
aUnicode[i] == rTest.m_aUnicode[i]);
@@ -361,8 +359,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
for (sal_Size i = 0; i < rTest.m_nUnicodeSize; ++i) {
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(OUString("aUnicode[" + OUString::number(i) + "] == " +
OUString::number(aUnicode[i], 16) +
", " +
"rTest.m_aUnicode[" + OUString::number(i) + "] == " +
", rTest.m_aUnicode[" + OUString::number(i) + "] == " +
OUString::number(rTest.m_aUnicode[i], 16)),
RTL_TEXTENCODING_UTF8).getStr(),
aUnicode[i] == rTest.m_aUnicode[i]);
@@ -402,8 +399,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
for (sal_Size i = 0; i < rTest.m_nTextSize; ++i) {
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(OUString("aText[" + OUString::number(i) + "] == " +
OUString::number(aText[i], 16) +
", " +
"rTest.m_pText[" + OUString::number(i) + "] == " +
", rTest.m_pText[" + OUString::number(i) + "] == " +
OUString::number(rTest.m_pText[i], 16)),
RTL_TEXTENCODING_UTF8).getStr(),
aText[i] == rTest.m_pText[i]);
@@ -442,8 +438,7 @@ void doComplexCharSetCutTest(ComplexCharSetTest const & rTest) {
for (sal_Size i = 0; i < nSize; ++i) {
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(OUString("aUnicode[" + OUString::number(i) + "] == " +
OUString::number(aUnicode[i], 16) +
", " +
"rTest.m_aUnicode[" + OUString::number(i) + "] == " +
", rTest.m_aUnicode[" + OUString::number(i) + "] == " +
OUString::number(rTest.m_aUnicode[i], 16)),
RTL_TEXTENCODING_UTF8).getStr(),
aUnicode[i] == rTest.m_aUnicode[i]);
+1 -1
View File
@@ -177,7 +177,7 @@ void Test::tearDown()
if ((dfscaled) >= (time)) \
{ \
std::ostringstream os; \
os << message << " took " << dfscaled << " pseudo-cycles (" << df << " real-time seconds), expected: " << time << " pseudo-cycles."; \
os << message " took " << dfscaled << " pseudo-cycles (" << df << " real-time seconds), expected: " << time << " pseudo-cycles."; \
CPPUNIT_FAIL(os.str().c_str()); \
} \
} while (false)
+2 -3
View File
@@ -1207,9 +1207,8 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr
bSkipCompile = true;
pCode = pPreviousCell->pCode;
SAL_INFO( "sc", "merged '" << aFormula << "' == "
"'" << aShouldBe << "'" <<
" extend group to " << xGroup->mnLength );
SAL_INFO( "sc", "merged '" << aFormula << "' == '" << aShouldBe
<< "'extend group to " << xGroup->mnLength );
}
}
}
+3 -3
View File
@@ -39,7 +39,7 @@ void OpBesselj::GenSlidingWindowFunction(std::stringstream &ss,
ss << " double N = 0.0;\n";
if(vSubArguments.size() != 2)
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -68,7 +68,7 @@ void OpBesselj::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -104,7 +104,7 @@ void OpBesselj::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
+8 -8
View File
@@ -1080,7 +1080,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
#endif
ss << " arg0 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
ss << " i++;" << ";\n";
ss << " i++;;\n";
ss << " arg1 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
#ifdef ISNAN
@@ -1150,7 +1150,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
#endif
ss << " arg0 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
ss << " i++;" << ";\n";
ss << " i++;;\n";
ss << " arg1 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
#ifdef ISNAN
@@ -1183,7 +1183,7 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
#endif
ss << " arg0 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
ss << " i++;" << ";\n";
ss << " i++;;\n";
ss << " arg1 = ";
ss << vSubArguments[0]->GenSlidingWindowDeclRef() << ";\n";
#ifdef ISNAN
@@ -2221,7 +2221,7 @@ void OpYield::GenSlidingWindowFunction(
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
ss << ") {\n\t";
ss << "double tmp = " <<"0"<<";\n\t";
ss << "double tmp = 0;\n\t";
ss << "int gid0 = get_global_id(0);\n\t";
ss << "double tmp000;\n\t";
ss << "double tmp001;\n\t";
@@ -2377,7 +2377,7 @@ void OpSLN::GenSlidingWindowFunction(std::stringstream &ss,
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
ss << ") {\n";
ss << " double tmp = " <<"0"<<";\n";
ss << " double tmp = 0;\n";
ss << " int gid0 = get_global_id(0);\n";
ss << " double wert;\n";
ss << " double rest;\n";
@@ -2461,7 +2461,7 @@ void OpYieldmat::GenSlidingWindowFunction(
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
ss << ") {\n\t";
ss << "double tmp = " <<"0"<<";\n\t";
ss << "double tmp = 0;\n\t";
ss << "int gid0 = get_global_id(0);\n\t";
ss << "double tmp000;\n\t";
ss << "double tmp001;\n\t";
@@ -4471,7 +4471,7 @@ void OpYielddisc::GenSlidingWindowFunction(
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
ss << ") {\n\t";
ss << "double tmp = " <<"0"<<";\n\t";
ss << "double tmp = 0;\n\t";
ss << "int gid0 = get_global_id(0);\n\t";
ss << "double tmp000;\n\t";
ss << "double tmp001;\n\t";
@@ -4978,7 +4978,7 @@ vSubArguments)
vSubArguments[i]->GenSlidingWindowDecl(ss);
}
ss << ") {\n";
ss << " double result = " <<"0"<<";\n";
ss << " double result = 0;\n";
ss << " int gid0 = get_global_id(0);\n";
ss << " double zins;\n";
ss << " double zzr;\n";
+1 -1
View File
@@ -2457,7 +2457,7 @@ void OpBitLshift::GenSlidingWindowFunction(std::stringstream &ss,
#endif
ss << " shift_amount = floor(";
ss << vSubArguments[1]->GenSlidingWindowDeclRef() << ");\n";
ss << " return floor(" << "shift_amount >= 0 ? ";
ss << " return floor(shift_amount >= 0 ? ";
ss << "num * pow(2.0, shift_amount) : ";
ss << "num / pow(2.0, fabs(shift_amount)));\n";
ss << "}";
+2 -2
View File
@@ -172,7 +172,7 @@ void OpVLookup::GenSlidingWindowFunction(std::stringstream &ss,
ss << " tmp = isNan(";
vSubArguments[1+j]->GenNumDeclRef(ss);
ss << "[rowNum]"<<")?";
ss << "[rowNum])?";
vSubArguments[1+j]->GenNumDeclRef(ss);
ss << "[rowNum]:";
vSubArguments[1+j]->GenStringDeclRef(ss);
@@ -251,7 +251,7 @@ void OpVLookup::GenSlidingWindowFunction(std::stringstream &ss,
{
ss << " tmp = isNan(";
vSubArguments[1+j]->GenNumDeclRef(ss);
ss << "[rowNum]"<<")?";
ss << "[rowNum])?";
vSubArguments[1+j]->GenNumDeclRef(ss);
ss << "[rowNum]:";
vSubArguments[1+j]->GenStringDeclRef(ss);
+17 -17
View File
@@ -1257,7 +1257,7 @@ void OpTDist::GenSlidingWindowFunction(std::stringstream &ss,
ss << " double fFlag = 0.0;\n";
if(vSubArguments.size() != 3)
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -1287,7 +1287,7 @@ void OpTDist::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1328,7 +1328,7 @@ void OpTDist::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1371,7 +1371,7 @@ void OpTDist::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1577,7 +1577,7 @@ void OpStandard::GenSlidingWindowFunction(std::stringstream &ss,
ss << " double sigma = 0.0;\n";
if(vSubArguments.size() != 3)
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -1606,7 +1606,7 @@ void OpStandard::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1642,7 +1642,7 @@ void OpStandard::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1715,7 +1715,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
ss << " double kum = 0.0;\n";
if(vSubArguments.size() != 4)
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -1744,7 +1744,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1780,7 +1780,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1816,7 +1816,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -1852,7 +1852,7 @@ void OpWeibull::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -2601,7 +2601,7 @@ void OpTInv::GenSlidingWindowFunction(std::stringstream &ss,
ss << " double fDF = 0.0;\n";
if(vSubArguments.size() != 2)
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
FormulaToken *tmpCur0 = vSubArguments[0]->GetFormulaToken();
@@ -2631,7 +2631,7 @@ void OpTInv::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -2672,7 +2672,7 @@ void OpTInv::GenSlidingWindowFunction(std::stringstream &ss,
}
else
{
ss << " return DBL_MAX;\n" << "}\n";
ss << " return DBL_MAX;\n}\n";
return ;
}
}
@@ -2814,7 +2814,7 @@ void OpStDev::GenSlidingWindowFunction(std::stringstream &ss,
}
if (i == 0)
{
ss << " fMean = fSum * pow(fCount,-1.0)" << ";\n";
ss << " fMean = fSum * pow(fCount,-1.0);\n";
}
}
i = vSubArguments.size();
@@ -3045,7 +3045,7 @@ void OpStDevP::GenSlidingWindowFunction(std::stringstream &ss,
}
if (i == 0)
{
ss << " fMean = fSum * pow(fCount,-1.0)" << ";\n";
ss << " fMean = fSum * pow(fCount,-1.0);\n";
}
}
i = vSubArguments.size();
+1 -1
View File
@@ -4576,7 +4576,7 @@ void ScXMLExport::WriteExternalRefCaches()
if (!pTable.get() || !pTable->isReferenced())
continue;
AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, "'" + *pUrl + "'" + "#" + *itr);
AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, "'" + *pUrl + "'#" + *itr);
AddAttribute(XML_NAMESPACE_TABLE, XML_PRINT, GetXMLToken(XML_FALSE));
AddAttribute(XML_NAMESPACE_TABLE, XML_STYLE_NAME, sExternalRefTabStyleName);
SvXMLElementExport aElemTable(*this, XML_NAMESPACE_TABLE, XML_TABLE, true, true);
+1 -1
View File
@@ -2201,7 +2201,7 @@ void ScViewData::WriteUserData(OUString& rData)
else
rData += "0";
rData += ";" + OUString::number( nTabNo ) + ";" + TAG_TABBARWIDTH +
rData += ";" + OUString::number( nTabNo ) + ";" TAG_TABBARWIDTH +
OUString::number( pView->GetTabBarWidth() );
SCTAB nTabCount = pDoc->GetTableCount();
@@ -1279,7 +1279,7 @@ void SAL_CALL BluetoothServer::run()
}
else
SAL_INFO( "sdremote.bluetooth", "unknown incoming dbus message, "
<< " type: " << dbus_message_get_type( pMsg )
" type: " << dbus_message_get_type( pMsg )
<< " path: '" << dbus_message_get_path( pMsg )
<< "' interface: '" << dbus_message_get_interface( pMsg )
<< "' member: '" << dbus_message_get_member( pMsg ) );
+1 -1
View File
@@ -24,7 +24,7 @@
#include <sal/log.hxx>
#define SFX_ASSERT( bCondition, nId, sMessage ) SAL_WARN_IF( \
!(bCondition), "svl", (sMessage) << ", with ID/pos " << (nId));
!(bCondition), "svl", sMessage ", with ID/pos " << (nId));
#endif
+1 -1
View File
@@ -248,7 +248,7 @@ static OUString GetCrashConfigDir()
static OUString GetUnsentURL()
{
OUString aURL = GetCrashConfigDir() + "/" + LCKFILE;
OUString aURL = GetCrashConfigDir() + "/" LCKFILE;
return aURL;
}
+2 -2
View File
@@ -1414,8 +1414,8 @@ bool SwDoc::IsPoolFmtUsed( sal_uInt16 nId ) const
}
else
{
SAL_WARN("sw.core", "Invalid Pool Id: " << nId << " should be within " <<
"[" << int(RES_POOLCHR_BEGIN) << "," << int(RES_POOLCHR_END) << ") or " <<
SAL_WARN("sw.core", "Invalid Pool Id: " << nId << " should be within "
"[" << int(RES_POOLCHR_BEGIN) << "," << int(RES_POOLCHR_END) << ") or "
"[" << int(RES_POOLFRM_BEGIN) << "," << int(RES_POOLFRM_END) << ")");
bFnd = false;
}
+1 -1
View File
@@ -1118,7 +1118,7 @@ bool SwTableAutoFmtTbl::Load()
bool SwTableAutoFmtTbl::Save() const
{
SvtPathOptions aPathOpt;
const OUString sNm( aPathOpt.GetUserConfigPath() + "/" + AUTOTABLE_FORMAT_NAME );
const OUString sNm( aPathOpt.GetUserConfigPath() + "/" AUTOTABLE_FORMAT_NAME );
SfxMedium aStream(sNm, STREAM_STD_WRITE );
return Save( *aStream.GetOutStream() ) && aStream.Commit();
}
+1 -1
View File
@@ -3274,7 +3274,7 @@ static Writer& OutCSS1_SvxBrush( Writer& rWrt, const SfxPoolItem& rHt,
sOut += " ";
sOut += OStringToOUString(sCSS1_url, RTL_TEXTENCODING_ASCII_US) +
"(\'" + OOO_STRING_SVTOOLS_HTML_O_data + ":" + aGraphicInBase64 + "\')";
"(\'" OOO_STRING_SVTOOLS_HTML_O_data ":" + aGraphicInBase64 + "\')";
if( pRepeat )
{
+2 -2
View File
@@ -370,7 +370,7 @@ void SwCSS1Parser::SetTableTxtColl( bool bHeader )
pStyleEntry->GetPropertyInfo(), this );
}
OUString sTmp = sTag + " " + OOO_STRING_SVTOOLS_HTML_parabreak;
OUString sTmp = sTag + " " OOO_STRING_SVTOOLS_HTML_parabreak;
pStyleEntry = GetTag( sTmp );
if( pStyleEntry )
{
@@ -960,7 +960,7 @@ bool SwCSS1Parser::StyleParsed( const CSS1Selector *pSelector,
}
else
{
OUString sTmp = aToken2 + " " + OOO_STRING_SVTOOLS_HTML_parabreak;
OUString sTmp = aToken2 + " " OOO_STRING_SVTOOLS_HTML_parabreak;
if( CSS1_SCRIPT_ALL == nScript )
{
+2 -2
View File
@@ -89,8 +89,8 @@ namespace ww8
#endif
}
SAL_INFO( "sw.ww8.level2", "<WW8Struct-getUString" << " offset=\"" << nOffset
<< "\" count=\"" << nCount << "\"" << ">" << aResult << "</WW8Struct-getUString>" );
SAL_INFO( "sw.ww8.level2", "<WW8Struct-getUString offset=\"" << nOffset
<< "\" count=\"" << nCount << "\">" << aResult << "</WW8Struct-getUString>" );
return aResult;
@@ -40,7 +40,7 @@ void generateIncludes(std::ostream & o,
o << "#include \"sal/config.h\"\n";
if (serviceobject) {
o << "#include \"cppuhelper/factory.hxx\"\n"
<< "#include \"cppuhelper/implementationentry.hxx\"\n";
"#include \"cppuhelper/implementationentry.hxx\"\n";
} else {
o << "#include \"com/sun/star/uno/XComponentContext.hpp\"\n";
}
@@ -147,12 +147,12 @@ void generateCompHelperDefinition(std::ostream & o,
short nbrackets = generateNamespace(o, implname, true, nm);
o << "::rtl::OUString SAL_CALL _getImplementationName() {\n"
<< " return ::rtl::OUString(\n"
<< " \"" << implname << "\");\n}\n\n";
" return ::rtl::OUString(\n"
" \"" << implname << "\");\n}\n\n";
o << "css::uno::Sequence< ::rtl::OUString > SAL_CALL "
"_getSupportedServiceNames()\n{\n css::uno::Sequence< "
<< "::rtl::OUString >" << " s(" << services.size() << ");\n";
"::rtl::OUString > s(" << services.size() << ");\n";
std::set< OUString >::const_iterator iter = services.begin();
short i=0;
@@ -165,9 +165,9 @@ void generateCompHelperDefinition(std::ostream & o,
o << " return s;\n}\n\n";
o << "css::uno::Reference< css::uno::XInterface > SAL_CALL _create("
<< "\n const css::uno::Reference< css::uno::XComponentContext > & "
<< "context)\n{\n"
<< " return static_cast< ::cppu::OWeakObject * >(new "
"\n const css::uno::Reference< css::uno::XComponentContext > & "
"context)\n{\n"
" return static_cast< ::cppu::OWeakObject * >(new "
<< classname << "(context));\n}\n\n";
// close namepsace
@@ -180,21 +180,21 @@ void generateCompHelperDefinition(std::ostream & o,
void generateCompFunctions(std::ostream & o, const OString & nmspace)
{
o << "static ::cppu::ImplementationEntry const entries[] = {\n"
<< " { &" << nmspace << "::_create,\n &"
" { &" << nmspace << "::_create,\n &"
<< nmspace << "::_getImplementationName,\n &"
<< nmspace << "::_getSupportedServiceNames,\n"
<< " &::cppu::createSingleComponentFactory, 0, 0 },\n"
<< " { 0, 0, 0, 0, 0, 0 }\n};\n\n";
" &::cppu::createSingleComponentFactory, 0, 0 },\n"
" { 0, 0, 0, 0, 0, 0 }\n};\n\n";
o << "extern \"C\" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(\n"
<< " const char * implName, void * serviceManager, void * registryKey)\n{\n"
<< " return ::cppu::component_getFactoryHelper(\n"
<< " implName, serviceManager, registryKey, entries);\n}\n\n";
" const char * implName, void * serviceManager, void * registryKey)\n{\n"
" return ::cppu::component_getFactoryHelper(\n"
" implName, serviceManager, registryKey, entries);\n}\n\n";
o << "extern \"C\" sal_Bool SAL_CALL component_writeInfo(\n"
<< " void * serviceManager, void * registryKey)\n{\n"
<< " return ::cppu::component_writeInfoHelper("
<< "serviceManager, registryKey, entries);\n}\n";
" void * serviceManager, void * registryKey)\n{\n"
" return ::cppu::component_writeInfoHelper("
"serviceManager, registryKey, entries);\n}\n";
}
void generateXPropertySetBodies(std::ostream& o,
@@ -508,7 +508,7 @@ void generateAddinConstructorAndHelper(std::ostream& o,
{
o << classname << "::" << classname
<< "(css::uno::Reference< css::uno::XComponentContext > const & context) :\n"
<< " m_xContext(context), m_locale()\n{\n";
" m_xContext(context), m_locale()\n{\n";
if (options.backwardcompatible) {
o << " try {\n";
@@ -631,7 +631,7 @@ OString generateClassDefinition(std::ostream& o,
parentname.append("::cppu::WeakComponentImplHelper");
parentname.append(static_cast<sal_Int32>(interfaces.size()));
o << " private ::cppu::BaseMutex,\n"
<< " public ::cppu::WeakComponentImplHelper"
" public ::cppu::WeakComponentImplHelper"
<< interfaces.size() << "<";
} else {
parentname.append("::cppu::WeakImplHelper");
@@ -657,8 +657,8 @@ OString generateClassDefinition(std::ostream& o,
}
o << "\n{\npublic:\n"
<< " explicit " << classname << "("
<< "css::uno::Reference< css::uno::XComponentContext > const & context);\n\n";
" explicit " << classname << "("
"css::uno::Reference< css::uno::XComponentContext > const & context);\n\n";
// generate component/service helper functions
// o << " // component and service helper functions:\n"
@@ -706,9 +706,9 @@ OString generateClassDefinition(std::ostream& o,
}
o << "private:\n " << classname << "(const " << classname << " &); // not defined\n"
<< " " << classname << "& operator=(const " << classname << " &); // not defined\n\n"
<< " // destructor is private and will be called indirectly by the release call"
<< " virtual ~" << classname << "() {}\n\n";
" " << classname << "& operator=(const " << classname << " &); // not defined\n\n"
" // destructor is private and will be called indirectly by the release call"
" virtual ~" << classname << "() {}\n\n";
if (options.componenttype == 2) {
o << " typedef boost::unordered_map< ::sal_Int32, rtl::OUString, "
@@ -801,7 +801,7 @@ OString generateClassDefinition(std::ostream& o,
if (propertyhelper.getLength() > 1) {
o << " ::cppu::PropertySetMixin< "
<< scopedCppName(u2b(propertyhelper)) << " >(\n"
<< " context, static_cast< Implements >(\n ";
" context, static_cast< Implements >(\n ";
OStringBuffer buffer(128);
if (propinterfaces.find("com/sun/star/beans/XPropertySet")
!= propinterfaces.end()) {
@@ -851,22 +851,22 @@ void generateXServiceInfoBodies(std::ostream& o,
OString const & comphelpernamespace)
{
o << "// com.sun.star.uno.XServiceInfo:\n"
<< "::rtl::OUString SAL_CALL " << classname << "getImplementationName() "
<< "throw (css::uno::RuntimeException)\n{\n "
<< "return " << comphelpernamespace << "::_getImplementationName();\n}\n\n";
"::rtl::OUString SAL_CALL " << classname << "getImplementationName() "
"throw (css::uno::RuntimeException)\n{\n "
"return " << comphelpernamespace << "::_getImplementationName();\n}\n\n";
o << "sal_Bool SAL_CALL " << classname
<< "supportsService(::rtl::OUString const & "
<< "serviceName) throw (css::uno::RuntimeException)\n{\n "
<< "css::uno::Sequence< ::rtl::OUString > serviceNames = "
"serviceName) throw (css::uno::RuntimeException)\n{\n "
"css::uno::Sequence< ::rtl::OUString > serviceNames = "
<< comphelpernamespace << "::_getSupportedServiceNames();\n "
<< "for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {\n "
<< " if (serviceNames[i] == serviceName)\n return sal_True;\n"
<< " }\n return sal_False;\n}\n\n";
"for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {\n "
" if (serviceNames[i] == serviceName)\n return sal_True;\n"
" }\n return sal_False;\n}\n\n";
o << "css::uno::Sequence< ::rtl::OUString > SAL_CALL " << classname
<< "getSupportedServiceNames() throw (css::uno::RuntimeException)\n{\n "
<< "return " << comphelpernamespace
"return " << comphelpernamespace
<< "::_getSupportedServiceNames();\n}\n\n";
}
@@ -386,8 +386,7 @@ void printSetPropertyMixinBody(
o << " css::uno::Any v;\n";
if (optional) {
o << " if(" << buffer1.makeStringAndClear() << ")\n {\n"
<< " v <<= " << buffer2.makeStringAndClear() << ";\n }\n";
o << " if(" << buffer1.makeStringAndClear() << ")\n {\n v <<= " << buffer2.makeStringAndClear() << ";\n }\n";
} else {
o << " v <<= " << buffer2.makeStringAndClear() << ";\n\n";
}
@@ -96,17 +96,17 @@ void generateXServiceInfoBodies(std::ostream& o)
{
o << " // com.sun.star.lang.XServiceInfo:\n";
o << " public String getImplementationName() {\n"
<< " return m_implementationName;\n }\n\n";
" return m_implementationName;\n }\n\n";
o << " public boolean supportsService( String sService ) {\n"
<< " int len = m_serviceNames.length;\n\n"
<< " for( int i=0; i < len; i++) {\n"
<< " if (sService.equals(m_serviceNames[i]))\n"
<< " return true;\n"
<< " }\n return false;\n }\n\n";
" int len = m_serviceNames.length;\n\n"
" for( int i=0; i < len; i++) {\n"
" if (sService.equals(m_serviceNames[i]))\n"
" return true;\n"
" }\n return false;\n }\n\n";
o << " public String[] getSupportedServiceNames() {\n"
<< " return m_serviceNames;\n }\n\n";
" return m_serviceNames;\n }\n\n";
}
void generateXPropertySetBodies(std::ostream& o)
@@ -798,7 +798,7 @@ void generateClassDefinition(std::ostream& o,
if (propertyhelper.getLength() > 1) {
o << propcomment
<< " m_prophlp = new PropertySetMixin(m_xContext, this,\n"
<< " new Type(" << propertyhelper
" new Type(" << propertyhelper
<< ".class), null);\n";
}
}
@@ -540,8 +540,7 @@ void printMethods(std::ostream & o,
if ( defaultbody ) {
o << "\n" << indentation << "{\n";
if (i->returnType != "void") {
o << indentation << " // TODO: Exchange the default return "
<< "implementation for \"" << i->name << "\" !!!\n";
o << indentation << " // TODO: Exchange the default return implementation for \"" << i->name << "\" !!!\n";
o << indentation << " // NOTE: "
"Default initialized polymorphic structs can cause problems"
"\n" << indentation << " // because of missing default "
@@ -664,7 +663,7 @@ void printMapsToJavaType(
codemaker::UnoType::Sort sort, OUString const & nucleus, sal_Int32 rank,
std::vector< OUString > const & arguments, const char * javaTypeSort)
{
o << "maps to Java " << "1.5" << " ";
o << "maps to Java 1.5 ";
if (javaTypeSort != 0) {
o << javaTypeSort << ' ';
}
@@ -104,15 +104,15 @@ void printUsageAndExit(const char* programname, const char* version)
{
std::cerr
<< "\n using: " << programname << "\n"
<< " dump [<options>] -t <type> ...\n"
<< " " << programname << "\n"
<< " component [<options>] -n <name> -t <type> ...\n"
<< " " << programname << "\n"
<< " calc-add-in [<options>] -n <name> -t <add-in_service>\n"
<< " " << programname << "\n"
<< " add-on [<options>] -n <name> -p <protocol_name:command,...>\n"
<< " " << programname << " -V, --version\n"
<< " " << programname << " -h, --help\n"
" dump [<options>] -t <type> ...\n"
" " << programname << "\n"
" component [<options>] -n <name> -t <type> ...\n"
" " << programname << "\n"
" calc-add-in [<options>] -n <name> -t <add-in_service>\n"
" " << programname << "\n"
" add-on [<options>] -n <name> -p <protocol_name:command,...>\n"
" " << programname << " -V, --version\n"
" " << programname << " -h, --help\n"
<< usageText
<< programname << " Version " << version << "\n\n";
}
+1 -1
View File
@@ -50,7 +50,7 @@ OUString getOfficePath( enum whichOfficePath ePath )
bOnce = true;
OUString aIni;
Bootstrap::get( "BRAND_BASE_DIR", aInstallationRootPath );
aIni = aInstallationRootPath + "/" LIBO_ETC_FOLDER "/" + SAL_CONFIGFILE( "bootstrap" );
aIni = aInstallationRootPath + "/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap" );
Bootstrap aBootstrap( aIni );
aBootstrap.getFrom( "CustomDataUrl", aConfigPath );
aBootstrap.getFrom( "UserInstallation", aUserPath );
+49 -49
View File
@@ -1581,56 +1581,56 @@ bool EnhWMFReader::ReadEnhWMF()
}
break;
case EMR_MASKBLT : SAL_INFO("vcl.emf", "not implemented '" << "MaskBlt" << "'"); break;
case EMR_PLGBLT : SAL_INFO("vcl.emf", "not implemented '" << "PlgBlt" << "'"); break;
case EMR_SETDIBITSTODEVICE : SAL_INFO("vcl.emf", "not implemented '" << "SetDIBitsToDevice" << "'"); break;
case EMR_FRAMERGN : SAL_INFO("vcl.emf", "not implemented '" << "FrameRgn" << "'"); break;
case EMR_INVERTRGN : SAL_INFO("vcl.emf", "not implemented '" << "InvertRgn" << "'"); break;
case EMR_PAINTRGN : SAL_INFO("vcl.emf", "not implemented '" << "PaintRgn" << "'"); break;
case EMR_FLATTENPATH : SAL_INFO("vcl.emf", "not implemented '" << "FlattenPath" << "'"); break;
case EMR_WIDENPATH : SAL_INFO("vcl.emf", "not implemented '" << "WidenPath" << "'"); break;
case EMR_POLYDRAW : SAL_INFO("vcl.emf", "not implemented '" << "Polydraw" << "'"); break;
case EMR_SETARCDIRECTION : SAL_INFO("vcl.emf", "not implemented '" << "SetArcDirection" << "'"); break;
case EMR_SETPALETTEENTRIES : SAL_INFO("vcl.emf", "not implemented '" << "SetPaletteEntries" << "'"); break;
case EMR_RESIZEPALETTE : SAL_INFO("vcl.emf", "not implemented '" << "ResizePalette" << "'"); break;
case EMR_EXTFLOODFILL : SAL_INFO("vcl.emf", "not implemented '" << "ExtFloodFill" << "'"); break;
case EMR_ANGLEARC : SAL_INFO("vcl.emf", "not implemented '" << "AngleArc" << "'"); break;
case EMR_SETCOLORADJUSTMENT : SAL_INFO("vcl.emf", "not implemented '" << "SetColorAdjustment" << "'"); break;
case EMR_POLYDRAW16 : SAL_INFO("vcl.emf", "not implemented '" << "PolyDraw16" << "'"); break;
case EMR_POLYTEXTOUTA : SAL_INFO("vcl.emf", "not implemented '" << "PolyTextOutA" << "'"); break;
case EMR_POLYTEXTOUTW : SAL_INFO("vcl.emf", "not implemented '" << "PolyTextOutW" << "'"); break;
case EMR_CREATECOLORSPACE : SAL_INFO("vcl.emf", "not implemented '" << "CreateColorSpace" << "'"); break;
case EMR_SETCOLORSPACE : SAL_INFO("vcl.emf", "not implemented '" << "SetColorSpace" << "'"); break;
case EMR_DELETECOLORSPACE : SAL_INFO("vcl.emf", "not implemented '" << "DeleteColorSpace" << "'"); break;
case EMR_GLSRECORD : SAL_INFO("vcl.emf", "not implemented '" << "GlsRecord" << "'"); break;
case EMR_GLSBOUNDEDRECORD : SAL_INFO("vcl.emf", "not implemented '" << "GlsBoundRecord" << "'"); break;
case EMR_PIXELFORMAT : SAL_INFO("vcl.emf", "not implemented '" << "PixelFormat" << "'"); break;
case EMR_DRAWESCAPE : SAL_INFO("vcl.emf", "not implemented '" << "DrawEscape" << "'"); break;
case EMR_EXTESCAPE : SAL_INFO("vcl.emf", "not implemented '" << "ExtEscape" << "'"); break;
case EMR_STARTDOC : SAL_INFO("vcl.emf", "not implemented '" << "StartDoc" << "'"); break;
case EMR_SMALLTEXTOUT : SAL_INFO("vcl.emf", "not implemented '" << "SmallTextOut" << "'"); break;
case EMR_FORCEUFIMAPPING : SAL_INFO("vcl.emf", "not implemented '" << "ForceUFIMapping" << "'"); break;
case EMR_NAMEDESCAPE : SAL_INFO("vcl.emf", "not implemented '" << "NamedEscape" << "'"); break;
case EMR_COLORCORRECTPALETTE : SAL_INFO("vcl.emf", "not implemented '" << "ColorCorrectPalette" << "'"); break;
case EMR_SETICMPROFILEA : SAL_INFO("vcl.emf", "not implemented '" << "SetICMProfileA" << "'"); break;
case EMR_SETICMPROFILEW : SAL_INFO("vcl.emf", "not implemented '" << "SetICMProfileW" << "'"); break;
case EMR_TRANSPARENTBLT : SAL_INFO("vcl.emf", "not implemented '" << "TransparenBlt" << "'"); break;
case EMR_TRANSPARENTDIB : SAL_INFO("vcl.emf", "not implemented '" << "TransparenDib" << "'"); break;
case EMR_GRADIENTFILL : SAL_INFO("vcl.emf", "not implemented '" << "GradientFill" << "'"); break;
case EMR_SETLINKEDUFIS : SAL_INFO("vcl.emf", "not implemented '" << "SetLinkedUFIS" << "'"); break;
case EMR_MASKBLT : SAL_INFO("vcl.emf", "not implemented 'MaskBlt'"); break;
case EMR_PLGBLT : SAL_INFO("vcl.emf", "not implemented 'PlgBlt'"); break;
case EMR_SETDIBITSTODEVICE : SAL_INFO("vcl.emf", "not implemented 'SetDIBitsToDevice'"); break;
case EMR_FRAMERGN : SAL_INFO("vcl.emf", "not implemented 'FrameRgn'"); break;
case EMR_INVERTRGN : SAL_INFO("vcl.emf", "not implemented 'InvertRgn'"); break;
case EMR_PAINTRGN : SAL_INFO("vcl.emf", "not implemented 'PaintRgn'"); break;
case EMR_FLATTENPATH : SAL_INFO("vcl.emf", "not implemented 'FlattenPath'"); break;
case EMR_WIDENPATH : SAL_INFO("vcl.emf", "not implemented 'WidenPath'"); break;
case EMR_POLYDRAW : SAL_INFO("vcl.emf", "not implemented 'Polydraw'"); break;
case EMR_SETARCDIRECTION : SAL_INFO("vcl.emf", "not implemented 'SetArcDirection'"); break;
case EMR_SETPALETTEENTRIES : SAL_INFO("vcl.emf", "not implemented 'SetPaletteEntries'"); break;
case EMR_RESIZEPALETTE : SAL_INFO("vcl.emf", "not implemented 'ResizePalette'"); break;
case EMR_EXTFLOODFILL : SAL_INFO("vcl.emf", "not implemented 'ExtFloodFill'"); break;
case EMR_ANGLEARC : SAL_INFO("vcl.emf", "not implemented 'AngleArc'"); break;
case EMR_SETCOLORADJUSTMENT : SAL_INFO("vcl.emf", "not implemented 'SetColorAdjustment'"); break;
case EMR_POLYDRAW16 : SAL_INFO("vcl.emf", "not implemented 'PolyDraw16'"); break;
case EMR_POLYTEXTOUTA : SAL_INFO("vcl.emf", "not implemented 'PolyTextOutA'"); break;
case EMR_POLYTEXTOUTW : SAL_INFO("vcl.emf", "not implemented 'PolyTextOutW'"); break;
case EMR_CREATECOLORSPACE : SAL_INFO("vcl.emf", "not implemented 'CreateColorSpace'"); break;
case EMR_SETCOLORSPACE : SAL_INFO("vcl.emf", "not implemented 'SetColorSpace'"); break;
case EMR_DELETECOLORSPACE : SAL_INFO("vcl.emf", "not implemented 'DeleteColorSpace'"); break;
case EMR_GLSRECORD : SAL_INFO("vcl.emf", "not implemented 'GlsRecord'"); break;
case EMR_GLSBOUNDEDRECORD : SAL_INFO("vcl.emf", "not implemented 'GlsBoundRecord'"); break;
case EMR_PIXELFORMAT : SAL_INFO("vcl.emf", "not implemented 'PixelFormat'"); break;
case EMR_DRAWESCAPE : SAL_INFO("vcl.emf", "not implemented 'DrawEscape'"); break;
case EMR_EXTESCAPE : SAL_INFO("vcl.emf", "not implemented 'ExtEscape'"); break;
case EMR_STARTDOC : SAL_INFO("vcl.emf", "not implemented 'StartDoc'"); break;
case EMR_SMALLTEXTOUT : SAL_INFO("vcl.emf", "not implemented 'SmallTextOut'"); break;
case EMR_FORCEUFIMAPPING : SAL_INFO("vcl.emf", "not implemented 'ForceUFIMapping'"); break;
case EMR_NAMEDESCAPE : SAL_INFO("vcl.emf", "not implemented 'NamedEscape'"); break;
case EMR_COLORCORRECTPALETTE : SAL_INFO("vcl.emf", "not implemented 'ColorCorrectPalette'"); break;
case EMR_SETICMPROFILEA : SAL_INFO("vcl.emf", "not implemented 'SetICMProfileA'"); break;
case EMR_SETICMPROFILEW : SAL_INFO("vcl.emf", "not implemented 'SetICMProfileW'"); break;
case EMR_TRANSPARENTBLT : SAL_INFO("vcl.emf", "not implemented 'TransparenBlt'"); break;
case EMR_TRANSPARENTDIB : SAL_INFO("vcl.emf", "not implemented 'TransparenDib'"); break;
case EMR_GRADIENTFILL : SAL_INFO("vcl.emf", "not implemented 'GradientFill'"); break;
case EMR_SETLINKEDUFIS : SAL_INFO("vcl.emf", "not implemented 'SetLinkedUFIS'"); break;
case EMR_SETMAPPERFLAGS : SAL_INFO("vcl.emf", "not implemented '" << "SetMapperFlags" << "'"); break;
case EMR_SETICMMODE : SAL_INFO("vcl.emf", "not implemented '" << "SetICMMode" << "'"); break;
case EMR_CREATEMONOBRUSH : SAL_INFO("vcl.emf", "not implemented '" << "CreateMonoBrush" << "'"); break;
case EMR_SETBRUSHORGEX : SAL_INFO("vcl.emf", "not implemented '" << "SetBrushOrgEx" << "'"); break;
case EMR_SETMETARGN : SAL_INFO("vcl.emf", "not implemented '" << "SetMetArgn" << "'"); break;
case EMR_SETMITERLIMIT : SAL_INFO("vcl.emf", "not implemented '" << "SetMiterLimit" << "'"); break;
case EMR_EXCLUDECLIPRECT : SAL_INFO("vcl.emf", "not implemented '" << "ExcludeClipRect" << "'"); break;
case EMR_REALIZEPALETTE : SAL_INFO("vcl.emf", "not implemented '" << "RealizePalette" << "'"); break;
case EMR_SELECTPALETTE : SAL_INFO("vcl.emf", "not implemented '" << "SelectPalette" << "'"); break;
case EMR_CREATEPALETTE : SAL_INFO("vcl.emf", "not implemented '" << "CreatePalette" << "'"); break;
case EMR_ALPHADIBBLEND : SAL_INFO("vcl.emf", "not implemented '" << "AlphaDibBlend" << "'"); break;
case EMR_SETTEXTJUSTIFICATION : SAL_INFO("vcl.emf", "not implemented '" << "SetTextJustification" << "'"); break;
case EMR_SETMAPPERFLAGS : SAL_INFO("vcl.emf", "not implemented 'SetMapperFlags'"); break;
case EMR_SETICMMODE : SAL_INFO("vcl.emf", "not implemented 'SetICMMode'"); break;
case EMR_CREATEMONOBRUSH : SAL_INFO("vcl.emf", "not implemented 'CreateMonoBrush'"); break;
case EMR_SETBRUSHORGEX : SAL_INFO("vcl.emf", "not implemented 'SetBrushOrgEx'"); break;
case EMR_SETMETARGN : SAL_INFO("vcl.emf", "not implemented 'SetMetArgn'"); break;
case EMR_SETMITERLIMIT : SAL_INFO("vcl.emf", "not implemented 'SetMiterLimit'"); break;
case EMR_EXCLUDECLIPRECT : SAL_INFO("vcl.emf", "not implemented 'ExcludeClipRect'"); break;
case EMR_REALIZEPALETTE : SAL_INFO("vcl.emf", "not implemented 'RealizePalette'"); break;
case EMR_SELECTPALETTE : SAL_INFO("vcl.emf", "not implemented 'SelectPalette'"); break;
case EMR_CREATEPALETTE : SAL_INFO("vcl.emf", "not implemented 'CreatePalette'"); break;
case EMR_ALPHADIBBLEND : SAL_INFO("vcl.emf", "not implemented 'AlphaDibBlend'"); break;
case EMR_SETTEXTJUSTIFICATION : SAL_INFO("vcl.emf", "not implemented 'SetTextJustification'"); break;
case EMR_GDICOMMENT :
case EMR_HEADER : // has already been read at ReadHeader()
+8 -10
View File
@@ -1152,7 +1152,7 @@ bool WMFReader::ReadHeader()
aPlaceableBound = aExtRect;
SAL_INFO("vcl.wmf", "External header size "
<< " t: " << aPlaceableBound.Left() << " l: " << aPlaceableBound.Top()
" t: " << aPlaceableBound.Left() << " l: " << aPlaceableBound.Top()
<< " b: " << aPlaceableBound.Right() << " r: " << aPlaceableBound.Bottom());
pOut->SetMapMode( pExternalHeader->mapMode );
@@ -1176,7 +1176,7 @@ bool WMFReader::ReadHeader()
aPlaceableBound.Bottom() / fRatio);
SAL_INFO("vcl.wmf", "Placeable bounds "
<< " t: " << aPlaceableBound.Left() << " l: " << aPlaceableBound.Top()
" t: " << aPlaceableBound.Left() << " l: " << aPlaceableBound.Top()
<< " b: " << aPlaceableBound.Right() << " r: " << aPlaceableBound.Bottom());
}
}
@@ -1188,8 +1188,7 @@ bool WMFReader::ReadHeader()
Size aWMFSize( labs( aPlaceableBound.GetWidth() ), labs( aPlaceableBound.GetHeight() ) );
pOut->SetWinExt( aWMFSize );
SAL_INFO("vcl.wmf", "WMF size "
<< " w: " << aWMFSize.Width() << " h: " << aWMFSize.Height());
SAL_INFO("vcl.wmf", "WMF size w: " << aWMFSize.Width() << " h: " << aWMFSize.Height());
Size aDevExt( 10000, 10000 );
if( ( labs( aWMFSize.Width() ) > 1 ) && ( labs( aWMFSize.Height() ) > 1 ) )
@@ -1201,8 +1200,7 @@ bool WMFReader::ReadHeader()
}
pOut->SetDevExt( aDevExt );
SAL_INFO("vcl.wmf", "Dev size "
<< " w: " << aDevExt.Width() << " h: " << aDevExt.Height());
SAL_INFO("vcl.wmf", "Dev size w: " << aDevExt.Width() << " h: " << aDevExt.Height());
// read the METAHEADER
sal_uInt32 nMetaKey(0);
@@ -1636,21 +1634,21 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
{
rPlaceableBound = Rectangle(aWinOrg, *aWinExt);
SAL_INFO("vcl.wmf", "Window dimension "
<< " t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
" t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
<< " b: " << rPlaceableBound.Right() << " r: " << rPlaceableBound.Bottom());
}
else if (aViewportExt)
{
rPlaceableBound = Rectangle(aViewportOrg, *aViewportExt);
SAL_INFO("vcl.wmf", "Viewport dimension "
<< " t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
" t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
<< " b: " << rPlaceableBound.Right() << " r: " << rPlaceableBound.Bottom());
}
else if (bBoundsDetermined)
{
rPlaceableBound = aBound;
SAL_INFO("vcl.wmf", "Determined dimension "
<< " t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
" t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
<< " b: " << rPlaceableBound.Right() << " r: " << rPlaceableBound.Bottom());
}
else
@@ -1660,7 +1658,7 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
rPlaceableBound.Right() = aMaxWidth;
rPlaceableBound.Bottom() = aMaxWidth;
SAL_INFO("vcl.wmf", "Default dimension "
<< " t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
" t: " << rPlaceableBound.Left() << " l: " << rPlaceableBound.Top()
<< " b: " << rPlaceableBound.Right() << " r: " << rPlaceableBound.Bottom());
}
}
+3 -3
View File
@@ -111,9 +111,9 @@ void DebugEventInjector::InjectMenuEvent()
SAL_INFO( "vcl.debugevent",
"Injected menu event " << aEvent.mpMenu
<< " (" << aEvent.mnId << ") "
<< "'" << ((Menu *)aEvent.mpMenu)->GetItemText( aEvent.mnId ) << "'"
<< " -> " << bHandled );
<< " (" << aEvent.mnId << ") '"
<< ((Menu *)aEvent.mpMenu)->GetItemText( aEvent.mnId ) << "' -> "
<< bHandled );
}
static void InitKeyEvent( SalKeyEvent &rKeyEvent )
+3 -3
View File
@@ -316,13 +316,13 @@ void SessionManagerClient::SaveYourselfProc(
Bool
)
{
SAL_INFO("vcl.sm", "Session: save yourself," <<
"save_type " <<
SAL_INFO("vcl.sm", "Session: save yourself, "
"save_type "
" local: " << (save_type == SmSaveLocal) <<
" global: " << (save_type == SmSaveGlobal) <<
" both: " << (save_type == SmSaveBoth) <<
" shutdown: " << shutdown <<
" interact_style: " <<
" interact_style: "
" SmInteractStyleNone: " << (interact_style == SmInteractStyleNone) <<
" SmInteractStyleErrors: " << (interact_style == SmInteractStyleErrors) <<
" SmInteractStyleErrors: " << (interact_style == SmInteractStyleAny));