From a7b9cbbdd4b56b2f64b023f25de185353a6f01d9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 17 Feb 2020 20:50:18 +0000 Subject: VclMultiLineEdit is sufficient here MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id3e20d4eebb02f0022b138dfcd835ea70f1417f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88891 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svtools/source/edit/editsyntaxhighlighter.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/edit/editsyntaxhighlighter.cxx b/svtools/source/edit/editsyntaxhighlighter.cxx index 6dc523baa507..b32d80e1a430 100644 --- a/svtools/source/edit/editsyntaxhighlighter.cxx +++ b/svtools/source/edit/editsyntaxhighlighter.cxx @@ -17,24 +17,21 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include #include #include #include #include #include - MultiLineEditSyntaxHighlight::MultiLineEditSyntaxHighlight( vcl::Window* pParent, WinBits nWinStyle, - HighlighterLanguage aLanguage): MultiLineEdit(pParent,nWinStyle), aHighlighter(aLanguage) + HighlighterLanguage aLanguage): VclMultiLineEdit(pParent,nWinStyle), aHighlighter(aLanguage) { EnableUpdateData(300); } void MultiLineEditSyntaxHighlight::SetText(const OUString& rNewText) { - MultiLineEdit::SetText(rNewText); + VclMultiLineEdit::SetText(rNewText); UpdateData(); } @@ -111,7 +108,7 @@ bool MultiLineEditSyntaxHighlight::PreNotify( NotifyEvent& rNEvt ) if ( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) DoBracketHilight(rNEvt.GetKeyEvent()->GetCharCode()); - return MultiLineEdit::PreNotify(rNEvt); + return VclMultiLineEdit::PreNotify(rNEvt); } Color MultiLineEditSyntaxHighlight::GetSyntaxHighlightColor(const svtools::ColorConfig& rColorConfig, HighlighterLanguage eLanguage, TokenType aToken) -- cgit