diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-17 20:50:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-18 10:02:38 +0100 |
commit | a7b9cbbdd4b56b2f64b023f25de185353a6f01d9 (patch) | |
tree | afaca868e625ca23285e58631a8d975f21b4094e /svtools/source | |
parent | be93e5b27371a97009e5587507a0c5147e882632 (diff) |
VclMultiLineEdit is sufficient here
Change-Id: Id3e20d4eebb02f0022b138dfcd835ea70f1417f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88891
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/edit/editsyntaxhighlighter.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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 <svtools/svmedit.hxx> #include <vcl/event.hxx> #include <vcl/xtextedt.hxx> #include <vcl/textview.hxx> #include <svtools/editsyntaxhighlighter.hxx> #include <vcl/txtattr.hxx> - 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) |