Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 07/13/2012 11:14 AM, Eike Rathke wrote:
So, after import, is a complete matrix already set as a result when
SetMatColsRows() is called? And if so, how? Or are only individual
results set at the cells? In which case setting the formula cell's
matrix dimension indeed should overwrite the result of the top left cell
until that is interpreted.
Hi, Eike,

During import when the matrix formula cell is encountered, ScMyTables::AddMatrixRange->ScDocument::InsertMatrixFormula calls ScFormulaCell::SetMatColsRows then (InsertMatrixFormula) sets the matrix formula cell (top left) and then the matrix reference cells. http://opengrok.libreoffice.org/xref/core/sc/source/core/data/documen4.cxx#121 . After this, the top left matrix formula result is set with ScFormulaCell::SetHybridString or SetHybridDouble. As the matrix reference cells are encountered during import, their result is also set with ScFormulaCell::SetHybridString or SetHybridDouble.

--Daniel

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.