Lines 19-26
Link Here
|
19 |
* |
19 |
* |
20 |
*************************************************************/ |
20 |
*************************************************************/ |
21 |
|
21 |
|
22 |
|
|
|
23 |
|
24 |
// MARKER(update_precomp.py): autogen include statement, do not remove |
22 |
// MARKER(update_precomp.py): autogen include statement, do not remove |
25 |
#include "precompiled_sc.hxx" |
23 |
#include "precompiled_sc.hxx" |
26 |
// INCLUDE --------------------------------------------------------------- |
24 |
// INCLUDE --------------------------------------------------------------- |
Lines 62-67
Link Here
|
62 |
#include "parclass.hxx" |
60 |
#include "parclass.hxx" |
63 |
#include "externalrefmgr.hxx" |
61 |
#include "externalrefmgr.hxx" |
64 |
#include "doubleref.hxx" |
62 |
#include "doubleref.hxx" |
|
|
63 |
#include "token.hxx" |
65 |
|
64 |
|
66 |
#include <math.h> |
65 |
#include <math.h> |
67 |
#include <float.h> |
66 |
#include <float.h> |
Lines 1170-1175
Link Here
|
1170 |
SingleRefToVars( static_cast<ScToken*>(p)->GetSingleRef(), rCol, rRow, rTab); |
1169 |
SingleRefToVars( static_cast<ScToken*>(p)->GetSingleRef(), rCol, rRow, rTab); |
1171 |
if ( pDok->aTableOpList.Count() > 0 ) |
1170 |
if ( pDok->aTableOpList.Count() > 0 ) |
1172 |
ReplaceCell( rCol, rRow, rTab ); |
1171 |
ReplaceCell( rCol, rRow, rTab ); |
|
|
1172 |
DELETEZ(pLastStackRefToken); |
1173 |
pLastStackRefToken = static_cast<ScToken*>(p->Clone()); |
1174 |
((ScSingleRefToken*)pLastStackRefToken)->GetSingleRef().SetFlag3D(sal_True); |
1173 |
break; |
1175 |
break; |
1174 |
default: |
1176 |
default: |
1175 |
SetError( errIllegalParameter); |
1177 |
SetError( errIllegalParameter); |
Lines 1201-1206
Link Here
|
1201 |
rAdr.Set( nCol, nRow, nTab ); |
1203 |
rAdr.Set( nCol, nRow, nTab ); |
1202 |
if ( pDok->aTableOpList.Count() > 0 ) |
1204 |
if ( pDok->aTableOpList.Count() > 0 ) |
1203 |
ReplaceCell( rAdr ); |
1205 |
ReplaceCell( rAdr ); |
|
|
1206 |
DELETEZ(pLastStackRefToken); |
1207 |
pLastStackRefToken = static_cast<ScToken*>(p->Clone()); |
1208 |
((ScSingleRefToken*)pLastStackRefToken)->GetSingleRef().SetFlag3D(sal_True); |
1204 |
} |
1209 |
} |
1205 |
break; |
1210 |
break; |
1206 |
default: |
1211 |
default: |
Lines 1283-1288
Link Here
|
1283 |
case svDoubleRef: |
1288 |
case svDoubleRef: |
1284 |
DoubleRefToVars( static_cast<ScToken*>(p), rCol1, rRow1, rTab1, rCol2, rRow2, rTab2, |
1289 |
DoubleRefToVars( static_cast<ScToken*>(p), rCol1, rRow1, rTab1, rCol2, rRow2, rTab2, |
1285 |
bDontCheckForTableOp); |
1290 |
bDontCheckForTableOp); |
|
|
1291 |
DELETEZ(pLastStackRefToken); |
1292 |
pLastStackRefToken = static_cast<ScToken*>(p->Clone()); |
1293 |
((ScDoubleRefToken*)pLastStackRefToken)->GetSingleRef().SetFlag3D(sal_True); |
1286 |
break; |
1294 |
break; |
1287 |
default: |
1295 |
default: |
1288 |
SetError( errIllegalParameter); |
1296 |
SetError( errIllegalParameter); |
Lines 1327-1332
Link Here
|
1327 |
case svDoubleRef: |
1335 |
case svDoubleRef: |
1328 |
--sp; |
1336 |
--sp; |
1329 |
DoubleRefToRange( p->GetDoubleRef(), rRange); |
1337 |
DoubleRefToRange( p->GetDoubleRef(), rRange); |
|
|
1338 |
DELETEZ(pLastStackRefToken); |
1339 |
pLastStackRefToken = static_cast<ScToken*>(p->Clone()); |
1340 |
((ScDoubleRefToken*)pLastStackRefToken)->GetSingleRef().SetFlag3D(sal_True); |
1330 |
break; |
1341 |
break; |
1331 |
case svRefList: |
1342 |
case svRefList: |
1332 |
{ |
1343 |
{ |
Lines 1373-1378
Link Here
|
1373 |
break; |
1384 |
break; |
1374 |
case svDoubleRef: |
1385 |
case svDoubleRef: |
1375 |
DoubleRefToRange( static_cast<ScToken*>(p)->GetDoubleRef(), rRange, bDontCheckForTableOp); |
1386 |
DoubleRefToRange( static_cast<ScToken*>(p)->GetDoubleRef(), rRange, bDontCheckForTableOp); |
|
|
1387 |
DELETEZ(pLastStackRefToken); |
1388 |
pLastStackRefToken = static_cast<ScToken*>(p->Clone()); |
1389 |
((ScDoubleRefToken*)pLastStackRefToken)->GetSingleRef().SetFlag3D(sal_True); |
1376 |
break; |
1390 |
break; |
1377 |
default: |
1391 |
default: |
1378 |
SetError( errIllegalParameter); |
1392 |
SetError( errIllegalParameter); |
Lines 3286-3291
Link Here
|
3286 |
pMyFormulaCell( pCell ), |
3300 |
pMyFormulaCell( pCell ), |
3287 |
pFormatter( pDoc->GetFormatTable() ), |
3301 |
pFormatter( pDoc->GetFormatTable() ), |
3288 |
mnStringNoValueError( errNoValue), |
3302 |
mnStringNoValueError( errNoValue), |
|
|
3303 |
pLastStackRefToken( NULL ), |
3304 |
bRefFunc( false ), |
3289 |
bCalcAsShown( pDoc->GetDocOptions().IsCalcAsShown() ) |
3305 |
bCalcAsShown( pDoc->GetDocOptions().IsCalcAsShown() ) |
3290 |
{ |
3306 |
{ |
3291 |
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScTTT" ); |
3307 |
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScTTT" ); |
Lines 3317-3322
Link Here
|
3317 |
delete pStackObj; |
3333 |
delete pStackObj; |
3318 |
if (pTokenMatrixMap) |
3334 |
if (pTokenMatrixMap) |
3319 |
delete pTokenMatrixMap; |
3335 |
delete pTokenMatrixMap; |
|
|
3336 |
DELETEZ(pLastStackRefToken); |
3320 |
} |
3337 |
} |
3321 |
|
3338 |
|
3322 |
|
3339 |
|
Lines 3865-3870
Link Here
|
3865 |
|
3882 |
|
3866 |
// End: obtain result |
3883 |
// End: obtain result |
3867 |
|
3884 |
|
|
|
3885 |
bRefFunc = false; |
3868 |
if( sp ) |
3886 |
if( sp ) |
3869 |
{ |
3887 |
{ |
3870 |
pCur = pStack[ sp-1 ]; |
3888 |
pCur = pStack[ sp-1 ]; |
Lines 3891-3896
Link Here
|
3891 |
break; |
3909 |
break; |
3892 |
case svSingleRef : |
3910 |
case svSingleRef : |
3893 |
{ |
3911 |
{ |
|
|
3912 |
bRefFunc = true; |
3894 |
ScAddress aAdr; |
3913 |
ScAddress aAdr; |
3895 |
PopSingleRef( aAdr ); |
3914 |
PopSingleRef( aAdr ); |
3896 |
if( !nGlobalError ) |
3915 |
if( !nGlobalError ) |
Lines 3911-3916
Link Here
|
3911 |
} |
3930 |
} |
3912 |
else |
3931 |
else |
3913 |
{ |
3932 |
{ |
|
|
3933 |
bRefFunc = true; |
3914 |
ScRange aRange; |
3934 |
ScRange aRange; |
3915 |
PopDoubleRef( aRange ); |
3935 |
PopDoubleRef( aRange ); |
3916 |
ScAddress aAdr; |
3936 |
ScAddress aAdr; |