Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
2 : #define INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/chart/ChartDataChangeEvent.hdl"
7 :
8 : #include "com/sun/star/chart/ChartDataChangeType.hpp"
9 : #include "com/sun/star/lang/EventObject.hpp"
10 : #include "com/sun/star/uno/Type.hxx"
11 : #include "cppu/unotype.hxx"
12 : #include "sal/types.h"
13 : #include "typelib/typeclass.h"
14 : #include "typelib/typedescription.h"
15 :
16 : namespace com { namespace sun { namespace star { namespace chart {
17 :
18 2 : inline ChartDataChangeEvent::ChartDataChangeEvent() SAL_THROW(())
19 : : css::lang::EventObject()
20 : , Type(css::chart::ChartDataChangeType_ALL)
21 : , StartColumn(0)
22 : , EndColumn(0)
23 : , StartRow(0)
24 2 : , EndRow(0)
25 : {
26 2 : }
27 :
28 10 : inline ChartDataChangeEvent::ChartDataChangeEvent(const ::com::sun::star::uno::Reference< css::uno::XInterface >& Source_, const css::chart::ChartDataChangeType& Type_, const ::sal_Int16& StartColumn_, const ::sal_Int16& EndColumn_, const ::sal_Int16& StartRow_, const ::sal_Int16& EndRow_) SAL_THROW(())
29 : : css::lang::EventObject(Source_)
30 : , Type(Type_)
31 : , StartColumn(StartColumn_)
32 : , EndColumn(EndColumn_)
33 : , StartRow(StartRow_)
34 10 : , EndRow(EndRow_)
35 : {
36 10 : }
37 :
38 : } } } }
39 :
40 : namespace com { namespace sun { namespace star { namespace chart {
41 :
42 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::chart::ChartDataChangeEvent const *) {
43 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
44 : static ::typelib_TypeDescriptionReference * the_type = 0;
45 : if (the_type == 0) {
46 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.chart.ChartDataChangeEvent");
47 : }
48 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
49 : }
50 :
51 : } } } }
52 :
53 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::chart::ChartDataChangeEvent const *) SAL_THROW(()) {
54 : return ::cppu::UnoType< css::chart::ChartDataChangeEvent >::get();
55 : }
56 :
57 : #endif // INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
|