Lines 33-43
Link Here
|
33 |
#include <com/sun/star/awt/XPrinter.hpp> |
33 |
#include <com/sun/star/awt/XPrinter.hpp> |
34 |
#include <com/sun/star/awt/XPrinterServer.hpp> |
34 |
#include <com/sun/star/awt/XPrinterServer.hpp> |
35 |
#include <com/sun/star/awt/XInfoPrinter.hpp> |
35 |
#include <com/sun/star/awt/XInfoPrinter.hpp> |
|
|
36 |
#include <com/sun/star/lang/XServiceInfo.hpp> |
36 |
#include <com/sun/star/lang/XTypeProvider.hpp> |
37 |
#include <com/sun/star/lang/XTypeProvider.hpp> |
|
|
38 |
#include <cppuhelper/implbase2.hxx> |
37 |
#include <cppuhelper/weak.hxx> |
39 |
#include <cppuhelper/weak.hxx> |
38 |
#include <osl/mutex.hxx> |
40 |
#include <osl/mutex.hxx> |
39 |
|
41 |
|
|
|
42 |
#include <toolkit/helper/macros.hxx> |
40 |
#include <toolkit/helper/mutexandbroadcasthelper.hxx> |
43 |
#include <toolkit/helper/mutexandbroadcasthelper.hxx> |
|
|
44 |
#include <toolkit/helper/servicenames.hxx> |
41 |
#include <cppuhelper/propshlp.hxx> |
45 |
#include <cppuhelper/propshlp.hxx> |
42 |
|
46 |
|
43 |
#include "vcl/oldprintadaptor.hxx" |
47 |
#include "vcl/oldprintadaptor.hxx" |
Lines 198-221
Link Here
|
198 |
// class VCLXPrinterServer |
202 |
// class VCLXPrinterServer |
199 |
// ---------------------------------------------------- |
203 |
// ---------------------------------------------------- |
200 |
|
204 |
|
201 |
class VCLXPrinterServer : public ::com::sun::star::awt::XPrinterServer, |
205 |
typedef ::cppu::WeakImplHelper2< com::sun::star::awt::XPrinterServer, |
202 |
public ::cppu::OWeakObject |
206 |
com::sun::star::lang::XServiceInfo > VCLXPrinterServer_Base; |
|
|
207 |
class VCLXPrinterServer : public VCLXPrinterServer_Base |
203 |
{ |
208 |
{ |
204 |
public: |
209 |
public: |
205 |
|
|
|
206 |
// ::com::sun::star::uno::XInterface |
207 |
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); |
208 |
void SAL_CALL acquire() throw() { OWeakObject::acquire(); } |
209 |
void SAL_CALL release() throw() { OWeakObject::release(); } |
210 |
|
211 |
// ::com::sun::star::lang::XTypeProvider |
212 |
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); |
213 |
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); |
214 |
|
215 |
// ::com::sun::star::awt::XPrinterServer |
210 |
// ::com::sun::star::awt::XPrinterServer |
216 |
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getPrinterNames( ) throw(::com::sun::star::uno::RuntimeException); |
211 |
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getPrinterNames( ) throw(::com::sun::star::uno::RuntimeException); |
217 |
::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter > SAL_CALL createPrinter( const ::rtl::OUString& printerName ) throw(::com::sun::star::uno::RuntimeException); |
212 |
::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinter > SAL_CALL createPrinter( const ::rtl::OUString& printerName ) throw(::com::sun::star::uno::RuntimeException); |
218 |
::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter > SAL_CALL createInfoPrinter( const ::rtl::OUString& printerName ) throw(::com::sun::star::uno::RuntimeException); |
213 |
::com::sun::star::uno::Reference< ::com::sun::star::awt::XInfoPrinter > SAL_CALL createInfoPrinter( const ::rtl::OUString& printerName ) throw(::com::sun::star::uno::RuntimeException); |
|
|
214 |
|
215 |
DECLIMPL_SERVICEINFO( VCLXPrinterServer, szServiceName2_PrinterServer ); |
219 |
}; |
216 |
}; |
220 |
|
217 |
|
221 |
|
218 |
|