summaryrefslogtreecommitdiff
path: root/sw/source/core/text/redlnitr.cxx
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-03-21 08:19:43 +0000
committerFrank Meies <fme@openoffice.org>2002-03-21 08:19:43 +0000
commit3a586af328c543ae2bcd4c3a17e1d106264dfb6a (patch)
tree25f1176e7914bf6301a4efa16db4d33f64ec1f8c /sw/source/core/text/redlnitr.cxx
parentde6be5830bad59c11c3ce8c5d60910c2f090ab66 (diff)
#98281# Bidi - Initial changes
Diffstat (limited to 'sw/source/core/text/redlnitr.cxx')
-rw-r--r--sw/source/core/text/redlnitr.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index 0bbd2627afc3..0c53f0f374c7 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: redlnitr.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: fme $ $Date: 2002-02-22 11:01:58 $
+ * last change: $Author: fme $ $Date: 2002-03-21 09:17:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -197,6 +197,14 @@ void SwAttrIter::CtorInit( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf )
delete pFnt;
pFnt = new SwFont( *aFontAccess.Get()->GetFont() );
+#ifdef BIDI
+ // Set default layout mode ( LTR or RTL ). pOut should be the printer.
+ if ( pFrm && pFrm->IsRightToLeft() )
+ pOut->SetLayoutMode( TEXT_LAYOUT_BIDI_STRONG | TEXT_LAYOUT_BIDI_RTL );
+ else
+ pOut->SetLayoutMode( TEXT_LAYOUT_COMPLEX_DISABLED );
+#endif
+
#ifdef VERTICAL_LAYOUT
// set font to vertical if frame layout is vertical
sal_Bool bVertLayout = sal_False;