OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLCalculationOptions Struct Reference

Options for workbook/sheet formula recalculation (Phase C / C-deep). More...

#include <XLCalculationEngine.hpp>

Data Fields

bool writeBack {true}
int maxDepth {256}
size_t maxExpandedDeps {4096}
 Cap on expanded range dependencies per formula.
bool propagateDirty {true}
 When markDirty is called, also dirty all transitive dependents.
bool setFullCalcOnLoad {false}
 After recalculate / recalculateAll on a document-backed engine, set the workbook fullCalcOnLoad flag (Excel recalc prompt on open).
std::string circularErrorToken {"#CIRCREF!"}
 Error token returned for circular references (default Excel-ish #CIRCREF!).
bool autoTrackChanges {true}
 When true (default), register with XLDocument to auto-dirty on cell value/formula writes.
bool useDefinedNames {true}
 Load workbook defined names into the dependency extractor (default true for sheet/doc engines).

Detailed Description

Options for workbook/sheet formula recalculation (Phase C / C-deep).

Field Documentation

◆ autoTrackChanges

bool OpenXLSX::XLCalculationOptions::autoTrackChanges {true}

When true (default), register with XLDocument to auto-dirty on cell value/formula writes.

◆ circularErrorToken

std::string OpenXLSX::XLCalculationOptions::circularErrorToken {"#CIRCREF!"}

Error token returned for circular references (default Excel-ish #CIRCREF!).

Stored as XLValueType::Error text.

◆ maxDepth

int OpenXLSX::XLCalculationOptions::maxDepth {256}

Maximum recursion depth for single-cell evaluation.

◆ maxExpandedDeps

size_t OpenXLSX::XLCalculationOptions::maxExpandedDeps {4096}

Cap on expanded range dependencies per formula.

Larger ranges are not expanded into the graph; the cell still reads live values through the resolver during evaluation.

◆ propagateDirty

bool OpenXLSX::XLCalculationOptions::propagateDirty {true}

When markDirty is called, also dirty all transitive dependents.

◆ setFullCalcOnLoad

bool OpenXLSX::XLCalculationOptions::setFullCalcOnLoad {false}

After recalculate / recalculateAll on a document-backed engine, set the workbook fullCalcOnLoad flag (Excel recalc prompt on open).

◆ useDefinedNames

bool OpenXLSX::XLCalculationOptions::useDefinedNames {true}

Load workbook defined names into the dependency extractor (default true for sheet/doc engines).

◆ writeBack

bool OpenXLSX::XLCalculationOptions::writeBack {true}

Write computed values back into worksheet / value map (cached result).


The documentation for this struct was generated from the following file: