diff options
Diffstat (limited to 'app/source/Cplt/Model/Template/TableTemplate.hpp')
-rw-r--r-- | app/source/Cplt/Model/Template/TableTemplate.hpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/app/source/Cplt/Model/Template/TableTemplate.hpp b/app/source/Cplt/Model/Template/TableTemplate.hpp index 3e931d4..e0dea09 100644 --- a/app/source/Cplt/Model/Template/TableTemplate.hpp +++ b/app/source/Cplt/Model/Template/TableTemplate.hpp @@ -11,11 +11,9 @@ #include <string_view> #include <vector> -class TableCell -{ +class TableCell { public: - enum TextAlignment - { + enum TextAlignment { /// For horizontal alignment, this means align left. For vertical alignment, this means align top. AlignAxisMin, /// Align middle of the text to the middle of the axis. @@ -24,8 +22,7 @@ public: AlignAxisMax, }; - enum CellType - { + enum CellType { ConstantCell, SingularParametricCell, ArrayParametricCell, @@ -89,8 +86,7 @@ public: /// \see TableCell /// \see TableInstantiationParameters /// \see TableTemplate -class TableArrayGroup -{ +class TableArrayGroup { public: /// Parameter name mapped to cell location (index from LeftCell). tsl::array_map<char, int> mName2Cell; @@ -119,8 +115,7 @@ struct lxw_worksheet; /// An object containing the necessary information to instantiate a table template. /// \see TableTemplate -class TableInstantiationParameters -{ +class TableInstantiationParameters { private: const TableTemplate* mTable; @@ -144,8 +139,7 @@ public: /// parametric rows/columns, and grids are also supported. /// /// This current supports exporting to xlsx files. -class TableTemplate : public Template -{ +class TableTemplate : public Template { friend class TableSingleParamsIter; friend class TableArrayGroupsIter; class Private; @@ -201,15 +195,13 @@ public: /// Find an array group by its name. TableArrayGroup* FindArrayGroup(std::string_view name); - enum MergeCellsResult - { + enum MergeCellsResult { MCR_CellAlreadyMerged, MCR_Success, }; MergeCellsResult MergeCells(Vec2i topLeft, Vec2i bottomRight); - enum BreakCellsResult - { + enum BreakCellsResult { BCR_CellNotMerged, BCR_Success, }; |