diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-09 15:32:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-01-28 08:22:53 +0200 |
commit | 49cf14a3ca8dceed39baead918b1ddaaab5f4ab3 (patch) | |
tree | ee1ea9363933db10c96e373b091ac7952ae9dfc0 /chart2 | |
parent | 4b37df18a18b61521e5fcbf358c6bc85639abdfc (diff) |
fdo#46808, Adapt document::GraphicObjectResolver UNO service to new style
The services already existed, it just did not have an IDL file
Change-Id: I245f78c165dbfde11a981efd7033c5c282f4e8ad
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 603ea175bf6b..41cff8a6053f 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -50,7 +50,7 @@ #include <com/sun/star/xml/sax/Parser.hpp> #include <com/sun/star/xml/sax/SAXParseException.hpp> #include <com/sun/star/packages/zip/ZipIOException.hpp> -#include <com/sun/star/document/XGraphicObjectResolver.hpp> +#include <com/sun/star/document/GraphicObjectResolver.hpp> #include <com/sun/star/container/XNameAccess.hpp> using namespace ::com::sun::star; @@ -619,11 +619,8 @@ sal_Int32 XMLFilter::impl_Export( } } - uno::Sequence< uno::Any > aGraphicResolverArgs(1); - aGraphicResolverArgs[0] <<= xStorage; - Reference< document::XGraphicObjectResolver > xGraphicObjectResolver( - xServiceFactory->createInstanceWithArguments( - C2U("com.sun.star.comp.Svx.GraphicExportHelper"), aGraphicResolverArgs ), uno::UNO_QUERY ); + Reference< document::XGraphicObjectResolver > xGraphicObjectResolver = document::GraphicObjectResolver::createWithStorage( + m_xContext, xStorage ); // property map for export info set comphelper::PropertyMapEntry aExportInfoMap[] = |