summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2024-01-24 22:42:47 +0100
committerHossein <hossein@libreoffice.org>2024-01-26 17:05:48 +0100
commit80480fb5ecc18a0a9b6c4cccc5cc35eba721f636 (patch)
treee4db92a71ba99416b5ff4246894f8b1faca4ae85 /basctl/source
parente465cf6fcb67a9ada161ef8988aeab46064b7d4d (diff)
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 <hossein@libreoffice.org>
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/baside2b.cxx5
-rw-r--r--basctl/source/basicide/linenumberwindow.cxx3
2 files changed, 8 insertions, 0 deletions
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);