Kaydet (Commit) a3e69600 authored tarafından Noel Grandin's avatar Noel Grandin

convert sc/source/iui/inc/o*.hxx from String to OUString

Change-Id: Ia9b350db1f6a2267b54bd8a186ae32fc557c6d8d
üst cd41f81e
......@@ -40,7 +40,7 @@ class ScRedlineOptionsTabPage : public SfxTabPage
ColorListBox* m_pRemoveColorLB;
ColorListBox* m_pInsertColorLB;
ColorListBox* m_pMoveColorLB;
String aAuthorStr;
OUString aAuthorStr;
DECL_LINK(ColorHdl, void *);
......
......@@ -53,42 +53,42 @@ protected:
/// The dialog's content for a row, not yet parsed
struct ScOptConditionRow
{
String aLeftStr;
OUString aLeftStr;
sal_uInt16 nOperator;
String aRightStr;
OUString aRightStr;
ScOptConditionRow() : nOperator(0) {}
bool IsDefault() const { return aLeftStr.Len() == 0 && aRightStr.Len() == 0 && nOperator == 0; }
bool IsDefault() const { return aLeftStr.isEmpty() && aRightStr.isEmpty() && nOperator == 0; }
};
/// All settings from the dialog, saved with the DocShell for the next call
class ScOptSolverSave
{
String maObjective;
OUString maObjective;
sal_Bool mbMax;
sal_Bool mbMin;
sal_Bool mbValue;
String maTarget;
String maVariable;
OUString maTarget;
OUString maVariable;
std::vector<ScOptConditionRow> maConditions;
String maEngine;
OUString maEngine;
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maProperties;
public:
ScOptSolverSave( const String& rObjective, sal_Bool bMax, sal_Bool bMin, sal_Bool bValue,
const String& rTarget, const String& rVariable,
ScOptSolverSave( const OUString& rObjective, sal_Bool bMax, sal_Bool bMin, sal_Bool bValue,
const OUString& rTarget, const OUString& rVariable,
const std::vector<ScOptConditionRow>& rConditions,
const String& rEngine,
const OUString& rEngine,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties );
const String& GetObjective() const { return maObjective; }
sal_Bool GetMax() const { return mbMax; }
sal_Bool GetMin() const { return mbMin; }
sal_Bool GetValue() const { return mbValue; }
const String& GetTarget() const { return maTarget; }
const String& GetVariable() const { return maVariable; }
const OUString& GetObjective() const { return maObjective; }
sal_Bool GetMax() const { return mbMax; }
sal_Bool GetMin() const { return mbMin; }
sal_Bool GetValue() const { return mbValue; }
const OUString& GetTarget() const { return maTarget; }
const OUString& GetVariable() const { return maVariable; }
const std::vector<ScOptConditionRow>& GetConditions() const { return maConditions; }
const String& GetEngine() const { return maEngine; }
const OUString& GetEngine() const { return maEngine; }
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& GetProperties() const
{ return maProperties; }
};
......@@ -157,8 +157,8 @@ private:
PushButton* m_pBtnCancel;
PushButton* m_pBtnSolve;
String maInputError;
String maConditionError;
OUString maInputError;
OUString maConditionError;
ScDocShell* mpDocShell;
ScDocument* mpDoc;
......@@ -179,7 +179,7 @@ private:
com::sun::star::uno::Sequence<OUString> maImplNames;
com::sun::star::uno::Sequence<OUString> maDescriptions;
String maEngine;
OUString maEngine;
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maProperties;
void Init(const ScAddress& rCursorPos);
......@@ -187,7 +187,7 @@ private:
void ReadConditions();
void ShowConditions();
void EnableButtons();
bool ParseRef( ScRange& rRange, const String& rInput, bool bAllowRange );
bool ParseRef( ScRange& rRange, const OUString& rInput, bool bAllowRange );
bool FindTimeout( sal_Int32& rTimeout );
void ShowError( bool bCondition, formula::RefEdit* pFocus );
......@@ -227,7 +227,7 @@ class ScSolverNoSolutionDialog : public ModalDialog
OKButton maBtnOk;
public:
ScSolverNoSolutionDialog( Window* pParent, const String& rErrorText );
ScSolverNoSolutionDialog( Window* pParent, const OUString& rErrorText );
~ScSolverNoSolutionDialog();
};
......@@ -241,7 +241,7 @@ class ScSolverSuccessDialog : public ModalDialog
CancelButton maBtnCancel;
public:
ScSolverSuccessDialog( Window* pParent, const String& rSolution );
ScSolverSuccessDialog( Window* pParent, const OUString& rSolution );
~ScSolverSuccessDialog();
};
......
......@@ -78,7 +78,7 @@ void ScSolverProgressDialog::SetTimeLimit( sal_Int32 nSeconds )
//----------------------------------------------------------------------------
ScSolverNoSolutionDialog::ScSolverNoSolutionDialog( Window* pParent, const String& rErrorText )
ScSolverNoSolutionDialog::ScSolverNoSolutionDialog( Window* pParent, const OUString& rErrorText )
: ModalDialog( pParent, ScResId( RID_SCDLG_SOLVER_NOSOLUTION ) ),
maFtNoSolution ( this, ScResId( FT_NOSOLUTION ) ),
maFtErrorText ( this, ScResId( FT_ERRORTEXT ) ),
......@@ -95,7 +95,7 @@ ScSolverNoSolutionDialog::~ScSolverNoSolutionDialog()
//----------------------------------------------------------------------------
ScSolverSuccessDialog::ScSolverSuccessDialog( Window* pParent, const String& rSolution )
ScSolverSuccessDialog::ScSolverSuccessDialog( Window* pParent, const OUString& rSolution )
: ModalDialog( pParent, ScResId( RID_SCDLG_SOLVER_SUCCESS ) ),
maFtSuccess ( this, ScResId( FT_SUCCESS ) ),
maFtResult ( this, ScResId( FT_RESULT ) ),
......@@ -152,10 +152,10 @@ void ScCursorRefEdit::KeyInput( const KeyEvent& rKEvt )
//----------------------------------------------------------------------------
ScOptSolverSave::ScOptSolverSave( const String& rObjective, sal_Bool bMax, sal_Bool bMin, sal_Bool bValue,
const String& rTarget, const String& rVariable,
ScOptSolverSave::ScOptSolverSave( const OUString& rObjective, sal_Bool bMax, sal_Bool bMin, sal_Bool bValue,
const OUString& rTarget, const OUString& rVariable,
const std::vector<ScOptConditionRow>& rConditions,
const String& rEngine,
const OUString& rEngine,
const uno::Sequence<beans::PropertyValue>& rProperties ) :
maObjective( rObjective ),
mbMax( bMax ),
......@@ -785,7 +785,7 @@ void ScOptSolverDlg::ShowError( bool bCondition, formula::RefEdit* pFocus )
//----------------------------------------------------------------------------
bool ScOptSolverDlg::ParseRef( ScRange& rRange, const String& rInput, bool bAllowRange )
bool ScOptSolverDlg::ParseRef( ScRange& rRange, const OUString& rInput, bool bAllowRange )
{
ScRangeUtil aRangeUtil;
ScAddress::Details aDetails(mpDoc->GetAddressConvention(), 0, 0);
......@@ -883,7 +883,7 @@ bool ScOptSolverDlg::CallSolver() // return true -> close dialog after cal
for ( std::vector<ScOptConditionRow>::const_iterator aConstrIter = maConditions.begin();
aConstrIter != maConditions.end(); ++aConstrIter )
{
if ( aConstrIter->aLeftStr.Len() )
if ( !aConstrIter->aLeftStr.isEmpty() )
{
sheet::SolverConstraint aConstraint;
// order of list box entries must match enum values
......
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