1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ChartRangeSelectionListener.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_CHARTRANGESELECTIONLISTENER_HXX
31 #define SC_CHARTRANGESELECTIONLISTENER_HXX
33 #include <cppuhelper/compbase2.hxx>
34 #include <comphelper/broadcasthelper.hxx>
35 #include <com/sun/star/view/XSelectionChangeListener.hpp>
36 #include <com/sun/star/lang/XServiceInfo.hpp>
40 typedef ::cppu::WeakComponentImplHelper2
<
41 ::com::sun::star::view::XSelectionChangeListener
,
42 ::com::sun::star::lang::XServiceInfo
>
43 ScChartRangeSelectionListener_Base
;
45 class ScChartRangeSelectionListener
:
46 public comphelper::OBaseMutex
,
47 public ScChartRangeSelectionListener_Base
50 explicit ScChartRangeSelectionListener( ScTabViewShell
* pViewShell
);
51 virtual ~ScChartRangeSelectionListener();
54 // ____ XSelectionChangeListener ____
55 virtual void SAL_CALL
selectionChanged(
56 const ::com::sun::star::lang::EventObject
& aEvent
)
57 throw (::com::sun::star::uno::RuntimeException
);
59 // ____ XEventListener (base of XSelectionChangeListener) ____
60 virtual void SAL_CALL
disposing(
61 const ::com::sun::star::lang::EventObject
& Source
)
62 throw (::com::sun::star::uno::RuntimeException
);
64 // ____ WeakComponentImplHelperBase ____
65 // is called when dispose() is called at this component
66 virtual void SAL_CALL
disposing();
68 // ____ XServiceInfo ____
69 virtual ::rtl::OUString SAL_CALL
getImplementationName()
70 throw (::com::sun::star::uno::RuntimeException
);
71 virtual ::sal_Bool SAL_CALL
supportsService(
72 const ::rtl::OUString
& ServiceName
)
73 throw (::com::sun::star::uno::RuntimeException
);
74 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames()
75 throw (::com::sun::star::uno::RuntimeException
);
78 ScTabViewShell
* m_pViewShell
;
81 // SC_CHARTRANGESELECTIONLISTENER_HXX