<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.25in 1.0in 1.25in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello all,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here is the bug's page: https://bugs.freedesktop.org/show_bug.cgi?id=39370</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">1- First, In the RTL UI, Does the toolbar automatically flips the order and alignment of its items ?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">2- I'm thinking to solve this bug by adding a new Formatting Toolbar for the RTL UI that have the buttons in their preferable location.</p>
<p class="MsoNormal">I was able to add a new toolbar, but couldn't change the default one.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">What do you think about this approach?</p>
<p class="MsoNormal">How can I determine the default toolbars?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">3- As indicated in the bugzilla comments #11</p>
<p class="MsoNormal">The Bullets and Numbering icons are actually mirrored in RTL UI, not only in the reverse order.</p>
<p class="MsoNormal">For me I don't think this is a problem for the Bullets button, but for the Numbering it's really look weird.</p>
<p class="MsoNormal">I tried to solve this by prevent the Numbering button from mirroring:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">framework/source/uielement/toolbarmanager.cxx:ToolBarManager::UpdateImageOrientation()</p>
<p class="MsoNormal">if( Application::GetSettings().GetLayoutRTL() )</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">if(!((aMirrorCmd == ".uno:DefaultNumbering") || (aMirrorCmd == ".uno:NumberOrNoNumber")))</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">{</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">            pIter = m_aCommandMap.find( aMirrorCmd );</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">            if ( pIter != m_aCommandMap.end() )</p>
<p class="MsoNormal"></p>
<p class="MsoNormal">               pIter->second.bMirrored = sal_True;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">What do you think?</p>
<p class="MsoNormal">It seems to work, but I'm not sure if it's the "correct" way to do it</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any suggestion or code pointers would be appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">P.S. I'm a beginner in LibreOffice development so sorry for any silly question, but I really want to learn : )</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks in advance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:black">________________________<br>
Regards,<br>
Manal M. Alhassoun<br>
Motah Program, KACST<br>
<a href="http://www.motah.org.sa/"><span style="color:blue">http://www.motah.org.sa</span></a>
</span></p>
<p class="MsoNormal"> </p>
</div>
<table border="1" bgcolor="#FAFAFF" align="center" width="100%">
<tbody>
<tr>
<td width="50%" align="righ" valign="middle">
<p class="MsoNormal" dir="LTR" style="font-size:9.0pt; font-family:"Arial","sans-serif"; text-align:justify">
<span dir="LTR"></span><strong>Warning: </strong>This message and its attachment, if any, are confidential and may contain information protected by law. If you are not the intended recipient, please contact the sender immediately and delete the message and
 its attachment, if any. You should not copy the message and its attachment, if any, or disclose its contents to any other person or use it for any purpose. Statements and opinions expressed in this e-mail and its attachment, if any, are those of the sender,
 and do not necessarily reflect those of King Abdulaziz city for Science and Technology (KACST) in the Kingdom of Saudi Arabia. KACST accepts no liability for any damage caused by this email.</p>
</td>
<td width="50%" align="right">
<p class="MsoNormal" dir="RTL" style="text-align:justify; direction:rtl; unicode-bidi:embed">
<span lang="AR-SA" style="font-size:9.0pt"><strong>تحذير:</strong></span><span dir="LTR"></span><span lang="AR-SA" dir="LTR" style="font-size:9.0pt"><span dir="LTR"></span>
</span><span lang="AR-SA" style="font-size:9.0pt">هذه الرسالة وما تحويه من مرفقات (إن وجدت) تمثل وثيقة سرية قد تحتوي على معلومات محمية بموجب القانون. إذا لم تكن الشخص المعني بهذه الرسالة فيجب عليك تنبيه المُرسل بخطأ وصولها إليك، وحذف الرسالة ومرفقاتها (إن وجدت)،
 ولا يجوز لك نسخ أو توزيع هذه الرسالة أو مرفقاتها (إن وجدت) أو أي جزء منها، أو البوح بمحتوياتها للغير أو استعمالها لأي غرض. علماً بأن فحوى هذه الرسالة ومرفقاتها (ان وجدت) تعبر عن رأي المُرسل وليس بالضرورة رأي مدينة الملك عبدالعزيز للعلوم والتقنية بالمملكة العربية
 السعودية، ولا تتحمل المدينة أي مسئولية عن الأضرار الناتجة عن ما قد يحتويه هذا البريد</span><span dir="LTR"></span><span dir="LTR" style="font-size:9.0pt"><span dir="LTR"></span>.</span><span dir="LTR"></span></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>