summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorDaniel Sikeler <d.sikeler94@gmail.com>2014-09-02 09:12:44 +0000
committerMichael Stahl <mstahl@redhat.com>2014-09-10 11:48:43 +0000
commitdb9cfa672c5944f22ca82a28ed150a5fbae6f5b5 (patch)
treecd5ad9a28206694e39390a16b92ad88ceaf98eaf /filter
parent50df87ceddc5f4dbebe9552c07e6c899dc17717c (diff)
fdo#55380 replaced use of obsolete interfaces
Change-Id: I94fed6a9361f21457b3e631efffc0db833068aef Reviewed-on: https://gerrit.libreoffice.org/11256 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.cxx12
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.hxx6
2 files changed, 9 insertions, 9 deletions
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
index 4358071b34cb..de7761009e52 100644
--- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
@@ -68,13 +68,13 @@ using namespace com::sun::star::xml;
using namespace com::sun::star::xml::sax;
-class GlobalEventListenerImpl : public ::cppu::WeakImplHelper1< com::sun::star::document::XEventListener >
+class GlobalEventListenerImpl : public ::cppu::WeakImplHelper1< com::sun::star::document::XDocumentEventListener >
{
public:
GlobalEventListenerImpl( XMLFilterTestDialog* pDialog );
- // XEventListener
- virtual void SAL_CALL notifyEvent( const com::sun::star::document::EventObject& Event ) throw (RuntimeException, std::exception) SAL_OVERRIDE;
+ // XDocumentEventListener
+ virtual void SAL_CALL documentEventOccured( const com::sun::star::document::DocumentEvent& Event ) throw (RuntimeException, std::exception) SAL_OVERRIDE;
// lang::XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw (RuntimeException, std::exception) SAL_OVERRIDE;
@@ -87,7 +87,7 @@ GlobalEventListenerImpl::GlobalEventListenerImpl( XMLFilterTestDialog* pDialog )
{
}
-void SAL_CALL GlobalEventListenerImpl::notifyEvent( const com::sun::star::document::EventObject& Event ) throw (RuntimeException, std::exception)
+void SAL_CALL GlobalEventListenerImpl::documentEventOccured( const com::sun::star::document::DocumentEvent& Event ) throw (RuntimeException, std::exception)
{
::SolarMutexGuard aGuard;
if( Event.EventName == "OnFocus" || Event.EventName == "OnUnload" )
@@ -168,7 +168,7 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent,
{
mxGlobalBroadcaster = theGlobalEventBroadcaster::get(mxContext);
mxGlobalEventListener = new GlobalEventListenerImpl( this );
- mxGlobalBroadcaster->addEventListener( mxGlobalEventListener );
+ mxGlobalBroadcaster->addDocumentEventListener( mxGlobalEventListener );
}
catch( const Exception& )
{
@@ -181,7 +181,7 @@ XMLFilterTestDialog::~XMLFilterTestDialog()
try
{
if( mxGlobalBroadcaster.is() )
- mxGlobalBroadcaster->removeEventListener( mxGlobalEventListener );
+ mxGlobalBroadcaster->removeDocumentEventListener( mxGlobalEventListener );
}
catch( const Exception& )
{
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.hxx b/filter/source/xsltdialog/xmlfiltertestdialog.hxx
index 5b5613a0cc8a..6bdb429c81ca 100644
--- a/filter/source/xsltdialog/xmlfiltertestdialog.hxx
+++ b/filter/source/xsltdialog/xmlfiltertestdialog.hxx
@@ -21,7 +21,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XComponent.hpp>
-#include <com/sun/star/document/XEventBroadcaster.hpp>
+#include <com/sun/star/document/XDocumentEventBroadcaster.hpp>
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
@@ -58,8 +58,8 @@ private:
private:
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext;
- com::sun::star::uno::Reference< com::sun::star::document::XEventBroadcaster > mxGlobalBroadcaster;
- com::sun::star::uno::Reference< com::sun::star::document::XEventListener > mxGlobalEventListener;
+ com::sun::star::uno::Reference< com::sun::star::document::XDocumentEventBroadcaster > mxGlobalBroadcaster;
+ com::sun::star::uno::Reference< com::sun::star::document::XDocumentEventListener > mxGlobalEventListener;
com::sun::star::uno::WeakReference< com::sun::star::lang::XComponent > mxLastFocusModel;
OUString m_sImportRecentFile;