Initial import of Dillo

This commit is contained in:
2025-02-28 13:34:30 -05:00
parent bd4e3eebd8
commit 20fea64cb5
496 changed files with 156174 additions and 0 deletions

51
dw/alignedtablecell.hh Normal file
View File

@ -0,0 +1,51 @@
#ifndef __DW_ALIGNEDTABLECELL_HH__
#define __DW_ALIGNEDTABLECELL_HH__
#include "core.hh"
#include "alignedtextblock.hh"
namespace dw {
class AlignedTableCell: public AlignedTextblock
{
private:
int charWordIndex, charWordPos;
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 ();
int wordWrap (int wordIndex, bool wrapAll);
int getValue ();
void setMaxValue (int maxValue, int value);
public:
static int CLASS_ID;
AlignedTableCell(AlignedTableCell *ref, bool limitTextWidth);
~AlignedTableCell();
int applyPerWidth (int containerWidth, core::style::Length perWidth);
int applyPerHeight (int containerHeight, core::style::Length perHeight);
bool isBlockLevel ();
bool usesMaxGeneratorWidth ();
};
} // namespace dw
#endif // __DW_ALIGNEDTABLECELL_HH__