LibreOffice Module svx (master) 1
datalistener.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20
21#include <datalistener.hxx>
22#include <datanavi.hxx>
23
24#include <sal/log.hxx>
25
26using namespace ::com::sun::star::container;
27using namespace ::com::sun::star::frame;
28using namespace ::com::sun::star::lang;
29using namespace ::com::sun::star::uno;
30using namespace ::com::sun::star::xml::dom::events;
31
32
33namespace svxform
34{
35
36
38
39 m_pNaviWin( pNaviWin )
40
41 {
42 DBG_ASSERT( m_pNaviWin, "DataListener::Ctor(): no navigator win" );
43 }
44
46 {
47 }
48
49 // XContainerListener
50 void SAL_CALL DataListener::elementInserted( const ContainerEvent& /*Event*/ )
51 {
53 }
54
55 void SAL_CALL DataListener::elementRemoved( const ContainerEvent& /*Event*/ )
56 {
58 }
59
60 void SAL_CALL DataListener::elementReplaced( const ContainerEvent& /*Event*/ )
61 {
63 }
64
65 // XFrameActionListener
66 void SAL_CALL DataListener::frameAction( const FrameActionEvent& rActionEvt )
67 {
68 if ( FrameAction_COMPONENT_ATTACHED == rActionEvt.Action ||
69 FrameAction_COMPONENT_REATTACHED == rActionEvt.Action )
70 {
71 m_pNaviWin->NotifyChanges( FrameAction_COMPONENT_REATTACHED == rActionEvt.Action );
72 }
73 }
74
75 // xml::dom::events::XEventListener
76 void SAL_CALL DataListener::handleEvent( const Reference< XEvent >& /*evt*/ )
77 {
79 }
80
81 // lang::XEventListener
82 void SAL_CALL DataListener::disposing( const EventObject& /*Source*/ )
83 {
84 SAL_WARN( "svx.form", "disposing" );
85 }
86
87
88}
89
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DataNavigatorWindow * m_pNaviWin
virtual ~DataListener() override
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &Action) override
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent > &evt) override
DataListener(DataNavigatorWindow *pNaviWin)
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
void NotifyChanges(bool _bLoadAll=false)
Definition: datanavi.cxx:1967
#define DBG_ASSERT(sCon, aError)
#define SAL_WARN(area, stream)
class FmSearchEngine - Impl class for FmSearchDialog