diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:20:18 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 16:20:18 +0000 |
commit | 613776f859f2da6b155c004f5c6bb46b6901c182 (patch) | |
tree | 02bf4e9f56a52f01b7e914f5fa8ada84a2563078 /chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx | |
parent | a342022b95571a07ee4d19330e267a98fd22f97d (diff) |
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED
2006/02/17 20:57:45 iha 1.1.2.4: enlarge validity of api wrapper objects to lifetime of new chartmodel
2005/10/11 09:19:56 bm 1.1.2.3: license header change
2005/04/19 17:28:40 iha 1.1.2.2: improved old api support (introduced wrappedpropertyset ...)
2004/06/04 07:52:20 bm 1.1.2.1: handling named properties like FillGradientName (coming from XML)
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx b/chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx new file mode 100644 index 000000000000..bcede100b734 --- /dev/null +++ b/chart2/source/controller/chartapiwrapper/WallFloorWrapper.hxx @@ -0,0 +1,111 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: WallFloorWrapper.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-05-22 17:20:18 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef CHART_WALLFLOORWRAPPER_HXX +#define CHART_WALLFLOORWRAPPER_HXX + +#include "WrappedPropertySet.hxx" +#include "ServiceMacros.hxx" + +#ifndef _CPPUHELPER_IMPLBASE2_HXX_ +#include <cppuhelper/implbase2.hxx> +#endif +#ifndef _COMPHELPER_UNO3_HXX_ +#include <comphelper/uno3.hxx> +#endif +#ifndef _CPPUHELPER_INTERFACECONTAINER_HXX_ +#include <cppuhelper/interfacecontainer.hxx> +#endif + +#ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_ +#include <com/sun/star/lang/XComponent.hpp> +#endif +#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_ +#include <com/sun/star/lang/XServiceInfo.hpp> +#endif +#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_ +#include <com/sun/star/uno/XComponentContext.hpp> +#endif + +#include <boost/shared_ptr.hpp> + +namespace chart +{ + +namespace wrapper +{ + +class Chart2ModelContact; + +class WallFloorWrapper : public ::cppu::ImplInheritanceHelper2< + WrappedPropertySet + , com::sun::star::lang::XComponent + , com::sun::star::lang::XServiceInfo + > +{ +public: + WallFloorWrapper( bool bWall, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + virtual ~WallFloorWrapper(); + + /// XServiceInfo declarations + APPHELPER_XSERVICEINFO_DECL() + + // ____ XComponent ____ + virtual void SAL_CALL dispose() + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< + ::com::sun::star::lang::XEventListener >& xListener ) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< + ::com::sun::star::lang::XEventListener >& aListener ) + throw (::com::sun::star::uno::RuntimeException); + +protected: + // ____ WrappedPropertySet ____ + virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& getPropertySequence(); + virtual const std::vector< WrappedProperty* > createWrappedProperties(); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getInnerPropertySet(); + +private: + ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact; + ::cppu::OInterfaceContainerHelper m_aEventListenerContainer; + + bool m_bWall; +}; + +} // namespace wrapper +} // namespace chart + +// CHART_WALLFLOORWRAPPER_HXX +#endif |