https://bugs.documentfoundation.org/show_bug.cgi?id=154450
--- Comment #9 from Caolán McNamara <[email protected]> --- We do have some places where we swap the images depending on RTL. But as far as I know we do it based on the UI language and not the "current" direction of text. So see: framework/source/fwe/xml/toolboxdocumenthandler.cxx sfx2/source/sidebar/SidebarToolBox.cxx sfx2/source/toolbox/weldutils.cxx sfx2/source/toolbox/weldutils.cxx and search for uno:ParaLeftToRight and see the swap to ParaRightToLeft (etc) when AllSettings::GetLayoutRTL is true and references to bug #39370 as an example. So I think it could be: a) An easy hack to at least centralize those existing different places into one piece of code so we have just one copy of the swapping image name logic b) Assuming that the current swapping images idea is a good thing, then the question is if we should be changing those images depending on the current language/direction context. Some competitive comparison might be helpful to find out there, what do other similar products do, or anything seen as "doing the right thing". We do have QueryState which decides if a given toolbox item is enabled/disabled etc in the current context. I could see us adding another thing that can be queried (Or maybe we already have one, isn't there some paragraph direction toolbox item somewhere, does that generally give a single result, or how does it handle ambiguity right now?) to get an answer for the RTL in the context that could be used to do this swapping basically dynamically instead of just the UI direction. -- You are receiving this mail because: You are the assignee for the bug.
