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
ae2f7da4
Kaydet (Commit)
ae2f7da4
authored
Şub 18, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: Id5cbf2c94e3d3ff27cdb8998e2b7b3b712b537ec
üst
4003da2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
formula.cxx
formula/source/ui/dlg/formula.cxx
+20
-20
formula.hxx
include/formula/formula.hxx
+7
-7
Formula.cxx
reportdesign/source/ui/dlg/Formula.cxx
+1
-1
formula.cxx
sc/source/ui/formdlg/formula.cxx
+1
-1
No files found.
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
ae2f7da4
...
...
@@ -90,7 +90,7 @@ namespace formula
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
);
void
RefInputDoneAfter
(
sal_B
ool
bForced
);
void
RefInputDoneAfter
(
b
ool
bForced
);
sal_Bool
CalcValue
(
const
OUString
&
rStrExp
,
OUString
&
rStrResult
);
sal_Bool
CalcStruct
(
const
OUString
&
rStrExp
);
void
UpdateValues
();
...
...
@@ -114,17 +114,17 @@ namespace formula
void
SaveArg
(
sal_uInt16
nEd
);
void
UpdateSelection
();
void
DoEnter
(
sal_B
ool
bOk
);
void
DoEnter
(
b
ool
bOk
);
void
FillListboxes
();
void
FillControls
(
sal_Bool
&
rbNext
,
sal_Bool
&
rbPrev
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_B
ool
_bUpdate
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
b
ool
_bUpdate
);
void
SetMeText
(
const
OUString
&
_sText
);
sal_Bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
void
SetEdSelection
();
sal_B
ool
UpdateParaWin
(
Selection
&
_rSelection
);
b
ool
UpdateParaWin
(
Selection
&
_rSelection
);
void
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
OUString
&
_sRefStr
);
void
SetData
(
sal_Int32
nFStart
,
sal_Int32
nNextFStart
,
sal_Int32
nNextFEnd
,
sal_Int32
&
PrivStart
,
sal_Int32
&
PrivEnd
);
...
...
@@ -957,7 +957,7 @@ OUString FormulaDlg_Impl::RepairFormula(const OUString& aFormula)
return
aResult
;
}
void
FormulaDlg_Impl
::
DoEnter
(
sal_B
ool
bOk
)
void
FormulaDlg_Impl
::
DoEnter
(
b
ool
bOk
)
{
// Accept input to the document or cancel
if
(
bOk
)
...
...
@@ -984,11 +984,11 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn )
{
if
(
pBtn
==
&
aBtnCancel
)
{
DoEnter
(
sal_F
alse
);
// closes the Dialog
DoEnter
(
f
alse
);
// closes the Dialog
}
else
if
(
pBtn
==
&
aBtnEnd
)
{
DoEnter
(
sal_T
rue
);
// closes the Dialog
DoEnter
(
t
rue
);
// closes the Dialog
}
else
if
(
pBtn
==
&
aBtnForward
)
{
...
...
@@ -1436,7 +1436,7 @@ void FormulaDlg_Impl::RefInputStartAfter( RefEdit* /*pEdit*/, RefButton* /*pButt
m_pParent
->
SetText
(
MnemonicGenerator
::
EraseAllMnemonicChars
(
aStr
)
);
}
}
void
FormulaDlg_Impl
::
RefInputDoneAfter
(
sal_B
ool
bForced
)
void
FormulaDlg_Impl
::
RefInputDoneAfter
(
b
ool
bForced
)
{
aRefBtn
.
SetStartImage
();
if
(
bForced
||
!
aRefBtn
.
IsVisible
()
)
...
...
@@ -1490,7 +1490,7 @@ void FormulaDlg_Impl::SetMeText(const OUString& _sText)
pMEdit
->
SetSelection
(
pData
->
GetSelection
());
aMEFormula
.
UpdateOldSel
();
}
FormulaDlgMode
FormulaDlg_Impl
::
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_B
ool
_bUpdate
)
FormulaDlgMode
FormulaDlg_Impl
::
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
b
ool
_bUpdate
)
{
FormulaDlgMode
eMode
=
FORMULA_FORMDLG_FORMULA
;
if
(
!
bEditFlag
)
...
...
@@ -1509,11 +1509,11 @@ FormulaDlgMode FormulaDlg_Impl::SetMeText(const OUString& _sText, sal_Int32 Priv
}
// if ( _bUpdate )
return
eMode
;
}
sal_B
ool
FormulaDlg_Impl
::
CheckMatrix
(
OUString
&
aFormula
)
b
ool
FormulaDlg_Impl
::
CheckMatrix
(
OUString
&
aFormula
)
{
pMEdit
->
GrabFocus
();
sal_Int32
nLen
=
aFormula
.
getLength
();
sal_B
ool
bMatrix
=
nLen
>
3
// Matrix-Formula
b
ool
bMatrix
=
nLen
>
3
// Matrix-Formula
&&
aFormula
[
0
]
==
'{'
&&
aFormula
[
1
]
==
'='
&&
aFormula
[
nLen
-
1
]
==
'}'
;
...
...
@@ -1594,7 +1594,7 @@ void FormulaDlg_Impl::UpdateParaWin(const Selection& _rSelection, const OUString
pParaWin
->
SetRefMode
(
sal_False
);
}
sal_B
ool
FormulaDlg_Impl
::
UpdateParaWin
(
Selection
&
_rSelection
)
b
ool
FormulaDlg_Impl
::
UpdateParaWin
(
Selection
&
_rSelection
)
{
pParaWin
->
SetRefMode
(
sal_True
);
...
...
@@ -1667,7 +1667,7 @@ void FormulaModalDialog::SetMeText(const OUString& _sText)
}
// -----------------------------------------------------------------------------
sal_B
ool
FormulaModalDialog
::
CheckMatrix
(
OUString
&
aFormula
)
b
ool
FormulaModalDialog
::
CheckMatrix
(
OUString
&
aFormula
)
{
return
m_pImpl
->
CheckMatrix
(
aFormula
);
}
...
...
@@ -1684,7 +1684,7 @@ void FormulaModalDialog::RefInputStartAfter( RefEdit* pEdit, RefButton* pButton
{
m_pImpl
->
RefInputStartAfter
(
pEdit
,
pButton
);
}
void
FormulaModalDialog
::
RefInputDoneAfter
(
sal_B
ool
bForced
)
void
FormulaModalDialog
::
RefInputDoneAfter
(
b
ool
bForced
)
{
m_pImpl
->
RefInputDoneAfter
(
bForced
);
}
...
...
@@ -1756,7 +1756,7 @@ void FormulaDlg::SetMeText(const OUString& _sText)
}
// -----------------------------------------------------------------------------
FormulaDlgMode
FormulaDlg
::
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_B
ool
_bUpdate
)
FormulaDlgMode
FormulaDlg
::
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
b
ool
_bUpdate
)
{
return
m_pImpl
->
SetMeText
(
_sText
,
PrivStart
,
PrivEnd
,
bMatrix
,
_bSelect
,
_bUpdate
);
}
...
...
@@ -1766,7 +1766,7 @@ void FormulaDlg::CheckMatrix()
m_pImpl
->
aBtnMatrix
.
Check
();
}
// -----------------------------------------------------------------------------
sal_B
ool
FormulaDlg
::
CheckMatrix
(
OUString
&
aFormula
)
b
ool
FormulaDlg
::
CheckMatrix
(
OUString
&
aFormula
)
{
return
m_pImpl
->
CheckMatrix
(
aFormula
);
}
...
...
@@ -1784,7 +1784,7 @@ void FormulaDlg::Update()
m_pImpl
->
aTimer
.
Start
();
}
void
FormulaDlg
::
DoEnter
(
sal_B
ool
_bOk
)
void
FormulaDlg
::
DoEnter
(
b
ool
_bOk
)
{
m_pImpl
->
DoEnter
(
_bOk
);
}
...
...
@@ -1796,7 +1796,7 @@ void FormulaDlg::RefInputStartAfter( RefEdit* pEdit, RefButton* pButton )
{
m_pImpl
->
RefInputStartAfter
(
pEdit
,
pButton
);
}
void
FormulaDlg
::
RefInputDoneAfter
(
sal_B
ool
bForced
)
void
FormulaDlg
::
RefInputDoneAfter
(
b
ool
bForced
)
{
m_pImpl
->
RefInputDoneAfter
(
bForced
);
}
...
...
@@ -1847,7 +1847,7 @@ void FormulaDlg::UpdateParaWin(const Selection& _rSelection,const OUString& _sRe
{
m_pImpl
->
UpdateParaWin
(
_rSelection
,
_sRefStr
);
}
sal_B
ool
FormulaDlg
::
UpdateParaWin
(
Selection
&
_rSelection
)
b
ool
FormulaDlg
::
UpdateParaWin
(
Selection
&
_rSelection
)
{
return
m_pImpl
->
UpdateParaWin
(
_rSelection
);
}
...
...
include/formula/formula.hxx
Dosyayı görüntüle @
ae2f7da4
...
...
@@ -67,12 +67,12 @@ protected:
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
);
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputDoneAfter
(
sal_Bool
bForced
=
sal_F
alse
);
void
RefInputDoneAfter
(
bool
bForced
=
f
alse
);
void
SetFocusWin
(
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
SetMeText
(
const
OUString
&
_sText
);
void
Update
();
sal_Bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
void
Update
(
const
OUString
&
_sExp
);
void
StoreFormEditData
(
FormEditData
*
pData
);
...
...
@@ -111,20 +111,20 @@ protected:
virtual
bool
PreNotify
(
NotifyEvent
&
rNEvt
);
::
std
::
pair
<
RefButton
*
,
RefEdit
*>
RefInputStartBefore
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputStartAfter
(
RefEdit
*
pEdit
,
RefButton
*
pButton
=
NULL
);
void
RefInputDoneAfter
(
sal_Bool
bForced
=
sal_F
alse
);
void
RefInputDoneAfter
(
bool
bForced
=
f
alse
);
void
SetFocusWin
(
Window
*
pWin
,
const
OString
&
nUniqueId
);
void
HighlightFunctionParas
(
const
OUString
&
aFormula
);
void
SetMeText
(
const
OUString
&
_sText
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
sal_Bool
bMatrix
,
sal_Bool
_bSelect
,
sal_B
ool
_bUpdate
);
FormulaDlgMode
SetMeText
(
const
OUString
&
_sText
,
sal_Int32
PrivStart
,
sal_Int32
PrivEnd
,
bool
bMatrix
,
bool
_bSelect
,
b
ool
_bUpdate
);
void
Update
();
sal_Bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
bool
CheckMatrix
(
OUString
&
aFormula
/*IN/OUT*/
);
OUString
GetMeText
()
const
;
void
Update
(
const
OUString
&
_sExp
);
void
CheckMatrix
();
void
DoEnter
(
sal_B
ool
_bOk
);
void
DoEnter
(
b
ool
_bOk
);
const
IFunctionDescription
*
getCurrentFunctionDescription
()
const
;
sal_Bool
UpdateParaWin
(
Selection
&
_rSelection
);
bool
UpdateParaWin
(
Selection
&
_rSelection
);
void
UpdateParaWin
(
const
Selection
&
_rSelection
,
const
OUString
&
_sRefStr
);
RefEdit
*
GetActiveEdit
();
void
SetEdSelection
();
...
...
reportdesign/source/ui/dlg/Formula.cxx
Dosyayı görüntüle @
ae2f7da4
...
...
@@ -231,7 +231,7 @@ IMPL_LINK( FormulaDialog, OnClickHdl, OAddFieldWindow* ,_pAddFieldDlg)
}
m_pEdit
=
NULL
;
_pAddFieldDlg
->
Hide
();
RefInputDoneAfter
(
sal_T
rue
);
RefInputDoneAfter
(
t
rue
);
return
0L
;
}
...
...
sc/source/ui/formdlg/formula.cxx
Dosyayı görüntüle @
ae2f7da4
...
...
@@ -159,7 +159,7 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
sal_Int32
PrivStart
,
PrivEnd
;
pScMod
->
InputGetSelection
(
PrivStart
,
PrivEnd
);
eMode
=
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
sal_True
,
sal_T
rue
);
eMode
=
SetMeText
(
pScMod
->
InputGetFormulaStr
(),
PrivStart
,
PrivEnd
,
bMatrix
,
true
,
t
rue
);
pData
->
SetFStart
(
nFStart
);
}
else
...
...
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