Files
ElyOffice/crates/ely-lok/src/commands/calc.rs
T
ZacharyZhang-NY b7fca0146d Ely Office: six offline-first desktop apps in Rust and GPUI
ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git),
ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
2026-10-08 21:20:08 -04:00

42 lines
1.1 KiB
Rust

//! Spreadsheet rows: calculation, names, error tracing.
use super::{Arg, Check, Command, command};
/// Calculation, named ranges and tracing (TABLE-03..06).
pub(super) const ROWS: &[Command] = &[
command(
"calc.auto",
".uno:AutomaticCalculation",
&[Arg::Bool("AutomaticCalculation")],
Check::Finished,
),
command("calc.now", ".uno:Calculate", &[], Check::Finished),
command("calc.all", ".uno:CalculateHard", &[], Check::Finished),
command(
"names.define",
".uno:DefineName",
&[Arg::Text("Name"), Arg::Text("Symbol"), Arg::Loose("Scope")],
Check::Undoable,
),
command(
"names.remove",
".uno:DefineName",
&[Arg::Text("Name"), Arg::Loose("Scope")],
Check::Undoable,
),
command("trace.error", ".uno:ShowErrors", &[], Check::Undoable),
command(
"trace.precedents",
".uno:ShowPrecedents",
&[],
Check::Undoable,
),
command(
"trace.dependents",
".uno:ShowDependents",
&[],
Check::Undoable,
),
command("trace.clear", ".uno:ClearArrows", &[], Check::Undoable),
];