diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-03-04 16:19:59 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-03-04 16:19:59 +0000 |
commit | 8357393805955523d089aa81adf8a44022937917 (patch) | |
tree | b336205d15081302c115bbd5d35bcaec891ca7f7 /sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx | |
parent | 4cf89deb91d87c7c04a208375f8b9c594507be3b (diff) |
#91226#: mongolian text layout
Diffstat (limited to 'sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx')
-rw-r--r-- | sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx index 55749f144377..0091e44ab0c7 100644 --- a/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx +++ b/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx @@ -123,7 +123,13 @@ void SwToLayoutAnchoredObjectPosition::CalcPosition() if( bVert ) { ASSERT( !bRev, "<SwToLayoutAnchoredObjectPosition::CalcPosition()> - reverse layout set." ); - aRelPos.X() = -nRelPosY - aObjBoundRect.Width(); + //Badaa: 2008-04-18 * Support for Classical Mongolian Script (SCMS) joint with Jiayanmin + //aRelPos.X() = -nRelPosY - aObjBoundRect.Width(); + if ( bVertL2R ) + aRelPos.X() = nRelPosY; + else + aRelPos.X() = -nRelPosY - aObjBoundRect.Width(); + //End of SCMS maOffsetToFrmAnchorPos.X() = nVertOffsetToFrmAnchorPos; } else @@ -207,8 +213,12 @@ void SwToLayoutAnchoredObjectPosition::CalcPosition() // determine absolute 'horizontal' position, depending on layout-direction // --> OD 2004-06-17 #i26791# - determine offset to 'horizontal' frame // anchor position, depending on layout-direction - if ( bVert ) + //Badaa: 2008-04-18 * Support for Classical Mongolian Script (SCMS) joint with Jiayanmin + //if ( bVert ) + if( bVert && !bVertL2R ) + //End of SCMS { + aRelPos.Y() = nRelPosX; maOffsetToFrmAnchorPos.Y() = nOffset; } |