// wxMarkupParserOutput: gathers the results of parsing markup.
// ----------------------------------------------------------------------------
+// A class deriving directly from this one needs to implement all the pure
+// virtual functions below but as the handling of all simple tags (bold, italic
+// &c) is often very similar, it is usually more convenient to inherit from
+// wxMarkupParserFontOutput defined in wx/private/markupparserfont.h instead.
class wxMarkupParserOutput
{
public:
wxMarkupParserOutput() { }
+ virtual ~wxMarkupParserOutput() { }
// Virtual functions called by wxMarkupParser while parsing the markup.
// interpreted as tag opening characters.
static wxString Quote(const wxString& text);
+ // Strip markup from a string, i.e. simply remove all tags and replace
+ // XML entities with their values (or with "&&" in case of "&" to
+ // prevent it from being interpreted as mnemonic marker).
+ static wxString Strip(const wxString& text);
+
private:
// Simple struct combining the name of a tag and its attributes.
struct TagAndAttrs