m_toPos = toPos;
}
- wxHtmlCell *GetFromCell() const { return m_fromCell; }
- wxHtmlCell *GetToCell() const { return m_toCell; }
+ const wxHtmlCell *GetFromCell() const { return m_fromCell; }
+ const wxHtmlCell *GetToCell() const { return m_toCell; }
// these values are *relative* to From/To cell's origin:
const wxPoint& GetFromPos() const { return m_fromPos; }
class WXDLLEXPORT wxHtmlRenderingState
{
public:
- wxHtmlRenderingState(wxHtmlSelection *s)
+ wxHtmlRenderingState(wxHtmlSelection *s = NULL)
: m_selection(s), m_selState(wxHTML_SEL_OUT) {}
+ void SetSelection(wxHtmlSelection *s) { m_selection = s; }
wxHtmlSelection *GetSelection() const { return m_selection; }
void SetSelectionState(wxHtmlSelectionState s) { m_selState = s; }