summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-11-07 09:05:20 +0000
committerjp <jp@openoffice.org>2000-11-07 09:05:20 +0000
commit7d7bcb8609d8c95d66478bff87796a61257e2764 (patch)
tree5f90abfcf6d1d4292276087b8a7d0ee07d1e08bc /sw/source/core
parent20becce7800d426a1bca6c64a0dbb52c6ae0bdd9 (diff)
should changes: SetSeriesAddresses
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/docchart.cxx28
1 files changed, 25 insertions, 3 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx
index eeafdaeaa1dd..94ed9557ac8a 100644
--- a/sw/source/core/doc/docchart.cxx
+++ b/sw/source/core/doc/docchart.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docchart.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-19 00:08:15 $
+ * last change: $Author: jp $ $Date: 2000-11-07 10:05:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,9 @@
#ifndef _SCH_MEMCHRT_HXX
#include <sch/memchrt.hxx>
#endif
+#ifndef _COM_SUN_STAR_CHART_CHARTSERIESADDRESS_HPP_
+#include <com/sun/star/chart/ChartSeriesAddress.hpp>
+#endif
#ifndef _DOC_HXX
#include <doc.hxx>
@@ -253,6 +256,7 @@ SchMemChart *SwTable::UpdateData( SchMemChart* pData,
const SwTblBoxNumFormat& rDfltNumFmt = *(SwTblBoxNumFormat*)
GetDfltAttr( RES_BOXATR_FORMAT );
pData->SetNumberFormatter( GetFrmFmt()->GetDoc()->GetNumberFormatter());
+
int bFirstRow = TRUE;
for( n = nRowStt; n < nLines; ++n )
{
@@ -284,10 +288,28 @@ SchMemChart *SwTable::UpdateData( SchMemChart* pData,
pData->SetNumFormatIdRow( n, rNumFmt.GetValue() );
}
}
-
}
bFirstRow = FALSE;
}
+
+ {
+ com::sun::star::uno::Sequence< com::sun::star::chart::
+ ChartSeriesAddress > aSeriesSeq( nBoxes - nColStt );
+
+ for( USHORT i = nColStt; i < nBoxes; ++i )
+ {
+ const SwTableBox* pSttBox = (*aLines[ nRowStt ])[ i ],
+ * pEndBox = (*aLines[ nLines-1])[ i ];
+ String sSeries( GetFrmFmt()->GetName() );
+ (sSeries.Insert( '<', 0 ) += '.' ) += pSttBox->GetName();
+ ((sSeries += ':' ) += pEndBox->GetName() ) += '>';
+
+ com::sun::star::chart::ChartSeriesAddress aSeries;
+ aSeries.DataRangeAddress = sSeries;
+ aSeriesSeq[ i - nColStt ] = aSeries;
+ }
+ pData->SetSeriesAddresses( aSeriesSeq );
+ }
}
else if( pData )
{