diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-26 01:06:25 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-26 01:06:38 +1100 |
commit | 3c3d84bd37dbc350a95dbbb5f39c4687f934ccfb (patch) | |
tree | e37cae595317587422bb44252b60c3b33e8e5a96 /vcl/source/gdi | |
parent | 24b1c0a14ef4e7e4c7424a1819f4089f7723b1b2 (diff) |
vcl: cleanup vcl/source/gdi/print.cxx
Change-Id: Id30e109a8292f92e5b384c1262dea0c09d255058
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/print.cxx | 62 |
1 files changed, 24 insertions, 38 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index 9ce0c72e3dba..2a589bfe4a36 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -17,47 +17,33 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <list> +#include <sal/types.h> -#include <tools/debug.hxx> #include <tools/resary.hxx> -#include <tools/stream.hxx> -#include <tools/vcompat.hxx> #include <tools/helpers.hxx> -#include <vcl/unohelp.hxx> -#include <vcl/svapp.hxx> -#include <vcl/wrkwin.hxx> #include <vcl/virdev.hxx> -#include <vcl/window.hxx> -#include <vcl/gdimtf.hxx> -#include <vcl/metaact.hxx> #include <vcl/print.hxx> -#include <salinst.hxx> -#include <salvd.hxx> -#include <salgdi.hxx> -#include <salptype.hxx> -#include <salprn.hxx> -#include <svdata.hxx> -#include <svids.hrc> -#include <jobset.h> -#include <outdev.h> -#include "PhysicalFontCollection.hxx" -#include <print.h> - #include <comphelper/processfactory.hxx> +#include "salinst.hxx" +#include "salvd.hxx" +#include "salgdi.hxx" +#include "salptype.hxx" +#include "salprn.hxx" +#include "svdata.hxx" +#include "svids.hrc" +#include "jobset.h" +#include "outdev.h" +#include "PhysicalFontCollection.hxx" +#include "print.h" + #include "com/sun/star/beans/XPropertySet.hpp" #include "com/sun/star/configuration/theDefaultProvider.hpp" #include "com/sun/star/container/XNameAccess.hpp" #include "com/sun/star/lang/XMultiServiceFactory.hpp" - -using namespace com::sun::star::uno; -using namespace com::sun::star::lang; -using namespace com::sun::star::beans; -using namespace com::sun::star::container; -using namespace com::sun::star::configuration; +#include "com/sun/star/uno/Sequence.h" int nImplSysDialog = 0; @@ -138,19 +124,19 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) PrinterOptions aOldValues( *this ); // get the configuration service - Reference< XMultiServiceFactory > xConfigProvider; - Reference< XNameAccess > xConfigAccess; + css::uno::Reference< css::lang::XMultiServiceFactory > xConfigProvider; + css::uno::Reference< css::container::XNameAccess > xConfigAccess; try { // get service provider - Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); + css::uno::Reference< css::uno::XComponentContext > xContext( comphelper::getProcessComponentContext() ); // create configuration hierarchical access name try { - xConfigProvider = theDefaultProvider::get( xContext ); + xConfigProvider = css::configuration::theDefaultProvider::get( xContext ); - Sequence< Any > aArgs(1); - PropertyValue aVal; + css::uno::Sequence< css::uno::Any > aArgs(1); + css::beans::PropertyValue aVal; aVal.Name = "nodepath"; if( i_bFile ) aVal.Value <<= OUString( "/org.openoffice.Office.Common/Print/Option/File" ); @@ -160,10 +146,10 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) xConfigAccess.set( xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgs ), - UNO_QUERY ); + css::uno::UNO_QUERY ); if( xConfigAccess.is() ) { - Reference< XPropertySet > xSet( xConfigAccess, UNO_QUERY ); + css::uno::Reference< css::beans::XPropertySet > xSet( xConfigAccess, css::uno::UNO_QUERY ); if( xSet.is() ) { sal_Int32 nValue = 0; @@ -195,11 +181,11 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) } } } - catch( const Exception& ) + catch( const css::uno::Exception& ) { } } - catch( const WrappedTargetException& ) + catch( const css::lang::WrappedTargetException& ) { } |