summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrinzing <oliver.brinzing@gmx.de>2019-05-10 20:12:35 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-18 18:00:53 +0100
commitf0d8a212127f8aea21369f0ee01d5806baa0dcee (patch)
tree7e4a6984a2f321535f40a6796dd4a5aa1bcc521d /include
parentd49602781e920c008ee3a38df5bd6c14552e0a24 (diff)
tdf#125207 Extend css.awt.PrinterServer: XPrinterServer2
This change doesn't have the API incompatibility which the master change has (change in PrinterServer service). Change-Id: Ic2df8ac676ae786d9c0ea2ab3619f9f9de087ca7 Reviewed-on: https://gerrit.libreoffice.org/72135 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 0f55127195a897ca7b13c25ded2208476dba3a08) Reviewed-on: https://gerrit.libreoffice.org/85035 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r--include/toolkit/awt/vclxprinter.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/toolkit/awt/vclxprinter.hxx b/include/toolkit/awt/vclxprinter.hxx
index 5478e9daf75e..85c8b1b32cf8 100644
--- a/include/toolkit/awt/vclxprinter.hxx
+++ b/include/toolkit/awt/vclxprinter.hxx
@@ -23,7 +23,7 @@
#include <com/sun/star/awt/XPrinterPropertySet.hpp>
#include <com/sun/star/awt/XPrinter.hpp>
-#include <com/sun/star/awt/XPrinterServer.hpp>
+#include <com/sun/star/awt/XPrinterServer2.hpp>
#include <com/sun/star/awt/XInfoPrinter.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
@@ -174,14 +174,15 @@ public:
// class VCLXPrinterServer
-typedef ::cppu::WeakImplHelper < css::awt::XPrinterServer,
+typedef ::cppu::WeakImplHelper < css::awt::XPrinterServer2,
css::lang::XServiceInfo
> VCLXPrinterServer_Base;
class VCLXPrinterServer : public VCLXPrinterServer_Base
{
public:
- // css::awt::XPrinterServer
+ // css::awt::XPrinterServer2
css::uno::Sequence< OUString > SAL_CALL getPrinterNames( ) override;
+ OUString SAL_CALL getDefaultPrinterName() override;
css::uno::Reference< css::awt::XPrinter > SAL_CALL createPrinter( const OUString& printerName ) override;
css::uno::Reference< css::awt::XInfoPrinter > SAL_CALL createInfoPrinter( const OUString& printerName ) override;