diff options
author | Frank Meies <fme@openoffice.org> | 2002-03-21 08:19:43 +0000 |
---|---|---|
committer | Frank Meies <fme@openoffice.org> | 2002-03-21 08:19:43 +0000 |
commit | 3a586af328c543ae2bcd4c3a17e1d106264dfb6a (patch) | |
tree | 25f1176e7914bf6301a4efa16db4d33f64ec1f8c /sw/source/core/text/redlnitr.cxx | |
parent | de6be5830bad59c11c3ce8c5d60910c2f090ab66 (diff) |
#98281# Bidi - Initial changes
Diffstat (limited to 'sw/source/core/text/redlnitr.cxx')
-rw-r--r-- | sw/source/core/text/redlnitr.cxx | 12 |
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; |