diff options
Diffstat (limited to 'extensions/test/sax')
-rw-r--r-- | extensions/test/sax/factory.hxx | 2 | ||||
-rw-r--r-- | extensions/test/sax/makefile.mk | 3 | ||||
-rw-r--r-- | extensions/test/sax/testsax.cxx | 15 | ||||
-rw-r--r-- | extensions/test/sax/testwriter.cxx | 36 |
4 files changed, 17 insertions, 39 deletions
diff --git a/extensions/test/sax/factory.hxx b/extensions/test/sax/factory.hxx index dc51457404c8..267e7b6649ee 100644 --- a/extensions/test/sax/factory.hxx +++ b/extensions/test/sax/factory.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -29,3 +30,4 @@ UString OSaxWriterTest_getServiceName( ) THROWS( () ); UString OSaxWriterTest_getImplementationName( ) THROWS( () ); Sequence<UString> OSaxWriterTest_getSupportedServiceNames( ) THROWS( () ); +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/test/sax/makefile.mk b/extensions/test/sax/makefile.mk index 4e72ec987893..62e2706dd1e7 100644 --- a/extensions/test/sax/makefile.mk +++ b/extensions/test/sax/makefile.mk @@ -46,9 +46,8 @@ LIB1OBJFILES= $(OBJFILES) SHL1TARGET= $(TARGET)$(DLLPOSTFIX) SHL1STDLIBS= \ - $(VOSLIB) \ $(SALLIB) \ - $(TOOLSLIB) + $(TOOLSLIB) SHL1LIBS= $(LIB1TARGET) SHL1IMPLIB= i$(TARGET) diff --git a/extensions/test/sax/testsax.cxx b/extensions/test/sax/testsax.cxx index e7f52fbb0902..67ea67a31038 100644 --- a/extensions/test/sax/testsax.cxx +++ b/extensions/test/sax/testsax.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -34,11 +35,9 @@ #include <rtl/wstring.hxx> #include <osl/time.h> -//#include <vos/dynload.hxx> -//#include <vos/diagnose.hxx> #include <usr/weak.hxx> #include <tools/string.hxx> -#include <vos/conditn.hxx> +#include <osl/conditn.hxx> #include <smart/com/sun/star/io/XOutputStream.hxx> #include <smart/com/sun/star/xml/sax/SAXParseException.hxx> @@ -52,11 +51,8 @@ #include "factory.hxx" -using namespace rtl; -using namespace vos; using namespace usr; - #define BUILD_ERROR(expr, Message)\ {\ m_seqErrors.realloc( m_seqErrors.getLen() + 1 ); \ @@ -111,13 +107,9 @@ using namespace usr; /**** * test szenarios : -* -* -* ****/ - class OSaxParserTest : public XSimpleTest, public OWeakObject @@ -167,8 +159,6 @@ private: /** * for external binding -* -* **/ XInterfaceRef OSaxParserTest_CreateInstance( const XMultiServiceFactoryRef & rSMgr ) THROWS((Exception)) { @@ -909,3 +899,4 @@ UNO_INTERFACE(XInterface) EXTERN_SERVICE_CALLTYPE exService_getFactory } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/extensions/test/sax/testwriter.cxx b/extensions/test/sax/testwriter.cxx index de606006ef90..1f778092e2eb 100644 --- a/extensions/test/sax/testwriter.cxx +++ b/extensions/test/sax/testwriter.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -28,9 +29,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_extensions.hxx" -//#include <tools/presys.h> #include <vector> -//#include <tools/postsys.h> #include <smart/com/sun/star/test/XSimpleTest.hxx> #include <smart/com/sun/star/lang/XMultiServiceFactory.hxx> // for the multiservice-factories @@ -52,8 +51,6 @@ #include <usr/reflserv.hxx> // for EXTERN_SERVICE_CALLTYPE using namespace std; -using namespace rtl; -using namespace vos; using namespace usr; #define BUILD_ERROR(expr, Message)\ @@ -110,9 +107,6 @@ using namespace usr; /**** * test szenarios : -* -* -* ****/ @@ -335,8 +329,10 @@ UString AttributeListImpl::getTypeByName( const UString& sName ) THROWS( (UsrSys { vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin(); - for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) { - if( (*ii).sName == sName ) { + for (; ii != m_pImpl->vecAttribute.end(); ++ii) + { + if( (*ii).sName == sName ) + { return (*ii).sType; } } @@ -347,8 +343,10 @@ UString AttributeListImpl::getValueByName(const UString& sName) THROWS( (UsrSyst { vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin(); - for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) { - if( (*ii).sName == sName ) { + for (; ii != m_pImpl->vecAttribute.end(); ++ii) + { + if( (*ii).sName == sName ) + { return (*ii).sValue; } } @@ -396,20 +394,8 @@ void AttributeListImpl::clear() OSL_ASSERT( ! getLength() ); } - - - - - - - - - - /** * for external binding -* -* **/ XInterfaceRef OSaxWriterTest_CreateInstance( const XMultiServiceFactoryRef & rSMgr ) THROWS((Exception)) { @@ -749,8 +735,6 @@ void OSaxWriterTest::testPerformance(const XExtendedDocumentHandlerRef &r ) r->ignorableWhitespace( L""); r->startElement( L"huhu" , rList ); r->characters( testParagraph ); -// writeParagraph( r , testParagraph ); - r->ignorableWhitespace( L""); r->endElement( L"huhu" ); } @@ -770,3 +754,5 @@ void OSaxWriterTest::testPerformance(const XExtendedDocumentHandlerRef &r ) printf( "Performance writing : %g s\n" , fEnd - fStart ); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |