diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-12 16:14:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-12 16:14:36 +0100 |
commit | eed72e853d8800917ffd5cdc151e7103c49c9dac (patch) | |
tree | e990f92f3b5d03464d4a3d4d7ca2e2e52a191051 | |
parent | 4f2a06379dde3839a71a52e81c2ca09aaa9a41c9 (diff) |
no CPDParser under Android
Change-Id: I3cf6df721f89493a527a0b65b24354d3e6135c68
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 26315920ac2d..4efe108f5e9b 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -50,6 +50,9 @@ #include <cups/cups.h> #endif +#include <config_dbus.h> +#include <config_gio.h> + namespace psp { class PPDTranslator @@ -575,7 +578,9 @@ const PPDParser* PPDParser::getParser( const OUString& rFile ) #endif } else if ( rMgr.getType() == PrinterInfoManager::Type::CPD ) { +#if ENABLE_DBUS && ENABLE_GIO pNewParser = const_cast<PPDParser*>(static_cast<CPDManager&>(rMgr).createCPDParser( aFile )); +#endif } } if( pNewParser ) |