basctl/source/basicide/baside2b.cxx | 5 +++++ basctl/source/basicide/linenumberwindow.cxx | 3 +++ 2 files changed, 8 insertions(+)
New commits: commit 80480fb5ecc18a0a9b6c4cccc5cc35eba721f636 Author: Rafael Lima <rafael.palma.l...@gmail.com> AuthorDate: Wed Jan 24 22:42:47 2024 +0100 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri Jan 26 17:05:48 2024 +0100 tdf#153853 Line numbering and breakpoint should be on the left (RTL) As requested by the user in the ticket, the Line Numering and Breakpoint windows should be on the left side, even on RTL locales. Change-Id: Iad2ba8efa0a23a13cf88c2fa277c4eed45002aae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162540 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 9ee9c70c23ac..e5fd31d22a21 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2050,6 +2050,10 @@ ComplexEditorWindow::ComplexEditorWindow( ModulWindow* pParent ) : aEWVScrollBar(VclPtr<ScrollAdaptor>::Create(this, false)), aEWHScrollBar(VclPtr<ScrollAdaptor>::Create(this, true)) { + // tdf#153853 The line numbering and breakpoint windows should appear on + // the left, even on RTL locales + EnableRTL(false); + aEdtWindow->Show(); aBrkWindow->Show(); @@ -2858,6 +2862,7 @@ CodeCompleteWindow::CodeCompleteWindow(EditorWindow* pPar) m_xListBox->connect_changed(LINK(this, CodeCompleteWindow, ImplSelectHdl)); m_xListBox->connect_key_press(LINK(this, CodeCompleteWindow, KeyInputHdl)); m_xListBox->make_sorted(); + m_xListBox->set_direction(false); m_xListBox->set_size_request(150, 150); // default, this will adopt the line length SetSizePixel(m_xContainer->get_preferred_size()); diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx index 7b4b07da726f..80fff0872f10 100644 --- a/basctl/source/basicide/linenumberwindow.cxx +++ b/basctl/source/basicide/linenumberwindow.cxx @@ -21,6 +21,9 @@ LineNumberWindow::LineNumberWindow(vcl::Window* pParent, ModulWindow* pModulWind , m_pModulWindow(pModulWindow) , m_nCurYOffset(0) { + // tdf#153853 The line number window does not need to be affected by RTL + EnableRTL(false); + const Wallpaper aBackground(GetSettings().GetStyleSettings().GetWindowColor()); SetBackground(aBackground); GetWindow(GetWindowType::Border)->SetBackground(aBackground);