/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
if(!rtl::math::approxEqual(1.0, rDoc.GetValue(1, 2, 0)))
{ // Cell B3 in Sheet1 has the cumulative success/failure result. // Try to find the actual failure. for(SCTAB tab = 1; tab <= rDoc.GetMaxTableNumber(); ++tab)
{ // Column "Function" has the result value, column "Expected" has the expected // value, Column "Correct" has the check result (1 or 0), column "FunctionString" has // the formula text.
SCCOL nExpectedCol = 0;
SCCOL nCorrectCol = 0;
SCCOL nFunctStringCol = 0; for(SCCOL col = 0; col <= rDoc.MaxCol(); ++col)
{ if(rDoc.GetString(col, 0, tab) == "Expected")
nExpectedCol = col; elseif(rDoc.GetString(col, 0, tab) == "Correct")
nCorrectCol = col; elseif(rDoc.GetString(col, 0, tab) == "FunctionString")
{
nFunctStringCol = col; break; // Should be the last one
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.