- // get the string without mnemonic characters ('&') and without markup
- // (if wxST_MARKUP is being used)
- virtual wxString GetLabelText() const;
-
- // public utilities (symmetric to those in wxControl about mnemonics):
-
- // get the string without mnemonic characters ('&') and without markup
- static wxString GetLabelText(const wxString& label);
-
- // removes the markup accepted by wxStaticText when wxST_MARKUP is used,
- // and then 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);
-
- // replaces parts of the string with ellipsis if needed
- static wxString Ellipsize(const wxString& label, const wxDC& dc,
- wxEllipsizeMode mode, int maxWidth);
-