1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

Spreadsheet: Add a 'contents' getter/setter to Position

This makes it possible to change the cells' contents programmatically!
This commit is contained in:
AnotherTest 2020-12-28 18:33:45 +03:30 committed by Andreas Kling
parent cdf87d2204
commit f17874ecd2
3 changed files with 96 additions and 2 deletions

View file

@ -44,6 +44,8 @@ public:
virtual bool put(const JS::PropertyName&, JS::Value value, JS::Value receiver = {}) override;
virtual void initialize() override;
JS_DECLARE_NATIVE_FUNCTION(get_real_cell_contents);
JS_DECLARE_NATIVE_FUNCTION(set_real_cell_contents);
JS_DECLARE_NATIVE_FUNCTION(parse_cell_name);
JS_DECLARE_NATIVE_FUNCTION(current_cell_position);
JS_DECLARE_NATIVE_FUNCTION(column_index);