2003-12-11 06:52:55 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* 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.
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* 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).
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
2008-04-10 15:05:11 -05:00
|
|
|
* 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.
|
2003-12-11 06:52:55 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef CHART2_ERRORBAR_HXX
|
|
|
|
#define CHART2_ERRORBAR_HXX
|
|
|
|
|
|
|
|
#include "MutexContainer.hxx"
|
|
|
|
#include "OPropertySet.hxx"
|
|
|
|
#include "ServiceMacros.hxx"
|
2007-05-22 12:16:01 -05:00
|
|
|
#include "ModifyListenerHelper.hxx"
|
2008-12-30 07:32:01 -06:00
|
|
|
#include "charttoolsdllapi.hxx"
|
2003-12-11 06:52:55 -06:00
|
|
|
|
2008-03-06 10:03:48 -06:00
|
|
|
#include <cppuhelper/implbase6.hxx>
|
2003-12-11 06:52:55 -06:00
|
|
|
#include <comphelper/uno3.hxx>
|
|
|
|
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceName.hpp>
|
2007-05-22 12:16:01 -05:00
|
|
|
#include <com/sun/star/util/XCloneable.hpp>
|
2008-03-06 10:03:48 -06:00
|
|
|
#include <com/sun/star/container/XChild.hpp>
|
|
|
|
#include <com/sun/star/chart2/data/XDataSink.hpp>
|
|
|
|
#include <com/sun/star/chart2/data/XDataSource.hpp>
|
2003-12-11 06:52:55 -06:00
|
|
|
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
|
2009-06-04 04:41:18 -05:00
|
|
|
OOO_DLLPUBLIC_CHARTTOOLS ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createErrorBar(
|
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext > & xContext );
|
|
|
|
|
2003-12-11 06:52:55 -06:00
|
|
|
namespace impl
|
|
|
|
{
|
2008-03-06 10:03:48 -06:00
|
|
|
typedef ::cppu::WeakImplHelper6<
|
2007-05-22 12:16:01 -05:00
|
|
|
::com::sun::star::lang::XServiceInfo,
|
|
|
|
::com::sun::star::util::XCloneable,
|
|
|
|
::com::sun::star::util::XModifyBroadcaster,
|
2008-03-06 10:03:48 -06:00
|
|
|
::com::sun::star::util::XModifyListener,
|
|
|
|
::com::sun::star::chart2::data::XDataSource,
|
|
|
|
::com::sun::star::chart2::data::XDataSink >
|
2003-12-11 06:52:55 -06:00
|
|
|
ErrorBar_Base;
|
|
|
|
}
|
|
|
|
|
2009-06-04 04:41:18 -05:00
|
|
|
class ErrorBar :
|
2007-05-22 12:16:01 -05:00
|
|
|
public MutexContainer,
|
2003-12-11 06:52:55 -06:00
|
|
|
public impl::ErrorBar_Base,
|
|
|
|
public ::property::OPropertySet
|
|
|
|
{
|
|
|
|
public:
|
2007-05-22 12:16:01 -05:00
|
|
|
explicit ErrorBar(
|
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext > & xContext );
|
2003-12-11 06:52:55 -06:00
|
|
|
virtual ~ErrorBar();
|
|
|
|
|
|
|
|
/// XServiceInfo declarations
|
|
|
|
APPHELPER_XSERVICEINFO_DECL()
|
2007-05-22 12:16:01 -05:00
|
|
|
/// establish methods for factory instatiation
|
|
|
|
APPHELPER_SERVICE_FACTORY_HELPER( ErrorBar )
|
2003-12-11 06:52:55 -06:00
|
|
|
|
|
|
|
/// merge XInterface implementations
|
|
|
|
DECLARE_XINTERFACE()
|
|
|
|
/// merge XTypeProvider implementations
|
|
|
|
DECLARE_XTYPEPROVIDER()
|
|
|
|
|
|
|
|
protected:
|
2007-05-22 12:16:01 -05:00
|
|
|
ErrorBar( const ErrorBar & rOther );
|
|
|
|
|
2003-12-11 06:52:55 -06:00
|
|
|
// ____ OPropertySet ____
|
|
|
|
virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
|
|
|
|
throw(::com::sun::star::beans::UnknownPropertyException);
|
|
|
|
virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
|
2007-07-25 02:46:31 -05:00
|
|
|
using OPropertySet::disposing;
|
2003-12-11 06:52:55 -06:00
|
|
|
|
|
|
|
// ____ XPropertySet ____
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
|
|
|
|
getPropertySetInfo()
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2007-05-22 12:16:01 -05:00
|
|
|
// ____ XCloneable ____
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ____ XModifyBroadcaster ____
|
|
|
|
virtual void SAL_CALL addModifyListener(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL removeModifyListener(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ____ XModifyListener ____
|
|
|
|
virtual void SAL_CALL modified(
|
|
|
|
const ::com::sun::star::lang::EventObject& aEvent )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ____ XEventListener (base of XModifyListener) ____
|
|
|
|
virtual void SAL_CALL disposing(
|
|
|
|
const ::com::sun::star::lang::EventObject& Source )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2008-03-06 10:03:48 -06:00
|
|
|
// ____ XDataSink ____
|
|
|
|
virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > >& aData )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ____ XDataSource ____
|
|
|
|
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences()
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ____ XChild ____
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent()
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setParent(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent )
|
|
|
|
throw (::com::sun::star::lang::NoSupportException,
|
|
|
|
::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2007-05-22 12:16:01 -05:00
|
|
|
// ____ OPropertySet ____
|
|
|
|
virtual void firePropertyChangeEvent();
|
|
|
|
|
|
|
|
void fireModifyEvent();
|
|
|
|
|
2003-12-11 06:52:55 -06:00
|
|
|
private:
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext >
|
|
|
|
m_xContext;
|
2007-05-22 12:16:01 -05:00
|
|
|
|
2008-03-06 10:03:48 -06:00
|
|
|
typedef ::std::vector< ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::chart2::data::XLabeledDataSequence > > tDataSequenceContainer;
|
|
|
|
tDataSequenceContainer m_aDataSequences;
|
|
|
|
|
2007-05-22 12:16:01 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
|
2008-03-06 10:03:48 -06:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
|
2003-12-11 06:52:55 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chart
|
|
|
|
|
|
|
|
// CHART2_ERRORBAR_HXX
|
|
|
|
#endif
|