summaryrefslogtreecommitdiff
path: root/sc/source/ui/pagedlg/scuitphfedit.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:55:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:55:25 +0000
commit76dca4ba8aaef303def258e274cfa01827e89db3 (patch)
treeb16b5d346ac2bd8d623b4f50ae812cd02d20646c /sc/source/ui/pagedlg/scuitphfedit.cxx
parent81511f488ef80ee8e736dd85407457ec4c5d0696 (diff)
INTEGRATION: CWS calc44 (1.9.132); FILE MERGED
2007/09/06 14:45:48 nn 1.9.132.1: #i78592# for RTL re-swap left and right area (left must remain left, patch from ayaniger)
Diffstat (limited to 'sc/source/ui/pagedlg/scuitphfedit.cxx')
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index 91f7e5b6bc02..4ff1c35e8a66 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: scuitphfedit.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: kz $ $Date: 2007-05-10 16:58:11 $
+ * last change: $Author: hr $ $Date: 2007-09-27 13:55:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -165,6 +165,18 @@ ScHFEditPage::ScHFEditPage( Window* pParent,
maFtDefinedHF.SetText(ScGlobal::GetRscString( STR_FOOTER ));
maFtCustomHF.SetText(ScGlobal::GetRscString( STR_HF_CUSTOM_FOOTER ));
}
+ if( Application::GetSettings().GetLayoutRTL() )
+ {
+ Point pt1 = aWndLeft.GetPosPixel();
+ Point pt2 = aWndRight.GetPosPixel();
+ aWndLeft.SetPosPixel(pt2);
+ aWndRight.SetPosPixel(pt1);
+
+ pt1 = aFtLeft.GetPosPixel();
+ pt2 = aFtRight.GetPosPixel();
+ aFtLeft.SetPosPixel(pt2);
+ aFtRight.SetPosPixel(pt1);
+ }
aWndLeft. SetFont( aPatAttr );
aWndCenter. SetFont( aPatAttr );
aWndRight. SetFont( aPatAttr );