summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxprinter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt/vclxprinter.cxx')
-rw-r--r--toolkit/source/awt/vclxprinter.cxx37
1 files changed, 17 insertions, 20 deletions
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx
index 9adc64e1196e..d0c65392b94b 100644
--- a/toolkit/source/awt/vclxprinter.cxx
+++ b/toolkit/source/awt/vclxprinter.cxx
@@ -96,7 +96,7 @@ css::uno::Reference< css::awt::XDevice > const & VCLXPrinterPropertySet::GetDev
return mxPrnDevice;
}
-css::uno::Reference< css::beans::XPropertySetInfo > VCLXPrinterPropertySet::getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::beans::XPropertySetInfo > VCLXPrinterPropertySet::getPropertySetInfo( )
{
static css::uno::Reference< css::beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
@@ -118,7 +118,7 @@ css::uno::Reference< css::beans::XPropertySetInfo > VCLXPrinterPropertySet::getP
return *pPropertyArrayHelper ;
}
-sal_Bool VCLXPrinterPropertySet::convertFastPropertyValue( css::uno::Any & rConvertedValue, css::uno::Any & rOldValue, sal_Int32 nHandle, const css::uno::Any& rValue ) throw (css::lang::IllegalArgumentException)
+sal_Bool VCLXPrinterPropertySet::convertFastPropertyValue( css::uno::Any & rConvertedValue, css::uno::Any & rOldValue, sal_Int32 nHandle, const css::uno::Any& rValue )
{
::osl::MutexGuard aGuard( Mutex );
@@ -155,7 +155,7 @@ sal_Bool VCLXPrinterPropertySet::convertFastPropertyValue( css::uno::Any & rConv
return bDifferent;
}
-void VCLXPrinterPropertySet::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue ) throw (css::uno::Exception, std::exception)
+void VCLXPrinterPropertySet::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue )
{
::osl::MutexGuard aGuard( Mutex );
@@ -198,7 +198,7 @@ void VCLXPrinterPropertySet::getFastPropertyValue( css::uno::Any& rValue, sal_In
}
// css::awt::XPrinterPropertySet
-void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal ) throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal )
{
::osl::MutexGuard aGuard( Mutex );
@@ -207,7 +207,7 @@ void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal ) throw(css::be
setFastPropertyValue( PROPERTY_Horizontal, aValue );
}
-css::uno::Sequence< OUString > VCLXPrinterPropertySet::getFormDescriptions( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Sequence< OUString > VCLXPrinterPropertySet::getFormDescriptions( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -227,7 +227,7 @@ css::uno::Sequence< OUString > VCLXPrinterPropertySet::getFormDescriptions( ) t
return aDescriptions;
}
-void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription )
{
::osl::MutexGuard aGuard( Mutex );
@@ -237,7 +237,7 @@ void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) thro
GetPrinter()->SetPaperBin( nPaperBin );
}
-css::uno::Sequence< sal_Int8 > VCLXPrinterPropertySet::getBinarySetup( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Sequence< sal_Int8 > VCLXPrinterPropertySet::getBinarySetup( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -247,7 +247,7 @@ css::uno::Sequence< sal_Int8 > VCLXPrinterPropertySet::getBinarySetup( ) throw(
return css::uno::Sequence<sal_Int8>( static_cast<sal_Int8 const *>(aMem.GetData()), aMem.Tell() );
}
-void VCLXPrinterPropertySet::setBinarySetup( const css::uno::Sequence< sal_Int8 >& data ) throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+void VCLXPrinterPropertySet::setBinarySetup( const css::uno::Sequence< sal_Int8 >& data )
{
::osl::MutexGuard aGuard( Mutex );
@@ -276,7 +276,7 @@ VCLXPrinter::~VCLXPrinter()
{
}
-sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ ) throw(css::awt::PrinterException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ )
{
::osl::MutexGuard aGuard( Mutex );
@@ -290,7 +290,7 @@ sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/
return bDone;
}
-void VCLXPrinter::end( ) throw(css::awt::PrinterException, css::uno::RuntimeException, std::exception)
+void VCLXPrinter::end( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -301,14 +301,14 @@ void VCLXPrinter::end( ) throw(css::awt::PrinterException, css::uno::RuntimeExc
}
}
-void VCLXPrinter::terminate( ) throw(css::uno::RuntimeException, std::exception)
+void VCLXPrinter::terminate( )
{
::osl::MutexGuard aGuard( Mutex );
mxListener.reset();
}
-css::uno::Reference< css::awt::XDevice > VCLXPrinter::startPage( ) throw(css::awt::PrinterException, css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::awt::XDevice > VCLXPrinter::startPage( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -319,7 +319,7 @@ css::uno::Reference< css::awt::XDevice > VCLXPrinter::startPage( ) throw(css::a
return GetDevice();
}
-void VCLXPrinter::endPage( ) throw(css::awt::PrinterException, css::uno::RuntimeException, std::exception)
+void VCLXPrinter::endPage( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -344,7 +344,7 @@ VCLXInfoPrinter::~VCLXInfoPrinter()
}
// css::awt::XInfoPrinter
-css::uno::Reference< css::awt::XDevice > VCLXInfoPrinter::createDevice( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::awt::XDevice > VCLXInfoPrinter::createDevice( )
{
::osl::MutexGuard aGuard( Mutex );
@@ -356,7 +356,7 @@ css::uno::Reference< css::awt::XDevice > VCLXInfoPrinter::createDevice( ) throw
// ----------------------------------------------------
// css::awt::XPrinterServer
-css::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( )
{
const std::vector<OUString>& rQueues = Printer::GetPrinterQueues();
sal_uInt32 nPrinters = rQueues.size();
@@ -368,14 +368,14 @@ css::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( ) throw(css:
return aNames;
}
-css::uno::Reference< css::awt::XPrinter > VCLXPrinterServer::createPrinter( const OUString& rPrinterName ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::awt::XPrinter > VCLXPrinterServer::createPrinter( const OUString& rPrinterName )
{
css::uno::Reference< css::awt::XPrinter > xP;
xP = new VCLXPrinter( rPrinterName );
return xP;
}
-css::uno::Reference< css::awt::XInfoPrinter > VCLXPrinterServer::createInfoPrinter( const OUString& rPrinterName ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::awt::XInfoPrinter > VCLXPrinterServer::createInfoPrinter( const OUString& rPrinterName )
{
css::uno::Reference< css::awt::XInfoPrinter > xP;
xP = new VCLXInfoPrinter( rPrinterName );
@@ -383,19 +383,16 @@ css::uno::Reference< css::awt::XInfoPrinter > VCLXPrinterServer::createInfoPrint
}
OUString VCLXPrinterServer::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("stardiv.Toolkit.VCLXPrinterServer");
}
sal_Bool VCLXPrinterServer::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> VCLXPrinterServer::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<OUString>{
"com.sun.star.awt.PrinterServer", "stardiv.vcl.PrinterServer"};