diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-20 18:12:53 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-20 18:12:53 +0000 |
commit | 8f1227b8a0aabe6d47e131331d70247ac5efacd5 (patch) | |
tree | 19f89205e71a36c39a22aae16e460a104f4b34cd /reportdesign/source/ui/report/ReportWindow.cxx | |
parent | INTEGRATION: CWS reportdesign01 (1.5.6); FILE MERGED (diff) | |
download | core-8f1227b8a0aabe6d47e131331d70247ac5efacd5.tar.gz core-8f1227b8a0aabe6d47e131331d70247ac5efacd5.zip |
INTEGRATION: CWS reportdesign01 (1.3.20); FILE MERGED
2007/10/11 11:53:26 oj 1.3.20.1: #i81963# field unit corrected
Diffstat (limited to 'reportdesign/source/ui/report/ReportWindow.cxx')
-rw-r--r-- | reportdesign/source/ui/report/ReportWindow.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/ReportWindow.cxx b/reportdesign/source/ui/report/ReportWindow.cxx index 94dc7b8ccd05..821154818b5c 100644 --- a/reportdesign/source/ui/report/ReportWindow.cxx +++ b/reportdesign/source/ui/report/ReportWindow.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ReportWindow.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2007-08-02 14:40:37 $ + * last change: $Author: ihi $ $Date: 2007-11-20 19:12:36 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -102,6 +102,8 @@ #include "dlgedfac.hxx" #endif #include <boost/bind.hpp> +#include <toolkit/helper/vclunohelper.hxx> +#include <svtools/syslocale.hxx> #define SECTION_OFFSET 3 namespace rptui @@ -137,6 +139,8 @@ OReportWindow::OReportWindow(OScrollWindowHelper* _pParent,ODesignView* _pView) m_aHRuler.SetIndents(); m_aHRuler.SetMargin1(); m_aHRuler.SetMargin2(); + const MeasurementSystem eSystem = SvtSysLocale().GetLocaleData().getMeasurementSystemEnum(); + m_aHRuler.SetUnit(MEASURE_METRIC == eSystem ? FUNIT_CM : FUNIT_INCH); m_pObjFac = new DlgEdFactory(); |