diff options
Diffstat (limited to 'binfilter/bf_sch/source/ui/inc')
27 files changed, 2829 insertions, 0 deletions
diff --git a/binfilter/bf_sch/source/ui/inc/ChXChartData.hxx b/binfilter/bf_sch/source/ui/inc/ChXChartData.hxx new file mode 100644 index 000000000000..586ccb1c4d3b --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXChartData.hxx @@ -0,0 +1,167 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _CHART_DATA_HXX +#define _CHART_DATA_HXX + +#include <cppuhelper/implbase4.hxx> +// header for OInterfaceContainerHelper +#include <cppuhelper/interfacecontainer.hxx> + +#include <com/sun/star/chart/XChartDataArray.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> +#include <com/sun/star/lang/XComponent.hpp> +namespace binfilter { + +class ChartModel; + +// ---------------------------------------- +// ChXChartData +// ---------------------------------------- + +class ChXChartData : public cppu::WeakImplHelper4< + ::com::sun::star::chart::XChartData, + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::lang::XEventListener, + ::com::sun::star::lang::XUnoTunnel > +{ +private: + ::osl::Mutex maMutex; + cppu::OInterfaceContainerHelper maListeners; + +protected: + ChartModel* mpModel; + +public: + // the model is used for listening for the 'death' of the ChartModel + ChXChartData( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xModel, + ChartModel* pModel ); + virtual ~ChXChartData(); + + ::osl::Mutex& GetMutex() { return maMutex; } + + virtual void DataModified( ::com::sun::star::chart::ChartDataChangeEvent& ); + + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + static ChXChartData* getImplementation( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ) throw(); + + // XChartData + virtual void SAL_CALL addChartDataChangeEventListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeChartDataChangeEventListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual double SAL_CALL getNotANumber() throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL isNotANumber( double nNumber ) throw( ::com::sun::star::uno::RuntimeException ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XEventListener listens to disposing of XModel + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) + throw( ::com::sun::star::uno::RuntimeException ); +}; + + +// ---------------------------------------- +// ChXChartDataArray +// ---------------------------------------- + +class ChXChartDataArray : + public ChXChartData, + public ::com::sun::star::chart::XChartDataArray +{ +private: + static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence; + +public: + // the model is used for listening for the 'death' of the ChartModel + ChXChartDataArray( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xModel, + ChartModel* pModel ); + virtual ~ChXChartDataArray(); + + // XInterface + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL acquire() throw(); + virtual void SAL_CALL release() throw(); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XChartDataArray + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > SAL_CALL getData() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& aData ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getRowDescriptions() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setRowDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRowDescriptions ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getColumnDescriptions() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setColumnDescriptions( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aColumnDescriptions ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XChartData ( ::XChartDataArray ) + virtual void SAL_CALL addChartDataChangeEventListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeChartDataChangeEventListener( + const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual double SAL_CALL getNotANumber() throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL isNotANumber( double nNumber ) throw( ::com::sun::star::uno::RuntimeException ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); +}; + +} //namespace binfilter +#endif // _CHART_DATA_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXChartDataChangeEventListener.hxx b/binfilter/bf_sch/source/ui/inc/ChXChartDataChangeEventListener.hxx new file mode 100644 index 000000000000..a07d44ec1481 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXChartDataChangeEventListener.hxx @@ -0,0 +1,72 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _CHXCHARTDATACHANGEEVENTLISTENER_HXX +#define _CHXCHARTDATACHANGEEVENTLISTENER_HXX + +#include <cppuhelper/implbase1.hxx> // helper for implementations + +#include <com/sun/star/chart/XChartDataChangeEventListener.hpp> +namespace binfilter { + +class ChXChartDocument; + +class ChXChartDataChangeEventListener : + public cppu::WeakImplHelper1< ::com::sun::star::chart::XChartDataChangeEventListener > +{ +private: + ChXChartDocument *mpXDoc; + +public: + ChXChartDataChangeEventListener(); + virtual ~ChXChartDataChangeEventListener(){}; + + void Reset() throw(); + void SetOwner( ChXChartDocument* pXDoc ) throw(); + + // XChartDataChangeEventListener + virtual void SAL_CALL chartDataChanged( const ::com::sun::star::chart::ChartDataChangeEvent& aEvent ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XEventListener + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); +}; + +} //namespace binfilter +#endif // _CHXCHARTDATACHANGEEVENTLISTENER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXChartDrawPage.hxx b/binfilter/bf_sch/source/ui/inc/ChXChartDrawPage.hxx new file mode 100644 index 000000000000..e7147e03eea2 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXChartDrawPage.hxx @@ -0,0 +1,105 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHXCHARTDRAWPAGE_HXX_ +#define _CHXCHARTDRAWPAGE_HXX_ + +#include <bf_svx/unopage.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> + +// header for SvxItemPropertySet +#include <bf_svx/unoprov.hxx> +namespace binfilter { + +class ChartModel; + +class ChXChartDrawPage : + public ::com::sun::star::beans::XPropertySet, + public SvxDrawPage +{ +private: + ChartModel* mpModel; + SvxItemPropertySet maPropSet; + + ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence; + +public: + ChXChartDrawPage( ChartModel* pModel ); + virtual ~ChXChartDrawPage() throw(); + + // XInterface + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL acquire() throw(); + virtual void SAL_CALL release() throw(); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Any& aValue ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); +}; + +} //namespace binfilter +#endif // _CHXCHARTDRAWPAGE_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXChartObject.hxx b/binfilter/bf_sch/source/ui/inc/ChXChartObject.hxx new file mode 100644 index 000000000000..8ecb5d5dc1e8 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXChartObject.hxx @@ -0,0 +1,230 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _CHXCHART_OBJECT_HXX +#define _CHXCHART_OBJECT_HXX + +#include <cppuhelper/implbase8.hxx> + +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/beans/XMultiPropertySet.hpp> +#include <com/sun/star/beans/XPropertyState.hpp> +#include <com/sun/star/beans/XMultiPropertyStates.hpp> +#include <com/sun/star/drawing/XShape.hpp> +#include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> +#include <cppuhelper/interfacecontainer.hxx> + +// header for SvxServiceInfoHelper, SvxItemPropertySet +#include <bf_svx/unoprov.hxx> +namespace binfilter { + +class ChartModel; +class SdrObject; + +class ChXChartObject : public cppu::WeakImplHelper8< + ::com::sun::star::beans::XPropertySet, + ::com::sun::star::beans::XMultiPropertySet, + ::com::sun::star::beans::XPropertyState, + ::com::sun::star::beans::XMultiPropertyStates, + ::com::sun::star::drawing::XShape, + ::com::sun::star::lang::XComponent, + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::lang::XUnoTunnel > +{ +protected: + SvxItemPropertySet maPropSet; + ChartModel* mpModel; + long mnWhichId; + long mnIndex; // typically a data row index + +public: + ChXChartObject( long _MapId, ChartModel* _Model, long _WhichId, long _Index = -1 ); + virtual ~ChXChartObject(); + + virtual long GetId() const; + SdrObject* GetCurrentSdrObject() const; + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Any& aValue ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XMultiPropertySet + virtual void SAL_CALL setPropertyValues ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) + throw ( ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw ( ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addPropertiesChangeListener ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw ( ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removePropertiesChangeListener ( + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw ( ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL firePropertiesChangeEvent ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw ( ::com::sun::star::uno::RuntimeException); + + + // XPropertyState + virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XMultiPropertyStates +/* virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) + throw ( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException); +*/ virtual void SAL_CALL setAllPropertiesToDefault (void) + throw ( ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertiesToDefault ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw ( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw ( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException); + + // XShape + virtual ::com::sun::star::awt::Point SAL_CALL getPosition() throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPosition( const ::com::sun::star::awt::Point& aPosition ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::awt::Size SAL_CALL getSize() throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setSize( const ::com::sun::star::awt::Size& aSize ) + throw( ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException ); + + // 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 ); + + // XServiceInfo + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + + +protected: + /** @descr In an array of SfxItemPropertyMap entries advance from the position pointed to + by pProperty to that property that has the name given by pPropertyName. If the + property list does not contain such an entry an UnknownPropertyException is thrown. + @param pProperty Pointer into an array of properties. It is modified such that after + the methods returns it points to a property with the same name as pPropertyName. + @param pPropertyName Name of the property that is searched for. + */ + void AdvanceToName (const SfxItemPropertyMap *& pProperty, + const ::rtl::OUString * pPropertyName); + + /** @descr Creates an item set and fill it with the models default values. + If derived classes need other than the default which ranges, the have to overload + this method. + @return Returns a pointer to an item set. The caller is responsible for deleting it. + */ + virtual SfxItemSet * CreateItemSet (void); + + /** @descr Retrieve the value of the property specified by rProperty from the item set given + by rAttributes and put it into rValue. + @param rProperty Specifies the property in question. + @param rValue The property's value is stored into this argument. + @param rAttributes The item set that contains all relevant items from which the property + value is extracted. + */ + virtual void GetPropertyValue (const SfxItemPropertyMap & rProperty, + ::com::sun::star::uno::Any & rValue, + SfxItemSet & rAttributes); + +private: + /// List of listeners for the XComponent interface. + ::cppu::OInterfaceContainerHelper maListenerList; + + /// Mutex used by the interface container. + ::osl::Mutex maMutex; +}; + +} //namespace binfilter +#endif // _CHXCHART_OBJECT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXDataPoint.hxx b/binfilter/bf_sch/source/ui/inc/ChXDataPoint.hxx new file mode 100644 index 000000000000..85bb2232dc14 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXDataPoint.hxx @@ -0,0 +1,144 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_DATA_POINT_HXX +#define _SCH_DATA_POINT_HXX + +#include <cppuhelper/implbase5.hxx> + +#include <com/sun/star/drawing/XShapeDescriptor.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/beans/XPropertyState.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> + +// header for SvxItemPropertySet +#include <bf_svx/unoprov.hxx> +namespace binfilter { + +class ChartModel; + +class ChXDataPoint : public cppu::WeakImplHelper5< + ::com::sun::star::beans::XPropertySet, + ::com::sun::star::beans::XPropertyState, + ::com::sun::star::drawing::XShapeDescriptor, + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::lang::XUnoTunnel > +{ +private: + SvxItemPropertySet maPropSet; + ChartModel* mpModel; + + sal_Int32 mnCol, mnRow; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getStatisticsProperties( const sal_Int32 nId ) const; + void AddDataPointAttr( SfxItemSet& rOutAttributes ); + +public: + ChXDataPoint( sal_Int32 _Col, sal_Int32 _Row, ChartModel* _Model = NULL ); + virtual ~ChXDataPoint(); + + sal_Int32 GetCol() const { return mnCol; } + sal_Int32 GetRow() const { return mnRow; } + + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Any& aValue ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XPropertyState + virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); +}; + +} //namespace binfilter +#endif // _SCH_DATA_POINT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXDataRow.hxx b/binfilter/bf_sch/source/ui/inc/ChXDataRow.hxx new file mode 100644 index 000000000000..d31fa7a0b36a --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXDataRow.hxx @@ -0,0 +1,138 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_DATA_ROW_HXX +#define _SCH_DATA_ROW_HXX + +#include <cppuhelper/implbase5.hxx> + +#include <com/sun/star/drawing/XShapeDescriptor.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/beans/XPropertyState.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> + +// header for SvxItemPropertySet +#include <bf_svx/unoprov.hxx> +namespace binfilter { + +class ChartModel; + +class ChXDataRow : public cppu::WeakImplHelper5< + ::com::sun::star::beans::XPropertySet, + ::com::sun::star::beans::XPropertyState, + ::com::sun::star::drawing::XShapeDescriptor, + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::lang::XUnoTunnel > +{ +private: + SvxItemPropertySet maPropSet; + ChartModel* mpModel; + + sal_Int32 mnRow; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getStatisticsProperties( sal_Int32 nId ) const; + +public: + ChXDataRow( sal_Int32 _Row, ChartModel* _Model = NULL ); + virtual ~ChXDataRow(); + + sal_Int32 GetRow() const { return mnRow; } + + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Any& aValue ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XPropertyState + virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); +}; + +} //namespace binfilter +#endif // _SCH_DATA_ROW_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChXDiagram.hxx b/binfilter/bf_sch/source/ui/inc/ChXDiagram.hxx new file mode 100644 index 000000000000..0c1a0831020b --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChXDiagram.hxx @@ -0,0 +1,474 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _CHART_DIAGRAM_HXX +#define _CHART_DIAGRAM_HXX + +#include <cppuhelper/implbase.hxx> + +#include <com/sun/star/chart/XDiagram.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/chart/XTwoAxisXSupplier.hpp> +#include <com/sun/star/chart/XTwoAxisYSupplier.hpp> +#include <com/sun/star/chart/XAxisZSupplier.hpp> +#include <com/sun/star/chart/XStatisticDisplay.hpp> +#include <com/sun/star/chart/X3DDisplay.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/beans/XMultiPropertySet.hpp> +#include <com/sun/star/beans/XPropertyState.hpp> +#include <com/sun/star/beans/XMultiPropertyStates.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> +#include <com/sun/star/lang/IndexOutOfBoundsException.hpp> +#include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/lang/XEventListener.hpp> +#include <cppuhelper/interfacecontainer.hxx> + +// header for class SvxItemPropertySet +#include <bf_svx/unoipset.hxx> +namespace binfilter { + +class ChartModel; +class SchChartDocShell; +} //namespace binfilter +// GrP gcc 2.95.2 on Mac OS X chokes on this huge template class. +// Expand the template by hand. +//#if ! (defined(MACOSX) && ( __GNUC__ < 3 )) +#if 1 + +// Construct a WeakImplHelper14 with the emphasis on 14. +// Fourteen interfaces are two to many to use the newer template definition +// of WeakImplHelper. +#define __IFC14 Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10,\ + Ifc11, Ifc12, Ifc13, Ifc14 +#define __CLASS_IFC14 class Ifc1, class Ifc2, class Ifc3, class Ifc4, \ + class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10,\ + class Ifc11, class Ifc12, class Ifc13, class Ifc14 +#define __PUBLIC_IFC14 public Ifc1, public Ifc2, public Ifc3, public Ifc4,\ + public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9,\ + public Ifc10, public Ifc11, public Ifc12, public Ifc13, public Ifc14 + +__DEF_IMPLHELPER_PRE(14) + __IFC_WRITEOFFSET(1) __IFC_WRITEOFFSET(2) __IFC_WRITEOFFSET(3)\ + __IFC_WRITEOFFSET(4) __IFC_WRITEOFFSET(5) __IFC_WRITEOFFSET(6)\ + __IFC_WRITEOFFSET(7) __IFC_WRITEOFFSET(8) __IFC_WRITEOFFSET(9)\ + __IFC_WRITEOFFSET(10) __IFC_WRITEOFFSET(11) __IFC_WRITEOFFSET(12)\ + __IFC_WRITEOFFSET(13) __IFC_WRITEOFFSET(14) +__DEF_IMPLHELPER_POST(14) + +// !defined(MACOSX) +#else +// defined(MACOSX) && (__GNUC__ < 3 ) + +namespace cppu { + struct ClassData14 : public ClassDataBase + { + Type_Offset arType2Offset[ 14 ]; + ClassData14( ) SAL_THROW( () ) + : ClassDataBase( 14 ) + {} + }; + + class SAL_NO_VTABLE ImplHelperBase14 + : public ::com::sun::star::lang::XTypeProvider + , public ::com::sun::star::chart::XDiagram, + public ::com::sun::star::chart::XAxisZSupplier, + public ::com::sun::star::chart::XTwoAxisXSupplier, + public ::com::sun::star::chart::XTwoAxisYSupplier, + public ::com::sun::star::chart::XStatisticDisplay, + public ::com::sun::star::chart::X3DDisplay, + public ::com::sun::star::beans::XPropertySet, + public ::com::sun::star::beans::XMultiPropertySet, + public ::com::sun::star::beans::XPropertyState, + public ::com::sun::star::beans::XMultiPropertyStates, + public ::com::sun::star::lang::XServiceInfo, + public ::com::sun::star::lang::XUnoTunnel, + public ::com::sun::star::lang::XComponent, + public ::com::sun::star::lang::XEventListener + { + protected: + ClassData & SAL_CALL getClassData( ClassDataBase & s_aCD ) SAL_THROW( () ) + { + ClassData & rCD = * static_cast< ClassData * >( &s_aCD ); + if (! rCD.bOffsetsInit) + { + ::osl::MutexGuard aGuard( getImplHelperInitMutex() ); + if (! rCD.bOffsetsInit) + { + char * pBase = (char *)this; + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XDiagram > *)0 ), + (char *)(::com::sun::star::chart::XDiagram *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XAxisZSupplier > *)0 ), + (char *)(::com::sun::star::chart::XAxisZSupplier *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XTwoAxisXSupplier > *)0 ), + (char *)(::com::sun::star::chart::XTwoAxisXSupplier *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XTwoAxisYSupplier > *)0 ), + (char *)(::com::sun::star::chart::XTwoAxisYSupplier *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XStatisticDisplay > *)0 ), + (char *)(::com::sun::star::chart::XStatisticDisplay *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::chart::X3DDisplay > *)0 ), + (char *)(::com::sun::star::chart::X3DDisplay *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > *)0 ), + (char *)(::com::sun::star::beans::XPropertySet *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ), + (char *)(::com::sun::star::beans::XMultiPropertySet *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState > *)0 ), + (char *)(::com::sun::star::beans::XPropertyState *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertyStates > *)0 ), + (char *)(::com::sun::star::beans::XMultiPropertyStates *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XServiceInfo > *)0 ), + (char *)(::com::sun::star::lang::XServiceInfo *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XUnoTunnel > *)0 ), + (char *)(::com::sun::star::lang::XUnoTunnel *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > *)0 ), + (char *)(::com::sun::star::lang::XComponent *)this - pBase ); + rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > *)0 ), + (char *)(::com::sun::star::lang::XEventListener *)this - pBase ); + rCD.bOffsetsInit = sal_True; + } + } + return rCD; + } + }; + + + class SAL_NO_VTABLE ImplHelper14 + : public ImplHelperBase14 + { + static ClassData14 s_aCD; + public: + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) + { return getClassData( s_aCD ).query( rType, (ImplHelperBase14 *)this ); } + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) + { return getClassData( s_aCD ).getTypes(); } + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) + { return getClassData( s_aCD ).getImplementationId(); } + }; + + + class SAL_NO_VTABLE WeakImplHelper14 + : public ::cppu::OWeakObject + , public ImplHelperBase14 + { + static ClassData14 s_aCD; + public: + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) + { + ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase14 *)this ) ); + return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); + } + virtual void SAL_CALL acquire() throw () + { OWeakObject::acquire(); } + virtual void SAL_CALL release() throw () + { OWeakObject::release(); } + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) + { return getClassData( s_aCD ).getTypes(); } + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) + { return getClassData( s_aCD ).getImplementationId(); } + }; + + // namespace ::cppu +} + +#endif +namespace binfilter {//STRIP009 + class ChXDiagram : public ::cppu::WeakImplHelper14 + < + ::com::sun::star::chart::XDiagram, + ::com::sun::star::chart::XAxisZSupplier, + ::com::sun::star::chart::XTwoAxisXSupplier, // : XAxisXSupplier + ::com::sun::star::chart::XTwoAxisYSupplier, // : XAxisYSupplier + ::com::sun::star::chart::XStatisticDisplay, + ::com::sun::star::chart::X3DDisplay, + ::com::sun::star::beans::XPropertySet, + ::com::sun::star::beans::XMultiPropertySet, + ::com::sun::star::beans::XPropertyState, + ::com::sun::star::beans::XMultiPropertyStates, + ::com::sun::star::lang::XServiceInfo, + ::com::sun::star::lang::XUnoTunnel, + ::com::sun::star::lang::XComponent, + ::com::sun::star::lang::XEventListener + > +{ +private: + ::rtl::OUString maServiceName; + sal_Int32 mnBaseType; + ChartModel* mpModel; + SvxItemPropertySet maPropSet; + + // some shape references (ChXChartObjects) + ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > mxXAxisTitle; + ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > mxYAxisTitle; + ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > mxZAxisTitle; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxXAxis; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxYAxis; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxZAxis; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxSecXAxis; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxSecYAxis; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMajorGridX; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMajorGridY; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMajorGridZ; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMinorGridX; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMinorGridY; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMinorGridZ; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxMinMaxLine; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxUpBar; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxDownBar; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxWall; + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxFloor; + + + ::com::sun::star::uno::Any GetAnyByItem( SfxItemSet& aSet, const SfxItemPropertyMap* pMap ); + +public: + ChXDiagram( SchChartDocShell* pShell, sal_Bool bPreInit = sal_True ); + virtual ~ChXDiagram(); + + void SetServiceName( const ::rtl::OUString& u ) throw() { maServiceName = u; } + const ::rtl::OUString& getServiceName() throw() { return maServiceName; } + sal_Bool SetDocShell( SchChartDocShell* pDocShell, sal_Bool bKeepModel = sal_False ) throw(); + + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + static ChXDiagram* getImplementation( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ) throw(); + + // XDiagram + virtual ::rtl::OUString SAL_CALL getDiagramType() throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getDataRowProperties( sal_Int32 Row ) + throw( ::com::sun::star::uno::RuntimeException, + ::com::sun::star::lang::IndexOutOfBoundsException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getDataPointProperties( sal_Int32 Column, sal_Int32 Row ) + throw( ::com::sun::star::uno::RuntimeException, + ::com::sun::star::lang::IndexOutOfBoundsException ); + + // XShape ( ::XDiagram ) + virtual ::com::sun::star::awt::Size SAL_CALL getSize() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setSize( const ::com::sun::star::awt::Size& ) + throw( ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::awt::Point SAL_CALL getPosition() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPosition( const ::com::sun::star::awt::Point& ) + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor ( ::XShape ::XDiagram ) + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + + // XAxisXSupplier, XAxisYSupplier, XAxisZSupplier, + // XTwoAxisXSupplier, XTwoAxisYSupplier + virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SAL_CALL getXAxisTitle() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SAL_CALL getYAxisTitle() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SAL_CALL getZAxisTitle() + throw( ::com::sun::star::uno::RuntimeException ); + + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getXAxis() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getYAxis() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getZAxis() + throw( ::com::sun::star::uno::RuntimeException ); + + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getSecondaryXAxis() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getSecondaryYAxis() + throw( ::com::sun::star::uno::RuntimeException ); + + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getXMainGrid() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getYMainGrid() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getZMainGrid() + throw( ::com::sun::star::uno::RuntimeException ); + + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getXHelpGrid() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getYHelpGrid() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getZHelpGrid() + throw( ::com::sun::star::uno::RuntimeException ); + + + // XStatisticDisplay + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getMinMaxLine() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getUpBar() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getDownBar() + throw( ::com::sun::star::uno::RuntimeException ); + + + // X3DDisplay + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getWall() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getFloor() + throw( ::com::sun::star::uno::RuntimeException ); + + // XPropertySet + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() + throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Any& aValue ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XMultiPropertySet + virtual void SAL_CALL setPropertyValues ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) + throw (::com::sun::star::beans::PropertyVetoException, + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addPropertiesChangeListener ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removePropertiesChangeListener ( + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL firePropertiesChangeEvent ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) + throw (::com::sun::star::uno::RuntimeException); + + // XPropertyState + virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) + throw( ::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException ); + + // XMultiPropertyStates + // getPropertyStates already part of interface XPropertyState + virtual void SAL_CALL setAllPropertiesToDefault (void) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setPropertiesToDefault ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw (::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults ( + const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw (::com::sun::star::beans::UnknownPropertyException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException); + + // XServiceInfo + // supportsService is handled by SvxServiceInfoHelper + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + + // 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 ); + + // XEventListener + virtual void SAL_CALL disposing (const ::com::sun::star::lang::EventObject & Source) + throw (::com::sun::star::uno::RuntimeException); + +protected: + /** @descr In an array of SfxItemPropertyMap entries advance from the position pointed to + by pProperty to that property that has the name given by pPropertyName. If the + property list does not contain such an entry an UnknownPropertyException is thrown. + @param pProperty Pointer into an array of properties. It is modified such that after + the methods returns it points to a property with the same name as pPropertyName. + @param pPropertyName Name of the property that is searched for. + */ + void AdvanceToName (const SfxItemPropertyMap *& pProperty, + const ::rtl::OUString * pPropertyName) + throw (::com::sun::star::beans::UnknownPropertyException); + +private: + /// Mutex used by the interface container. + ::osl::Mutex maMutex; + + /// List of listeners for the XComponent interface. + ::cppu::OInterfaceContainerHelper maListenerList; +}; + +} //namespace binfilter +#endif // _CHART_DIAGRAM_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChartArea.hxx b/binfilter/bf_sch/source/ui/inc/ChartArea.hxx new file mode 100644 index 000000000000..49ff1c541e1e --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChartArea.hxx @@ -0,0 +1,65 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHARTAREA_HXX_ +#define _CHARTAREA_HXX_ + +#include "ChXChartObject.hxx" +namespace binfilter { + +class ChartArea : public ChXChartObject +{ +public: + ChartArea( ChartModel* pModel, sal_Int32 nObjectId ); + virtual ~ChartArea(); + + // helpers for XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + +}; + +} //namespace binfilter +#endif // _CHARTAREA_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChartGrid.hxx b/binfilter/bf_sch/source/ui/inc/ChartGrid.hxx new file mode 100644 index 000000000000..6f1b31bdf3b1 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChartGrid.hxx @@ -0,0 +1,65 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHARTGRID_HXX_ +#define _CHARTGRID_HXX_ + +#include "ChXChartObject.hxx" +namespace binfilter { + +class ChartGrid : public ChXChartObject +{ +public: + ChartGrid( ChartModel* pModel, sal_Int32 nObjectId ); + virtual ~ChartGrid(); + + // helpers for XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + +}; + +} //namespace binfilter +#endif // _CHARTGRID_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChartLegend.hxx b/binfilter/bf_sch/source/ui/inc/ChartLegend.hxx new file mode 100644 index 000000000000..e6f6bff55057 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChartLegend.hxx @@ -0,0 +1,65 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHARTLEGEND_HXX_ +#define _CHARTLEGEND_HXX_ + +#include "ChXChartObject.hxx" +namespace binfilter { + +class ChartLegend : public ChXChartObject +{ +public: + ChartLegend( ChartModel* pModel ); + virtual ~ChartLegend(); + + // helpers for XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + +}; + +} //namespace binfilter +#endif // _CHARTLEGEND_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChartLine.hxx b/binfilter/bf_sch/source/ui/inc/ChartLine.hxx new file mode 100644 index 000000000000..babbd6646355 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChartLine.hxx @@ -0,0 +1,65 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHARTLINE_HXX_ +#define _CHARTLINE_HXX_ + +#include "ChXChartObject.hxx" +namespace binfilter { + +class ChartLine : public ChXChartObject +{ +public: + ChartLine( ChartModel* pModel, sal_Int32 nObjectId, sal_Int32 nIndex = -1 ); + virtual ~ChartLine(); + + // helpers for XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + +}; + +} //namespace binfilter +#endif // _CHARTLINE_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/ChartTitle.hxx b/binfilter/bf_sch/source/ui/inc/ChartTitle.hxx new file mode 100644 index 000000000000..3f51b107abdd --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/ChartTitle.hxx @@ -0,0 +1,70 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _CHARTTITLE_HXX_ +#define _CHARTTITLE_HXX_ + +#include "ChXChartObject.hxx" +namespace binfilter { + +class ChartTitle : public ChXChartObject +{ +public: + ChartTitle( ChartModel* pModel, sal_Int32 nObjectId ); + virtual ~ChartTitle(); + + // helpers for XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + + /// special handling of title specific properties. Sub of getPropertyValues() + void GetPropertyValue( const SfxItemPropertyMap & rProperty, + ::com::sun::star::uno::Any & rValue, + SfxItemSet & rAttributes ); + + // XServiceInfo + virtual ::rtl::OUString SAL_CALL getImplementationName() + throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() + throw( ::com::sun::star::uno::RuntimeException ); + + // XTypeProvider + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() + throw( ::com::sun::star::uno::RuntimeException ); + + // XShapeDescriptor + virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException ); + + // XUnoTunnel + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) + throw( ::com::sun::star::uno::RuntimeException ); + +}; + +} //namespace binfilter +#endif // _CHARTTITLE_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/SchTransferable.hxx b/binfilter/bf_sch/source/ui/inc/SchTransferable.hxx new file mode 100644 index 000000000000..0587bcd0e5cd --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/SchTransferable.hxx @@ -0,0 +1,72 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _SCH_TRANSFERABLE_HXX_ +#define _SCH_TRANSFERABLE_HXX_ + +#include <bf_svtools/transfer.hxx> + +/*N*/ #include <tools/debug.hxx> //for stripping +class Graphic; +class VirtualDevice; +namespace binfilter { +class SdrModel; +class SdrExchangeView; + +class SchTransferable : + public TransferableHelper +{ +private: + SdrExchangeView * mpSourceView; + +protected: + + // implementation of TransferableHelper methods + +public: + + /** CTOR for clipboard, drag and drop and selection clipboard + @param pObjModel the model containing all objects for the clipboard. + The transferable becomes the owner of this model. + @param pSrcView the view for drag and drop and the selection clipboard + The transferable does not care about destruction of this view + @param rObjDesc A descriptor object that holds properties like the starting + position of a drag action + @param bLateInit If true, the actual data is created in GetData (on paste), + else data is created on construction + */ + SchTransferable( SdrModel* pObjModel, + SdrExchangeView* pSrcView, + const TransferableObjectDescriptor& rObjDesc, + sal_Bool bLateInit = sal_False ); + const SdrExchangeView* GetView() throw() { return mpSourceView; } +}; + +} //namespace binfilter +#endif // _SCH_TRANSFERABLE_HXX_ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/dlgctrls.hxx b/binfilter/bf_sch/source/ui/inc/dlgctrls.hxx new file mode 100644 index 000000000000..be1d70797136 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/dlgctrls.hxx @@ -0,0 +1,57 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + + +#ifndef SD_DLGCTRLS_HXX +#define SD_DLGCTRLS_HXX + +#include <vcl/lstbox.hxx> +#include <vcl/window.hxx> + +#include "schresid.hxx" +namespace binfilter { + +/************************************************************************* +|* +|* FadeEffectLB +|* +\************************************************************************/ +class FadeEffectLB : public ListBox +{ + +public: + FadeEffectLB( Window* pParent, SchResId Id ) : ListBox( pParent, Id ) {} + FadeEffectLB( Window* pParent, WinBits aWB ) : ListBox( pParent, aWB ) {} + + virtual void Fill(); +}; + +} //namespace binfilter +#endif // SD_DLGCTRLS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fudrarea.hxx b/binfilter/bf_sch/source/ui/inc/fudrarea.hxx new file mode 100644 index 000000000000..3b5ea2d2c417 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fudrarea.hxx @@ -0,0 +1,52 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_FUDRAREA_HXX +#define _SCH_FUDRAREA_HXX + +#include "fupoor.hxx" +namespace binfilter { + +class SchFuDrawingArea : public SchFuPoor +{ + public: + SchFuDrawingArea(SchViewShell* pViewSh, SchWindow* pWin, + SchView* pView, ChartModel* pDoc, + SfxRequest& rReq); + + virtual ~SchFuDrawingArea(); + + virtual void Activate() {} + virtual void Deactivate() {} +}; + +} //namespace binfilter +#endif // _SCH_FUDRAREA_HXX + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fudraw.hxx b/binfilter/bf_sch/source/ui/inc/fudraw.hxx new file mode 100644 index 000000000000..18d12f2fb9fe --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fudraw.hxx @@ -0,0 +1,184 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_FUDRAW_HXX +#define _SCH_FUDRAW_HXX + +#include "fupoor.hxx" +namespace binfilter { + +/************************************************************************* +|* +|* Basisklasse fuer alle Drawmodul-spezifischen Funktionen +|* +\************************************************************************/ + +class SdrObject; + +class SchFuDraw : public SchFuPoor +{ +protected: + Pointer aNewPointer; + Pointer aOldPointer; + BOOL bMBDown; + + /** possible directions in which to select objects + */ + enum lcl_Selection_Direction + { + lcl_SELECT_PREVIOUS, + lcl_SELECT_NEXT, + lcl_SELECT_FIRST, + lcl_SELECT_LAST + }; + + /** possible directions in which to move an object + */ + enum lcl_Movement_Direction + { + lcl_MOVE_LEFT, + lcl_MOVE_RIGHT, + lcl_MOVE_UP, + lcl_MOVE_DOWN + }; + + /** marks the next/previous/first or last object in the current + group of chart objects. + + @param eDirection determines in which direction to travel + + @param nDepth is to prevent a loop in recursion. When + selecting a new object, this may be invalid. In this + case the method tries the next object. If the last + object is reached without success, the first is + selected using a recursive call. If no valid objects + are available at all this parameter avoids a loop + (which should normally never occur). + + @param bEnterDiagram determines if during navigation the + diagram should be ignored as group and its content + rather be treated as top-level objects. This parameter + is especially needed so that the diagram can still be + selected (without entering). + + @returns TRUE, if an object could be marked + */ + + /** moves an object in one of the four directions given in + lcl_Movement_Direction. This is only possible for top-level + chart objects, i.e., titles, legend and diagram + + @param eDirection the direction in which to move. If an + object is too close to the edge, the object is not + moved. + + @param nAmount the amount of units to be moved about. The + unit can be 100th of a mm or pixels depending on what + bPixel is set to. + + @param bPixel If true, the amount nAmount is treated as pixels + in the current window, otherwise the current logical + unit is used, which in a chart is always 100th of a mm. + + @returns TRUE, if the object could be moved + */ + + /** resizes an object by the amount given into the larger of width + and height. In the smaller extent the amount is calculated + such that the resize is proportional. + + @param nAmount the amount by which the object will be resized. + The amount will be added to the larger extent (width or + height). The resize is proportional in the other + direction. + + @param bPixel If true, the amount nAmount is treated as pixels + in the current window for the larger of width and + height. Otherwise the current logical unit is used, + which in a chart is always 100th of a mm. + + @returns TRUE, if the object could be resized + */ + + /** moves a pie segment by the given amount in percent + + @param bOut if true increases the offset, otherwise decreases + the offset. The offset stays always between 0 and 100. + + @param nAmount the amount of percent by which the pie segment + is dragged. + + @returns TRUE, if the object was a pie and could be moved + */ + + /** determines if the object currently selected is valid, i.e. it + may be selected in the UI for making changes. + + @returns true, if a valid object is selected. + */ + + /** For some objects only the 8 green handles of the group are + shown, for others a special handling is required, e.g. bars in + a bar chart. This is done here for the currently selected + object. + */ + + /** Some groups in a chart may not be entered, e.g. an axis + object. Otherwise you would be able to select all tick-mark + objects or labels. + + @returns true, if the currently selected object is a group + that may be entered, e.g. a data series object. + */ + + /** get the object which is currently selected in the UI. In the + chart this can only be one object at a time. + */ + + /** after move or resize there have to be some things set at chart + objects and the model. It is called by MoveMarkedObject. + */ + +public: + + SchFuDraw(SchViewShell* pViewSh, SchWindow* pWin, SchView* pView, + ChartModel* pDoc, SfxRequest& rReq); + virtual ~SchFuDraw(); + + + virtual void Activate(); + + virtual void ForcePointer(const MouseEvent* pMEvt = NULL); + +}; + +} //namespace binfilter +#endif // _SCH_FUDRAW_HXX + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fupoor.hxx b/binfilter/bf_sch/source/ui/inc/fupoor.hxx new file mode 100644 index 000000000000..5cd79ac586f3 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fupoor.hxx @@ -0,0 +1,106 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_FUPOOR_HXX +#define _SCH_FUPOOR_HXX +//------------------------------------------------------------------ +// +// dieses Define dient nur zum Testen und darf auf keinen Fall aktiv bleiben +// Bei Umstellungen alle Files nach SIG_CHARTMODELDEFSCHDOC durchsuchen +// #define ChartModel SchChartDocument +//------------------------------------------------------------------ + +#include <vcl/dialog.hxx> + +#include "objid.hxx" +namespace binfilter { + +class SchView; +class SchViewShell; +class SchWindow; +class ChartModel; +class SfxRequest; + +#define HITPIX 2 // Hit-Toleranz in Pixel +#define DRGPIX 2 // Drag MinMove in Pixel + + +/************************************************************************* +|* +|* Basisklasse fuer alle Funktionen +|* +\************************************************************************/ + +class SchFuPoor +{ +protected: + SchView* pView; + SchViewShell* pViewShell; + SchWindow* pWindow; + ChartModel* pChDoc; + + USHORT nSlotId; + USHORT nSlotValue; + + Dialog* pDialog; + + Timer aDragTimer; // fuer Drag&Drop + DECL_LINK(DragHdl, Timer*); + BOOL bIsInDragMode; + Point aMDPos; // Position von MouseButtonDown + + SdrObject *pMarkedObj; + SchObjectId *pMarkedObjId; + UINT16 nMarkedID; + + BOOL bFirstMouseMove; + + +public: + + SchFuPoor(SchViewShell* pViewSh, SchWindow* pWin, SchView* pView, + ChartModel* pDoc, SfxRequest& rReq); + virtual ~SchFuPoor(); + + + // Mouse- & Key-Events; Returnwert=TRUE: Event wurde bearbeitet + + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren + + + + USHORT GetSlotID() const { return( nSlotId ); } + +}; + +} //namespace binfilter +#endif // _SCH_FUPOOR_HXX + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fuscale.hxx b/binfilter/bf_sch/source/ui/inc/fuscale.hxx new file mode 100644 index 000000000000..1bcaa52fceab --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fuscale.hxx @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + + +#ifndef _SCH_FUSCALE_HXX +#define _SCH_FUSCALE_HXX + +#include "fupoor.hxx" +namespace binfilter { + +class SchFuScale : public SchFuPoor +{ + public: + SchFuScale(SchViewShell* pViewSh, SchWindow* pWin, SchView* pView, + ChartModel* pDoc, SfxRequest& rReq); + virtual ~SchFuScale(); + + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren +}; + +} //namespace binfilter +#endif // _SCH_FUSCALE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fusel.hxx b/binfilter/bf_sch/source/ui/inc/fusel.hxx new file mode 100644 index 000000000000..44b85d68b741 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fusel.hxx @@ -0,0 +1,69 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_FUSEL_HXX +#define _SCH_FUSEL_HXX + + +#include "fudraw.hxx" +namespace binfilter { + +class SdrDragMethod; +class SdrCircObj; + +/************************************************************************* +|* +|* Basisklasse fuer alle Funktionen +|* +\************************************************************************/ + +class SchFuSelection : public SchFuDraw +{ +protected: + BOOL bWasSelected; + BOOL bVCAction; + SdrDragMethod* pDragMethod; + + +public: + + SchFuSelection(SchViewShell* pViewSh, SchWindow* pWin, SchView* pView, + ChartModel* pDoc, SfxRequest& rReq); + + virtual ~SchFuSelection(); + + + virtual void Activate(); + virtual void Deactivate(); +}; + +} //namespace binfilter +#endif // _SCH_FUSEL_HXX + + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/fuzoom.hxx b/binfilter/bf_sch/source/ui/inc/fuzoom.hxx new file mode 100644 index 000000000000..ac998999cad5 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/fuzoom.hxx @@ -0,0 +1,71 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_FUZOOM_HXX +#define _SCH_FUZOOM_HXX + + +#include "fupoor.hxx" +namespace binfilter { + +/************************************************************************* +|* +|* Funktion Zoom +|* +\************************************************************************/ + +class SchFuZoom : public SchFuPoor +{ + protected: + Point aBeginPos; + Rectangle aZoomRect; + BOOL bVisible; + BOOL bStartDrag; + Pointer aPtr; + + public: + SchFuZoom(SchViewShell* pViewSh, SchWindow* pWin, SchView* pView, + ChartModel* pDoc, SfxRequest& rReq); + + virtual ~SchFuZoom(); + // Mouse- & Key-Events + virtual BOOL KeyInput(const KeyEvent& rKEvt); + virtual BOOL MouseMove(const MouseEvent& rMEvt); + virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); + virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); + + virtual void Activate(); // Function aktivieren + virtual void Deactivate(); // Function deaktivieren +}; + + + +} //namespace binfilter +#endif // _SCH_FUZOOM_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/globopt.hxx b/binfilter/bf_sch/source/ui/inc/globopt.hxx new file mode 100644 index 000000000000..1194c5c47422 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/globopt.hxx @@ -0,0 +1,58 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef _SCH_GLOBOPT_HXX +#define _SCH_GLOBOPT_HXX + +#include <vcl/fldunit.hxx> +namespace binfilter { + +namespace sch +{ + +namespace util +{ + +/** @descr Retrieve the FieldUnit to be used for the UI. This unit is retrieved + from the registry settings of the Calc application. + + If this setting can not be found there is a fallback to cm which is the most + common setting worldwide (or not?) + + @return the FieldUnit enum. See <vcl/fldunit.hxx> for definition + */ +FieldUnit GetMeasureUnit(); + +} // namespace util +} // namespace sch + + +// _SCH_GLOBOPT_HXX +} //namespace binfilter +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/guiutil.hxx b/binfilter/bf_sch/source/ui/inc/guiutil.hxx new file mode 100644 index 000000000000..cd0e590b28b1 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/guiutil.hxx @@ -0,0 +1,45 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SCH_GUI_UTIL_HXX +#define _SCH_GUI_UTIL_HXX + +#include <tools/solar.h> +namespace binfilter { +class ChartModel; + +class GuiUtilities +{ +public: + static USHORT GetObjectNameResId(UINT16 nObjId, ChartModel& rDoc); +}; + +} //namespace binfilter +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/res_bmp.hrc b/binfilter/bf_sch/source/ui/inc/res_bmp.hrc new file mode 100644 index 000000000000..ddd968c8d16f --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/res_bmp.hrc @@ -0,0 +1,54 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#include <bf_sfx2/sfx.hrc> + + +//#define RID_APP_START 30000 +#define RID_DRAW_TOOLBOX (RID_SCH_START + 1) +#define RID_STATUSBAR (RID_APP_START + 10002) +//#define RID_ALIGNMENT (RID_APP_START + 3) +//#define RID_ZOOM (RID_APP_START + 4) +//#define RID_CONTROLS (RID_APP_START + 5) +//#define RID_TEXT_TOOLBOX (RID_APP_START + 6) + + + + + +#define RID_ACCEL (RID_APP_START + 80) +#define RID_MENU (RID_APP_START + 81) +#define RID_PORTAL_MENU (RID_APP_START + 82) + + + + + + +// Popup-Menus + + +//*** diff --git a/binfilter/bf_sch/source/ui/inc/res_hc_bmp.hrc b/binfilter/bf_sch/source/ui/inc/res_hc_bmp.hrc new file mode 100644 index 000000000000..fdb4a0146fdc --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/res_hc_bmp.hrc @@ -0,0 +1,126 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#include <bf_svtools/solar.hrc> + +// RID_SCH_START is 30512 (see svtools/solar.hrc) + +// chart types + +#define BMP_AREAS_2D_HC ( RID_SCH_START + 0 ) +#define BMP_AREAS_2D_1_HC ( RID_SCH_START + 1 ) +#define BMP_AREAS_2D_3_HC ( RID_SCH_START + 2 ) +#define BMP_AREAS_3D_HC ( RID_SCH_START + 3 ) +#define BMP_AREAS_3D_1_HC ( RID_SCH_START + 4 ) +#define BMP_AREAS_3D_2_HC ( RID_SCH_START + 5 ) +#define BMP_BARS_2D_HC ( RID_SCH_START + 6 ) +#define BMP_BARS_2D_1_HC ( RID_SCH_START + 7 ) +#define BMP_BARS_2D_2_HC ( RID_SCH_START + 8 ) +#define BMP_BARS_2D_3_HC ( RID_SCH_START + 9 ) +#define BMP_BARS_3D_HC ( RID_SCH_START + 10 ) +#define BMP_BARS_3D_1_HC ( RID_SCH_START + 11 ) +#define BMP_BARS_3D_2_HC ( RID_SCH_START + 12 ) +#define BMP_BARS_3D_3_HC ( RID_SCH_START + 13 ) +#define BMP_CIRCLES_2D_HC ( RID_SCH_START + 14 ) +#define BMP_CIRCLES_2D_1_HC ( RID_SCH_START + 15 ) +#define BMP_CIRCLES_2D_2_HC ( RID_SCH_START + 16 ) +#define BMP_CIRCLES_3D_HC ( RID_SCH_START + 17 ) +#define BMP_COLUMNS_2D_HC ( RID_SCH_START + 18 ) +#define BMP_COLUMNS_2D_1_HC ( RID_SCH_START + 19 ) +#define BMP_COLUMNS_2D_2_HC ( RID_SCH_START + 20 ) +#define BMP_COLUMNS_2D_3_HC ( RID_SCH_START + 21 ) +#define BMP_COLUMNS_2D_4_HC ( RID_SCH_START + 22 ) +#define BMP_COLUMNS_3D_HC ( RID_SCH_START + 23 ) +#define BMP_COLUMNS_3D_1_HC ( RID_SCH_START + 24 ) +#define BMP_COLUMNS_3D_2_HC ( RID_SCH_START + 25 ) +#define BMP_COLUMNS_3D_3_HC ( RID_SCH_START + 26 ) +#define BMP_DONUT1_2D_HC ( RID_SCH_START + 27 ) +#define BMP_KEGELQ_3D_1_HC ( RID_SCH_START + 28 ) +#define BMP_KEGELQ_3D_2_HC ( RID_SCH_START + 29 ) +#define BMP_KEGELQ_3D_3_HC ( RID_SCH_START + 30 ) +#define BMP_KEGELQ_3D_4_HC ( RID_SCH_START + 31 ) +#define BMP_KEGEL_3D_1_HC ( RID_SCH_START + 32 ) +#define BMP_KEGEL_3D_2_HC ( RID_SCH_START + 33 ) +#define BMP_KEGEL_3D_3_HC ( RID_SCH_START + 34 ) +#define BMP_KEGEL_3D_4_HC ( RID_SCH_START + 35 ) +#define BMP_LINESYMB_2D_HC ( RID_SCH_START + 36 ) +#define BMP_LINESYMB_2D_1_HC ( RID_SCH_START + 37 ) +#define BMP_LINESYMB_2D_2_HC ( RID_SCH_START + 38 ) +#define BMP_LINESYMB_2D_3_HC ( RID_SCH_START + 39 ) +#define BMP_LINES_2D_HC ( RID_SCH_START + 40 ) +#define BMP_LINES_2D_1_HC ( RID_SCH_START + 41 ) +#define BMP_LINES_2D_2_HC ( RID_SCH_START + 42 ) +#define BMP_LINES_2D_3_HC ( RID_SCH_START + 43 ) +#define BMP_LINES_3D_HC ( RID_SCH_START + 44 ) +#define BMP_NETSYMB_2D_HC ( RID_SCH_START + 45 ) +#define BMP_NETSYMB_2D_PERCENT_HC ( RID_SCH_START + 46 ) +#define BMP_NETSYMB_2D_STACK_HC ( RID_SCH_START + 47 ) +#define BMP_NET_2D_HC ( RID_SCH_START + 48 ) +#define BMP_NET_2D_PERCENT_HC ( RID_SCH_START + 49 ) +#define BMP_NET_2D_STACK_HC ( RID_SCH_START + 50 ) +#define BMP_PYRAMIDQ_3D_1_HC ( RID_SCH_START + 51 ) +#define BMP_PYRAMIDQ_3D_2_HC ( RID_SCH_START + 52 ) +#define BMP_PYRAMIDQ_3D_3_HC ( RID_SCH_START + 53 ) +#define BMP_PYRAMIDQ_3D_4_HC ( RID_SCH_START + 54 ) +#define BMP_PYRAMID_3D_1_HC ( RID_SCH_START + 55 ) +#define BMP_PYRAMID_3D_2_HC ( RID_SCH_START + 56 ) +#define BMP_PYRAMID_3D_3_HC ( RID_SCH_START + 57 ) +#define BMP_PYRAMID_3D_4_HC ( RID_SCH_START + 58 ) +#define BMP_ROEHRE_3D_1_HC ( RID_SCH_START + 59 ) +#define BMP_ROEHRE_3D_2_HC ( RID_SCH_START + 60 ) +#define BMP_ROEHRE_3D_3_HC ( RID_SCH_START + 61 ) +#define BMP_ROEHRE_3D_4_HC ( RID_SCH_START + 62 ) +#define BMP_SAEULE_3D_1_HC ( RID_SCH_START + 63 ) +#define BMP_SAEULE_3D_2_HC ( RID_SCH_START + 64 ) +#define BMP_SAEULE_3D_3_HC ( RID_SCH_START + 65 ) +#define BMP_SAEULE_3D_4_HC ( RID_SCH_START + 66 ) +#define BMP_SPLINE_B_HC ( RID_SCH_START + 67 ) +#define BMP_SPLINE_B_SYMBOL_HC ( RID_SCH_START + 68 ) +#define BMP_SPLINE_CUBIC_HC ( RID_SCH_START + 69 ) +#define BMP_SPLINE_CUBIC_SYMBOL_HC ( RID_SCH_START + 70 ) +#define BMP_STOCK_1_HC ( RID_SCH_START + 71 ) +#define BMP_STOCK_2_HC ( RID_SCH_START + 72 ) +#define BMP_STOCK_3_HC ( RID_SCH_START + 73 ) +#define BMP_STOCK_4_HC ( RID_SCH_START + 74 ) +#define BMP_SURF_3D_HC ( RID_SCH_START + 75 ) +#define BMP_XYSYMB_2D_HC ( RID_SCH_START + 76 ) +#define BMP_XYZSYMB_3D_HC ( RID_SCH_START + 77 ) +#define BMP_XYZ_3D_HC ( RID_SCH_START + 78 ) +#define BMP_XY_2D_HC ( RID_SCH_START + 79 ) +#define BMP_COLUMNS_2D_5_HC ( RID_SCH_START + 80 ) + +// statistics + +#define BMP_INDICATE_NONE_HC ( RID_SCH_START + 81 ) +#define BMP_INDICATE_BOTH_HC ( RID_SCH_START + 82 ) +#define BMP_INDICATE_UP_HC ( RID_SCH_START + 83 ) +#define BMP_INDICATE_DOWN_HC ( RID_SCH_START + 84 ) + +#define BMP_REGRESSION_NONE_HC ( RID_SCH_START + 85 ) +#define BMP_REGRESSION_LINEAR_HC ( RID_SCH_START + 86 ) +#define BMP_REGRESSION_LOG_HC ( RID_SCH_START + 87 ) +#define BMP_REGRESSION_EXP_HC ( RID_SCH_START + 88 ) +#define BMP_REGRESSION_POWER_HC ( RID_SCH_START + 89 ) diff --git a/binfilter/bf_sch/source/ui/inc/schhids.h b/binfilter/bf_sch/source/ui/inc/schhids.h new file mode 100644 index 000000000000..d24b7712f918 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/schhids.h @@ -0,0 +1,93 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + + + +#include <bf_svtools/solar.hrc> + +#define HID_SCH_DATA_ROW (HID_SCH_START + 0) +#define HID_SCH_DATA_LINE (HID_SCH_START + 1) +#define HID_SCH_DATA_POINT (HID_SCH_START + 2) +#define HID_SCH_DIAGRAM_X_AXIS (HID_SCH_START + 3) + +#define HID_SCH_ALIGNMENT (HID_SCH_START + 4) +#define HID_SCH_LEGEND_POS (HID_SCH_START + 5) +#define HID_SCH_DATA_DESCR (HID_SCH_START + 6) +#define HID_SCH_SCALE_Y (HID_SCH_START + 7) +#define HID_SCH_STAT (HID_SCH_START + 8) +#define HID_SCH_WIN_DOCUMENT (HID_SCH_START + 9) +#define HID_SCH_CTL_DATA (HID_SCH_START + 10) +#define HID_SCH_CT_INDICATE (HID_SCH_START + 11) +#define HID_SCH_CT_REGRESS (HID_SCH_START + 12) +#define HID_SCH_CT_1_CHARTTYPE (HID_SCH_START + 13) +#define HID_SCH_CT_2_CHARTVARIANT (HID_SCH_START + 14) +#define HID_SCH_CTL_TYPE (HID_SCH_START + 15) +#define HID_SCH_CTL_VARIANT (HID_SCH_START + 16) +#define HID_SCH_CTL_LIGHT (HID_SCH_START + 17) +#define HID_SCH_CT_INDICATE2 (HID_SCH_START + 18) +#define HID_SCH_CT_REGRESS2 (HID_SCH_START + 19) +#define HID_SCH_TBI_EDIT_CANCEL (HID_SCH_START + 20) +#define HID_SCH_TBI_EDIT_ACCEPT (HID_SCH_START + 21) +#define HID_SCH_TBI_DATA_TRANSFER (HID_SCH_START + 22) +#define HID_SCH_TBI_DATA_INSERT_ROW (HID_SCH_START + 23) +#define HID_SCH_TBI_DATA_INSERT_COL (HID_SCH_START + 24) +#define HID_SCH_TBI_DATA_DELETE_ROW (HID_SCH_START + 25) +#define HID_SCH_TBI_DATA_DELETE_COL (HID_SCH_START + 26) +#define HID_SCH_TBI_DATA_SWAP_COL (HID_SCH_START + 27) +#define HID_SCH_TBI_DATA_SWAP_ROW (HID_SCH_START + 28) +#define HID_SCH_TBI_DATA_SORT_ROW (HID_SCH_START + 29) +#define HID_SCH_TBI_DATA_SORT_COL (HID_SCH_START + 30) +#define HID_SCH_TBI_DATA_SORT_TABLE_ROW (HID_SCH_START + 31) +#define HID_SCH_TBI_DATA_SORT_TABLE_COL (HID_SCH_START + 32) + +#define HID_SCH_TBX_EDIT (HID_SCH_START + 33) +#define HID_SCH_TBX_DATA (HID_SCH_START + 34) + + +#define HID_SCH_ALIGNMENT_CTR_DIAL (HID_SCH_START + 35) +#define HID_SCH_ALIGNMENT_STACKED (HID_SCH_START + 36) +#define HID_SCH_ALIGNMENT_DEGREES (HID_SCH_START + 37) + +#define HID_SCH_LAYOUT (HID_SCH_START + 38) + +#define HID_SCH_TBX_EDIT_FIELD (HID_SCH_START + 39) +#define HID_SCH_DIAGRAM_Y_AXIS (HID_SCH_START + 40)//war mal 3 + +#define HID_SCH_DEF_COLOR (HID_SCH_START + 41) +#define HID_SCH_TP_AXIS_LABEL (HID_SCH_START + 42) + +#define HID_SCH_NUM_OF_LINES (HID_SCH_START + 43) + +#define HID_SCH_CHART_AUTO_FORMAT (HID_SCH_START + 44) + +// HID_SCH_START should be 63280 (checked 25.Nov 2002) + +// 453 == SCH_IF_CHARTVIEWSHELL, da SFX_INTERFACE_LIB kein +// Define sondern neuerdings ein Enum ist +#define HID_SCH_VIEWSHELL_DOCUMENT (453) +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/sdvcbrw.hxx b/binfilter/bf_sch/source/ui/inc/sdvcbrw.hxx new file mode 100644 index 000000000000..209cc45e6a00 --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/sdvcbrw.hxx @@ -0,0 +1,71 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef _SDVCBRW_HXX +#define _SDVCBRW_HXX +/* +#include <bf_svx/vcbrw.hxx> +*/ +#include <bf_svtools/brdcst.hxx> + +#include <bf_svtools/lstner.hxx> +namespace binfilter { + +class SdrView; + +/************************************************************************* +|* +|* Klasse fuer Browser +|* +\************************************************************************/ +class SdVCBrowser : public VCBrowser //, public SfxListener, public SfxBroadcaster +{ +protected: + SdrView* pView; + BOOL bUpdate; + + BOOL Close(); + + virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, + const SfxHint& rHint, const TypeId& rHintType ); + void Modify(); + + +public: + SdVCBrowser( Window* pParent ); + + void Update( SdrView* pView ); +}; + + + + +} //namespace binfilter +#endif // _SDVCBRW_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/binfilter/bf_sch/source/ui/inc/tbx_ww.hxx b/binfilter/bf_sch/source/ui/inc/tbx_ww.hxx new file mode 100644 index 000000000000..c5e9c6c5964c --- /dev/null +++ b/binfilter/bf_sch/source/ui/inc/tbx_ww.hxx @@ -0,0 +1,61 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + + + +#ifndef _SCH_TBX_WW_HXX +#define _SCH_TBX_WW_HXX + +#include <vcl/toolbox.hxx> +#include <bf_sfx2/tbxctrl.hxx> + + +#include "schresid.hxx" +namespace binfilter { + +//------------------------------------------------------------------------ + +class SchPopupWindowTbx : public SfxPopupWindow +{ +private: + ToolBox aTbx; + +public: + SchPopupWindowTbx( USHORT nId, SfxToolBoxControl* pTbxCtl, + SchResId aRIdWin, SchResId aRIdTbx, + SfxBindings& rBindings ); + ~SchPopupWindowTbx() {} + + void StartSelection() { aTbx.StartSelection(); } + void SelectHdl( void* p ); +}; + +} //namespace binfilter +#endif // _SCH_TBX_WW_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |