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
55e484c7
Kaydet (Commit)
55e484c7
authored
Ock 17, 2018
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move implementation to CheckLinkFormulaNeedingCheck() for further reuse
Change-Id: I541d2b6e12a88371c064b901b00e71206ee0c18e
üst
34f1883e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
document.hxx
sc/inc/document.hxx
+2
-0
documen8.cxx
sc/source/core/data/documen8.cxx
+10
-0
formulacell.cxx
sc/source/core/data/formulacell.cxx
+1
-2
No files found.
sc/inc/document.hxx
Dosyayı görüntüle @
55e484c7
...
...
@@ -1992,6 +1992,8 @@ public:
bool
HasLinkFormulaNeedingCheck
()
const
{
return
bLinkFormulaNeedingCheck
;
}
void
SetLinkFormulaNeedingCheck
(
bool
bSet
)
{
bLinkFormulaNeedingCheck
=
bSet
;
}
/** Check token array and set link check if ocDde/ocWebservice is contained. */
SC_DLLPUBLIC
void
CheckLinkFormulaNeedingCheck
(
const
ScTokenArray
&
rCode
);
void
SetRangeOverflowType
(
ErrCode
nType
)
{
nRangeOverflowType
=
nType
;
}
bool
HasRangeOverflow
()
const
{
return
nRangeOverflowType
!=
ERRCODE_NONE
;
}
...
...
sc/source/core/data/documen8.cxx
Dosyayı görüntüle @
55e484c7
...
...
@@ -88,6 +88,7 @@
#include <stringutil.hxx>
#include <documentlinkmgr.hxx>
#include <scopetools.hxx>
#include <tokenarray.hxx>
#include <memory>
#include <utility>
...
...
@@ -1176,6 +1177,15 @@ void ScDocument::UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
}
}
void
ScDocument
::
CheckLinkFormulaNeedingCheck
(
const
ScTokenArray
&
rCode
)
{
if
(
HasLinkFormulaNeedingCheck
())
return
;
if
(
rCode
.
HasOpCodeRPN
(
ocDde
)
||
rCode
.
HasOpCodeRPN
(
ocWebservice
))
SetLinkFormulaNeedingCheck
(
true
);
}
// TimerDelays etc.
void
ScDocument
::
KeyInput
()
{
...
...
sc/source/core/data/formulacell.cxx
Dosyayı görüntüle @
55e484c7
...
...
@@ -1360,8 +1360,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr
// After loading, it must be known if ocDde/ocWebservice is in any formula
// (for external links warning, CompileXML is called at the end of loading XML file)
if
(
!
pDocument
->
HasLinkFormulaNeedingCheck
()
&&
(
pCode
->
HasOpCodeRPN
(
ocDde
)
||
pCode
->
HasOpCodeRPN
(
ocWebservice
)))
pDocument
->
SetLinkFormulaNeedingCheck
(
true
);
pDocument
->
CheckLinkFormulaNeedingCheck
(
*
pCode
);
//volatile cells must be added here for import
if
(
pCode
->
IsRecalcModeAlways
()
||
pCode
->
IsRecalcModeForced
()
||
...
...
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