include/svx/txencbox.hxx | 4 ++++ sc/source/ui/dbgui/scuiimoptdlg.cxx | 2 ++ 2 files changed, 6 insertions(+)
New commits: commit 14d1f05b5b6e61d12cd82f18b3e3574ad0913e69 Author: Michael Weghorn <[email protected]> AuthorDate: Tue Feb 24 11:39:03 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Tue Feb 24 17:13:30 2026 +0100 sc a11y: Set mnemonic widget in CSV export dialog This e.g. makes the Orca screen reader on Linux with the qt6 VCL plugin announce the "Character Set" combobox as expected when it receives focus. The dialog can be triggered like this: * start Calc * "File" -> "Save As..." * select to save as a CSV file ("Text CSV (*.csv)") and press "Save" * confirm to "Use Text CSV Format" Change-Id: Icd43cff8a89cae30e3f45fbb987bca40a4341980 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200161 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/include/svx/txencbox.hxx b/include/svx/txencbox.hxx index 4ce79b0933a7..04a872819887 100644 --- a/include/svx/txencbox.hxx +++ b/include/svx/txencbox.hxx @@ -84,6 +84,8 @@ public: int get_active() const { return m_xControl->get_active(); } void show() { m_xControl->show(); } void hide() { m_xControl->hide(); } + + weld::ComboBox& getComboBox() { return *m_xControl; } }; class SVX_DLLPUBLIC SvxTextEncodingTreeView @@ -149,6 +151,8 @@ public: { m_xControl->set_size_request(nWidth, nHeight); } + + weld::TreeView& getTreeView() { return *m_xControl; } }; #endif diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx index 08863392dd25..1f2f187c7d03 100644 --- a/sc/source/ui/dbgui/scuiimoptdlg.cxx +++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx @@ -135,6 +135,7 @@ ScImportOptionsDlg::ScImportOptionsDlg(weld::Window* pParent, bool bAscii, m_xDialog->set_help_id(m_xDialog->get_help_id() + "?config=NonTextImport"); m_xLbCharset->show(); m_xTvCharset->hide(); + m_xFtCharset->set_mnemonic_widget(&m_xLbCharset->getComboBox()); } else { @@ -142,6 +143,7 @@ ScImportOptionsDlg::ScImportOptionsDlg(weld::Window* pParent, bool bAscii, m_xEncGrid->set_vexpand(true); m_xLbCharset->hide(); m_xTvCharset->show(); + m_xFtCharset->set_mnemonic_widget(&m_xTvCharset->getTreeView()); } OUString sFieldSep(SCSTR_FIELDSEP);
