Kaydet (Commit) 4add062a authored tarafından Faisal M. Al-Otaibi's avatar Faisal M. Al-Otaibi

docx: fdo#44029 export the right alignment when locale are RTL.

Change-Id: I771eb0d0a90816f0c4cbd66cfcb755f67455bb9b
üst c6fe5c6f
......@@ -25,6 +25,7 @@
#include <functional>
#include <iostream>
#include <i18nlangtag/mslangid.hxx>
#include <hintids.hxx>
#include <comphelper/string.hxx>
#include <tools/urlobj.hxx>
......@@ -1291,11 +1292,21 @@ short MSWordExportBase::GetDefaultFrameDirection( ) const
nDir = pDoc->GetTextDirection( aPos );
}
else if ( pOutFmtNode->ISA( SwTxtFmtColl ) )
nDir = FRMDIR_HORI_LEFT_TOP; //what else can we do :-(
{
if ( MsLangId::isRightToLeft( static_cast<LanguageType>(GetAppLanguage())) )
nDir = FRMDIR_HORI_RIGHT_TOP;
else
nDir = FRMDIR_HORI_LEFT_TOP; //what else can we do :-(
}
}
if ( nDir == FRMDIR_ENVIRONMENT )
nDir = FRMDIR_HORI_LEFT_TOP; //Set something
{
if( MsLangId::isRightToLeft( static_cast<LanguageType>(GetAppLanguage())) )
nDir = FRMDIR_HORI_RIGHT_TOP;
else
nDir = FRMDIR_HORI_LEFT_TOP; //Set something
}
return nDir;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment