We don't need to set document status modified & broadcast changes
on every single addition of range names during document import.
Doing so would make the document import painfully slow esp with
docs with lots of range names defined. (n#634257)
Previously, sheet had its default print option set to "print nothing",
but when all sheets have "print nothing" option set, calc would print
as if they all have "print entire sheet" option. The problem comes
when you set a custom print area to one sheet, which causes calc to
skip all the other sheets from printing.
This is not intuitive at all. Let's change the default print option
to "print entire sheet". This also matches Excel's behavior BTW.
(n#650551)
When importing xls document containing named ranges on sheets higher
than 256 (max number of sheets Calc supports currently), Calc would
crash. We need to check for the upper boundary condition before
accessing the array by index to prevent crash. (n#649941)
When importing xls document containing named ranges on sheets higher
than 256 (max number of sheets Calc supports currently), Calc would
crash. We need to check for the upper boundary condition before
accessing the array by index to prevent crash. (n#649941)
Replaced use of std::vector being used as a c-style array, with
boost::ptr_vector to make the code simpler. This change in fact
slightly improves import performance.
When starting from a fresh config, Calc failed to assign default 'Calc A1'
syntax unless the user specifically goes to the Options page and sets the
formula syntax in the Calc - Formula options page. This caused e.g.
print range editing to fail miserably. (fdo#31041)
When starting from a fresh config, Calc failed to assign default 'Calc A1'
syntax unless the user specifically goes to the Options page and sets the
formula syntax in the Calc - Formula options page. This caused e.g.
print range editing to fail miserably. (fdo#31041)