diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-02 05:08:32 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:30 +0100 |
commit | 55656ee2e88b7a79a265f43fc3746a7e2186301e (patch) | |
tree | eebc114793896d075fb5f361f01220c5fbfbc1d1 /sc/inc/chart2uno.hxx | |
parent | 893a7fc4e494f58d105f567c652bd2b6c6c825f8 (diff) |
some improvements for the time based charting
The updating seems to work. It just does not update the references yet.
Change-Id: I0a971dbe2beb113c1c3e9ef103d77d5d8c7174a0
Diffstat (limited to 'sc/inc/chart2uno.hxx')
-rw-r--r-- | sc/inc/chart2uno.hxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx index 8f7e5dc67761..ce36c268dea1 100644 --- a/sc/inc/chart2uno.hxx +++ b/sc/inc/chart2uno.hxx @@ -42,7 +42,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/XCloneable.hpp> #include <com/sun/star/util/XModifyBroadcaster.hpp> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase5.hxx> #include <cppuhelper/implbase8.hxx> #include <rtl/ustring.hxx> @@ -190,9 +190,8 @@ private: // DataSource class ScChart2DataSource : public - ::cppu::WeakImplHelper3< + ::cppu::WeakImplHelper2< ::com::sun::star::chart2::data::XDataSource, - com::sun::star::chart2::XTimeBased, ::com::sun::star::lang::XServiceInfo>, SfxListener { @@ -207,10 +206,6 @@ public: ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() throw (::com::sun::star::uno::RuntimeException); - // XTimeBased - virtual sal_Bool switchToNext() throw( - ::com::sun::star::uno::RuntimeException); - // XServiceInfo virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException); @@ -226,19 +221,12 @@ public: void AddLabeledSequence(const com::sun::star::uno::Reference < com::sun::star::chart2::data::XLabeledDataSequence >& xNew); - void SetTimeBased(SCTAB nTimeBasedStart, SCTAB nTimeBasedEnd); - private: ScDocument* m_pDocument; typedef std::list < com::sun::star::uno::Reference< com::sun::star::chart2::data::XLabeledDataSequence > > LabeledList; LabeledList m_aLabeledSequences; - bool bTimeBased; - SCTAB mnTimeBasedStart; - SCTAB mnTimeBasedEnd; - SCTAB mnCurrentTab; - }; // DataSequence @@ -292,6 +280,7 @@ public: // XTimeBased virtual sal_Bool switchToNext() throw (::com::sun::star::uno::RuntimeException); + virtual sal_Bool setToPointInTime(sal_Int32 nPoint) throw (::com::sun::star::uno::RuntimeException); // XPropertySet virtual ::com::sun::star::uno::Reference< @@ -475,6 +464,12 @@ private: bool m_bGotDataChangedHint; bool m_bExtDataRebuildQueued; + + bool mbTimeBased; + SCTAB mnTimeBasedStart; + SCTAB mnTimeBasedEnd; + SCTAB mnCurrentTab; + }; #endif // SC_CHART2UNO_HXX |