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
d9b4c8ea
Kaydet (Commit)
d9b4c8ea
authored
Kas 29, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert FormulaHelper::GetNextFunc xub_StrLen->salInt32
Change-Id: Ief8c4b4699b3f6ffe1cb02d3dae43ad5a0c4c89e
üst
40da065f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
30 deletions
+28
-30
FormulaHelper.cxx
formula/source/ui/dlg/FormulaHelper.cxx
+7
-7
formula.cxx
formula/source/ui/dlg/formula.cxx
+9
-9
formulahelper.hxx
include/formula/formulahelper.hxx
+6
-6
inputhdl.cxx
sc/source/ui/app/inputhdl.cxx
+4
-6
formula.cxx
sc/source/ui/formdlg/formula.cxx
+2
-2
No files found.
formula/source/ui/dlg/FormulaHelper.cxx
Dosyayı görüntüle @
d9b4c8ea
...
...
@@ -67,14 +67,14 @@ FormulaHelper::FormulaHelper(const IFunctionManager* _pFunctionManager)
}
sal_Bool
FormulaHelper
::
GetNextFunc
(
const
OUString
&
rFormula
,
sal_Bool
bBack
,
xub_StrLen
&
rFStart
,
// Input and output
xub_StrLen
*
pFEnd
,
// = NULL
const
IFunctionDescription
**
ppFDesc
,
// = NULL
::
std
::
vector
<
OUString
>*
pArgs
)
const
// = NULL
sal_Bool
bBack
,
sal_Int32
&
rFStart
,
// Input and output
sal_Int32
*
pFEnd
,
// = NULL
const
IFunctionDescription
**
ppFDesc
,
// = NULL
::
std
::
vector
<
OUString
>*
pArgs
)
const
// = NULL
{
xub_StrLen
nOldStart
=
rFStart
;
OUString
aFname
;
sal_Int32
nOldStart
=
rFStart
;
OUString
aFname
;
rFStart
=
GetFunctionStart
(
rFormula
,
rFStart
,
bBack
,
ppFDesc
?
&
aFname
:
NULL
);
sal_Bool
bFound
=
(
rFStart
!=
FUNC_NOTFOUND
);
...
...
formula/source/ui/dlg/formula.cxx
Dosyayı görüntüle @
d9b4c8ea
...
...
@@ -822,9 +822,9 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
// 2. Page or Edit: show selected function
xub_StrLen
nFStart
=
pData
->
GetFStart
();
OUString
aFormula
=
m_pHelper
->
getCurrentFormula
()
+
" )"
;
xub_StrLen
nNextFStart
=
nFStart
;
xub_StrLen
nNextFEnd
=
0
;
OUString
aFormula
=
m_pHelper
->
getCurrentFormula
()
+
" )"
;
sal_Int32
nNextFStart
=
nFStart
;
sal_Int32
nNextFEnd
=
0
;
DeleteArgs
();
const
IFunctionDescription
*
pOldFuncDesc
=
pFuncDesc
;
...
...
@@ -904,9 +904,9 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
}
// Test, ob vorne/hinten noch mehr Funktionen sind
xub_StrLen
nTempStart
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
sal_Int32
nTempStart
=
m_aFormulaHelper
.
GetArgStart
(
aFormula
,
nFStart
,
0
);
rbNext
=
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
sal_False
,
nTempStart
);
nTempStart
=
(
xub_StrLen
)
pMEdit
->
GetSelection
().
Min
();
nTempStart
=
pMEdit
->
GetSelection
().
Min
();
pData
->
SetFStart
(
nTempStart
);
rbPrev
=
m_aFormulaHelper
.
GetNextFunc
(
aFormula
,
sal_True
,
nTempStart
);
}
...
...
@@ -1103,8 +1103,8 @@ void FormulaDlg_Impl::EditThisFunc(xub_StrLen nFStart)
pData
->
SetFStart
(
nFStart
);
}
xub_StrLen
nNextFStart
=
nFStart
;
xub_StrLen
nNextFEnd
=
0
;
sal_Int32
nNextFStart
=
nFStart
;
sal_Int32
nNextFEnd
=
0
;
sal_Bool
bFound
;
...
...
@@ -1138,8 +1138,8 @@ void FormulaDlg_Impl::EditNextFunc( sal_Bool bForward, xub_StrLen nFStart )
pData
->
SetFStart
(
nFStart
);
}
xub_StrLen
nNextFStart
=
0
;
xub_StrLen
nNextFEnd
=
0
;
sal_Int32
nNextFStart
=
0
;
sal_Int32
nNextFEnd
=
0
;
sal_Bool
bFound
;
if
(
bForward
)
...
...
include/formula/formulahelper.hxx
Dosyayı görüntüle @
d9b4c8ea
...
...
@@ -46,12 +46,12 @@ namespace formula
inline
const
CharClass
*
GetCharClass
()
const
{
return
m_pCharClass
;
}
sal_Bool
GetNextFunc
(
const
OUString
&
rFormula
,
sal_Bool
bBack
,
xub_StrLen
&
rFStart
,
// Ein- und Ausgabe
xub_StrLen
*
pFEnd
=
NULL
,
const
IFunctionDescription
**
ppFDesc
=
NULL
,
::
std
::
vector
<
OUString
>*
pArgs
=
NULL
)
const
;
sal_Bool
GetNextFunc
(
const
OUString
&
rFormula
,
sal_Bool
bBack
,
sal_Int32
&
rFStart
,
// Ein- und Ausgabe
sal_Int32
*
pFEnd
=
NULL
,
const
IFunctionDescription
**
ppFDesc
=
NULL
,
::
std
::
vector
<
OUString
>*
pArgs
=
NULL
)
const
;
xub_StrLen
GetFunctionStart
(
const
OUString
&
rFormula
,
xub_StrLen
nStart
,
sal_Bool
bBack
,
OUString
*
pFuncName
=
NULL
)
const
;
...
...
sc/source/ui/app/inputhdl.cxx
Dosyayı görüntüle @
d9b4c8ea
...
...
@@ -822,8 +822,7 @@ void ScInputHandler::ShowTipCursor()
return
;
xub_StrLen
nPos
=
aSel
.
nEndPos
;
OUString
aSelText
=
aFormula
.
copy
(
0
,
nPos
);
xub_StrLen
nNextFStart
=
0
;
xub_StrLen
nNextFEnd
=
0
;
sal_Int32
nNextFStart
=
0
;
xub_StrLen
nArgPos
=
0
;
const
IFunctionDescription
*
ppFDesc
;
::
std
::
vector
<
OUString
>
aArgs
;
...
...
@@ -841,7 +840,7 @@ void ScInputHandler::ShowTipCursor()
if
(
!
(
comphelper
::
string
::
isalphaAscii
(
c
))
)
continue
;
nNextFStart
=
aHelper
.
GetFunctionStart
(
aSelText
,
nLeftParentPos
,
true
);
if
(
aHelper
.
GetNextFunc
(
aSelText
,
false
,
nNextFStart
,
&
nNextFEnd
,
&
ppFDesc
,
&
aArgs
)
)
if
(
aHelper
.
GetNextFunc
(
aSelText
,
false
,
nNextFStart
,
NULL
,
&
ppFDesc
,
&
aArgs
)
)
{
if
(
!
ppFDesc
->
getFunctionName
().
isEmpty
()
)
{
...
...
@@ -1059,8 +1058,7 @@ void ScInputHandler::UseFormulaData()
xub_StrLen
nPos
=
aSel
.
nEndPos
;
OUString
aFormula
=
aTotal
.
copy
(
0
,
nPos
);;
sal_Int32
nLeftParentPos
=
0
;
xub_StrLen
nNextFStart
=
0
;
xub_StrLen
nNextFEnd
=
0
;
sal_Int32
nNextFStart
=
0
;
xub_StrLen
nArgPos
=
0
;
const
IFunctionDescription
*
ppFDesc
;
::
std
::
vector
<
OUString
>
aArgs
;
...
...
@@ -1093,7 +1091,7 @@ void ScInputHandler::UseFormulaData()
if
(
!
(
comphelper
::
string
::
isalphaAscii
(
c
))
)
continue
;
nNextFStart
=
aHelper
.
GetFunctionStart
(
aFormula
,
nLeftParentPos
,
true
);
if
(
aHelper
.
GetNextFunc
(
aFormula
,
false
,
nNextFStart
,
&
nNextFEnd
,
&
ppFDesc
,
&
aArgs
)
)
if
(
aHelper
.
GetNextFunc
(
aFormula
,
false
,
nNextFStart
,
NULL
,
&
ppFDesc
,
&
aArgs
)
)
{
if
(
!
ppFDesc
->
getFunctionName
().
isEmpty
()
)
{
...
...
sc/source/ui/formdlg/formula.cxx
Dosyayı görüntüle @
d9b4c8ea
...
...
@@ -150,8 +150,8 @@ ScFormulaDlg::ScFormulaDlg( SfxBindings* pB, SfxChildWindow* pCW,
{
bMatrix
=
CheckMatrix
(
aFormula
);
xub_StrLen
nFStart
=
0
;
xub_StrLen
nFEnd
=
0
;
sal_Int32
nFStart
=
0
;
sal_Int32
nFEnd
=
0
;
if
(
GetFormulaHelper
().
GetNextFunc
(
aFormula
,
false
,
nFStart
,
&
nFEnd
)
)
{
pScMod
->
InputReplaceSelection
(
aFormula
);
...
...
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