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
40c9a46b
Kaydet (Commit)
40c9a46b
authored
Mar 06, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add FormulaTokenArray::ReplaceToken()
Change-Id: I42c893677c1b8a35ee502a9ae438d4c0f19867d3
üst
bc4293bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
token.cxx
formula/source/core/api/token.cxx
+18
-0
tokenarray.hxx
include/formula/tokenarray.hxx
+4
-0
No files found.
formula/source/core/api/token.cxx
Dosyayı görüntüle @
40c9a46b
...
...
@@ -849,6 +849,24 @@ FormulaToken* FormulaTokenArray::MergeArray( )
return
NULL
;
}
FormulaToken
*
FormulaTokenArray
::
ReplaceToken
(
sal_uInt16
nOffset
,
FormulaToken
*
t
)
{
if
(
nOffset
<
nLen
)
{
CheckToken
(
*
t
);
sal_uInt16
nPos
=
nLen
-
nOffset
-
1
;
t
->
IncRef
();
pCode
[
nPos
]
->
DecRef
();
pCode
[
nPos
]
=
t
;
return
t
;
}
else
{
t
->
Delete
();
return
NULL
;
}
}
FormulaToken
*
FormulaTokenArray
::
Add
(
FormulaToken
*
t
)
{
if
(
!
pCode
)
...
...
include/formula/tokenarray.hxx
Dosyayı görüntüle @
40c9a46b
...
...
@@ -115,6 +115,10 @@ protected:
/// Also used by the compiler. The token MUST had been allocated with new!
FormulaToken
*
Add
(
FormulaToken
*
);
/** Also used by the compiler. The token MUST had been allocated with new!
@param nOffset negative offset of token, 0==last, 1==previous, ...
*/
FormulaToken
*
ReplaceToken
(
sal_uInt16
nOffset
,
FormulaToken
*
);
inline
void
SetCombinedBitsRecalcMode
(
ScRecalcMode
nBits
)
{
nMode
|=
(
nBits
&
~
RECALCMODE_EMASK
);
}
inline
ScRecalcMode
GetCombinedBitsRecalcMode
()
const
...
...
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