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
5ca17330
Kaydet (Commit)
5ca17330
authored
Ock 06, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correctly update absolute refs in range names if pointing to copied area
üst
fffd541c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
tokenarray.hxx
sc/inc/tokenarray.hxx
+1
-1
cell.cxx
sc/source/core/data/cell.cxx
+1
-0
token.cxx
sc/source/core/tool/token.cxx
+9
-4
No files found.
sc/inc/tokenarray.hxx
Dosyayı görüntüle @
5ca17330
...
...
@@ -109,7 +109,7 @@ public:
/**
* Make all absolute references pointing to the copied range if the range is copied too
*/
void
AdjustAbsoluteRefs
(
const
ScDocument
*
pOldDoc
,
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
);
void
AdjustAbsoluteRefs
(
const
ScDocument
*
pOldDoc
,
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
,
bool
bRangeName
=
false
);
};
#endif // SC_TOKENARRAY_HXX
...
...
sc/source/core/data/cell.cxx
Dosyayı görüntüle @
5ca17330
...
...
@@ -183,6 +183,7 @@ void adjustRangeName(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOl
if
(
rNewDoc
.
GetPool
()
!=
const_cast
<
ScDocument
*>
(
pOldDoc
)
->
GetPool
())
{
pRangeNameToken
->
ReadjustAbsolute3DReferences
(
pOldDoc
,
&
rNewDoc
,
pRangeData
->
GetPos
(),
true
);
pRangeNameToken
->
AdjustAbsoluteRefs
(
pOldDoc
,
aOldPos
,
aNewPos
,
true
);
}
bool
bInserted
;
...
...
sc/source/core/tool/token.cxx
Dosyayı görüntüle @
5ca17330
...
...
@@ -1944,7 +1944,7 @@ void ScTokenArray::ReadjustAbsolute3DReferences( const ScDocument* pOldDoc, cons
}
}
void
ScTokenArray
::
AdjustAbsoluteRefs
(
const
ScDocument
*
pOldDoc
,
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
)
void
ScTokenArray
::
AdjustAbsoluteRefs
(
const
ScDocument
*
pOldDoc
,
const
ScAddress
&
rOldPos
,
const
ScAddress
&
rNewPos
,
bool
bRangeName
)
{
for
(
sal_uInt16
j
=
0
;
j
<
nLen
;
++
j
)
{
...
...
@@ -1959,8 +1959,11 @@ void ScTokenArray::AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddres
ScSingleRefData
&
rRef2
=
rRef
.
Ref2
;
ScSingleRefData
&
rRef1
=
rRef
.
Ref1
;
AdjustSingleRefData
(
rRef1
,
rOldPos
,
rNewPos
);
AdjustSingleRefData
(
rRef2
,
rOldPos
,
rNewPos
);
// for range names only adjust if all parts are absolute
if
(
!
bRangeName
||
!
(
rRef1
.
IsColRel
()
||
rRef1
.
IsRowRel
()
||
rRef1
.
IsTabRel
()))
AdjustSingleRefData
(
rRef1
,
rOldPos
,
rNewPos
);
if
(
!
bRangeName
||
!
(
rRef2
.
IsColRel
()
||
rRef2
.
IsRowRel
()
||
rRef2
.
IsTabRel
()))
AdjustSingleRefData
(
rRef2
,
rOldPos
,
rNewPos
);
}
break
;
...
...
@@ -1971,7 +1974,9 @@ void ScTokenArray::AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddres
ScSingleRefData
&
rRef
=
static_cast
<
ScToken
*>
(
pCode
[
j
])
->
GetSingleRef
();
AdjustSingleRefData
(
rRef
,
rOldPos
,
rNewPos
);
// for range names only adjust if all parts are absolute
if
(
!
bRangeName
||
!
(
rRef
.
IsColRel
()
||
rRef
.
IsRowRel
()
||
rRef
.
IsTabRel
()))
AdjustSingleRefData
(
rRef
,
rOldPos
,
rNewPos
);
}
...
...
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