LibreOffice Module svx (master)
1
svx
source
form
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
26
using namespace
::
com::sun::star::container
;
27
using namespace
::
com::sun::star::frame
;
28
using namespace
::
com::sun::star::lang
;
29
using namespace
::
com::sun::star::uno
;
30
using namespace
::
com::sun::star::xml::dom::events
;
31
32
33
namespace
svxform
34
{
35
36
37
DataListener::DataListener
(
DataNavigatorWindow
* pNaviWin ) :
38
39
m_pNaviWin( pNaviWin )
40
41
{
42
DBG_ASSERT
(
m_pNaviWin
,
"DataListener::Ctor(): no navigator win"
);
43
}
44
45
DataListener::~DataListener
()
46
{
47
}
48
49
// XContainerListener
50
void
SAL_CALL
DataListener::elementInserted
(
const
ContainerEvent&
/*Event*/
)
51
{
52
m_pNaviWin
->
NotifyChanges
();
53
}
54
55
void
SAL_CALL
DataListener::elementRemoved
(
const
ContainerEvent&
/*Event*/
)
56
{
57
m_pNaviWin
->
NotifyChanges
();
58
}
59
60
void
SAL_CALL
DataListener::elementReplaced
(
const
ContainerEvent&
/*Event*/
)
61
{
62
m_pNaviWin
->
NotifyChanges
();
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
{
78
m_pNaviWin
->
NotifyChanges
();
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: */
svxform::DataListener::m_pNaviWin
DataNavigatorWindow * m_pNaviWin
Definition:
datalistener.hxx:42
svxform::DataListener::~DataListener
virtual ~DataListener() override
Definition:
datalistener.cxx:45
svxform::DataListener::elementReplaced
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
Definition:
datalistener.cxx:60
svxform::DataListener::frameAction
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &Action) override
Definition:
datalistener.cxx:66
svxform::DataListener::elementRemoved
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
Definition:
datalistener.cxx:55
svxform::DataListener::handleEvent
virtual void SAL_CALL handleEvent(const css::uno::Reference< css::xml::dom::events::XEvent > &evt) override
Definition:
datalistener.cxx:76
svxform::DataListener::DataListener
DataListener(DataNavigatorWindow *pNaviWin)
Definition:
datalistener.cxx:37
svxform::DataListener::elementInserted
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
Definition:
datalistener.cxx:50
svxform::DataListener::disposing
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
Definition:
datalistener.cxx:82
svxform::DataNavigatorWindow
Definition:
datanavi.hxx:257
svxform::DataNavigatorWindow::NotifyChanges
void NotifyChanges(bool _bLoadAll=false)
Definition:
datanavi.cxx:1967
datalistener.hxx
datanavi.hxx
DBG_ASSERT
#define DBG_ASSERT(sCon, aError)
log.hxx
SAL_WARN
#define SAL_WARN(area, stream)
com::sun::star::container
com::sun::star::frame
com::sun::star::lang
com::sun::star::uno
com::sun::star::xml::dom::events
svxform
class FmSearchEngine - Impl class for FmSearchDialog
Generated on Sun Jul 30 2023 04:28:01 for LibreOffice Module svx (master) by
1.9.3