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
369ee0b1
Kaydet (Commit)
369ee0b1
authored
Tem 07, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
introduce ScTokenArray::AdjustReferenceOnCopy(), tdf#92468
Change-Id: I0a7ac0d9d10e96223cd5f095a771aa6f9d271417
üst
ad3d2b6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
tokenarray.hxx
sc/inc/tokenarray.hxx
+6
-0
token.cxx
sc/source/core/tool/token.cxx
+28
-0
No files found.
sc/inc/tokenarray.hxx
Dosyayı görüntüle @
369ee0b1
...
@@ -216,6 +216,12 @@ public:
...
@@ -216,6 +216,12 @@ public:
*/
*/
void
AdjustReferenceOnMovedOriginIfOtherSheet
(
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
);
void
AdjustReferenceOnMovedOriginIfOtherSheet
(
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
);
/**
* Adjust internal range references on base position change to justify /
* put in order the relative references.
*/
void
AdjustReferenceOnCopy
(
const
ScAddress
&
rNewPos
);
/**
/**
* Clear sheet deleted flag from internal reference tokens if the sheet
* Clear sheet deleted flag from internal reference tokens if the sheet
* index falls within specified range. Note that when a reference is on a
* index falls within specified range. Note that when a reference is on a
...
...
sc/source/core/tool/token.cxx
Dosyayı görüntüle @
369ee0b1
...
@@ -3951,6 +3951,34 @@ void ScTokenArray::AdjustReferenceOnMovedOriginIfOtherSheet( const ScAddress& rO
...
@@ -3951,6 +3951,34 @@ void ScTokenArray::AdjustReferenceOnMovedOriginIfOtherSheet( const ScAddress& rO
}
}
}
}
void
ScTokenArray
::
AdjustReferenceOnCopy
(
const
ScAddress
&
rNewPos
)
{
TokenPointers
aPtrs
(
pCode
,
nLen
,
pRPN
,
nRPN
,
false
);
for
(
size_t
j
=
0
;
j
<
2
;
++
j
)
{
FormulaToken
**
pp
=
aPtrs
.
maPointerRange
[
j
].
mpStart
;
FormulaToken
**
pEnd
=
aPtrs
.
maPointerRange
[
j
].
mpStop
;
for
(;
pp
!=
pEnd
;
++
pp
)
{
FormulaToken
*
p
=
aPtrs
.
getHandledToken
(
j
,
pp
);
if
(
!
p
)
continue
;
switch
(
p
->
GetType
())
{
case
svDoubleRef
:
{
ScComplexRefData
&
rRef
=
*
p
->
GetDoubleRef
();
rRef
.
PutInOrder
(
rNewPos
);
}
break
;
default
:
;
}
}
}
}
namespace
{
namespace
{
void
clearTabDeletedFlag
(
ScSingleRefData
&
rRef
,
const
ScAddress
&
rPos
,
SCTAB
nStartTab
,
SCTAB
nEndTab
)
void
clearTabDeletedFlag
(
ScSingleRefData
&
rRef
,
const
ScAddress
&
rPos
,
SCTAB
nStartTab
,
SCTAB
nEndTab
)
...
...
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