-- cgit v1.2.3 From 4e5159596c87abf0f8e8330fb0c0997a814cd02a Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 10 Jul 2009 14:03:42 +0200 Subject: #i103452#: replace PRODUCT by !DBG_UTIL; replace assert by OSL_ASSERT where possible --- reportbuilder/template/makefile.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reportbuilder/template/makefile.mk b/reportbuilder/template/makefile.mk index a9ee2cf..2db1c2b 100644 --- a/reportbuilder/template/makefile.mk +++ b/reportbuilder/template/makefile.mk @@ -37,7 +37,7 @@ TARGET=rpt_templates no_common_build_zip=true EXTENSION_VERSION_BASE=1.0.0 -.IF "$(PRODUCT)" != "" +.IF "$(DBG_LEVEL)" == "0" EXTENSION_VERSION=$(EXTENSION_VERSION_BASE) .ELSE EXTENSION_VERSION=$(EXTENSION_VERSION_BASE).$(BUILD) -- cgit v1.2.3 From 64ad4fcd4278ccee406404a6240c17c643d6d8c0 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Tue, 28 Jul 2009 16:29:26 +0200 Subject: #i103496#: remove superfluous dependencies in external libraries --- xpdf/prj/build.lst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpdf/prj/build.lst b/xpdf/prj/build.lst index 9d4b956..527985f 100644 --- a/xpdf/prj/build.lst +++ b/xpdf/prj/build.lst @@ -1,2 +1,2 @@ -xp xpdf : solenv sal soltools NULL +xp xpdf : solenv soltools NULL xp xpdf nmake - all xp_xpdf NULL -- cgit v1.2.3 From 0977de1408e4c30a784466b96a75a9f6b566edce Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Thu, 30 Jul 2009 09:37:08 +0200 Subject: more dependencies fixed --- swext/prj/build.lst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swext/prj/build.lst b/swext/prj/build.lst index 6b8c4dd..b748f74 100644 --- a/swext/prj/build.lst +++ b/swext/prj/build.lst @@ -1,4 +1,4 @@ -swext swext : l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons officecfg readlicense_oo xsltml filter NULL +swext swext : l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml filter NULL swext swext usr1 - all swext_mkout NULL swext swext\mediawiki\help nmake - all swext_mwhelp NULL swext swext\mediawiki\src\registry\schema\org\openoffice\Office\Custom nmake - all swext_mwschema NULL -- cgit v1.2.3 From bbcbe228bdb500ffc0dddbcecf07e307325c8b1c Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Thu, 30 Jul 2009 10:17:58 +0200 Subject: more dependencies fixed --- apache-commons/prj/build.lst | 2 +- swext/prj/build.lst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apache-commons/prj/build.lst b/apache-commons/prj/build.lst index 0a9f79b..80940d4 100644 --- a/apache-commons/prj/build.lst +++ b/apache-commons/prj/build.lst @@ -1,4 +1,4 @@ -ac apache-commons : solenv TOMCAT:tomcat NULL +ac apache-commons : solenv TOMCAT:tomcat officecfg filter NULL ac apache-commons usr1 - all ac_mkout NULL ac apache-commons\java\codec nmake - all ac_codec NULL ac apache-commons\java\lang nmake - all ac_lang NULL diff --git a/swext/prj/build.lst b/swext/prj/build.lst index b748f74..64084c2 100644 --- a/swext/prj/build.lst +++ b/swext/prj/build.lst @@ -1,4 +1,4 @@ -swext swext : l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml filter NULL +swext swext : l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml NULL swext swext usr1 - all swext_mkout NULL swext swext\mediawiki\help nmake - all swext_mwhelp NULL swext swext\mediawiki\src\registry\schema\org\openoffice\Office\Custom nmake - all swext_mwschema NULL -- cgit v1.2.3 -- cgit v1.2.3 From 4a2a2cc28a8d9e1eb805f7e175d0058613ac1a76 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Wed, 9 Sep 2009 15:58:49 +0200 Subject: #i103496#: remove superfluous includes of sal headers --- sdext/source/minimizer/configurationaccess.cxx | 3 +- sdext/source/minimizer/fileopendialog.cxx | 3 +- sdext/source/minimizer/fileopendialog.hxx | 6 +-- sdext/source/minimizer/pppoptimizer.cxx | 10 +++-- sdext/source/minimizer/pppoptimizer.hxx | 3 +- sdext/source/pdfimport/misc/pwdinteract.cxx | 25 ++++------- sdext/source/pdfimport/odf/odfemitter.cxx | 5 +-- sdext/source/pdfimport/sax/emitcontext.cxx | 39 ++--------------- sdext/source/pdfimport/services.cxx | 3 +- sdext/source/pdfimport/test/pdf2xml.cxx | 12 +++--- sdext/source/pdfimport/test/tests.cxx | 60 +++++++++++++------------- sdext/source/pdfimport/tree/imagecontainer.cxx | 20 ++++----- sdext/source/presenter/PresenterComponent.hxx | 4 +- 13 files changed, 76 insertions(+), 117 deletions(-) diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx index cca5bc8..088e286 100644 --- a/sdext/source/minimizer/configurationaccess.cxx +++ b/sdext/source/minimizer/configurationaccess.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,7 +33,6 @@ #include "precompiled_sdext.hxx" #include "configurationaccess.hxx" -#include #include #include #include diff --git a/sdext/source/minimizer/fileopendialog.cxx b/sdext/source/minimizer/fileopendialog.cxx index fb88080..f88fcac 100644 --- a/sdext/source/minimizer/fileopendialog.cxx +++ b/sdext/source/minimizer/fileopendialog.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -60,7 +60,6 @@ #include #include #include -#include using namespace ::rtl; diff --git a/sdext/source/minimizer/fileopendialog.hxx b/sdext/source/minimizer/fileopendialog.hxx index e0ef1f8..5b3369e 100644 --- a/sdext/source/minimizer/fileopendialog.hxx +++ b/sdext/source/minimizer/fileopendialog.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,10 +33,10 @@ #define _FILEOPEN_DIALOG_HXX_ #include -#include #include #include #include +#include class FileOpenDialog { @@ -72,4 +72,4 @@ public : }; #endif // _FILEOPEN_DIALOG_HXX_ - + diff --git a/sdext/source/minimizer/pppoptimizer.cxx b/sdext/source/minimizer/pppoptimizer.cxx index a1782b6..6f20db6 100644 --- a/sdext/source/minimizer/pppoptimizer.cxx +++ b/sdext/source/minimizer/pppoptimizer.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,6 +36,8 @@ #include "impoptimizer.hxx" #include +#include + using namespace ::rtl; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::util; @@ -67,7 +69,7 @@ PPPOptimizer::~PPPOptimizer() void SAL_CALL PPPOptimizer::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException ) { - if( aArguments.getLength() != 1 ) + if( aArguments.getLength() != 1 ) throw IllegalArgumentException(); Reference< XFrame > xFrame; @@ -80,13 +82,13 @@ void SAL_CALL PPPOptimizer::initialize( const Sequence< Any >& aArguments ) // XServiceInfo // ----------------------------------------------------------------------------- -OUString SAL_CALL PPPOptimizer::getImplementationName() +OUString SAL_CALL PPPOptimizer::getImplementationName() throw ( RuntimeException ) { return PPPOptimizer_getImplementationName(); } -sal_Bool SAL_CALL PPPOptimizer::supportsService( const OUString& rServiceName ) +sal_Bool SAL_CALL PPPOptimizer::supportsService( const OUString& rServiceName ) throw ( RuntimeException ) { return rServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( SERVICE_NAME ) ); diff --git a/sdext/source/minimizer/pppoptimizer.hxx b/sdext/source/minimizer/pppoptimizer.hxx index cf1c340..1eb5545 100644 --- a/sdext/source/minimizer/pppoptimizer.hxx +++ b/sdext/source/minimizer/pppoptimizer.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,7 +39,6 @@ #include #include #include -#include // ---------------- // - PPPOptimizer - diff --git a/sdext/source/pdfimport/misc/pwdinteract.cxx b/sdext/source/pdfimport/misc/pwdinteract.cxx index 45e77e9..eb194b3 100644 --- a/sdext/source/pdfimport/misc/pwdinteract.cxx +++ b/sdext/source/pdfimport/misc/pwdinteract.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,6 @@ #include #include #include -#include using namespace com::sun::star; @@ -50,7 +49,7 @@ using namespace com::sun::star; namespace { -typedef ::cppu::WeakComponentImplHelper2< +typedef ::cppu::WeakComponentImplHelper2< com::sun::star::task::XInteractionRequest, com::sun::star::task::XInteractionPassword > PDFPasswordRequestBase; @@ -64,18 +63,18 @@ private: public: explicit PDFPasswordRequest(bool bFirstTry); - + // XInteractionRequest virtual uno::Any SAL_CALL getRequest( ) throw (uno::RuntimeException); virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations( ) throw (uno::RuntimeException); - + // XInteractionPassword virtual void SAL_CALL setPassword( const rtl::OUString& rPwd ) throw (uno::RuntimeException); virtual rtl::OUString SAL_CALL getPassword() throw (uno::RuntimeException); // XInteractionContinuation virtual void SAL_CALL select() throw (uno::RuntimeException); - + bool isSelected() const { osl::MutexGuard const guard( m_aMutex ); return m_bSelected; } }; @@ -140,9 +139,9 @@ bool getPassword( const uno::Reference< task::XInteractionHandler >& xHandler, bool bFirstTry ) { bool bSuccess = false; - + PDFPasswordRequest* pRequest; - uno::Reference< task::XInteractionRequest > xReq( + uno::Reference< task::XInteractionRequest > xReq( pRequest = new PDFPasswordRequest( bFirstTry ) ); try { @@ -150,21 +149,15 @@ bool getPassword( const uno::Reference< task::XInteractionHandler >& xHandler, } catch( uno::Exception& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } - + OSL_TRACE( "request %s selected\n", pRequest->isSelected() ? "was" : "was not" ); if( pRequest->isSelected() ) { bSuccess = true; rOutPwd = pRequest->getPassword(); } - + return bSuccess; } diff --git a/sdext/source/pdfimport/odf/odfemitter.cxx b/sdext/source/pdfimport/odf/odfemitter.cxx index e960fbc..283e0f9 100644 --- a/sdext/source/pdfimport/odf/odfemitter.cxx +++ b/sdext/source/pdfimport/odf/odfemitter.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,6 @@ #include "odfemitter.hxx" #include -#include #include #include #include @@ -101,7 +100,7 @@ void OdfEmitter::beginTag( const char* pTag, const PropertyMap& rProperties ) // platforms, and even between different compile-time settings), // sort the attributes. std::sort(aAttributes.begin(), aAttributes.end()); - std::for_each(aAttributes.begin(), + std::for_each(aAttributes.begin(), aAttributes.end(), boost::bind( (rtl::OUStringBuffer& (rtl::OUStringBuffer::*)(const rtl::OUString&)) (&rtl::OUStringBuffer::append), diff --git a/sdext/source/pdfimport/sax/emitcontext.cxx b/sdext/source/pdfimport/sax/emitcontext.cxx index 07f418e..17ff27e 100644 --- a/sdext/source/pdfimport/sax/emitcontext.cxx +++ b/sdext/source/pdfimport/sax/emitcontext.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,6 @@ #include "saxattrlist.hxx" #include -#include #include #include @@ -62,12 +61,6 @@ SaxEmitter::SaxEmitter( const uno::Reference< xml::sax::XDocumentHandler >& xDoc } catch( xml::sax::SAXException& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } #if OSL_DEBUG_LEVEL > 1 static const char* pDir = getenv( "DBG_PDFIMPORT_DIR" ); @@ -99,12 +92,6 @@ SaxEmitter::~SaxEmitter() } catch( xml::sax::SAXException& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } #if OSL_DEBUG_LEVEL > 1 if( pStream ) @@ -119,7 +106,7 @@ SaxEmitter::~SaxEmitter() void SaxEmitter::beginTag( const char* pTag, const PropertyMap& rProperties ) { rtl::OUString aTag = rtl::OUString::createFromAscii( pTag ); - uno::Reference< xml::sax::XAttributeList > xAttr( + uno::Reference< xml::sax::XAttributeList > xAttr( new SaxAttrList( rProperties ) ); try { @@ -127,12 +114,6 @@ void SaxEmitter::beginTag( const char* pTag, const PropertyMap& rProperties ) } catch( xml::sax::SAXException& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } #if OSL_DEBUG_LEVEL > 1 if( pStream ) @@ -140,7 +121,7 @@ void SaxEmitter::beginTag( const char* pTag, const PropertyMap& rProperties ) sal_uInt64 nWritten = 0; for( int i = 0; i < nIndent; i++ ) pStream->write( " ", 4, nWritten ); - + rtl::OStringBuffer aBuf( 1024 ); aBuf.append( '<' ); aBuf.append( pTag ); @@ -167,12 +148,6 @@ void SaxEmitter::write( const rtl::OUString& rText ) } catch( xml::sax::SAXException& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } #if OSL_DEBUG_LEVEL > 1 if( pStream ) @@ -193,12 +168,6 @@ void SaxEmitter::endTag( const char* pTag ) } catch( xml::sax::SAXException& ) { -#if 0 - OSL_ENSURE( false, - rtl::OUStringToOString( - comphelper::anyToString( cppu::getCaughtException() ), - RTL_TEXTENCODING_UTF8 ).getStr() ); -#endif } #if OSL_DEBUG_LEVEL > 1 if( pStream ) @@ -206,7 +175,7 @@ void SaxEmitter::endTag( const char* pTag ) sal_uInt64 nWritten = 0; for( int i = 0; i < nIndent; i++ ) pStream->write( " ", 4, nWritten ); - + rtl::OStringBuffer aBuf( 1024 ); aBuf.append( " #include -#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; diff --git a/sdext/source/pdfimport/test/pdf2xml.cxx b/sdext/source/pdfimport/test/pdf2xml.cxx index f85b18a..3912c44 100644 --- a/sdext/source/pdfimport/test/pdf2xml.cxx +++ b/sdext/source/pdfimport/test/pdf2xml.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,7 +37,7 @@ #include "pdfihelper.hxx" #include "wrapper.hxx" #include "pdfparse.hxx" -#include "../pdfiadaptor.hxx" +#include "../pdfiadaptor.hxx" #include #include @@ -56,7 +56,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) return 1; ::rtl::OUString aBaseURL, aTmpURL, aSrcURL, aDstURL, aIniUrl; - + TreeVisitorFactorySharedPtr pTreeFactory; if( rtl_str_compare(argv[1], "-writer") == 0 ) pTreeFactory = createWriterTreeVisitorFactory(); @@ -66,7 +66,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) pTreeFactory = createImpressTreeVisitorFactory(); else return 1; - + osl_getProcessWorkingDir(&aBaseURL.pData); osl_getFileURLFromSystemPath( rtl::OUString::createFromAscii(argv[2]).pData, &aTmpURL.pData ); @@ -76,7 +76,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) &aTmpURL.pData ); osl_getAbsoluteFileURL(aBaseURL.pData,aTmpURL.pData,&aDstURL.pData); - osl_getFileURLFromSystemPath( rtl::OUString::createFromAscii(argv[4]).pData, + osl_getFileURLFromSystemPath( rtl::OUString::createFromAscii(argv[4]).pData, &aTmpURL.pData ); osl_getAbsoluteFileURL(aBaseURL.pData,aTmpURL.pData,&aIniUrl.pData); @@ -86,7 +86,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) try { xCtx = ::cppu::defaultBootstrap_InitialComponentContext(aIniUrl); - xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(), + xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(), uno::UNO_QUERY ); if( xFactory.is() ) ::comphelper::setProcessServiceFactory( xFactory ); diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx index 12d384e..b66e181 100755 --- a/sdext/source/pdfimport/test/tests.cxx +++ b/sdext/source/pdfimport/test/tests.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -62,7 +62,7 @@ #include #include #include -#include +#include #include #include @@ -123,7 +123,7 @@ namespace CPPUNIT_ASSERT_MESSAGE( "Imported text is \"This is a testtext New paragraph, new line" " Hyperlink, this is * This is more text outline mode * New paragraph\"", sText == aTmp ); - + CPPUNIT_ASSERT_MESSAGE( "red circle seen in input", m_bRedCircleSeen ); CPPUNIT_ASSERT_MESSAGE( "green stroke seen in input", m_bGreenStrokeSeen ); CPPUNIT_ASSERT_MESSAGE( "dashed line seen in input", m_bDashedLineSeen ); @@ -147,7 +147,7 @@ namespace { m_bPageEnded = true; } - + virtual void hyperLink( const geometry::RealRectangle2D& rBounds, const ::rtl::OUString& rURI ) { @@ -167,7 +167,7 @@ namespace virtual void setTransformation( const geometry::AffineMatrix2D& rMatrix ) { - basegfx::unotools::homMatrixFromAffineMatrix( + basegfx::unotools::homMatrixFromAffineMatrix( getCurrentContext().Transformation, rMatrix ); } @@ -266,7 +266,7 @@ namespace rContext.DashArray[0] == rContext.DashArray[1] && rContext.DashArray[1] == rContext.DashArray[2] && rContext.DashArray[2] == rContext.DashArray[3] ); - + CPPUNIT_ASSERT_MESSAGE( "Line color is black", rContext.LineColor.Alpha == 1.0 && rContext.LineColor.Red == 0.0 && @@ -340,15 +340,15 @@ namespace m_bRedCircleSeen = true; } - + virtual void intersectClip(const uno::Reference& rPath) { basegfx::B2DPolyPolygon aNewClip = basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(rPath); basegfx::B2DPolyPolygon aCurClip = getCurrentContext().Clip; - + if( aCurClip.count() ) // #i92985# adapted API from (..., false, false) to (..., true, false) aNewClip = basegfx::tools::clipPolyPolygonOnPolyPolygon( aCurClip, aNewClip, true, false ); - + getCurrentContext().Clip = aNewClip; } @@ -356,13 +356,13 @@ namespace { basegfx::B2DPolyPolygon aNewClip = basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(rPath); basegfx::B2DPolyPolygon aCurClip = getCurrentContext().Clip; - + if( aCurClip.count() ) // #i92985# adapted API from (..., false, false) to (..., true, false) aNewClip = basegfx::tools::clipPolyPolygonOnPolyPolygon( aCurClip, aNewClip, true, false ); - + getCurrentContext().Clip = aNewClip; } - + virtual void drawGlyphs( const rtl::OUString& rGlyphs, const geometry::RealRectangle2D& /*rRect*/, const geometry::Matrix2D& /*rFontMatrix*/ ) @@ -388,9 +388,9 @@ namespace virtual void drawImage(const uno::Sequence& xBitmap ) { - CPPUNIT_ASSERT_MESSAGE( "drawImage received two properties", + CPPUNIT_ASSERT_MESSAGE( "drawImage received two properties", xBitmap.getLength()==3 ); - CPPUNIT_ASSERT_MESSAGE( "drawImage got URL param", + CPPUNIT_ASSERT_MESSAGE( "drawImage got URL param", xBitmap[0].Name.compareToAscii( "URL" ) == 0 ); CPPUNIT_ASSERT_MESSAGE( "drawImage got InputStream param", xBitmap[1].Name.compareToAscii( "InputStream" ) == 0 ); @@ -399,7 +399,7 @@ namespace virtual void drawColorMaskedImage(const uno::Sequence& xBitmap, const uno::Sequence& /*xMaskColors*/ ) { - CPPUNIT_ASSERT_MESSAGE( "drawColorMaskedImage received two properties", + CPPUNIT_ASSERT_MESSAGE( "drawColorMaskedImage received two properties", xBitmap.getLength()==3 ); CPPUNIT_ASSERT_MESSAGE( "drawColorMaskedImage got URL param", xBitmap[0].Name.compareToAscii( "URL" ) == 0 ); @@ -411,7 +411,7 @@ namespace const uno::Sequence& xMask, bool /*bInvertMask*/) { - CPPUNIT_ASSERT_MESSAGE( "drawMaskedImage received two properties #1", + CPPUNIT_ASSERT_MESSAGE( "drawMaskedImage received two properties #1", xBitmap.getLength()==3 ); CPPUNIT_ASSERT_MESSAGE( "drawMaskedImage got URL param #1", xBitmap[0].Name.compareToAscii( "URL" ) == 0 ); @@ -447,10 +447,10 @@ namespace virtual void setTextRenderMode( sal_Int32 ) { } - + typedef std::hash_map IdToFontMap; typedef std::hash_map FontToIdMap; - + typedef std::hash_map IdToGCMap; typedef std::hash_map GCToIdMap; @@ -459,7 +459,7 @@ namespace sal_Int32 m_nNextFontId; IdToFontMap m_aIdToFont; FontToIdMap m_aFontToId; - + GraphicsContextStack m_aGCStack; geometry::RealSize2D m_aPageSize; geometry::RealRectangle2D m_aHyperlinkBounds; @@ -479,9 +479,9 @@ namespace bool mbUnoInitialized; public: - PDFITest() : mxCtx(),msBaseDir(),mbUnoInitialized(false) + PDFITest() : mxCtx(),msBaseDir(),mbUnoInitialized(false) {} - + void setUp() { if( !mbUnoInitialized ) @@ -495,10 +495,10 @@ namespace try { ::rtl::OUString aIniUrl; - CPPUNIT_ASSERT_MESSAGE( + CPPUNIT_ASSERT_MESSAGE( "Converting ini file to URL", - osl_getFileURLFromSystemPath( - (msBaseDir+rtl::OUString::createFromAscii("pdfi_unittest_test.ini")).pData, + osl_getFileURLFromSystemPath( + (msBaseDir+rtl::OUString::createFromAscii("pdfi_unittest_test.ini")).pData, &aIniUrl.pData ) == osl_File_E_None ); mxCtx = ::cppu::defaultBootstrap_InitialComponentContext(aIniUrl); @@ -520,7 +520,7 @@ namespace { pdfi::ContentSinkSharedPtr pSink( new TestSink() ); pdfi::xpdf_ImportFromFile( msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_test.pdf"), - pSink, + pSink, uno::Reference< task::XInteractionHandler >(), rtl::OUString(), mxCtx ); @@ -536,11 +536,11 @@ namespace aAdaptor.setTreeVisitorFactory( createDrawTreeVisitorFactory() ); ::rtl::OUString aURL, aAbsURL, aBaseURL; - osl_getFileURLFromSystemPath( (msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_draw.xml")).pData, + osl_getFileURLFromSystemPath( (msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_draw.xml")).pData, &aURL.pData ); osl_getProcessWorkingDir(&aBaseURL.pData); osl_getAbsoluteFileURL(aBaseURL.pData,aURL.pData,&aAbsURL.pData); - CPPUNIT_ASSERT_MESSAGE("Exporting to ODF", + CPPUNIT_ASSERT_MESSAGE("Exporting to ODF", aAdaptor.odfConvert( msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_test.pdf"), new OutputWrap(aAbsURL), NULL )); @@ -552,11 +552,11 @@ namespace aAdaptor.setTreeVisitorFactory( createWriterTreeVisitorFactory() ); ::rtl::OUString aURL, aAbsURL, aBaseURL; - osl_getFileURLFromSystemPath( (msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_writer.xml")).pData, + osl_getFileURLFromSystemPath( (msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_writer.xml")).pData, &aURL.pData ); osl_getProcessWorkingDir(&aBaseURL.pData); osl_getAbsoluteFileURL(aBaseURL.pData,aURL.pData,&aAbsURL.pData); - CPPUNIT_ASSERT_MESSAGE("Exporting to ODF", + CPPUNIT_ASSERT_MESSAGE("Exporting to ODF", aAdaptor.odfConvert( msBaseDir + rtl::OUString::createFromAscii("pdfi_unittest_test.pdf"), new OutputWrap(aAbsURL), NULL )); @@ -568,7 +568,7 @@ namespace CPPUNIT_TEST(testOdfDrawExport); CPPUNIT_TEST_SUITE_END(); }; - + } // ======================================================================= diff --git a/sdext/source/pdfimport/tree/imagecontainer.cxx b/sdext/source/pdfimport/tree/imagecontainer.cxx index 9b9cc92..2543383 100644 --- a/sdext/source/pdfimport/tree/imagecontainer.cxx +++ b/sdext/source/pdfimport/tree/imagecontainer.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,7 +53,7 @@ using namespace com::sun::star; namespace pdfi { -namespace +namespace { static const sal_Char aBase64EncodeTable[] = @@ -76,16 +76,16 @@ rtl::OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBuffe ((sal_uInt8)i_pBuffer[i + 2]); aBuf.appendAscii("===="); - + sal_uInt8 nIndex (static_cast((nBinary & 0xFC0000) >> 18)); aBuf.setCharAt(nBufPos, aBase64EncodeTable [nIndex]); - + nIndex = static_cast((nBinary & 0x3F000) >> 12); aBuf.setCharAt(nBufPos+1, aBase64EncodeTable [nIndex]); - + nIndex = static_cast((nBinary & 0xFC0) >> 6); aBuf.setCharAt(nBufPos+2, aBase64EncodeTable [nIndex]); - + nIndex = static_cast((nBinary & 0x3F)); aBuf.setCharAt(nBufPos+3, aBase64EncodeTable [nIndex]); } @@ -104,21 +104,21 @@ rtl::OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBuffe } sal_uInt8 nIndex (static_cast((nBinary & 0xFC0000) >> 18)); aBuf.setCharAt(nBufPos, aBase64EncodeTable [nIndex]); - + nIndex = static_cast((nBinary & 0x3F000) >> 12); aBuf.setCharAt(nBufPos+1, aBase64EncodeTable [nIndex]); - + if( nRemain == 2 ) { nIndex = static_cast((nBinary & 0xFC0) >> 6); aBuf.setCharAt(nBufPos+2, aBase64EncodeTable [nIndex]); } } - + return aBuf.makeStringAndClear(); } -} // namespace +} // namespace ImageContainer::ImageContainer() : m_aImages() diff --git a/sdext/source/presenter/PresenterComponent.hxx b/sdext/source/presenter/PresenterComponent.hxx index 453f3ac..87758b2 100644 --- a/sdext/source/presenter/PresenterComponent.hxx +++ b/sdext/source/presenter/PresenterComponent.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,7 +32,7 @@ #ifndef SDEXT_PRESENTER_COMPONENT_HXX #define SDEXT_PRESENTER_COMPONENT_HXX -#include +#include namespace css = ::com::sun::star; -- cgit v1.2.3 From f1021d31bddd84befa4b513f51649e07381d8d1a Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 11 Sep 2009 09:03:06 +0200 Subject: #i103496#: get rid of filter dependency in swext by moving wiki filter into extension --- swext/mediawiki/build.xml | 78 +- swext/mediawiki/src/filter/mediawiki.ott | Bin 0 -> 6304 bytes swext/mediawiki/src/filter/odt2mediawiki.xsl | 1567 ++++++++++++++++++++++++++ 3 files changed, 1607 insertions(+), 38 deletions(-) create mode 100644 swext/mediawiki/src/filter/mediawiki.ott create mode 100755 swext/mediawiki/src/filter/odt2mediawiki.xsl diff --git a/swext/mediawiki/build.xml b/swext/mediawiki/build.xml index a43874b..85cee30 100644 --- a/swext/mediawiki/build.xml +++ b/swext/mediawiki/build.xml @@ -2,44 +2,44 @@ - - + + - + @@ -50,41 +50,41 @@ - - + + - + - - + + - + - + - + - + - + + source="${sourcelevel}" verbose="${verbose}"> - + @@ -96,19 +96,19 @@ - + - + - + - + @@ -147,8 +147,8 @@ - - + + @@ -156,7 +156,7 @@ - + @@ -170,6 +170,8 @@ --> + + @@ -190,8 +192,8 @@ - - + + @@ -199,11 +201,11 @@ - + - - + + This target can only run inside the NetBeans IDE. @@ -222,7 +224,7 @@ - + @@ -232,6 +234,6 @@ - + diff --git a/swext/mediawiki/src/filter/mediawiki.ott b/swext/mediawiki/src/filter/mediawiki.ott new file mode 100644 index 0000000..eb94e96 Binary files /dev/null and b/swext/mediawiki/src/filter/mediawiki.ott differ diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl new file mode 100755 index 0000000..8d21a1c --- /dev/null +++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -0,0 +1,1567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3 From 4d12fe2f0344450b117b8bfd4972c64622232229 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Mon, 14 Sep 2009 19:06:55 +0200 Subject: #i103496#: split cppunit in a pure external lib and a lib depending on sal -> testshl2 --- sdext/source/pdfimport/test/makefile.mk | 7 +++++-- sdext/source/pdfimport/test/tests.cxx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sdext/source/pdfimport/test/makefile.mk b/sdext/source/pdfimport/test/makefile.mk index 2fb8d3a..eea0051 100755 --- a/sdext/source/pdfimport/test/makefile.mk +++ b/sdext/source/pdfimport/test/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -70,6 +70,7 @@ SHL1STDLIBS=\ $(COMPHELPERLIB) \ $(CPPUHELPERLIB) \ $(CPPUNITLIB) \ + $(TESTSHL2LIB) \ $(ZLIB3RDLIB) \ $(CPPULIB) \ $(SALLIB) @@ -103,6 +104,7 @@ APP1STDLIBS=\ $(COMPHELPERLIB) \ $(CPPUHELPERLIB) \ $(CPPUNITLIB) \ + $(TESTSHL2LIB) \ $(ZLIB3RDLIB) \ $(CPPULIB) \ $(SALLIB) @@ -131,6 +133,7 @@ APP2STDLIBS=\ $(COMPHELPERLIB) \ $(CPPUHELPERLIB) \ $(CPPUNITLIB) \ + $(TESTSHL2LIB) \ $(ZLIB3RDLIB) \ $(CPPULIB) \ $(SALLIB) @@ -161,5 +164,5 @@ APP2STDLIBS=\ @echo ---------------------------------------------------------- testshl2 -forward $(BIN)$/ $(SHL1TARGETN) $(TOUCH) $@ - + #ALLTAR : $(MISC)$/pdfi_unittest_succeeded diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx index b66e181..075116e 100755 --- a/sdext/source/pdfimport/test/tests.cxx +++ b/sdext/source/pdfimport/test/tests.cxx @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include -- cgit v1.2.3 From 302db11b932551d5edf2a4a8f483a0e965207497 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Tue, 15 Sep 2009 16:19:42 +0200 Subject: obvious c/p error fixed --- apache-commons/prj/build.lst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache-commons/prj/build.lst b/apache-commons/prj/build.lst index 80940d4..c509ce0 100644 --- a/apache-commons/prj/build.lst +++ b/apache-commons/prj/build.lst @@ -1,4 +1,4 @@ -ac apache-commons : solenv TOMCAT:tomcat officecfg filter NULL +ac apache-commons : solenv TOMCAT:tomcat NULL ac apache-commons usr1 - all ac_mkout NULL ac apache-commons\java\codec nmake - all ac_codec NULL ac apache-commons\java\lang nmake - all ac_lang NULL -- cgit v1.2.3 -- cgit v1.2.3 -- cgit v1.2.3 From f57dacf1e39eed57cd303c1558a58af38d21aeec Mon Sep 17 00:00:00 2001 From: mb93783 Date: Wed, 4 Nov 2009 15:39:48 +0100 Subject: #i106432#, #i103496#: some fixes found while building on more platforms --- swext/prj/build.lst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swext/prj/build.lst b/swext/prj/build.lst index 64084c2..eb1aaca 100644 --- a/swext/prj/build.lst +++ b/swext/prj/build.lst @@ -1,4 +1,4 @@ -swext swext : l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml NULL +swext swext : officecfg l10n javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml NULL swext swext usr1 - all swext_mkout NULL swext swext\mediawiki\help nmake - all swext_mwhelp NULL swext swext\mediawiki\src\registry\schema\org\openoffice\Office\Custom nmake - all swext_mwschema NULL -- cgit v1.2.3