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: GridWrapper.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 CHART_GRIDWRAPPER_HXX
31 #define CHART_GRIDWRAPPER_HXX
33 #include "WrappedPropertySet.hxx"
34 #include "ServiceMacros.hxx"
35 #include <cppuhelper/implbase2.hxx>
36 #include <comphelper/uno3.hxx>
37 #include <cppuhelper/interfacecontainer.hxx>
38 #include <com/sun/star/drawing/XShape.hpp>
39 #include <com/sun/star/lang/XComponent.hpp>
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #include <com/sun/star/chart2/XDiagram.hpp>
42 #include <com/sun/star/uno/XComponentContext.hpp>
44 #include <boost/shared_ptr.hpp>
52 class Chart2ModelContact
;
54 class GridWrapper
: public ::cppu::ImplInheritanceHelper2
<
56 , com::sun::star::lang::XComponent
57 , com::sun::star::lang::XServiceInfo
71 GridWrapper( tGridType eType
, ::boost::shared_ptr
< Chart2ModelContact
> spChart2ModelContact
);
72 virtual ~GridWrapper();
74 static void getDimensionAndSubGridBool( tGridType eType
, sal_Int32
& rnDimensionIndex
, bool& rbSubGrid
);
76 /// XServiceInfo declarations
77 APPHELPER_XSERVICEINFO_DECL()
79 // ____ XComponent ____
80 virtual void SAL_CALL
dispose()
81 throw (::com::sun::star::uno::RuntimeException
);
82 virtual void SAL_CALL
addEventListener( const ::com::sun::star::uno::Reference
<
83 ::com::sun::star::lang::XEventListener
>& xListener
)
84 throw (::com::sun::star::uno::RuntimeException
);
85 virtual void SAL_CALL
removeEventListener( const ::com::sun::star::uno::Reference
<
86 ::com::sun::star::lang::XEventListener
>& aListener
)
87 throw (::com::sun::star::uno::RuntimeException
);
90 // ____ WrappedPropertySet ____
91 virtual const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::Property
>& getPropertySequence();
92 virtual const std::vector
< WrappedProperty
* > createWrappedProperties();
93 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> getInnerPropertySet();
96 ::boost::shared_ptr
< Chart2ModelContact
> m_spChart2ModelContact
;
97 ::cppu::OInterfaceContainerHelper m_aEventListenerContainer
;
102 } // namespace wrapper
105 // CHART_GRIDWRAPPER_HXX