Schim
header.h
1 #ifndef HEADER_H
2 #define HEADER_H
3 
4 #include "object.h"
5 #include "rect.h"
6 #include "compositeobject.h"
7 
15 class Header : public CompositeObject
16 {
17 public:
18  // CONSTRUCTORS
22  Header() = default;
29  explicit Header(CompositeObject &&obj);
33  Header(const Header &obj);
34  Header *clone() const;
35 
36  // GETTERS
37  QRectF getContentArea() const;
38 
39  // SETTERS
40  void setContentArea(const QRectF &rect);
41 
42  // STATIC
49  static Header *absorb(CompositeObject *obj);
50 
51  // OPERATORS
52  bool operator==(const Header &obj) const;
53  bool operator!=(const Header &obj) const;
54 
55 private:
57  QRectF contentArea{0, 0, 297, 210};
59  QString columnMarkers = "{0..9}", rowMarkers = "{A..F}";
61  bool displayColumns = true, displayRows = true;
62 };
63 
64 #endif // HEADER_H
Header()=default
Default constructor.
Class representing a header for a sheet.
Definition: header.h:15
static Header * absorb(CompositeObject *obj)
Steal everything from obj and delete it.
An object that consists of other child objects.
Definition: compositeobject.h:16