Kaydet (Commit) 99105031 authored tarafından Matteo Casalin's avatar Matteo Casalin

String to OUString

Change-Id: I260df7e14a5394dcf4aef540e575366eb9785c47
Reviewed-on: https://gerrit.libreoffice.org/5607Tested-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 5a684a04
......@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _CELLATR_HXX
#define _CELLATR_HXX
#ifndef CELLATR_HXX
#define CELLATR_HXX
#include <svl/intitem.hxx>
#include <svl/zforlist.hxx>
......@@ -26,6 +26,8 @@
#include "format.hxx"
#include "cellfml.hxx"
namespace rtl { class OUString; }
class SW_DLLPUBLIC SwTblBoxNumFormat : public SfxUInt32Item
{
sal_Bool bAuto; ///< automatically given flag
......@@ -54,7 +56,7 @@ class SwTblBoxFormula : public SfxPoolItem, public SwTableFormula
// can only be TableBoxFormat
public:
SwTblBoxFormula( const String& rFormula );
SwTblBoxFormula( const OUString& rFormula );
~SwTblBoxFormula() {};
// "pure virtual methods" of SfxPoolItem
......
......@@ -27,6 +27,7 @@
#include <node.hxx>
#include <rolbck.hxx>
#include <rtl/math.hxx>
#include <rtl/ustring.hxx>
#include <switerator.hxx>
#include <swtable.hxx>
......@@ -55,7 +56,7 @@ SfxPoolItem* SwTblBoxNumFormat::Clone( SfxItemPool* ) const
// SwTblBoxFormula
// -----------------
SwTblBoxFormula::SwTblBoxFormula( const String& rFormula )
SwTblBoxFormula::SwTblBoxFormula( const OUString& rFormula )
: SfxPoolItem( RES_BOXATR_FORMULA ),
SwTableFormula( rFormula ),
pDefinedIn( 0 )
......@@ -186,7 +187,7 @@ void SwTblBoxFormula::Calc( SwTblCalcPara& rCalcPara, double& rValue )
{
// create pointers from box names
BoxNmToPtr( rCalcPara.pTbl );
String sFml( MakeFormula( rCalcPara ));
const OUString sFml( MakeFormula( rCalcPara ));
if( !rCalcPara.rCalc.IsCalcError() )
rValue = rCalcPara.rCalc.Calculate( sFml ).GetDouble();
else
......
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