User: ihi Date: 2007-11-20 19:12:39+0000 Modified: dba/reportdesign/source/ui/report/ReportWindow.cxx
Log: INTEGRATION: CWS reportdesign01 (1.3.20); FILE MERGED 2007/10/11 11:53:26 oj 1.3.20.1: #i81963# field unit corrected File Changes: Directory: /dba/reportdesign/source/ui/report/ ============================================== File [changed]: ReportWindow.cxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/ReportWindow.cxx?r1=1.3&r2=1.4 Delta lines: +4 -0 ------------------- --- ReportWindow.cxx 2007-08-02 14:40:37+0000 1.3 +++ ReportWindow.cxx 2007-11-20 19:12:36+0000 1.4 @@ -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 @@ 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(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
