Initial import of Dillo
This commit is contained in:
42
dw/simpletablecell.hh
Normal file
42
dw/simpletablecell.hh
Normal file
@ -0,0 +1,42 @@
|
||||
#ifndef __DW_SIMPLETABLECELL_HH__
|
||||
#define __DW_SIMPLETABLECELL_HH__
|
||||
|
||||
#include "textblock.hh"
|
||||
|
||||
namespace dw {
|
||||
|
||||
class SimpleTableCell: public Textblock
|
||||
{
|
||||
protected:
|
||||
int getAvailWidthOfChild (Widget *child, bool forceValue);
|
||||
int getAvailHeightOfChild (Widget *child, bool forceValue);
|
||||
|
||||
void correctRequisitionOfChild (Widget *child,
|
||||
core::Requisition *requisition,
|
||||
void (*splitHeightFun) (int, int*, int*),
|
||||
bool allowDecreaseWidth,
|
||||
bool allowDecreaseHeight);
|
||||
void correctExtremesOfChild (Widget *child, core::Extremes *extremes,
|
||||
bool useAdjustmentWidth);
|
||||
|
||||
bool getAdjustMinWidth ();
|
||||
|
||||
bool adjustExtraSpaceWhenCorrectingRequisitionByOOF ();
|
||||
|
||||
public:
|
||||
static int CLASS_ID;
|
||||
|
||||
SimpleTableCell (bool limitTextWidth);
|
||||
~SimpleTableCell ();
|
||||
|
||||
int applyPerWidth (int containerWidth, core::style::Length perWidth);
|
||||
int applyPerHeight (int containerHeight, core::style::Length perHeight);
|
||||
|
||||
bool isBlockLevel ();
|
||||
|
||||
bool usesMaxGeneratorWidth ();
|
||||
};
|
||||
|
||||
} // namespace dw
|
||||
|
||||
#endif // __DW_SIMPLETABLECELL_HH__
|
||||
Reference in New Issue
Block a user