summaryrefslogtreecommitdiff
path: root/shell/source/win32/workbench/TestProxySet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32/workbench/TestProxySet.cxx')
-rw-r--r--shell/source/win32/workbench/TestProxySet.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/shell/source/win32/workbench/TestProxySet.cxx b/shell/source/win32/workbench/TestProxySet.cxx
index 3e69f78fd86d..021be135f59c 100644
--- a/shell/source/win32/workbench/TestProxySet.cxx
+++ b/shell/source/win32/workbench/TestProxySet.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
//-----------------------------------------------------------
-// interface includes
+// interface includes
//-----------------------------------------------------------
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/registry/XSimpleRegistry.hpp>
@@ -51,23 +51,23 @@
#include <windows.h>
#if defined _MSC_VER
#pragma warning(pop)
-#endif
+#endif
#endif
//--------------------------------------------------------------
-// namesapces
+// namesapces
//--------------------------------------------------------------
-using namespace ::rtl ;
-using namespace ::cppu ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::lang ;
-using namespace std ;
+using namespace ::rtl ;
+using namespace ::cppu ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::lang ;
+using namespace std ;
using namespace com::sun::star::system;
//--------------------------------------------------------------
-// defines
+// defines
//--------------------------------------------------------------
#ifdef WNT
@@ -77,23 +77,23 @@ using namespace com::sun::star::system;
#endif
//--------------------------------------------------------------
-// global variables
+// global variables
//--------------------------------------------------------------
-Reference< XMultiServiceFactory > g_xFactory;
+Reference< XMultiServiceFactory > g_xFactory;
//--------------------------------------------------------------
-// main
+// main
//--------------------------------------------------------------
-// int SAL_CALL main(int nArgc, char* Argv[], char* Env[] )
-int SAL_CALL main(int, char*, char* )
+// int SAL_CALL main(int nArgc, char* Argv[], char* Env[] )
+int SAL_CALL main(int, char*, char* )
{
//-------------------------------------------------
// get the global service-manager
//-------------------------------------------------
-
+
// Get global factory for uno services.
OUString rdbName = OUString( RTL_CONSTASCII_USTRINGPARAM( RDB_SYSPATH ) );
Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( rdbName ) );
@@ -115,13 +115,13 @@ int SAL_CALL main(int, char*, char* )
{
Reference< XProxySettings > xProxySettings(
g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SystemProxySettings" ) ), UNO_QUERY );
-
+
if ( !xProxySettings.is() )
{
OSL_ENSURE( sal_False, "Error creating SystemProxySettings Service" );
return(-1);
- }
-
+ }
+
printf( "Creating instance of SystemProxySettings successful\n" );
OUString ftpProxy = xProxySettings->getFtpProxyAddress( );
@@ -170,7 +170,7 @@ int SAL_CALL main(int, char*, char* )
{
printf("Test ProxyEnabled true\n");
}
-
+
printf( "Test of SOProxySettings successful\n" );
}
catch( Exception& )