Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3704

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/04/3704/1

fix fdo#64085 : set proper alignment for justified align text.

According to cell writing direction, set alignment for justified align text.

Change-Id: I91e1c52f1aa13a806e2a91dc7120960a4cc3f5c1
---
M sc/source/ui/view/output2.cxx
1 file changed, 8 insertions(+), 1 deletion(-)



diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index d4fb35f..c16e15f 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1673,7 +1673,14 @@
                         eOutHorJust = aVars.GetHorJust();
 
                     if ( eOutHorJust == SVX_HOR_JUSTIFY_BLOCK || eOutHorJust == 
SVX_HOR_JUSTIFY_REPEAT )
-                        eOutHorJust = SVX_HOR_JUSTIFY_LEFT;     // repeat is not yet implemented
+                    {
+                        const SfxPoolItem* pItem =  mpDoc->GetAttr( nCellX, nCellY, nTab, 
ATTR_WRITINGDIR );
+                        const SvxFrameDirectionItem* rCurrentWritingMode = (const 
SvxFrameDirectionItem*) pItem;
+                        if (rCurrentWritingMode->GetValue() == FRMDIR_HORI_LEFT_TOP)
+                            eOutHorJust = SVX_HOR_JUSTIFY_LEFT;
+                        else
+                            eOutHorJust = SVX_HOR_JUSTIFY_RIGHT;
+                    }
 
                     bool bBreak = ( aVars.GetLineBreak() || aVars.GetHorJust() == 
SVX_HOR_JUSTIFY_BLOCK );
                     // #i111387# #o11817313# disable automatic line breaks only for "General" 
number format

-- 
To view, visit https://gerrit.libreoffice.org/3704
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91e1c52f1aa13a806e2a91dc7120960a4cc3f5c1
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: navin patidar <patidar@kacst.edu.sa>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.