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
efc66942
Kaydet (Commit)
efc66942
authored
Haz 29, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
no need to recompile the formula again
Change-Id: I03b72bd6a0b341ec89e0995f7b53287449ce9f61
üst
cbbf5876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
simpleformulacalc.hxx
sc/inc/simpleformulacalc.hxx
+0
-1
simpleformulacalc.cxx
sc/source/core/data/simpleformulacalc.cxx
+5
-7
No files found.
sc/inc/simpleformulacalc.hxx
Dosyayı görüntüle @
efc66942
...
...
@@ -30,7 +30,6 @@ private:
ScAddress
maAddr
;
ScDocument
*
mpDoc
;
ScFormulaResult
maResult
;
const
OUString
maFormula
;
formula
::
FormulaGrammar
::
Grammar
maGram
;
bool
bIsMatrix
;
OUString
maMatrixFormulaResult
;
...
...
sc/source/core/data/simpleformulacalc.cxx
Dosyayı görüntüle @
efc66942
...
...
@@ -20,7 +20,6 @@ ScSimpleFormulaCalculator::ScSimpleFormulaCalculator( ScDocument* pDoc, const Sc
,
mbCalculated
(
false
)
,
maAddr
(
rAddr
)
,
mpDoc
(
pDoc
)
,
maFormula
(
rFormula
)
,
maGram
(
eGram
)
,
bIsMatrix
(
false
)
{
...
...
@@ -48,15 +47,13 @@ void ScSimpleFormulaCalculator::Calculate()
formula
::
StackVar
aIntType
=
aInt
.
Interpret
();
if
(
aIntType
==
formula
::
svMatrixCell
)
{
OUStringBuffer
aStr
;
ScCompiler
aComp
(
mpDoc
,
maAddr
);
aComp
.
SetGrammar
(
maGram
);
mpCode
.
reset
(
aComp
.
CompileString
(
maFormula
));
if
(
!
mpCode
->
GetCodeError
()
&&
mpCode
->
GetLen
())
aComp
.
CompileTokenArray
();
aComp
.
CreateStringFromToken
(
aStr
,
aInt
.
GetResultToken
().
get
(),
true
);
OUStringBuffer
aStr
;
aComp
.
CreateStringFromToken
(
aStr
,
aInt
.
GetResultToken
().
get
(),
false
);
bIsMatrix
=
true
;
maMatrixFormulaResult
=
aStr
.
toString
();
maMatrixFormulaResult
=
aStr
.
makeStringAndClear
();
}
mnFormatType
=
aInt
.
GetRetFormatType
();
mnFormatIndex
=
aInt
.
GetRetFormatIndex
();
...
...
@@ -69,6 +66,7 @@ bool ScSimpleFormulaCalculator::IsValue()
if
(
bIsMatrix
)
return
false
;
return
maResult
.
IsValue
();
}
...
...
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