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
cbcf7e32
Kaydet (Commit)
cbcf7e32
authored
Nis 17, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
forgot the normal range names
üst
e5322f13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
workbookhelper.cxx
sc/source/filter/oox/workbookhelper.cxx
+17
-22
No files found.
sc/source/filter/oox/workbookhelper.cxx
Dosyayı görüntüle @
cbcf7e32
...
...
@@ -379,28 +379,6 @@ ScRangeData* lcl_addNewByNameAndTokens( ScDocument& rDoc, ScRangeName* pNames, c
return
pNew
;
}
ScRangeData
*
WorkbookGlobals
::
createNamedRangeObject
(
OUString
&
orName
,
const
Sequence
<
FormulaToken
>&
rTokens
,
sal_Int32
nIndex
,
sal_Int32
nNameFlags
)
const
{
// create the name and insert it into the Calc document
ScRangeData
*
pScRangeData
=
NULL
;
if
(
!
orName
.
isEmpty
()
)
try
{
// find an unused name
PropertySet
aDocProps
(
mxDoc
);
Reference
<
XNamedRanges
>
xNamedRanges
(
aDocProps
.
getAnyProperty
(
PROP_NamedRanges
),
UNO_QUERY_THROW
);
Reference
<
XNameAccess
>
xNameAccess
(
xNamedRanges
,
UNO_QUERY_THROW
);
orName
=
ContainerHelper
::
getUnusedName
(
xNameAccess
,
orName
,
'_'
);
// create the named range
ScDocument
&
rDoc
=
getScDocument
();
ScRangeName
*
pNames
=
rDoc
.
GetRangeName
();
pScRangeData
=
lcl_addNewByNameAndTokens
(
rDoc
,
pNames
,
orName
,
rTokens
,
nIndex
,
nNameFlags
);
}
catch
(
const
Exception
&
)
{
}
return
pScRangeData
;
}
namespace
{
rtl
::
OUString
findUnusedName
(
const
ScRangeName
*
pRangeName
,
const
rtl
::
OUString
&
rSuggestedName
)
...
...
@@ -415,6 +393,23 @@ rtl::OUString findUnusedName( const ScRangeName* pRangeName, const rtl::OUString
}
ScRangeData
*
WorkbookGlobals
::
createNamedRangeObject
(
OUString
&
orName
,
const
Sequence
<
FormulaToken
>&
rTokens
,
sal_Int32
nIndex
,
sal_Int32
nNameFlags
)
const
{
// create the name and insert it into the Calc document
ScRangeData
*
pScRangeData
=
NULL
;
if
(
!
orName
.
isEmpty
()
)
{
ScDocument
&
rDoc
=
getScDocument
();
ScRangeName
*
pNames
=
rDoc
.
GetRangeName
();
// find an unused name
orName
=
findUnusedName
(
pNames
,
orName
);
// create the named range
pScRangeData
=
lcl_addNewByNameAndTokens
(
rDoc
,
pNames
,
orName
,
rTokens
,
nIndex
,
nNameFlags
);
}
return
pScRangeData
;
}
ScRangeData
*
WorkbookGlobals
::
createLocalNamedRangeObject
(
OUString
&
orName
,
const
Sequence
<
FormulaToken
>&
rTokens
,
sal_Int32
nIndex
,
sal_Int32
nNameFlags
,
sal_Int32
nTab
)
const
{
// create the name and insert it into the Calc document
...
...
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