LCOV - code coverage report
Current view: top level - sw/inc - unochart.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 9 11.1 %
Date: 2015-06-13 12:38:46 Functions: 1 5 20.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_SW_INC_UNOCHART_HXX
      20             : #define INCLUDED_SW_INC_UNOCHART_HXX
      21             : 
      22             : #include <map>
      23             : #include <set>
      24             : 
      25             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      26             : #include <com/sun/star/chart2/data/XDataProvider.hpp>
      27             : #include <com/sun/star/chart2/data/XDataSource.hpp>
      28             : #include <com/sun/star/chart2/data/XDataSequence.hpp>
      29             : #include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
      30             : #include <com/sun/star/chart2/data/XNumericalDataSequence.hpp>
      31             : #include <com/sun/star/chart2/data/XLabeledDataSequence2.hpp>
      32             : #include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
      33             : #include <com/sun/star/chart2/data/DataSequenceRole.hpp>
      34             : #include <com/sun/star/lang/XServiceInfo.hpp>
      35             : #include <com/sun/star/beans/XPropertySet.hpp>
      36             : #include <com/sun/star/util/XCloneable.hpp>
      37             : #include <com/sun/star/lang/XComponent.hpp>
      38             : #include <com/sun/star/lang/XEventListener.hpp>
      39             : #include <com/sun/star/util/XModifiable.hpp>
      40             : #include <com/sun/star/util/XModifyBroadcaster.hpp>
      41             : #include <com/sun/star/util/XModifyListener.hpp>
      42             : #include <com/sun/star/chart/ChartDataRowSource.hpp>
      43             : 
      44             : #include <cppuhelper/interfacecontainer.h>
      45             : #include <cppuhelper/implbase.hxx>
      46             : #include <cppuhelper/weakref.hxx>
      47             : 
      48             : #include <tools/link.hxx>
      49             : #include <vcl/timer.hxx>
      50             : 
      51             : #include <calbck.hxx>
      52             : #include <frmfmt.hxx>
      53             : #include <unocrsr.hxx>
      54             : 
      55             : class SfxItemPropertySet;
      56             : class SwDoc;
      57             : class SwTable;
      58             : class SwTableBox;
      59             : struct SwRangeDescriptor;
      60             : class SwSelBoxes;
      61             : class SwFrameFormat;
      62             : 
      63             : bool FillRangeDescriptor( SwRangeDescriptor &rDesc, const OUString &rCellRangeName );
      64             : 
      65             : class SwChartHelper
      66             : {
      67             : public:
      68             :     static void DoUpdateAllCharts( SwDoc* pDoc );
      69             : };
      70             : 
      71             : class SwChartLockController_Helper
      72             : {
      73             :     SwDoc   *pDoc;
      74             : 
      75             :     DECL_LINK_TYPED( DoUnlockAllCharts, Timer *, void );
      76             :     Timer   aUnlockTimer;   // timer to unlock chart controllers
      77             :     bool    bIsLocked;
      78             : 
      79             :     SwChartLockController_Helper( const SwChartLockController_Helper & ) SAL_DELETED_FUNCTION;
      80             :     SwChartLockController_Helper & operator = ( const SwChartLockController_Helper & ) SAL_DELETED_FUNCTION;
      81             : 
      82             :     void LockUnlockAllCharts( bool bLock );
      83           0 :     void LockAllCharts()    { LockUnlockAllCharts( true ); };
      84        2947 :     void UnlockAllCharts()  { LockUnlockAllCharts( false ); };
      85             : 
      86             : public:
      87             :     SwChartLockController_Helper( SwDoc *pDocument );
      88             :     ~SwChartLockController_Helper();
      89             : 
      90             :     void StartOrContinueLocking();
      91             :     void Disconnect();
      92             : };
      93             : 
      94             : typedef cppu::WeakImplHelper
      95             : <
      96             :     ::com::sun::star::chart2::data::XDataProvider,
      97             :     ::com::sun::star::chart2::data::XRangeXMLConversion,
      98             :     ::com::sun::star::lang::XComponent,
      99             :     ::com::sun::star::lang::XServiceInfo
     100             : >
     101             : SwChartDataProviderBaseClass;
     102             : 
     103             : class SwChartDataProvider :
     104             :     public SwChartDataProviderBaseClass,
     105             :     public SwClient
     106             : {
     107             : 
     108             :     // used to keep weak-references to all data-sequences of a single table
     109             :     // see set definition below...
     110             :     struct lt_DataSequenceRef
     111             :     {
     112           0 :         bool operator()( ::com::sun::star::uno::WeakReference< ::com::sun::star::chart2::data::XDataSequence > xWRef1, ::com::sun::star::uno::WeakReference< ::com::sun::star::chart2::data::XDataSequence > xWRef2 ) const
     113             :         {
     114           0 :             ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > xRef1( xWRef1 );
     115           0 :             ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > xRef2( xWRef2 );
     116           0 :             return xRef1.get() < xRef2.get();
     117             :         }
     118             :     };
     119             :     typedef std::set< ::com::sun::star::uno::WeakReference < ::com::sun::star::chart2::data::XDataSequence >, lt_DataSequenceRef > Set_DataSequenceRef_t;
     120             : 
     121             :     // map of data-sequence sets for each table
     122             :     struct lt_SwTable_Ptr
     123             :     {
     124           0 :         bool operator()( const SwTable *p1, const SwTable *p2 ) const
     125             :         {
     126           0 :             return p1 < p2;
     127             :         }
     128             :     };
     129             :     typedef std::map< const SwTable *, Set_DataSequenceRef_t, lt_SwTable_Ptr > Map_Set_DataSequenceRef_t;
     130             : 
     131             :     // map of all data-sequences provided directly or indirectly (e.g. via
     132             :     // data-source) by this object. Since there is only one object of this type
     133             :     // for each document it should hold references to all used data-sequences for
     134             :     // all tables of the document.
     135             :     mutable Map_Set_DataSequenceRef_t       aDataSequences;
     136             : 
     137             :     ::cppu::OInterfaceContainerHelper       aEvtListeners;
     138             :     const SwDoc *                           pDoc;
     139             :     bool                                bDisposed;
     140             : 
     141             :     SwChartDataProvider( const SwChartDataProvider & ) SAL_DELETED_FUNCTION;
     142             :     SwChartDataProvider & operator = ( const SwChartDataProvider & ) SAL_DELETED_FUNCTION;
     143             : 
     144             :     ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > SAL_CALL Impl_createDataSource( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments, bool bTestOnly = false )
     145             :         throw (::com::sun::star::lang::IllegalArgumentException,
     146             :                ::com::sun::star::uno::RuntimeException,
     147             :                std::exception);
     148             :     ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL Impl_createDataSequenceByRangeRepresentation( const OUString& aRangeRepresentation, bool bTestOnly = false )
     149             :         throw (::com::sun::star::lang::IllegalArgumentException,
     150             :                ::com::sun::star::uno::RuntimeException,
     151             :                std::exception);
     152             : 
     153             :     static OUString GetBrokenCellRangeForExport( const OUString &rCellRangeRepresentation );
     154             : 
     155             : protected:
     156             :     //SwClient
     157             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     158             : 
     159             : public:
     160             :     SwChartDataProvider( const SwDoc* pDoc );
     161             :     virtual ~SwChartDataProvider();
     162             : 
     163             :     // XDataProvider
     164             :     virtual sal_Bool SAL_CALL createDataSourcePossible( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     165             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > SAL_CALL createDataSource( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     166             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL detectArguments( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource >& xDataSource ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     167             :     virtual sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible( const OUString& aRangeRepresentation ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     168             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation( const OUString& aRangeRepresentation ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     169             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XRangeSelection > SAL_CALL getRangeSelection(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     170             : 
     171             :     virtual css::uno::Reference<css::chart2::data::XDataSequence>
     172             :         SAL_CALL createDataSequenceByValueArray(
     173             :             const OUString& aRole, const OUString& aRangeRepresentation )
     174             :                 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     175             : 
     176             :     // XRangeXMLConversion
     177             :     virtual OUString SAL_CALL convertRangeToXML( const OUString& aRangeRepresentation )
     178             :         throw (::com::sun::star::lang::IllegalArgumentException,
     179             :                ::com::sun::star::uno::RuntimeException,
     180             :                std::exception) SAL_OVERRIDE;
     181             :     virtual OUString SAL_CALL convertRangeFromXML( const OUString& aXMLRange ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     182             : 
     183             :     // XComponent
     184             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     185             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     186             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     187             : 
     188             :     // XServiceInfo
     189             :     virtual OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     190             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     191             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     192             : 
     193             :     SwFrameFormat*       GetFrameFormat() const { return const_cast<SwFrameFormat*>(static_cast<const SwFrameFormat*>(GetRegisteredIn())); }
     194             : 
     195             :     void        AddDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
     196             :     void        RemoveDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
     197             : 
     198             :     // will send modifdied events for all data-sequences of the table
     199             :     void        InvalidateTable( const SwTable *pTable );
     200             :     bool    DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
     201             :     void        DisposeAllDataSequences( const SwTable *pTable );
     202             : 
     203             :     // functionality needed to get notified about new added rows/cols
     204             :     void        AddRowCols( const SwTable &rTable, const SwSelBoxes& rBoxes, sal_uInt16 nLines, bool bBehind );
     205             : };
     206             : 
     207             : typedef cppu::WeakImplHelper
     208             : <
     209             :     ::com::sun::star::chart2::data::XDataSource,
     210             :     ::com::sun::star::lang::XServiceInfo
     211             : >
     212             : SwChartDataSourceBaseClass;
     213             : 
     214             : class SwChartDataSource :
     215             :     public SwChartDataSourceBaseClass
     216             : {
     217             :     com::sun::star::uno::Sequence<
     218             :         com::sun::star::uno::Reference<
     219             :             com::sun::star::chart2::data::XLabeledDataSequence > > aLDS;
     220             : 
     221             :     SwChartDataSource( const SwChartDataSource & ) SAL_DELETED_FUNCTION;
     222             :     SwChartDataSource & operator = ( const SwChartDataSource & ) SAL_DELETED_FUNCTION;
     223             : 
     224             : public:
     225             :     SwChartDataSource( const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::chart2::data::XLabeledDataSequence > > &rLDS );
     226             :     virtual ~SwChartDataSource();
     227             : 
     228             :     // XDataSource
     229             :     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, std::exception) SAL_OVERRIDE;
     230             : 
     231             :     // XServiceInfo
     232             :     virtual OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     233             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     234             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     235             : };
     236             : 
     237             : typedef cppu::WeakImplHelper
     238             : <
     239             :     ::com::sun::star::chart2::data::XDataSequence,
     240             :     ::com::sun::star::chart2::data::XTextualDataSequence,
     241             :     ::com::sun::star::chart2::data::XNumericalDataSequence,
     242             :     ::com::sun::star::util::XCloneable,
     243             :     ::com::sun::star::beans::XPropertySet,
     244             :     ::com::sun::star::lang::XServiceInfo,
     245             :     ::com::sun::star::lang::XUnoTunnel,
     246             :     ::com::sun::star::util::XModifiable,
     247             :     ::com::sun::star::lang::XEventListener,
     248             :     ::com::sun::star::lang::XComponent
     249             : >
     250             : SwChartDataSequenceBaseClass;
     251             : 
     252             : class SwChartDataSequence :
     253             :     public SwChartDataSequenceBaseClass,
     254             :     public SwClient
     255             : {
     256             :     ::cppu::OInterfaceContainerHelper                       aEvtListeners;
     257             :     ::cppu::OInterfaceContainerHelper                       aModifyListeners;
     258             :     ::com::sun::star::chart2::data::DataSequenceRole        aRole;
     259             : 
     260             :     OUString  aRowLabelText;
     261             :     OUString  aColLabelText;
     262             : 
     263             :     // holds a reference to the data-provider to guarantee its lifetime last as
     264             :     // long as the pointer may be used.
     265             :     ::com::sun::star::uno::Reference< com::sun::star::chart2::data::XDataProvider >    xDataProvider;
     266             :     SwChartDataProvider *                   pDataProvider;
     267             : 
     268             :     sw::UnoCursorPointer pTableCrsr;   // cursor spanned over cells to use
     269             : 
     270             :     const SfxItemPropertySet*   _pPropSet;
     271             : 
     272             :     bool    bDisposed;
     273             : 
     274             :     SwChartDataSequence( const SwChartDataSequence &rObj );
     275             :     SwChartDataSequence & operator = ( const SwChartDataSequence & ) SAL_DELETED_FUNCTION;
     276             : 
     277             : protected:
     278             :     //SwClient
     279             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
     280             : 
     281             : public:
     282             :     SwChartDataSequence( SwChartDataProvider &rProvider,
     283             :                          SwFrameFormat   &rTblFmt,
     284             :                          std::shared_ptr<SwUnoCrsr> pTableCursor );
     285             :     virtual ~SwChartDataSequence();
     286             : 
     287             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     288             : 
     289             :     //XUnoTunnel
     290             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     291             : 
     292             :     // XDataSequence
     293             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getData()
     294             :         throw (::com::sun::star::uno::RuntimeException,
     295             :                std::exception) SAL_OVERRIDE;
     296             :     virtual OUString SAL_CALL getSourceRangeRepresentation()
     297             :         throw (::com::sun::star::uno::RuntimeException,
     298             :                std::exception) SAL_OVERRIDE;
     299             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL generateLabel( ::com::sun::star::chart2::data::LabelOrigin eLabelOrigin )
     300             :         throw (::com::sun::star::uno::RuntimeException,
     301             :                std::exception) SAL_OVERRIDE;
     302             :     virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     303             : 
     304             :     // XTextualDataSequence
     305             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getTextualData()
     306             :         throw (::com::sun::star::uno::RuntimeException,
     307             :                std::exception) SAL_OVERRIDE;
     308             : 
     309             :     // XNumericalDataSequence
     310             :     virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getNumericalData()
     311             :         throw (::com::sun::star::uno::RuntimeException,
     312             :                std::exception) SAL_OVERRIDE;
     313             : 
     314             :     // XCloneable
     315             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     316             : 
     317             :     // XPropertySet
     318             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     319             :     virtual void SAL_CALL setPropertyValue( const 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, std::exception) SAL_OVERRIDE;
     320             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     321             :     virtual void SAL_CALL addPropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     322             :     virtual void SAL_CALL removePropertyChangeListener( const 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, std::exception) SAL_OVERRIDE;
     323             :     virtual void SAL_CALL addVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     324             :     virtual void SAL_CALL removeVetoableChangeListener( const 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, std::exception) SAL_OVERRIDE;
     325             : 
     326             :     // XServiceInfo
     327             :     virtual OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     328             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     329             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     330             : 
     331             :     // XModifiable
     332             :     virtual sal_Bool SAL_CALL isModified(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     333             :     virtual void SAL_CALL setModified( sal_Bool bModified ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     334             : 
     335             :     // XModifyBroadcaster
     336             :     virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     337             :     virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     338             : 
     339             :     // XEventListener
     340             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     341             : 
     342             :     // XComponent
     343             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     344             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     345             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     346             : 
     347           0 :     SwFrameFormat*   GetFrameFormat() const { return const_cast<SwFrameFormat*>(static_cast<const SwFrameFormat*>(GetRegisteredIn())); }
     348             :     bool    DeleteBox( const SwTableBox &rBox );
     349             : 
     350             :     void        FillRangeDesc( SwRangeDescriptor &rRangeDesc ) const;
     351             :     bool        ExtendTo( bool bExtendCol, sal_Int32 nFirstNew, sal_Int32 nCount );
     352             : };
     353             : 
     354             : typedef cppu::WeakImplHelper
     355             : <
     356             :     ::com::sun::star::chart2::data::XLabeledDataSequence2,
     357             :     ::com::sun::star::lang::XServiceInfo,
     358             :     ::com::sun::star::util::XModifyListener,
     359             :     ::com::sun::star::lang::XComponent
     360             : >
     361             : SwChartLabeledDataSequenceBaseClass;
     362             : 
     363             : class SwChartLabeledDataSequence :
     364             :     public SwChartLabeledDataSequenceBaseClass
     365             : {
     366             :     ::cppu::OInterfaceContainerHelper                           aEvtListeners;
     367             :     ::cppu::OInterfaceContainerHelper                           aModifyListeners;
     368             : 
     369             :     ::com::sun::star::uno::Reference<
     370             :             ::com::sun::star::chart2::data::XDataSequence >     xData;
     371             :     ::com::sun::star::uno::Reference<
     372             :             ::com::sun::star::chart2::data::XDataSequence >     xLabels;
     373             : 
     374             :     bool    bDisposed;
     375             : 
     376             :     SwChartLabeledDataSequence( const SwChartLabeledDataSequence & ) SAL_DELETED_FUNCTION;
     377             :     SwChartLabeledDataSequence & operator = ( const SwChartLabeledDataSequence & ) SAL_DELETED_FUNCTION;
     378             : 
     379             :     void    SetDataSequence( ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& rxDest, const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& rxSource );
     380             : 
     381             : public:
     382             :     SwChartLabeledDataSequence();
     383             :     virtual ~SwChartLabeledDataSequence();
     384             : 
     385             :     // XLabeledDataSequence
     386             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getValues(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     387             :     virtual void SAL_CALL setValues( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     388             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getLabel(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     389             :     virtual void SAL_CALL setLabel( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     390             : 
     391             :     // XCloneable
     392             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     393             : 
     394             :     // XServiceInfo
     395             :     virtual OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     396             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     397             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     398             : 
     399             :     // XEventListener
     400             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     401             : 
     402             :     // XModifyListener
     403             :     virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     404             : 
     405             :     // XModifyBroadcaster
     406             :     virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     407             :     virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     408             : 
     409             :     // XComponent
     410             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     411             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     412             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     413             : };
     414             : 
     415             : #endif
     416             : 
     417             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11