aboutsummaryrefslogtreecommitdiff
path: root/dw/tablecell.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/tablecell.hh')
-rw-r--r--dw/tablecell.hh34
1 files changed, 20 insertions, 14 deletions
diff --git a/dw/tablecell.hh b/dw/tablecell.hh
index f7c6042e..2e26c8e8 100644
--- a/dw/tablecell.hh
+++ b/dw/tablecell.hh
@@ -2,27 +2,33 @@
#define __DW_TABLECELL_HH__
#include "core.hh"
-#include "alignedtextblock.hh"
namespace dw {
-class TableCell: public AlignedTextblock
-{
-private:
- int charWordIndex, charWordPos;
+namespace tablecell {
-protected:
- bool wordWrap (int wordIndex, bool wrapAll);
+bool getAdjustMinWidth ();
+bool isBlockLevel ();
- int getValue ();
- void setMaxValue (int maxValue, int value);
+int correctAvailWidthOfChild (core::Widget *widget, core::Widget *child,
+ int width, bool forceValue);
+int correctAvailHeightOfChild (core::Widget *widget, core::Widget *child,
+ int height, bool forceValue);
-public:
- static int CLASS_ID;
+void correctCorrectedRequisitionOfChild (core::Widget *widget,
+ core::Widget *child,
+ core::Requisition *requisition,
+ void (*splitHeightFun) (int, int*,
+ int*));
+void correctCorrectedExtremesOfChild (core::Widget *widget, core::Widget *child,
+ core::Extremes *extremes);
- TableCell(TableCell *ref, bool limitTextWidth);
- ~TableCell();
-};
+int applyPerWidth (core::Widget *widget, int containerWidth,
+ core::style::Length perWidth);
+int applyPerHeight (core::Widget *widget, int containerHeight,
+ core::style::Length perHeight);
+
+} // namespace dw
} // namespace dw