summaryrefslogtreecommitdiff
path: root/vcl/aqua
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-12-19 14:44:10 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-22 13:24:47 +0100
commitb80d9acb3e0c3caf7d760b9ee3f5cfaf07bb32cd (patch)
tree481534da9555f1f6b7a60089c3ca9fda02ce9c5c /vcl/aqua
parentee1eb926550028da6e5e44089d4706798f94e0bb (diff)
use officecfg/Office/Common.hxx directly
Diffstat (limited to 'vcl/aqua')
-rw-r--r--vcl/aqua/source/gdi/salprn.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/aqua/source/gdi/salprn.cxx b/vcl/aqua/source/gdi/salprn.cxx
index 69e02c226581..0b659f8c33f8 100644
--- a/vcl/aqua/source/gdi/salprn.cxx
+++ b/vcl/aqua/source/gdi/salprn.cxx
@@ -29,6 +29,10 @@
#include <boost/bind.hpp>
+#include "comphelper/processfactory.hxx"
+
+#include "officecfg/Office/Common.hxx"
+
#include "vcl/print.hxx"
#include <sal/macros.h>
@@ -321,7 +325,7 @@ sal_uLong AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, sal_uInt16 i
case PRINTER_CAPABILITIES_SETPAPER:
return 1;
case PRINTER_CAPABILITIES_EXTERNALDIALOG:
- return useSystemPrintDialog() ? 1 : 0;
+ return officecfg::Office::Common::Misc::UseSystemPrintDialog::get(comphelper::getProcessComponentContext()) ? 1 : 0;
case PRINTER_CAPABILITIES_PDF:
return 1;
case PRINTER_CAPABILITIES_USEPULLMODEL:
@@ -516,7 +520,7 @@ sal_Bool AquaSalInfoPrinter::StartJob( const rtl::OUString* i_pFileName,
if( pPrintOperation )
{
NSObject* pReleaseAfterUse = nil;
- bool bShowPanel = (! i_rController.isDirectPrint() && useSystemPrintDialog() && i_rController.isShowDialogs() );
+ bool bShowPanel = (! i_rController.isDirectPrint() && officecfg::Office::Common::Misc::UseSystemPrintDialog::get(comphelper::getProcessComponentContext()) && i_rController.isShowDialogs() );
[pPrintOperation setShowsPrintPanel: bShowPanel ? YES : NO ];
[pPrintOperation setShowsProgressPanel: bShowProgressPanel ? YES : NO];