Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
HtmlTable.h
1/*
2 * HalHtmlTable.h
3 *
4 * Created on: 30-04-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_FEATURES_IO_HTML_TABLE_H_
10#define HAL_FEATURES_IO_HTML_TABLE_H_
11#include "HtmlObject.h"
12
13#include <initializer_list>
14namespace Hal {
15 namespace HtmlTableRowClass {
16 TString LightBlue();
17 TString MedBlue();
18 TString DarkBlue();
19 TString LightGreen();
20 TString Green(); // doesn't exist yet
21 TString DarkGreen();
22 TString Yellow();
23 TString Grey();
24 TString Red();
25 TString Violet();
26
27 TString DefStyle();
28 TString LegendStyle();
29 TString TitleStyle();
30 TString ExtraStyle();
31 TString TaskStyle();
32 TString ExpandableStyle();
33 TString SummaryStyle();
34 } // namespace HtmlTableRowClass
35
36 class HtmlTable : public HtmlObject {
37 public:
38 HtmlTable();
39 HtmlTable(TString id, TString className, TString style);
40 void SetDefaultClass() { SetClass("haltable"); };
41 TString ToString() const;
42 virtual void AddContent(const HtmlObject& obj);
43 virtual ~HtmlTable();
44 ClassDef(HtmlTable, 1)
45 };
46
47 class HtmlRow : public HtmlObject {
48 public:
49 HtmlRow();
50 HtmlRow(TString id, TString className, TString style);
51 virtual void AddContent(const HtmlObject& obj);
52 void AddSimpleCells(std::initializer_list<TString> cels);
53 TString ToString() const;
54 virtual ~HtmlRow();
55 ClassDef(HtmlRow, 1)
56 };
57
58 class HtmlCell : public HtmlObject {
59 protected:
60 Int_t fColSpan;
61 Int_t fRowSpan;
62
63 public:
64 HtmlCell();
65 HtmlCell(TString id, TString className, TString style);
66 HtmlCell(TString content);
67 void SetColSpan(Int_t span) { fColSpan = span; };
68 void SetRowSpan(Int_t span) { fRowSpan = span; };
69 virtual void AddContent(const HtmlObject& obj);
70 TString ToString() const;
71 virtual ~HtmlCell();
72 ClassDef(HtmlCell, 1)
73 };
74
75 class HtmlCellCol : public HtmlCell {
76 public:
78 HtmlCellCol(TString name, Int_t colspan);
79 virtual ~HtmlCellCol();
80 ClassDef(HtmlCellCol, 1)
81 };
82
83 class HtmlCellRow : public HtmlCell {
84 public:
86 HtmlCellRow(TString name, Int_t colspan);
87 virtual ~HtmlCellRow();
88 ClassDef(HtmlCellRow, 1)
89 };
90} // namespace Hal
91#endif /* HAL_FEATURES_IO_HTML_TABLE_H_ */
TString ToString() const
Definition HtmlTable.cxx:41
virtual void AddContent(const HtmlObject &obj)
Definition HtmlTable.cxx:39
void SetClass(TString className)
Definition HtmlObject.h:40
TString ToString() const
Definition HtmlTable.cxx:33
virtual void AddContent(const HtmlObject &obj)
Definition HtmlTable.cxx:29
void SetDefaultClass()
Definition HtmlTable.h:40
virtual void AddContent(const HtmlObject &obj)
Definition HtmlTable.cxx:17
TString ToString() const
Definition HtmlTable.cxx:23