From 03a9f139bd9ea1a4f9096fc982e6b326def58532 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Sep 2012 13:15:15 +0200 Subject: ComponentContext::getUnoContext -> getComponentContext simplification ...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea --- xmloff/source/core/DocumentSettingsContext.cxx | 4 ++-- xmloff/source/core/SettingsExportHelper.cxx | 4 ++-- xmloff/source/core/xmluconv.cxx | 4 ++-- xmloff/source/draw/shapeexport4.cxx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx index 99e6ee4895d5..d470eb25a18d 100644 --- a/xmloff/source/core/DocumentSettingsContext.cxx +++ b/xmloff/source/core/DocumentSettingsContext.cxx @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include @@ -718,7 +718,7 @@ void XMLConfigItemContext::ManipulateConfigItem() { if( GetImport().getServiceFactory().is() ) try { - uno::Reference< uno::XComponentContext > xContext( comphelper::ComponentContext(GetImport().getServiceFactory()).getUNOContext() ); + uno::Reference< uno::XComponentContext > xContext( comphelper::getComponentContext(GetImport().getServiceFactory()) ); uno::Reference< util::XStringSubstitution > xStringSubsitution( util::PathSubstitution::create(xContext) ); rtl::OUString aURL; diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx index 79c21a2651be..7d61bdd932a7 100644 --- a/xmloff/source/core/SettingsExportHelper.cxx +++ b/xmloff/source/core/SettingsExportHelper.cxx @@ -34,8 +34,8 @@ #include #include #include -#include #include +#include #include #include @@ -547,7 +547,7 @@ void XMLSettingsExportHelper::ManipulateSetting( uno::Any& rAny, const rtl::OUSt { if( m_rContext.GetServiceFactory().is() ) try { - uno::Reference< uno::XComponentContext > xContext( comphelper::ComponentContext(m_rContext.GetServiceFactory()).getUNOContext() ); + uno::Reference< uno::XComponentContext > xContext( comphelper::getComponentContext(m_rContext.GetServiceFactory()) ); const_cast< XMLSettingsExportHelper* >(this)->mxStringSubsitution = util::PathSubstitution::create(xContext); } diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 197cdf369835..45e67fb41ad1 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -50,7 +50,7 @@ #include #include #include -#include +#include #include @@ -98,7 +98,7 @@ void SvXMLUnitConverter::Impl::createNumTypeInfo() const { if (m_xServiceFactory.is()) { - Reference xContext( comphelper::ComponentContext(m_xServiceFactory).getUNOContext() ); + Reference xContext( comphelper::getComponentContext(m_xServiceFactory) ); Reference xDefNum = DefaultNumberingProvider::create(xContext); const_cast(this)->m_xNumTypeInfo = Reference(xDefNum, uno::UNO_QUERY); diff --git a/xmloff/source/draw/shapeexport4.cxx b/xmloff/source/draw/shapeexport4.cxx index 28bfd296bf46..951f66a4d3d1 100644 --- a/xmloff/source/draw/shapeexport4.cxx +++ b/xmloff/source/draw/shapeexport4.cxx @@ -70,7 +70,7 @@ #include "xmloff/xmlnmspe.hxx" #include "XMLBase64Export.hxx" -#include +#include using ::rtl::OUString; using ::rtl::OUStringBuffer; @@ -1235,7 +1235,7 @@ void XMLShapeExport::ImpExportTableShape( const uno::Reference< drawing::XShape xPictureStream.set( xPictureStorage->openStreamElement( sPictureName, ::embed::ElementModes::READWRITE ), UNO_QUERY_THROW ); } - Reference< graphic::XGraphicProvider > xProvider( graphic::GraphicProvider::create(comphelper::ComponentContext(xSM).getUNOContext()) ); + Reference< graphic::XGraphicProvider > xProvider( graphic::GraphicProvider::create(comphelper::getComponentContext(xSM)) ); Sequence< beans::PropertyValue > aArgs( 2 ); aArgs[ 0 ].Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "MimeType" ) ); aArgs[ 0 ].Value <<= OUString( RTL_CONSTASCII_USTRINGPARAM( "image/x-vclgraphic" ) ); -- cgit