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
65dedbd9
Kaydet (Commit)
65dedbd9
authored
Eki 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
store external range names in the cache, td#88179
Change-Id: I00b41f9b1fc2aec6f66c613cc02328b2968dca8d
üst
04a7df73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
externalrefmgr.hxx
sc/inc/externalrefmgr.hxx
+1
-0
externalrefmgr.cxx
sc/source/ui/docshell/externalrefmgr.cxx
+25
-2
No files found.
sc/inc/externalrefmgr.hxx
Dosyayı görüntüle @
65dedbd9
...
@@ -234,6 +234,7 @@ public:
...
@@ -234,6 +234,7 @@ public:
ScExternalRefCache
::
TokenArrayRef
getRangeNameTokens
(
sal_uInt16
nFileId
,
const
OUString
&
rName
);
ScExternalRefCache
::
TokenArrayRef
getRangeNameTokens
(
sal_uInt16
nFileId
,
const
OUString
&
rName
);
void
setRangeNameTokens
(
sal_uInt16
nFileId
,
const
OUString
&
rName
,
TokenArrayRef
pArray
);
void
setRangeNameTokens
(
sal_uInt16
nFileId
,
const
OUString
&
rName
,
TokenArrayRef
pArray
);
bool
isValidRangeName
(
sal_uInt16
nFileId
,
const
OUString
&
rName
)
const
;
bool
isValidRangeName
(
sal_uInt16
nFileId
,
const
OUString
&
rName
)
const
;
void
setRangeName
(
sal_uInt16
nFileId
,
const
OUString
&
rName
);
void
setCellData
(
sal_uInt16
nFileId
,
const
OUString
&
rTabName
,
void
setCellData
(
sal_uInt16
nFileId
,
const
OUString
&
rTabName
,
SCCOL
nCol
,
SCROW
nRow
,
TokenRef
pToken
,
sal_uLong
nFmtIndex
);
SCCOL
nCol
,
SCROW
nRow
,
TokenRef
pToken
,
sal_uLong
nFmtIndex
);
...
...
sc/source/ui/docshell/externalrefmgr.cxx
Dosyayı görüntüle @
65dedbd9
...
@@ -714,6 +714,18 @@ bool ScExternalRefCache::isValidRangeName(sal_uInt16 nFileId, const OUString& rN
...
@@ -714,6 +714,18 @@ bool ScExternalRefCache::isValidRangeName(sal_uInt16 nFileId, const OUString& rN
return
rMap
.
count
(
rName
)
>
0
;
return
rMap
.
count
(
rName
)
>
0
;
}
}
void
ScExternalRefCache
::
setRangeName
(
sal_uInt16
nFileId
,
const
OUString
&
rName
)
{
osl
::
MutexGuard
aGuard
(
&
maMtxDocs
);
DocItem
*
pDoc
=
getDocItem
(
nFileId
);
if
(
!
pDoc
)
return
;
OUString
aUpperName
=
ScGlobal
::
pCharClass
->
uppercase
(
rName
);
pDoc
->
maRealRangeNameMap
.
insert
(
NamePairMap
::
value_type
(
aUpperName
,
rName
));
}
void
ScExternalRefCache
::
setCellData
(
sal_uInt16
nFileId
,
const
OUString
&
rTabName
,
SCCOL
nCol
,
SCROW
nRow
,
void
ScExternalRefCache
::
setCellData
(
sal_uInt16
nFileId
,
const
OUString
&
rTabName
,
SCCOL
nCol
,
SCROW
nRow
,
TokenRef
pToken
,
sal_uLong
nFmtIndex
)
TokenRef
pToken
,
sal_uLong
nFmtIndex
)
{
{
...
@@ -1999,7 +2011,12 @@ bool ScExternalRefManager::isValidRangeName(sal_uInt16 nFileId, const OUString&
...
@@ -1999,7 +2011,12 @@ bool ScExternalRefManager::isValidRangeName(sal_uInt16 nFileId, const OUString&
if
(
pSrcDoc
)
if
(
pSrcDoc
)
{
{
// Only check the presence of the name.
// Only check the presence of the name.
return
hasRangeName
(
*
pSrcDoc
,
rName
);
if
(
hasRangeName
(
*
pSrcDoc
,
rName
))
{
maRefCache
.
setRangeName
(
nFileId
,
rName
);
return
true
;
}
return
false
;
}
}
if
(
maRefCache
.
isValidRangeName
(
nFileId
,
rName
))
if
(
maRefCache
.
isValidRangeName
(
nFileId
,
rName
))
...
@@ -2011,7 +2028,13 @@ bool ScExternalRefManager::isValidRangeName(sal_uInt16 nFileId, const OUString&
...
@@ -2011,7 +2028,13 @@ bool ScExternalRefManager::isValidRangeName(sal_uInt16 nFileId, const OUString&
// failed to load document from disk.
// failed to load document from disk.
return
false
;
return
false
;
return
hasRangeName
(
*
pSrcDoc
,
rName
);
if
(
hasRangeName
(
*
pSrcDoc
,
rName
))
{
maRefCache
.
setRangeName
(
nFileId
,
rName
);
return
true
;
}
return
false
;
}
}
void
ScExternalRefManager
::
refreshAllRefCells
(
sal_uInt16
nFileId
)
void
ScExternalRefManager
::
refreshAllRefCells
(
sal_uInt16
nFileId
)
...
...
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