summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorOliver Düsterhoff <od@openoffice.org>2002-12-10 13:14:34 +0000
committerOliver Düsterhoff <od@openoffice.org>2002-12-10 13:14:34 +0000
commit106446fd62d27d8a947990d03b88cb276298b483 (patch)
treed318b88780bbd34664df3cec7237abe637d6bd9d /sw
parent7d81022b8112d49dafaa72c29d6f2a7d28476426 (diff)
#103045# SwView::BeginTextEdit(..) - set default horizontal text direction at outliner
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/viewdraw.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/ui/uiview/viewdraw.cxx b/sw/source/ui/uiview/viewdraw.cxx
index 374c80a4d096..1b1e1c677954 100644
--- a/sw/source/ui/uiview/viewdraw.cxx
+++ b/sw/source/ui/uiview/viewdraw.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewdraw.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: os $ $Date: 2002-12-09 11:14:18 $
+ * last change: $Author: od $ $Date: 2002-12-10 14:14:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -532,9 +532,11 @@ sal_Bool SwView::BeginTextEdit( SdrObject* pObj, SdrPageView* pPV,
pOutliner->SetVertical( SID_DRAW_TEXT_VERTICAL == nDrawSfxId ||
SID_DRAW_CAPTION_VERTICAL == nDrawSfxId );
Color aBackground(pSh->GetShapeBackgrd());
-// EditEngine* pEditEng = pSdrView->GetTextEditOutlinerView()->GetEditView().GetEditEngine();
pOutliner->SetBackgroundColor(aBackground);
-// pEditEng->SetBackgroundColor(aBackground);
+ // OD 09.12.2002 #103045# - set default horizontal text direction at outliner
+ EEHorizontalTextDirection aDefHoriTextDir =
+ pSh->IsShapeDefaultHoriTextDirR2L() ? EE_HTEXTDIR_R2L : EE_HTEXTDIR_L2R;
+ pOutliner->SetDefaultHorizontalTextDirection( aDefHoriTextDir );
}
sal_Bool bRet = pSdrView->BegTextEdit( pObj, pPV, pWin, TRUE, pOutliner );