diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-09-20 21:58:27 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-09-21 09:28:36 +0200 |
commit | ec3c4775a52bc2bb498f67c5937545fc40c65daa (patch) | |
tree | d3615dbae59d6c81fe1f5081301e58d584021e27 /oox/source | |
parent | 3d5595a3c39e074556ef1c11983051f4edfbcf1a (diff) |
oox: create QuickDiagrammingLayout instances with an uno constructor
This is effectively dead code as commit
547217ecf2348cf511b1f058ecbab6f15f2bceff (Document seemingly dead
QuickDiagrammingImport, QuickDiagrammingLayout, 2013-06-03) found, so
the primary motivation is to just get this out of
oox_component_getFactory().
Change-Id: Ibfee57202f0a3b02847b1298ce8895c8cf312322
Reviewed-on: https://gerrit.libreoffice.org/60840
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/core/services.cxx | 1 | ||||
-rw-r--r-- | oox/source/ppt/dgmlayout.cxx | 26 |
2 files changed, 8 insertions, 19 deletions
diff --git a/oox/source/core/services.cxx b/oox/source/core/services.cxx index 4f4f4b76528e..5c18b9544767 100644 --- a/oox/source/core/services.cxx +++ b/oox/source/core/services.cxx @@ -35,7 +35,6 @@ namespace { // Impress" would actually want to make use of them: static ::cppu::ImplementationEntry const spServices[] = { - IMPLEMENTATION_ENTRY( ::oox::ppt::QuickDiagrammingLayout ), IMPLEMENTATION_ENTRY( ::oox::shape::ShapeContextHandler ), { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } }; diff --git a/oox/source/ppt/dgmlayout.cxx b/oox/source/ppt/dgmlayout.cxx index c4ff54bcf492..6d941dee0f4d 100644 --- a/oox/source/ppt/dgmlayout.cxx +++ b/oox/source/ppt/dgmlayout.cxx @@ -43,23 +43,6 @@ using namespace ::oox::drawingml; namespace oox { namespace ppt { -OUString QuickDiagrammingLayout_getImplementationName() -{ - return OUString( "com.sun.star.comp.Impress.oox.QuickDiagrammingLayout" ); -} - -uno::Sequence< OUString > QuickDiagrammingLayout_getSupportedServiceNames() -{ - const OUString aServiceName = "com.sun.star.comp.ooxpptx.dgm.layout"; - const Sequence< OUString > aSeq( &aServiceName, 1 ); - return aSeq; -} - -uno::Reference< uno::XInterface > QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext ) -{ - return static_cast<cppu::OWeakObject*>(new QuickDiagrammingLayout( rxContext )); -} - QuickDiagrammingLayout::QuickDiagrammingLayout( const Reference< XComponentContext >& rxContext ) : XmlFilterBase( rxContext ), mpThemePtr(new drawingml::Theme()) @@ -159,7 +142,7 @@ const oox::drawingml::table::TableStyleListPtr QuickDiagrammingLayout::getTableS OUString QuickDiagrammingLayout::getImplementationName() { - return QuickDiagrammingLayout_getImplementationName(); + return OUString( "com.sun.star.comp.Impress.oox.QuickDiagrammingLayout" ); } ::oox::ole::VbaProject* QuickDiagrammingLayout::implCreateVbaProject() const @@ -169,4 +152,11 @@ OUString QuickDiagrammingLayout::getImplementationName() }} +extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* +com_sun_star_comp_oox_ppt_QuickDiagrammingLayout_get_implementation( + uno::XComponentContext* pCtx, uno::Sequence<uno::Any> const& /*rSeq*/) +{ + return cppu::acquire(new oox::ppt::QuickDiagrammingLayout(pCtx)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |