XUnoTunnel->dynamic_cast in Transformer
Change-Id: Ief186ab88bfe6f952e2e09351fdaa8e0e8a2b6be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145503 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -1950,18 +1950,6 @@ void OOo2OasisTransformer::Initialize(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const css::uno::Sequence<sal_Int8>& OOo2OasisTransformer::getUnoTunnelId() noexcept
|
|
||||||
{
|
|
||||||
static const comphelper::UnoIdInit theOOo2OasisTransformerUnoTunnelId;
|
|
||||||
return theOOo2OasisTransformerUnoTunnelId.getSeq();
|
|
||||||
}
|
|
||||||
|
|
||||||
// XUnoTunnel
|
|
||||||
sal_Int64 SAL_CALL OOo2OasisTransformer::getSomething( const Sequence< sal_Int8 >& rId )
|
|
||||||
{
|
|
||||||
return comphelper::getSomethingImpl(rId, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
OUString SAL_CALL OOo2OasisTransformer::getImplementationName()
|
OUString SAL_CALL OOo2OasisTransformer::getImplementationName()
|
||||||
{
|
{
|
||||||
|
@@ -77,10 +77,6 @@ public:
|
|||||||
// XTypeProvider
|
// XTypeProvider
|
||||||
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
|
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
|
||||||
|
|
||||||
// XUnoTunnel
|
|
||||||
static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept;
|
|
||||||
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
|
|
||||||
|
|
||||||
// XImporter
|
// XImporter
|
||||||
virtual void SAL_CALL setTargetDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
|
virtual void SAL_CALL setTargetDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
|
||||||
|
|
||||||
|
@@ -1943,18 +1943,6 @@ Oasis2OOoTransformer::~Oasis2OOoTransformer() noexcept
|
|||||||
XMLEventOASISTransformerContext::FlushEventMap( m_pFormEventMap );
|
XMLEventOASISTransformerContext::FlushEventMap( m_pFormEventMap );
|
||||||
}
|
}
|
||||||
|
|
||||||
const css::uno::Sequence<sal_Int8>& Oasis2OOoTransformer::getUnoTunnelId() noexcept
|
|
||||||
{
|
|
||||||
static const class comphelper::UnoIdInit theOasis2OOoTransformerUnoTunnelId;
|
|
||||||
return theOasis2OOoTransformerUnoTunnelId.getSeq();
|
|
||||||
}
|
|
||||||
|
|
||||||
// XUnoTunnel
|
|
||||||
sal_Int64 SAL_CALL Oasis2OOoTransformer::getSomething( const Sequence< sal_Int8 >& rId )
|
|
||||||
{
|
|
||||||
return comphelper::getSomethingImpl(rId, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
OUString SAL_CALL Oasis2OOoTransformer::getImplementationName()
|
OUString SAL_CALL Oasis2OOoTransformer::getImplementationName()
|
||||||
{
|
{
|
||||||
|
@@ -48,10 +48,6 @@ public:
|
|||||||
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
|
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
|
||||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||||
|
|
||||||
// XUnoTunnel
|
|
||||||
static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept;
|
|
||||||
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
|
|
||||||
|
|
||||||
virtual OUString GetEventName( const OUString& rName,
|
virtual OUString GetEventName( const OUString& rName,
|
||||||
bool bForm = false ) override;
|
bool bForm = false ) override;
|
||||||
};
|
};
|
||||||
|
@@ -20,7 +20,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
|
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
|
||||||
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
||||||
#include <com/sun/star/lang/XInitialization.hpp>
|
#include <com/sun/star/lang/XInitialization.hpp>
|
||||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||||
#include <cppuhelper/implbase.hxx>
|
#include <cppuhelper/implbase.hxx>
|
||||||
@@ -28,8 +27,7 @@
|
|||||||
class XMLTransformer : public ::cppu::WeakImplHelper<
|
class XMLTransformer : public ::cppu::WeakImplHelper<
|
||||||
css::xml::sax::XExtendedDocumentHandler,
|
css::xml::sax::XExtendedDocumentHandler,
|
||||||
css::lang::XServiceInfo,
|
css::lang::XServiceInfo,
|
||||||
css::lang::XInitialization,
|
css::lang::XInitialization>
|
||||||
css::lang::XUnoTunnel>
|
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user