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