LCOV - code coverage report
Current view: top level - libreoffice/sw/inc - unochart.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 9 11.1 %
Date: 2012-12-27 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 _UNOCHART_HXX
      20             : #define _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/XLabeledDataSequence.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>  //OMultiTypeInterfaceContainerHelper
      45             : #include <cppuhelper/implbase2.hxx> // helper for implementations
      46             : #include <cppuhelper/implbase4.hxx> // helper for implementations
      47             : #include <cppuhelper/implbase6.hxx> // helper for implementations
      48             : #include <cppuhelper/implbase10.hxx> // helper for implementations
      49             : #include <cppuhelper/weakref.hxx>
      50             : 
      51             : #include <tools/string.hxx>
      52             : #include <tools/link.hxx>
      53             : #include <vcl/timer.hxx>
      54             : 
      55             : #include <calbck.hxx>
      56             : 
      57             : 
      58             : class SfxItemPropertySet;
      59             : class SwDoc;
      60             : class SwTable;
      61             : class SwTableBox;
      62             : class SwUnoCrsr;
      63             : struct SwRangeDescriptor;
      64             : class SwSelBoxes;
      65             : class SwFrmFmt;
      66             : 
      67             : //////////////////////////////////////////////////////////////////////
      68             : 
      69             : bool FillRangeDescriptor( SwRangeDescriptor &rDesc, const String &rCellRangeName );
      70             : 
      71             : //////////////////////////////////////////////////////////////////////
      72             : 
      73             : class SwChartHelper
      74             : {
      75             : public:
      76             :     static void DoUpdateAllCharts( SwDoc* pDoc );
      77             : };
      78             : 
      79             : //////////////////////////////////////////////////////////////////////
      80             : 
      81             : class SwChartLockController_Helper
      82             : {
      83             :     SwDoc   *pDoc;
      84             : 
      85             :     DECL_LINK( DoUnlockAllCharts, Timer * );
      86             :     Timer   aUnlockTimer;   // timer to unlock chart controllers
      87             :     bool    bIsLocked;
      88             : 
      89             : 
      90             :     // disallow use of d-tor, copy c-tor and assignment operator
      91             :     SwChartLockController_Helper( const SwChartLockController_Helper & );
      92             :     SwChartLockController_Helper & operator = ( const SwChartLockController_Helper & );
      93             : 
      94             :     void LockUnlockAllCharts( sal_Bool bLock );
      95           0 :     void LockAllCharts()    { LockUnlockAllCharts( sal_True ); };
      96          94 :     void UnlockAllCharts()  { LockUnlockAllCharts( sal_False ); };
      97             : 
      98             : public:
      99             :     SwChartLockController_Helper( SwDoc *pDocument );
     100             :     ~SwChartLockController_Helper();
     101             : 
     102             :     void StartOrContinueLocking();
     103             :     void Disconnect();
     104             : };
     105             : 
     106             : //////////////////////////////////////////////////////////////////////
     107             : 
     108             : typedef cppu::WeakImplHelper4
     109             : <
     110             :     ::com::sun::star::chart2::data::XDataProvider,
     111             :     ::com::sun::star::chart2::data::XRangeXMLConversion,
     112             :     ::com::sun::star::lang::XComponent,
     113             :     ::com::sun::star::lang::XServiceInfo
     114             : >
     115             : SwChartDataProviderBaseClass;
     116             : 
     117             : class SwChartDataProvider :
     118             :     public SwChartDataProviderBaseClass,
     119             :     public SwClient
     120             : {
     121             : 
     122             :     // used to keep weak-references to all data-sequences of a single table
     123             :     // see set definition below...
     124             :     struct lt_DataSequenceRef
     125             :     {
     126           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
     127             :         {
     128           0 :             ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > xRef1( xWRef1 );
     129           0 :             ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > xRef2( xWRef2 );
     130           0 :             return xRef1.get() < xRef2.get();
     131             :         }
     132             :     };
     133             :     typedef std::set< ::com::sun::star::uno::WeakReference < ::com::sun::star::chart2::data::XDataSequence >, lt_DataSequenceRef > Set_DataSequenceRef_t;
     134             : 
     135             :     // map of data-sequence sets for each table
     136             :     struct lt_SwTable_Ptr
     137             :     {
     138           0 :         bool operator()( const SwTable *p1, const SwTable *p2 ) const
     139             :         {
     140           0 :             return p1 < p2;
     141             :         }
     142             :     };
     143             :     typedef std::map< const SwTable *, Set_DataSequenceRef_t, lt_SwTable_Ptr > Map_Set_DataSequenceRef_t;
     144             : 
     145             : 
     146             :     // map of all data-sequences provided directly or indirectly (e.g. via
     147             :     // data-source) by this object. Since there is only one object of this type
     148             :     // for each document it should hold references to all used data-sequences for
     149             :     // all tables of the document.
     150             :     mutable Map_Set_DataSequenceRef_t       aDataSequences;
     151             : 
     152             :     ::cppu::OInterfaceContainerHelper       aEvtListeners;
     153             :     const SwDoc *                           pDoc;
     154             :     sal_Bool                                bDisposed;
     155             : 
     156             : 
     157             :     // disallow use of c-tor and assignment operator
     158             :     SwChartDataProvider( const SwChartDataProvider & );
     159             :     SwChartDataProvider & operator = ( const SwChartDataProvider & );
     160             : 
     161             :     ::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, sal_Bool bTestOnly = sal_False ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     162             :     ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL Impl_createDataSequenceByRangeRepresentation( const ::rtl::OUString& aRangeRepresentation, sal_Bool bTestOnly = sal_False  ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     163             : 
     164             :     rtl::OUString GetBrokenCellRangeForExport( const rtl::OUString &rCellRangeRepresentation );
     165             : 
     166             : protected:
     167             :     //SwClient
     168             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
     169             : 
     170             : public:
     171             :     SwChartDataProvider( const SwDoc* pDoc );
     172             :     virtual ~SwChartDataProvider();
     173             : 
     174             :     // XDataProvider
     175             :     virtual ::sal_Bool SAL_CALL createDataSourcePossible( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments ) throw (::com::sun::star::uno::RuntimeException);
     176             :     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);
     177             :     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);
     178             :     virtual ::sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible( const ::rtl::OUString& aRangeRepresentation ) throw (::com::sun::star::uno::RuntimeException);
     179             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation( const ::rtl::OUString& aRangeRepresentation ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     180             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XRangeSelection > SAL_CALL getRangeSelection(  ) throw (::com::sun::star::uno::RuntimeException);
     181             : 
     182             :     // XRangeXMLConversion
     183             :     virtual ::rtl::OUString SAL_CALL convertRangeToXML( const ::rtl::OUString& aRangeRepresentation ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     184             :     virtual ::rtl::OUString SAL_CALL convertRangeFromXML( const ::rtl::OUString& aXMLRange ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
     185             : 
     186             :     // XComponent
     187             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException);
     188             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     189             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     190             : 
     191             :     // XServiceInfo
     192             :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
     193             :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
     194             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
     195             : 
     196             :     SwFrmFmt*       GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); }
     197             : 
     198             :     void        AddDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
     199             :     void        RemoveDataSequence( const SwTable &rTable, ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > &rxDataSequence );
     200             : 
     201             :     // will send modifdied events for all data-sequences of the table
     202             :     void        InvalidateTable( const SwTable *pTable );
     203             :     sal_Bool    DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
     204             :     void        DisposeAllDataSequences( const SwTable *pTable );
     205             : 
     206             :     // functionality needed to get notified about new added rows/cols
     207             :     void        AddRowCols( const SwTable &rTable, const SwSelBoxes& rBoxes, sal_uInt16 nLines, sal_Bool bBehind );
     208             : };
     209             : 
     210             : //////////////////////////////////////////////////////////////////////
     211             : 
     212             : typedef cppu::WeakImplHelper2
     213             : <
     214             :     ::com::sun::star::chart2::data::XDataSource,
     215             :     ::com::sun::star::lang::XServiceInfo
     216             : >
     217             : SwChartDataSourceBaseClass;
     218             : 
     219             : class SwChartDataSource :
     220             :     public SwChartDataSourceBaseClass
     221             : {
     222             :     com::sun::star::uno::Sequence<
     223             :         com::sun::star::uno::Reference<
     224             :             com::sun::star::chart2::data::XLabeledDataSequence > > aLDS;
     225             : 
     226             :     // disallow use of c-tor and assignment operator
     227             :     SwChartDataSource( const SwChartDataSource & );
     228             :     SwChartDataSource & operator = ( const SwChartDataSource & );
     229             : 
     230             : public:
     231             :     SwChartDataSource( const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::chart2::data::XLabeledDataSequence > > &rLDS );
     232             :     virtual ~SwChartDataSource();
     233             : 
     234             :     // XDataSource
     235             :     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);
     236             : 
     237             :     // XServiceInfo
     238             :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
     239             :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
     240             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
     241             : };
     242             : 
     243             : //////////////////////////////////////////////////////////////////////
     244             : 
     245             : typedef cppu::WeakImplHelper10
     246             : <
     247             :     ::com::sun::star::chart2::data::XDataSequence,
     248             :     ::com::sun::star::chart2::data::XTextualDataSequence,
     249             :     ::com::sun::star::chart2::data::XNumericalDataSequence,
     250             :     ::com::sun::star::util::XCloneable,
     251             :     ::com::sun::star::beans::XPropertySet,
     252             :     ::com::sun::star::lang::XServiceInfo,
     253             :     ::com::sun::star::lang::XUnoTunnel,
     254             :     ::com::sun::star::util::XModifiable,
     255             :     ::com::sun::star::lang::XEventListener,
     256             :     ::com::sun::star::lang::XComponent
     257             : >
     258             : SwChartDataSequenceBaseClass;
     259             : 
     260             : class SwChartDataSequence :
     261             :     public SwChartDataSequenceBaseClass,
     262             :     public SwClient
     263             : {
     264             :     ::cppu::OInterfaceContainerHelper                       aEvtListeners;
     265             :     ::cppu::OInterfaceContainerHelper                       aModifyListeners;
     266             :     ::com::sun::star::chart2::data::DataSequenceRole        aRole;
     267             : 
     268             :     String  aRowLabelText;
     269             :     String  aColLabelText;
     270             : 
     271             :     // holds a reference to the data-provider to guarantee it's lifetime last as
     272             :     // long as the pointer may be used.
     273             :     ::com::sun::star::uno::Reference< com::sun::star::chart2::data::XDataProvider >    xDataProvider;
     274             :     SwChartDataProvider *                   pDataProvider;
     275             : 
     276             :     SwUnoCrsr*                  pTblCrsr;   // cursor spanned over cells to use
     277             :     SwDepend                    aCursorDepend; //the cursor is removed after the doc has been removed
     278             : 
     279             :     const SfxItemPropertySet*   _pPropSet;
     280             : 
     281             :     sal_Bool    bDisposed;
     282             : 
     283             :     // disallow use of c-tor and assignment operator
     284             :     SwChartDataSequence( const SwChartDataSequence &rObj );
     285             :     SwChartDataSequence & operator = ( const SwChartDataSequence & );
     286             : 
     287             : protected:
     288             :     //SwClient
     289             :     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
     290             : 
     291             : public:
     292             :     SwChartDataSequence( SwChartDataProvider &rProvider,
     293             :                          SwFrmFmt   &rTblFmt,
     294             :                          SwUnoCrsr  *pTableCursor );
     295             :     virtual ~SwChartDataSequence();
     296             : 
     297             :     static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     298             : 
     299             :     //XUnoTunnel
     300             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
     301             : 
     302             :     // XDataSequence
     303             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getData(  ) throw (::com::sun::star::uno::RuntimeException);
     304             :     virtual ::rtl::OUString SAL_CALL getSourceRangeRepresentation(  ) throw (::com::sun::star::uno::RuntimeException);
     305             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL generateLabel( ::com::sun::star::chart2::data::LabelOrigin eLabelOrigin ) throw (::com::sun::star::uno::RuntimeException);
     306             :     virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     307             : 
     308             :     // XTextualDataSequence
     309             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getTextualData(  ) throw (::com::sun::star::uno::RuntimeException);
     310             : 
     311             :     // XNumericalDataSequence
     312             :     virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getNumericalData(  ) throw (::com::sun::star::uno::RuntimeException);
     313             : 
     314             :     // XCloneable
     315             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException);
     316             : 
     317             :     // XPropertySet
     318             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
     319             :     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);
     320             :     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);
     321             :     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);
     322             :     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);
     323             :     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);
     324             :     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);
     325             : 
     326             :     // XServiceInfo
     327             :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
     328             :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
     329             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
     330             : 
     331             :     // XModifiable
     332             :     virtual ::sal_Bool SAL_CALL isModified(  ) throw (::com::sun::star::uno::RuntimeException);
     333             :     virtual void SAL_CALL setModified( ::sal_Bool bModified ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException);
     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);
     337             :     virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     338             : 
     339             :     // XEventListener
     340             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
     341             : 
     342             :     // XComponent
     343             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException);
     344             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     345             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     346             : 
     347           0 :     SwFrmFmt*   GetFrmFmt() const { return (SwFrmFmt*)GetRegisteredIn(); }
     348             :     sal_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             : //////////////////////////////////////////////////////////////////////
     355             : 
     356             : typedef cppu::WeakImplHelper6
     357             : <
     358             :     ::com::sun::star::chart2::data::XLabeledDataSequence,
     359             :     ::com::sun::star::util::XCloneable,
     360             :     ::com::sun::star::lang::XServiceInfo,
     361             :     ::com::sun::star::util::XModifyListener,
     362             :     ::com::sun::star::util::XModifyBroadcaster,
     363             :     ::com::sun::star::lang::XComponent
     364             : >
     365             : SwChartLabeledDataSequenceBaseClass;
     366             : 
     367             : class SwChartLabeledDataSequence :
     368             :     public SwChartLabeledDataSequenceBaseClass
     369             : {
     370             :     ::cppu::OInterfaceContainerHelper                           aEvtListeners;
     371             :     ::cppu::OInterfaceContainerHelper                           aModifyListeners;
     372             : 
     373             :     ::com::sun::star::uno::Reference<
     374             :             ::com::sun::star::chart2::data::XDataSequence >     xData;
     375             :     ::com::sun::star::uno::Reference<
     376             :             ::com::sun::star::chart2::data::XDataSequence >     xLabels;
     377             : 
     378             :     sal_Bool    bDisposed;
     379             : 
     380             :     // disallow use of c-tor and assignment operator
     381             :     SwChartLabeledDataSequence( const SwChartLabeledDataSequence & );
     382             :     SwChartLabeledDataSequence & operator = ( const SwChartLabeledDataSequence & );
     383             : 
     384             :     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 );
     385             : 
     386             : 
     387             : public:
     388             :     SwChartLabeledDataSequence();
     389             :     virtual ~SwChartLabeledDataSequence();
     390             : 
     391             :     // XLabeledDataSequence
     392             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getValues(  ) throw (::com::sun::star::uno::RuntimeException);
     393             :     virtual void SAL_CALL setValues( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence ) throw (::com::sun::star::uno::RuntimeException);
     394             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getLabel(  ) throw (::com::sun::star::uno::RuntimeException);
     395             :     virtual void SAL_CALL setLabel( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence ) throw (::com::sun::star::uno::RuntimeException);
     396             : 
     397             :     // XCloneable
     398             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException);
     399             : 
     400             :     // XServiceInfo
     401             :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
     402             :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
     403             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
     404             : 
     405             :     // XEventListener
     406             :     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
     407             : 
     408             :     // XModifyListener
     409             :     virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
     410             : 
     411             :     // XModifyBroadcaster
     412             :     virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     413             :     virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     414             : 
     415             :     // XComponent
     416             :     virtual void SAL_CALL dispose(  ) throw (::com::sun::star::uno::RuntimeException);
     417             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     418             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     419             : };
     420             : 
     421             : //////////////////////////////////////////////////////////////////////
     422             : 
     423             : #endif
     424             : 
     425             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10