diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-09 01:03:32 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-09 01:03:32 -0600 |
commit | beebe5149d610ea663e884e5b08f260747eae00d (patch) | |
tree | 98e24e2eaea709e3243ddbb965432ca504480056 /lotuswordpro | |
parent | b49b1e4c0e5e23039b8cfb44857c2f7d22372984 (diff) |
lotuswordpro: use native OUString api rather than a wrapper
Change-Id: I0a390cda1378bf7be19cb361c90b3374f4756fa4
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfborders.cxx | 12 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfutil.cxx | 12 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfutil.hxx | 2 |
3 files changed, 5 insertions, 21 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfborders.cxx b/lotuswordpro/source/filter/xfilter/xfborders.cxx index aa1c783b8700..d78760fbf46b 100644 --- a/lotuswordpro/source/filter/xfilter/xfborders.cxx +++ b/lotuswordpro/source/filter/xfilter/xfborders.cxx @@ -119,9 +119,9 @@ OUString XFBorder::GetLineWidth() if( m_bDouble ) { - str = FloatToOUString(m_fWidthInner); - str += "cm " + OUString::number(m_fWidthSpace); - str += "cm " + OUString::number(m_fWidthOuter) + "cm"; + str = OUString::number(m_fWidthInner) + "cm " + + OUString::number(m_fWidthSpace) + "cm " + + OUString::number(m_fWidthOuter) + "cm"; } return str; } @@ -138,8 +138,7 @@ OUString XFBorder::ToString() return str; } - str = OUString::number(width) + "cm"; - str += " double " + m_aColor.ToString(); + str = OUString::number(width) + "cm double " + m_aColor.ToString(); } else { @@ -148,8 +147,7 @@ OUString XFBorder::ToString() { return str; } - str = OUString::number(width) + "cm"; - str += " solid " + m_aColor.ToString(); + str = OUString::number(width) + "cm solid " + m_aColor.ToString(); } return str; } diff --git a/lotuswordpro/source/filter/xfilter/xfutil.cxx b/lotuswordpro/source/filter/xfilter/xfutil.cxx index e480f7b1c5ef..da50ea37af56 100644 --- a/lotuswordpro/source/filter/xfilter/xfutil.cxx +++ b/lotuswordpro/source/filter/xfilter/xfutil.cxx @@ -64,18 +64,6 @@ #include <rtl/ustrbuf.hxx> #include <sstream> -OUString FloatToOUString(float num, sal_Int32 /*precision*/) -{ - /*std::stringstream sstrm; - std::string strRet; - - sstrm.precision(precision); - sstrm<<num; - return OUString::createFromAscii(sstrm.str().c_str()); - */ - return OUString::number(num); -} - OUString DateTimeToOUString(XFDateTime& dt) { OUString aResult = OUString::number(dt.nYear) + "-" + OUString::number(dt.nMonth) + "-" + OUString::number(dt.nDay) + diff --git a/lotuswordpro/source/filter/xfilter/xfutil.hxx b/lotuswordpro/source/filter/xfilter/xfutil.hxx index c224392c2cda..0ea5f8725587 100644 --- a/lotuswordpro/source/filter/xfilter/xfutil.hxx +++ b/lotuswordpro/source/filter/xfilter/xfutil.hxx @@ -65,8 +65,6 @@ #include <rtl/ustring.hxx> #include <string> -OUString FloatToOUString(float num, sal_Int32 precision=6); - OUString DateTimeToOUString(XFDateTime& dt); OUString GetTableColName(sal_Int32 col); |