diff options
Diffstat (limited to 'Applications/Spreadsheet/Cell.h')
-rw-r--r-- | Applications/Spreadsheet/Cell.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Applications/Spreadsheet/Cell.h b/Applications/Spreadsheet/Cell.h index 532cb5c6af..3942d83c94 100644 --- a/Applications/Spreadsheet/Cell.h +++ b/Applications/Spreadsheet/Cell.h @@ -27,6 +27,7 @@ #pragma once #include "CellType/Type.h" +#include "ConditionalFormatting.h" #include "Forward.h" #include "JSIntegration.h" #include <AK/String.h> @@ -62,6 +63,14 @@ struct Cell : public Weakable<Cell> { void set_type(const CellType*); void set_type_metadata(CellTypeMetadata&&); + const Format& evaluated_formats() const { return m_evaluated_formats; } + const Vector<ConditionalFormat>& conditional_formats() const { return m_conditional_formats; } + void set_conditional_formats(Vector<ConditionalFormat>&& fmts) + { + dirty = true; + m_conditional_formats = move(fmts); + } + String typed_display() const; JS::Value typed_js_data() const; @@ -91,6 +100,9 @@ struct Cell : public Weakable<Cell> { const CellType* m_type { nullptr }; CellTypeMetadata m_type_metadata; + Vector<ConditionalFormat> m_conditional_formats; + Format m_evaluated_formats; + private: void update_data(); }; |