Add wxHtmlContainerCell::Detach()

This allows manipulating the HTML DOM from the outside, e.g. to detach
a header element in order to be able to repeat it on all pages.
This commit is contained in:
Vadim Zeitlin
2018-08-25 21:16:55 +02:00
parent 2895e5c4a1
commit a59f5932df
4 changed files with 116 additions and 0 deletions

View File

@@ -459,6 +459,11 @@ public:
// insert cell at the end of m_Cells list
void InsertCell(wxHtmlCell *cell);
// Detach a child cell. After calling this method, it's the caller
// responsibility to destroy this cell (possibly by calling InsertCell()
// with it to attach it elsewhere).
void Detach(wxHtmlCell *cell);
// sets horizontal/vertical alignment
void SetAlignHor(int al) {m_AlignHor = al; m_LastLayout = -1;}
int GetAlignHor() const {return m_AlignHor;}