27 const wxSize& size,
long style ) :
28 wxHtmlWindow( parent, id, pos, size, style ),
30 m_immediateMode( false )
43 GetScrollPixelsPerUnit( &px, &py );
44 GetVirtualSize( &x, &y );
63 wxString content = aCell->ConvertToText(
nullptr );
64 wxHtmlContainerCell* container = dynamic_cast<wxHtmlContainerCell*>( aCell );
66 for( wxHtmlCell* child = aCell->GetFirstChild(); child; child = child->GetNext() )
69 if( container && content.EndsWith(
"." ) && container->GetHeight() < aMinLinespacing )
70 container->SetMinHeight( aMinLinespacing );
85 wxFont font = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
86 int minLineHeight =
KiROUND( font.GetPixelSize().y * 1.3 );
94 wxColour bgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
95 wxColour fgcolor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
98 " <body bgcolor='%s' text='%s'>" 102 bgcolor.GetAsString( wxC2S_HTML_SYNTAX ),
103 fgcolor.GetAsString( wxC2S_HTML_SYNTAX ),
110 return aLine +
"<br>";
wxString addHeader(const wxString &aBody)
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
wxString fixLinespacing(wxHtmlCell *aCell, int aMinLinespacing)
A pure virtual class used to derive REPORTER objects from.
std::vector< wxString > m_messages
bool m_immediateMode
copy of the report, stored for filtering
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
wxString generateHtml(const wxString &aLine)
WX_HTML_REPORT_BOX(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL)