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
8b03c959
Kaydet (Commit)
8b03c959
authored
Haz 07, 2017
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Take new FormulaTokenArrayPlainIterator into use in one more place
Change-Id: Ia93b7759939bce42a4baf9ff55ec3c2b01840d9d
üst
5abb8cc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
formulaiter.hxx
sc/inc/formulaiter.hxx
+3
-1
formulaiter.cxx
sc/source/core/data/formulaiter.cxx
+6
-6
No files found.
sc/inc/formulaiter.hxx
Dosyayı görüntüle @
8b03c959
...
@@ -20,11 +20,12 @@
...
@@ -20,11 +20,12 @@
#ifndef INCLUDED_SC_INC_FORMULAITER_HXX
#ifndef INCLUDED_SC_INC_FORMULAITER_HXX
#define INCLUDED_SC_INC_FORMULAITER_HXX
#define INCLUDED_SC_INC_FORMULAITER_HXX
#include <formula/tokenarray.hxx>
#include "address.hxx"
#include "address.hxx"
class
ScTokenArray
;
class
ScTokenArray
;
class
ScFormulaCell
;
class
ScFormulaCell
;
namespace
formula
{
class
FormulaToken
;
}
/**
/**
* Iterator for references in a formula cell.
* Iterator for references in a formula cell.
...
@@ -33,6 +34,7 @@ class ScDetectiveRefIter
...
@@ -33,6 +34,7 @@ class ScDetectiveRefIter
{
{
private
:
private
:
ScTokenArray
*
pCode
;
ScTokenArray
*
pCode
;
formula
::
FormulaTokenArrayPlainIterator
maIter
;
ScAddress
aPos
;
ScAddress
aPos
;
public
:
public
:
ScDetectiveRefIter
(
ScFormulaCell
*
pCell
);
ScDetectiveRefIter
(
ScFormulaCell
*
pCell
);
...
...
sc/source/core/data/formulaiter.cxx
Dosyayı görüntüle @
8b03c959
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
using
namespace
formula
;
using
namespace
formula
;
ScDetectiveRefIter
::
ScDetectiveRefIter
(
ScFormulaCell
*
pCell
)
ScDetectiveRefIter
::
ScDetectiveRefIter
(
ScFormulaCell
*
pCell
)
:
pCode
(
pCell
->
GetCode
()),
maIter
(
*
pCode
),
aPos
(
pCell
->
aPos
)
{
{
pCode
=
pCell
->
GetCode
();
pCode
->
Reset
();
aPos
=
pCell
->
aPos
;
}
}
static
bool
lcl_ScDetectiveRefIter_SkipRef
(
formula
::
FormulaToken
*
p
,
const
ScAddress
&
rPos
)
static
bool
lcl_ScDetectiveRefIter_SkipRef
(
formula
::
FormulaToken
*
p
,
const
ScAddress
&
rPos
)
...
@@ -65,10 +65,10 @@ bool ScDetectiveRefIter::GetNextRef( ScRange& rRange )
...
@@ -65,10 +65,10 @@ bool ScDetectiveRefIter::GetNextRef( ScRange& rRange )
formula
::
FormulaToken
*
ScDetectiveRefIter
::
GetNextRefToken
()
formula
::
FormulaToken
*
ScDetectiveRefIter
::
GetNextRefToken
()
{
{
formula
::
FormulaToken
*
p
=
pCode
->
GetNextReferenceRPN
();
formula
::
FormulaToken
*
p
=
maIter
.
GetNextReferenceRPN
();
while
(
p
&&
lcl_ScDetectiveRefIter_SkipRef
(
p
,
aPos
))
while
(
p
&&
lcl_ScDetectiveRefIter_SkipRef
(
p
,
aPos
))
{
{
p
=
pCode
->
GetNextReferenceRPN
();
p
=
maIter
.
GetNextReferenceRPN
();
}
}
return
p
;
return
p
;
}
}
...
...
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