aboutsummaryrefslogtreecommitdiff
path: root/dw/tablecell.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/tablecell.hh')
-rw-r--r--dw/tablecell.hh29
1 files changed, 29 insertions, 0 deletions
diff --git a/dw/tablecell.hh b/dw/tablecell.hh
new file mode 100644
index 00000000..318d1f4e
--- /dev/null
+++ b/dw/tablecell.hh
@@ -0,0 +1,29 @@
+#ifndef __DW_TABLECELL_HH__
+#define __DW_TABLECELL_HH__
+
+#include "core.hh"
+#include "alignedtextblock.hh"
+
+namespace dw {
+
+class TableCell: public AlignedTextblock
+{
+private:
+ int charWordIndex, charWordPos;
+
+protected:
+ void wordWrap(int wordIndex);
+
+ int getValue ();
+ void setMaxValue (int maxValue, int value);
+
+public:
+ static int CLASS_ID;
+
+ TableCell(TableCell *ref, bool limitTextWidth);
+ ~TableCell();
+};
+
+} // namespace dw
+
+#endif // __DW_TABLECELL_HH__