Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a3e69600
Kaydet (Commit)
a3e69600
authored
Eyl 26, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sc/source/iui/inc/o*.hxx from String to OUString
Change-Id: Ia9b350db1f6a2267b54bd8a186ae32fc557c6d8d
üst
cd41f81e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
31 deletions
+31
-31
opredlin.hxx
sc/source/ui/inc/opredlin.hxx
+1
-1
optsolver.hxx
sc/source/ui/inc/optsolver.hxx
+23
-23
optsolver.cxx
sc/source/ui/miscdlgs/optsolver.cxx
+7
-7
No files found.
sc/source/ui/inc/opredlin.hxx
Dosyayı görüntüle @
a3e69600
...
...
@@ -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
*
);
...
...
sc/source/ui/inc/optsolver.hxx
Dosyayı görüntüle @
a3e69600
...
...
@@ -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
OU
String
&
rObjective
,
sal_Bool
bMax
,
sal_Bool
bMin
,
sal_Bool
bValue
,
const
OUString
&
rTarget
,
const
OU
String
&
rVariable
,
const
std
::
vector
<
ScOptConditionRow
>&
rConditions
,
const
String
&
rEngine
,
const
OU
String
&
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
OU
String
&
GetObjective
()
const
{
return
maObjective
;
}
sal_Bool
GetMax
()
const
{
return
mbMax
;
}
sal_Bool
GetMin
()
const
{
return
mbMin
;
}
sal_Bool
GetValue
()
const
{
return
mbValue
;
}
const
OU
String
&
GetTarget
()
const
{
return
maTarget
;
}
const
OU
String
&
GetVariable
()
const
{
return
maVariable
;
}
const
std
::
vector
<
ScOptConditionRow
>&
GetConditions
()
const
{
return
maConditions
;
}
const
String
&
GetEngine
()
const
{
return
maEngine
;
}
const
OU
String
&
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
OU
String
&
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
OU
String
&
rErrorText
);
~
ScSolverNoSolutionDialog
();
};
...
...
@@ -241,7 +241,7 @@ class ScSolverSuccessDialog : public ModalDialog
CancelButton
maBtnCancel
;
public
:
ScSolverSuccessDialog
(
Window
*
pParent
,
const
String
&
rSolution
);
ScSolverSuccessDialog
(
Window
*
pParent
,
const
OU
String
&
rSolution
);
~
ScSolverSuccessDialog
();
};
...
...
sc/source/ui/miscdlgs/optsolver.cxx
Dosyayı görüntüle @
a3e69600
...
...
@@ -78,7 +78,7 @@ void ScSolverProgressDialog::SetTimeLimit( sal_Int32 nSeconds )
//----------------------------------------------------------------------------
ScSolverNoSolutionDialog
::
ScSolverNoSolutionDialog
(
Window
*
pParent
,
const
String
&
rErrorText
)
ScSolverNoSolutionDialog
::
ScSolverNoSolutionDialog
(
Window
*
pParent
,
const
OU
String
&
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
OU
String
&
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
OU
String
&
rObjective
,
sal_Bool
bMax
,
sal_Bool
bMin
,
sal_Bool
bValue
,
const
OUString
&
rTarget
,
const
OU
String
&
rVariable
,
const
std
::
vector
<
ScOptConditionRow
>&
rConditions
,
const
String
&
rEngine
,
const
OU
String
&
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
OU
String
&
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment