Kaydet (Commit) 34a1250e authored tarafından Andrew Rist's avatar Andrew Rist Kaydeden (comit) Caolán McNamara

Related: #i117765# css.awt.PrinterServer implementation unusable in Basic

from  cws/fs35a by Frank Schoenheit [fs]

(cherry picked from commit e9bfcd09)

Conflicts:
	toolkit/inc/toolkit/awt/vclxprinter.hxx
	toolkit/source/awt/vclxprinter.cxx

Change-Id: I96b08d00c7e483891d3c24c90fa52764949add0b

Fix line endings

(cherry picked from commit f4f2c318)

Conflicts:
	toolkit/inc/toolkit/awt/vclxprinter.hxx
	toolkit/source/awt/vclxprinter.cxx

Change-Id: I88acd74eec39410844030d3cba489e1fe62a91b3
üst 813e8bc2
...@@ -64,25 +64,8 @@ ...@@ -64,25 +64,8 @@
// class VCLXPrinterPropertySet // class VCLXPrinterPropertySet
// ---------------------------------------------------- // ----------------------------------------------------
// ::com::sun::star::uno::XInterface IMPLEMENT_FORWARD_XINTERFACE2( VCLXPrinterPropertySet, VCLXPrinterPropertySet_Base, OPropertySetHelper )
::com::sun::star::uno::Any VCLXPrinterPropertySet::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXPrinterPropertySet, VCLXPrinterPropertySet_Base, ::cppu::OPropertySetHelper )
{
::com::sun::star::uno::Any aRet = ::cppu::queryInterface( rType,
(static_cast< ::com::sun::star::beans::XMultiPropertySet* >(this)),
(static_cast< ::com::sun::star::beans::XFastPropertySet* >(this)),
(static_cast< ::com::sun::star::beans::XPropertySet* >((::cppu::OPropertySetHelper*) this) ),
(static_cast< ::com::sun::star::awt::XPrinterPropertySet* >(this)),
(static_cast< ::com::sun::star::lang::XTypeProvider* >(this)) );
return (aRet.hasValue() ? aRet : OPropertySetHelper::queryInterface( rType ));
}
// ::com::sun::star::lang::XTypeProvider
IMPL_XTYPEPROVIDER_START( VCLXPrinterPropertySet )
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet>* ) NULL ),
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet>* ) NULL ),
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>* ) NULL ),
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinterPropertySet>* ) NULL )
IMPL_XTYPEPROVIDER_END
VCLXPrinterPropertySet::VCLXPrinterPropertySet( const OUString& rPrinterName ) VCLXPrinterPropertySet::VCLXPrinterPropertySet( const OUString& rPrinterName )
: OPropertySetHelper( BrdcstHelper ) : OPropertySetHelper( BrdcstHelper )
...@@ -283,7 +266,7 @@ void VCLXPrinterPropertySet::setBinarySetup( const ::com::sun::star::uno::Sequen ...@@ -283,7 +266,7 @@ void VCLXPrinterPropertySet::setBinarySetup( const ::com::sun::star::uno::Sequen
// class VCLXPrinter // class VCLXPrinter
// ---------------------------------------------------- // ----------------------------------------------------
VCLXPrinter::VCLXPrinter( const OUString& rPrinterName ) VCLXPrinter::VCLXPrinter( const OUString& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName ) : VCLXPrinter_Base( rPrinterName )
{ {
} }
...@@ -291,24 +274,6 @@ VCLXPrinter::~VCLXPrinter() ...@@ -291,24 +274,6 @@ VCLXPrinter::~VCLXPrinter()
{ {
} }
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXPrinter::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aRet = ::cppu::queryInterface( rType,
(static_cast< ::com::sun::star::awt::XPrinter* >(this)) );
if ( !aRet.hasValue() )
aRet = VCLXPrinterPropertySet::queryInterface( rType );
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
}
// ::com::sun::star::lang::XTypeProvider
IMPL_XTYPEPROVIDER_START( VCLXPrinter )
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter>* ) NULL ),
VCLXPrinterPropertySet::getTypes()
IMPL_XTYPEPROVIDER_END
sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ ) throw(::com::sun::star::awt::PrinterException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) sal_Bool VCLXPrinter::start( const OUString& /*rJobName*/, sal_Int16 /*nCopies*/, sal_Bool /*bCollate*/ ) throw(::com::sun::star::awt::PrinterException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{ {
::osl::MutexGuard aGuard( Mutex ); ::osl::MutexGuard aGuard( Mutex );
...@@ -368,7 +333,7 @@ void VCLXPrinter::endPage( ) throw(::com::sun::star::awt::PrinterException, ::c ...@@ -368,7 +333,7 @@ void VCLXPrinter::endPage( ) throw(::com::sun::star::awt::PrinterException, ::c
// ---------------------------------------------------- // ----------------------------------------------------
VCLXInfoPrinter::VCLXInfoPrinter( const OUString& rPrinterName ) VCLXInfoPrinter::VCLXInfoPrinter( const OUString& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName ) : VCLXInfoPrinter_Base( rPrinterName )
{ {
} }
...@@ -376,24 +341,6 @@ VCLXInfoPrinter::~VCLXInfoPrinter() ...@@ -376,24 +341,6 @@ VCLXInfoPrinter::~VCLXInfoPrinter()
{ {
} }
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXInfoPrinter::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Any aRet = ::cppu::queryInterface( rType,
(static_cast< ::com::sun::star::awt::XInfoPrinter* >(this)) );
if ( !aRet.hasValue() )
aRet = VCLXPrinterPropertySet::queryInterface( rType );
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
}
// ::com::sun::star::lang::XTypeProvider
IMPL_XTYPEPROVIDER_START( VCLXInfoPrinter )
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter>* ) NULL ),
VCLXPrinterPropertySet::getTypes()
IMPL_XTYPEPROVIDER_END
// ::com::sun::star::awt::XInfoPrinter // ::com::sun::star::awt::XInfoPrinter
::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > VCLXInfoPrinter::createDevice( ) throw(::com::sun::star::uno::RuntimeException) ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > VCLXInfoPrinter::createDevice( ) throw(::com::sun::star::uno::RuntimeException)
{ {
...@@ -434,5 +381,4 @@ IMPL_XTYPEPROVIDER_END ...@@ -434,5 +381,4 @@ IMPL_XTYPEPROVIDER_END
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment