Codebase list dillo / 4263e106-de5f-41e0-9767-00b4c11c68d2/main dw / tablecell.hh
4263e106-de5f-41e0-9767-00b4c11c68d2/main

Tree @4263e106-de5f-41e0-9767-00b4c11c68d2/main (Download .tar.gz)

tablecell.hh @4263e106-de5f-41e0-9767-00b4c11c68d2/mainraw · history · blame

#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:
   bool wordWrap (int wordIndex, bool wrapAll);

   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__