aboutsummaryrefslogtreecommitdiff
path: root/dw/tablecell.hh
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-24 18:44:40 +0200
committerjcid <devnull@localhost>2008-09-24 18:44:40 +0200
commitc377e06400f138325a9a9d43d91a9272691867a1 (patch)
tree49f3ca1c46af11a058a68714899d4137ec717618 /dw/tablecell.hh
parent642f9b3e747859a7256ea12fab9f9ed50aa9253a (diff)
- Moved the dw2 tree into dillo2's tree.
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__