diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-02-28 17:22:08 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-02-28 17:22:08 +0000 |
commit | 0dc97fcedbd8b836f3db6beeec0a2d4514e11cac (patch) | |
tree | 6eac05be33f984734206994546345456cbd67ec0 /xmlscript/test/imexp.cxx | |
parent | 04ad018a97dd27fa6e10c13c6145823f5791123e (diff) |
further impl and bugfixing
Diffstat (limited to 'xmlscript/test/imexp.cxx')
-rw-r--r-- | xmlscript/test/imexp.cxx | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx index c83d1c75f756..9792d53a1578 100644 --- a/xmlscript/test/imexp.cxx +++ b/xmlscript/test/imexp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: imexp.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: dbo $ $Date: 2001-02-27 12:45:17 $ + * last change: $Author: dbo $ $Date: 2001-02-28 18:22:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -194,6 +194,18 @@ Reference< lang::XMultiServiceFactory > createApplicationServiceManager() xReg->registerImplementation( OUString::createFromAscii( "com.sun.star.loader.SharedLibrary" ), aDllName, Reference< registry::XSimpleRegistry > () ); +#ifdef SAL_W32 + aDllName = OUString::createFromAscii( "int" ); + aDllName += OUString::valueOf( (sal_Int32)SUPD ); + aDllName += OUString::createFromAscii( "mi.dll" ); +#else + aDllName = OUString::createFromAscii( "libint" ); + aDllName += OUString::valueOf( (sal_Int32)SUPD ); + aDllName += OUString::createFromAscii( ".so" ); +#endif + xReg->registerImplementation( + OUString::createFromAscii( "com.sun.star.loader.SharedLibrary" ), + aDllName, Reference< registry::XSimpleRegistry > () ); } @@ -283,15 +295,6 @@ void MyApp::Main() OString aParam1( OUStringToOString( OUString( GetCommandLineParam( 0 ) ), RTL_TEXTENCODING_ASCII_US ) ); Sequence< Reference< container::XNameContainer > > models( importFile( aParam1.getStr() ) ); - if (GetCommandLineParamCount() == 2) - { - // write and read again dialogs - OString aParam2( OUStringToOString( OUString( GetCommandLineParam( 1 ) ), RTL_TEXTENCODING_ASCII_US ) ); - exportToFile( aParam2.getStr(), models ); - // re-import - models = importFile( aParam2.getStr() ); - } - Reference< container::XNameContainer > const * pModels = models.getConstArray(); for ( sal_Int32 nPos = 0; nPos < models.getLength(); ++nPos ) { @@ -302,6 +305,13 @@ void MyApp::Main() Reference< awt::XDialog > xD( xDlg, UNO_QUERY ); xD->execute(); } + + if (GetCommandLineParamCount() == 2) + { + // write modified dialogs + OString aParam2( OUStringToOString( OUString( GetCommandLineParam( 1 ) ), RTL_TEXTENCODING_ASCII_US ) ); + exportToFile( aParam2.getStr(), models ); + } } catch (uno::Exception & rExc) { |