view dw/tablecell.hh @ 347:e5955ab8dafb

- Moved the dw2 tree into dillo2's tree.
author jcid
date Wed, 24 Sep 2008 18:44:40 +0200
parents
children
line wrap: on
line source
#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__