X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa40e7a17559c9328be4e0202c9c87dc7adb562e..3dd9b88ac26caa8dbcc26c7fafc10cd886fc97ac:/src/common/textcmn.cpp?ds=sidebyside diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 0ce243a141..1686e5c91e 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -69,6 +69,31 @@ wxTextCtrlBase::~wxTextCtrlBase() #endif } +// ---------------------------------------------------------------------------- +// style functions - not implemented here +// ---------------------------------------------------------------------------- + +// apply styling to text range +bool wxTextCtrlBase::SetStyle(long WXUNUSED(start), long WXUNUSED(end), + const wxTextAttr& WXUNUSED(style)) +{ + // to be implemented in derived TextCtrl classes + return FALSE; +} + +// change default text attributes +bool wxTextCtrlBase::SetDefaultStyle(const wxTextAttr &style) +{ + m_defaultStyle = style; + return TRUE; +} + +// get default text attributes +const wxTextAttr& wxTextCtrlBase::GetDefaultStyle() const +{ + return m_defaultStyle; +} + // ---------------------------------------------------------------------------- // file IO functions // ----------------------------------------------------------------------------