fpspreadsheet: Rearrange cell comment architecture: to save memory cell comments are now stored in the worksheet's avltree "Comments". Replace cell's "CalcState" by more general "Flags" which signals that a cell contains a comment (to be extended...)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-02-15 11:45:08 +00:00
parent 8e7a3b741a
commit 03efde6cab
10 changed files with 451 additions and 143 deletions

View File

@ -3843,7 +3843,7 @@ begin
cell := FCell;
if (cell <> nil) and HasFormula(cell) then
case cell^.CalcState of
case FWorksheet.GetCalcState(cell) of
csNotCalculated:
Worksheet.CalcFormula(cell);
csCalculating:
@ -3942,9 +3942,11 @@ begin
begin
cell := FWorksheet.FindCell(r, c);
if HasFormula(cell) then
case cell^.CalcState of
csNotCalculated: FWorksheet.CalcFormula(cell);
csCalculating : raise Exception.Create(SErrCircularReference);
case FWorksheet.GetCalcState(cell) of
csNotCalculated:
FWorksheet.CalcFormula(cell);
csCalculating:
raise ECalcEngine.Create(SErrCircularReference);
end;
end;