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
a0b20e1f
Kaydet (Commit)
a0b20e1f
authored
Ock 12, 2012
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix definedName corruption for xlsx export ( bnc#741182 )
set symbol for builtin name using rangelist
üst
6008c3f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
xename.cxx
sc/source/filter/excel/xename.cxx
+6
-3
No files found.
sc/source/filter/excel/xename.cxx
Dosyayı görüntüle @
a0b20e1f
...
@@ -139,7 +139,7 @@ public:
...
@@ -139,7 +139,7 @@ public:
sal_uInt16
InsertName
(
SCTAB
nTab
,
sal_uInt16
nScNameIdx
);
sal_uInt16
InsertName
(
SCTAB
nTab
,
sal_uInt16
nScNameIdx
);
/** Inserts a new built-in defined name. */
/** Inserts a new built-in defined name. */
sal_uInt16
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
);
sal_uInt16
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
,
const
ScRangeList
&
aRangeList
);
sal_uInt16
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
const
ScRange
&
aRange
);
sal_uInt16
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
const
ScRange
&
aRange
);
/** Inserts a new defined name. Sets another unused name, if rName already exists. */
/** Inserts a new defined name. Sets another unused name, if rName already exists. */
sal_uInt16
InsertUniqueName
(
const
String
&
rName
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
);
sal_uInt16
InsertUniqueName
(
const
String
&
rName
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
);
...
@@ -410,11 +410,14 @@ sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTo
...
@@ -410,11 +410,14 @@ sal_uInt16 XclExpNameManagerImpl::InsertBuiltInName( sal_Unicode cBuiltIn, XclTo
return
Append
(
xName
);
return
Append
(
xName
);
}
}
sal_uInt16
XclExpNameManagerImpl
::
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
)
sal_uInt16
XclExpNameManagerImpl
::
InsertBuiltInName
(
sal_Unicode
cBuiltIn
,
XclTokenArrayRef
xTokArr
,
SCTAB
nScTab
,
const
ScRangeList
&
rRangeList
)
{
{
XclExpNameRef
xName
(
new
XclExpName
(
GetRoot
(),
cBuiltIn
)
);
XclExpNameRef
xName
(
new
XclExpName
(
GetRoot
(),
cBuiltIn
)
);
xName
->
SetTokenArray
(
xTokArr
);
xName
->
SetTokenArray
(
xTokArr
);
xName
->
SetLocalTab
(
nScTab
);
xName
->
SetLocalTab
(
nScTab
);
String
sSymbol
;
rRangeList
.
Format
(
sSymbol
,
SCR_ABS_3D
,
GetDocPtr
(),
::
formula
::
FormulaGrammar
::
CONV_XL_A1
);
xName
->
SetSymbol
(
sSymbol
);
return
Append
(
xName
);
return
Append
(
xName
);
}
}
...
@@ -725,7 +728,7 @@ sal_uInt16 XclExpNameManager::InsertBuiltInName( sal_Unicode cBuiltIn, const ScR
...
@@ -725,7 +728,7 @@ sal_uInt16 XclExpNameManager::InsertBuiltInName( sal_Unicode cBuiltIn, const ScR
if
(
!
rRangeList
.
empty
()
)
if
(
!
rRangeList
.
empty
()
)
{
{
XclTokenArrayRef
xTokArr
=
GetFormulaCompiler
().
CreateFormula
(
EXC_FMLATYPE_NAME
,
rRangeList
);
XclTokenArrayRef
xTokArr
=
GetFormulaCompiler
().
CreateFormula
(
EXC_FMLATYPE_NAME
,
rRangeList
);
nNameIdx
=
mxImpl
->
InsertBuiltInName
(
cBuiltIn
,
xTokArr
,
rRangeList
.
front
()
->
aStart
.
Tab
()
);
nNameIdx
=
mxImpl
->
InsertBuiltInName
(
cBuiltIn
,
xTokArr
,
rRangeList
.
front
()
->
aStart
.
Tab
()
,
rRangeList
);
}
}
return
nNameIdx
;
return
nNameIdx
;
}
}
...
...
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