summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewtab.cxx
diff options
context:
space:
mode:
authorOliver Düsterhoff <od@openoffice.org>2009-09-04 13:08:11 +0000
committerOliver Düsterhoff <od@openoffice.org>2009-09-04 13:08:11 +0000
commit6d15f742665f51ac591fe47b8bce5c7d92fadecf (patch)
tree6af32b19e029a96d720337b101dedea847071284 /sw/source/ui/uiview/viewtab.cxx
parent03400983300e76f3e82cc34501fd2af590943f6f (diff)
#i91226# adjustment of the object positioning dialog for Mongolian layout
Diffstat (limited to 'sw/source/ui/uiview/viewtab.cxx')
-rw-r--r--sw/source/ui/uiview/viewtab.cxx33
1 files changed, 26 insertions, 7 deletions
diff --git a/sw/source/ui/uiview/viewtab.cxx b/sw/source/ui/uiview/viewtab.cxx
index 04ff2c9047..58ad329ea2 100644
--- a/sw/source/ui/uiview/viewtab.cxx
+++ b/sw/source/ui/uiview/viewtab.cxx
@@ -316,8 +316,14 @@ void SwView::ExecTabWin( SfxRequest& rReq )
SwFrmFmt* pFmt = ((SwFrmFmt*)rSh.GetFlyFrmFmt());
const SwRect &rRect = rSh.GetAnyCurRect(RECT_FLY_EMBEDDED);
- BOOL bRTL;
- BOOL bVerticalFrame = (bFrmSelection && rSh.IsFrmVertical(TRUE, bRTL))|| (!bFrmSelection && bVerticalWriting);
+ BOOL bVerticalFrame( FALSE );
+ {
+ BOOL bRTL;
+ BOOL bVertL2R;
+ bVerticalFrame = ( bFrmSelection &&
+ rSh.IsFrmVertical(TRUE, bRTL, bVertL2R) ) ||
+ ( !bFrmSelection && bVerticalWriting);
+ }
long nDeltaX = bVerticalFrame ?
rRect.Right() - rPageRect.Right() + aLongLR.GetRight() :
rPageRect.Left() + aLongLR.GetLeft() - rRect.Left();
@@ -454,7 +460,10 @@ void SwView::ExecTabWin( SfxRequest& rReq )
RES_VERT_ORIENT, RES_HORI_ORIENT, 0 );
//which of the orientation attributes is to be put depends on the frame's environment
BOOL bRTL;
- if((bFrmSelection && rSh.IsFrmVertical(TRUE, bRTL))|| (!bFrmSelection && bVerticalWriting))
+ BOOL bVertL2R;
+ if ( ( bFrmSelection &&
+ rSh.IsFrmVertical(TRUE, bRTL, bVertL2R ) ) ||
+ ( !bFrmSelection && bVerticalWriting ) )
{
SwFmtHoriOrient aHoriOrient(pFmt->GetHoriOrient());
aHoriOrient.SetHoriOrient(text::HoriOrientation::NONE);
@@ -1276,8 +1285,13 @@ void SwView::StateTabWin(SfxItemSet& rSet)
case SID_RULER_BORDERS_VERTICAL:
case SID_RULER_BORDERS:
{
- BOOL bFrameRTL;
- BOOL bFrameHasVerticalColumns = rSh.IsFrmVertical(FALSE, bFrameRTL) && bFrmSelection;
+ BOOL bFrameHasVerticalColumns(FALSE);
+ {
+ BOOL bFrameRTL;
+ BOOL bFrameVertL2R;
+ bFrameHasVerticalColumns = rSh.IsFrmVertical(FALSE, bFrameRTL, bFrameVertL2R) &&
+ bFrmSelection;
+ }
BOOL bHasTable = ( IsTabColFromDoc() ||
( rSh.GetTableFmt() && !bFrmSelection &&
!(nFrmType & FRMTYPE_COLSECT ) ) );
@@ -1500,8 +1514,13 @@ void SwView::StateTabWin(SfxItemSet& rSet)
case SID_RULER_ROWS :
case SID_RULER_ROWS_VERTICAL:
{
- BOOL bFrameRTL;
- BOOL bFrameHasVerticalColumns = rSh.IsFrmVertical(FALSE, bFrameRTL) && bFrmSelection;
+ BOOL bFrameHasVerticalColumns(FALSE);
+ {
+ BOOL bFrameRTL;
+ BOOL bFrameVertL2R;
+ bFrameHasVerticalColumns = rSh.IsFrmVertical(FALSE, bFrameRTL, bFrameVertL2R) &&
+ bFrmSelection;
+ }
if((SID_RULER_ROWS == nWhich) &&
((!bVerticalWriting && !bFrmSelection) || (bFrmSelection && !bFrameHasVerticalColumns)) ||