let rmprint.cxx decide bewtween client and print server

This commit is contained in:
Philipp Lohmann
2000-09-22 11:49:24 +00:00
parent 41a136b111
commit 124fdba8e9

View File

@@ -2,9 +2,9 @@
* *
* $RCSfile: print.cxx,v $ * $RCSfile: print.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:05:38 $ * last change: $Author: pl $ $Date: 2000-09-22 12:49:24 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
@@ -1674,10 +1674,7 @@ BOOL Printer::StartJob( const XubString& rJobName )
Reference< ::com::sun::star::connection::XConnection > xConnection; Reference< ::com::sun::star::connection::XConnection > xConnection;
Reference< ::com::sun::star::bridge::XBridgeFactory > xBridgeFactory; Reference< ::com::sun::star::bridge::XBridgeFactory > xBridgeFactory;
if( ! aServerName.EqualsAscii( RVP_CLIENT_SERVER_NAME ) ) pSVData->mpRemotePrinterList->CreateNewPrinterConnection( maPrinterName.GetToken( 1, '@' ), xServerFactory, xConnection, xBridgeFactory );
pSVData->mpRemotePrinterList->CreateNewPrinterConnection( maPrinterName.GetToken( 1, '@' ), xServerFactory, xConnection, xBridgeFactory );
else
xServerFactory = pSVData->mxClientFactory;
if( xServerFactory.is() ) if( xServerFactory.is() )
{ {
REF( NMSP_CLIENT::XRmSpoolLauncher ) xLauncher( xServerFactory->createInstance( ::rtl::OUString::createFromAscii( "OfficeSpoolLauncher.stardiv.de" ) ), NMSP_UNO::UNO_QUERY ); REF( NMSP_CLIENT::XRmSpoolLauncher ) xLauncher( xServerFactory->createInstance( ::rtl::OUString::createFromAscii( "OfficeSpoolLauncher.stardiv.de" ) ), NMSP_UNO::UNO_QUERY );