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
3b6fc983
Kaydet (Commit)
3b6fc983
authored
Eyl 24, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
show local range names in navigator
üst
e1de59eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
14 deletions
+35
-14
content.cxx
sc/source/ui/navipi/content.cxx
+35
-14
No files found.
sc/source/ui/navipi/content.cxx
Dosyayı görüntüle @
3b6fc983
...
...
@@ -653,6 +653,18 @@ void ScContentTree::GetTableNames()
}
}
namespace
{
rtl
::
OUString
createLocalRangeName
(
const
rtl
::
OUString
&
rName
,
const
rtl
::
OUString
&
rTableName
)
{
rtl
::
OUStringBuffer
aString
(
rName
);
aString
.
append
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
" ("
)));
aString
.
append
(
rTableName
);
aString
.
append
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
")"
)));
return
aString
.
makeStringAndClear
();
}
}
void
ScContentTree
::
GetAreaNames
()
{
if
(
nRootType
&&
nRootType
!=
SC_CONTENT_RANGENAME
)
// ausgeblendet ?
...
...
@@ -662,30 +674,39 @@ void ScContentTree::GetAreaNames()
if
(
!
pDoc
)
return
;
ScRange
aDummy
;
std
::
set
<
rtl
::
OUString
>
aSet
;
ScRangeName
*
pRangeNames
=
pDoc
->
GetRangeName
();
if
(
!
pRangeNames
->
empty
())
{
ScRange
aDummy
;
ScRangeName
::
const_iterator
itrBeg
=
pRangeNames
->
begin
(),
itrEnd
=
pRangeNames
->
end
();
std
::
vector
<
const
ScRangeData
*>
aSortArray
;
for
(
ScRangeName
::
const_iterator
itr
=
itrBeg
;
itr
!=
itrEnd
;
++
itr
)
{
if
(
itr
->
IsValidReference
(
aDummy
))
aS
ortArray
.
push_back
(
&
(
*
itr
));
aS
et
.
insert
(
itr
->
GetName
(
));
}
}
for
(
SCTAB
i
=
0
;
i
<
pDoc
->
GetTableCount
();
++
i
)
{
ScRangeName
*
pLocalRangeName
=
pDoc
->
GetRangeName
(
i
);
if
(
pLocalRangeName
&&
!
pLocalRangeName
->
empty
())
{
rtl
::
OUString
aTableName
;
pDoc
->
GetName
(
i
,
aTableName
);
for
(
ScRangeName
::
const_iterator
itr
=
pLocalRangeName
->
begin
();
itr
!=
pLocalRangeName
->
end
();
++
itr
)
{
if
(
itr
->
IsValidReference
(
aDummy
))
aSet
.
insert
(
createLocalRangeName
(
itr
->
GetName
(),
aTableName
));
}
}
}
if
(
!
aSortArray
.
empty
())
if
(
!
aSet
.
empty
())
{
for
(
std
::
set
<
rtl
::
OUString
>::
iterator
itr
=
aSet
.
begin
();
itr
!=
aSet
.
end
();
++
itr
)
{
#ifndef ICC
size_t
n
=
aSortArray
.
size
();
qsort
(
(
void
*
)
&
aSortArray
[
0
],
n
,
sizeof
(
ScRangeData
*
),
&
ScRangeData_QsortNameCompare
);
#else
qsort
(
(
void
*
)
&
aSortArray
[
0
],
n
,
sizeof
(
ScRangeData
*
),
ICCQsortNameCompare
);
#endif
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
InsertContent
(
SC_CONTENT_RANGENAME
,
aSortArray
[
i
]
->
GetName
());
InsertContent
(
SC_CONTENT_RANGENAME
,
*
itr
);
}
}
}
...
...
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