diff options
author | brinzing <oliver.brinzing@gmx.de> | 2019-05-10 20:12:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-19 20:35:50 +0200 |
commit | 0f55127195a897ca7b13c25ded2208476dba3a08 (patch) | |
tree | 835f026f897b0665e17c7b8cd27e483fbbc27239 /toolkit | |
parent | c12922a584ee7a150252de938087b82fd584b9d5 (diff) |
tdf#125207 [API CHANGE] extend css.awt.PrinterServer: XPrinterServer2
Change-Id: Ic2df8ac676ae786d9c0ea2ab3619f9f9de087ca7
Reviewed-on: https://gerrit.libreoffice.org/72135
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxprinter.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index 6d78cdce558c..2897d3bafdb0 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -328,7 +328,7 @@ css::uno::Reference< css::awt::XDevice > VCLXInfoPrinter::createDevice( ) // class VCLXPrinterServer // ---------------------------------------------------- -// css::awt::XPrinterServer +// css::awt::XPrinterServer2 css::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( ) { const std::vector<OUString>& rQueues = Printer::GetPrinterQueues(); @@ -341,6 +341,11 @@ css::uno::Sequence< OUString > VCLXPrinterServer::getPrinterNames( ) return aNames; } +OUString VCLXPrinterServer::getDefaultPrinterName() +{ + return Printer::GetDefaultPrinterName(); +} + css::uno::Reference< css::awt::XPrinter > VCLXPrinterServer::createPrinter( const OUString& rPrinterName ) { css::uno::Reference< css::awt::XPrinter > xP = new VCLXPrinter( rPrinterName ); |