diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-02-21 12:33:14 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-02-21 12:33:14 +0000 |
commit | c7eacfd4305037f20f6fed40398032e1b3220377 (patch) | |
tree | ab13b2c435945dd3e5a89ba4ac765d4a6f84d531 /sc/source/filter/excel/xipivot.cxx | |
parent | c1f5d5b411c8f9e4f42150534a0d66f7d71087d4 (diff) |
INTEGRATION: CWS dr32 (1.7.146); FILE MERGED
2005/02/02 14:14:54 dr 1.7.146.2: #b6219324# #i23079# #i27871# #i35812# #i37725# new address converter, import/export of view settings
2005/01/31 14:00:51 dr 1.7.146.1: #b6219324# #i23079# #i27871# #i35812# #i37725# new ScExtDocOptions, new Excel import/export of view settings
Diffstat (limited to 'sc/source/filter/excel/xipivot.cxx')
-rw-r--r-- | sc/source/filter/excel/xipivot.cxx | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx index efef54c6e90b..ed33d1a0065c 100644 --- a/sc/source/filter/excel/xipivot.cxx +++ b/sc/source/filter/excel/xipivot.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xipivot.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: kz $ $Date: 2004-10-04 20:07:56 $ + * last change: $Author: vg $ $Date: 2005-02-21 13:33:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -112,8 +112,6 @@ #include "xiescher.hxx" #endif -#include "root.hxx" - using ::rtl::OUString; using ::com::sun::star::sheet::DataPilotFieldOrientation; using ::com::sun::star::sheet::DataPilotFieldOrientation_DATA; @@ -607,9 +605,8 @@ void XclImpPivotCache::ReadDconref( XclImpStream& rStrm ) if( maTabName.Len() ) return; - sal_uInt16 nStartRow, nEndRow; - sal_uInt8 nStartCol, nEndCol; - rStrm >> nStartRow >> nEndRow >> nStartCol >> nEndCol; + XclRange aXclRange( ScAddress::UNINITIALIZED ); + aXclRange.Read( rStrm, false ); String aEncUrl( rStrm.ReadUniString() ); XclImpUrlHelper::DecodeUrl( maUrl, maTabName, mbSelf, GetRoot(), aEncUrl ); @@ -618,11 +615,10 @@ void XclImpPivotCache::ReadDconref( XclImpStream& rStrm ) maTabName = maUrl; maUrl.Erase(); } + // Do not convert maTabName to Calc sheet name -> original name is used to find the sheet. // Sheet index will be found later in XclImpPivotTable::Apply() (sheet may not exist yet). - // Do not convert maTabName to Calc sheet name -> original name is used to find the sheet. - maSrcRange = XclTools::MakeScRange( nStartCol, nStartRow, 0, nEndCol, nEndRow, 0 ); - CheckCellRange( maSrcRange ); + GetAddressConverter().ConvertRange( maSrcRange, aXclRange, 0, 0, true ); } void XclImpPivotCache::ReadSxvs( XclImpStream& rStrm ) @@ -1072,10 +1068,8 @@ void XclImpPivotTable::ReadSxview( XclImpStream& rStrm ) { rStrm >> maPTInfo; - maOutputRange = XclTools::MakeScRange( - maPTInfo.mnFirstCol, maPTInfo.mnFirstRow, GetCurrScTab(), - maPTInfo.mnLastCol, maPTInfo.mnLastRow, GetCurrScTab() ); - CheckCellRange( maOutputRange ); + GetAddressConverter().ConvertRange( + maOutScRange, maPTInfo.maOutXclRange, GetCurrScTab(), GetCurrScTab(), true ); mpPCache = GetPivotTableManager().GetPivotCache( maPTInfo.mnCacheIdx ); mpCurrField = 0; @@ -1242,10 +1236,10 @@ void XclImpPivotTable::Apply() const aDesc.aSourceRange = aSrcRange; // adjust output range to include the page fields - ScRange aOutRange( maOutputRange ); + ScRange aOutRange( maOutScRange ); if( !maPageFields.empty() ) { - SCsROW nDecRows = ::std::min< SCsROW >( maOutputRange.aStart.Row(), maPageFields.size() + 1 ); + SCsROW nDecRows = ::std::min< SCsROW >( aOutRange.aStart.Row(), maPageFields.size() + 1 ); aOutRange.aStart.IncRow( -nDecRows ); } |