[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - framework/source
Issa Alkurtass
ialkurtass at kacst.edu.sa
Mon Feb 11 08:12:38 PST 2013
framework/source/fwe/xml/toolboxdocumenthandler.cxx | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
New commits:
commit 3b928bee03e4d311f29eaf63a11c12798559b2c9
Author: Issa Alkurtass <ialkurtass at kacst.edu.sa>
Date: Sun Feb 10 09:32:39 2013 +0300
fdo#39370 - Fixed RTL/LTR and alignment buttons location on RTL interface
Reversed the location of the RTL and LTR buttons as well as the align right
and align left buttons on the RTL interface. It now matches the LTR interface.
Done from toolboxdocumenthandler instead of modifying 20+ xml files.
Change-Id: I6b3715e134bb45a7500b87a9e926d7940690a9af
Reviewed-on: https://gerrit.libreoffice.org/2077
Reviewed-by: Tor Lillqvist <tml at iki.fi>
Tested-by: Tor Lillqvist <tml at iki.fi>
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index b57d158..7826ac2 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -423,6 +423,23 @@ throw( SAXException, RuntimeException )
aToolbarItemProp[5].Name = m_aIsVisible;
aToolbarItemProp[6].Name = m_aTooltip;
+ //fix for fdo#39370
+ /// check whether RTL interface or not
+ if(Application::GetSettings().GetLayoutRTL()){
+ if (aCommandURL.compareTo(".uno:ParaLeftToRight") == 0)
+ aCommandURL = ".uno:ParaRightToLeft";
+ else if (aCommandURL.compareTo(".uno:ParaRightToLeft") == 0)
+ aCommandURL = ".uno:ParaLeftToRight";
+ else if (aCommandURL.compareTo(".uno:LeftPara") == 0)
+ aCommandURL = ".uno:RightPara";
+ else if (aCommandURL.compareTo(".uno:RightPara") == 0)
+ aCommandURL = ".uno:LeftPara";
+ else if (aCommandURL.compareTo(".uno:AlignLeft") == 0)
+ aCommandURL = ".uno:AlignRight";
+ else if (aCommandURL.compareTo(".uno:AlignRight") == 0)
+ aCommandURL = ".uno:AlignLeft";
+ }
+
aToolbarItemProp[0].Value <<= aCommandURL;
aToolbarItemProp[1].Value <<= aHelpURL;
aToolbarItemProp[2].Value <<= aLabel;
More information about the Libreoffice-commits
mailing list