- // get the string without mnemonic characters ('&') and without markup
- // (if the wxST_MARKUP style is set)
- virtual wxString GetLabelText() const;
-
- // set label text (mnemonics and markup, if the wxST_MARKUP style is set,
- // will be escaped)
- virtual void SetLabelText(const wxString& text);
-
-
- // static utilities for markup handling
- // (symmetric to those in wxControl about mnemonics)
- // -------------------------------------------------
-
- // get the string without mnemonic characters ('&') and without markup
- // (note that markup is always removed; this function is static and cannot
- // check for wxST_MARKUP style presence/absence!)
- static wxString GetLabelText(const wxString& label);
-
- // removes the markup recognized by wxStaticText and returns the cleaned string
- static wxString RemoveMarkup(const wxString& str);
-
- // escapes all special symbols (<>"'&) present in the given string
- // using the corresponding entities (< > " ' &)
- static wxString EscapeMarkup(const wxString& str);
-