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
3f4b517c
Kaydet (Commit)
3f4b517c
authored
Tem 24, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Handle saving to and loading from user configuration.
Change-Id: I81730077322b8890726da4d033f034c1266afa76
üst
253fad35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
formulaopt.cxx
sc/source/core/tool/formulaopt.cxx
+26
-7
No files found.
sc/source/core/tool/formulaopt.cxx
Dosyayı görüntüle @
3f4b517c
...
...
@@ -207,13 +207,14 @@ SfxPoolItem* ScTpFormulaItem::Clone( SfxItemPool * ) const
#define CFGPATH_FORMULA "Office.Calc/Formula"
#define SCFORMULAOPT_GRAMMAR 0
#define SCFORMULAOPT_ENGLISH_FUNCNAME 1
#define SCFORMULAOPT_SEP_ARG 2
#define SCFORMULAOPT_SEP_ARRAY_ROW 3
#define SCFORMULAOPT_SEP_ARRAY_COL 4
#define SCFORMULAOPT_STRING_REF_SYNTAX 5
#define SCFORMULAOPT_COUNT 6
#define SCFORMULAOPT_GRAMMAR 0
#define SCFORMULAOPT_ENGLISH_FUNCNAME 1
#define SCFORMULAOPT_SEP_ARG 2
#define SCFORMULAOPT_SEP_ARRAY_ROW 3
#define SCFORMULAOPT_SEP_ARRAY_COL 4
#define SCFORMULAOPT_STRING_REF_SYNTAX 5
#define SCFORMULAOPT_EMPTY_STRING_AS_ZERO 6
#define SCFORMULAOPT_COUNT 7
Sequence
<
OUString
>
ScFormulaCfg
::
GetPropertyNames
()
{
...
...
@@ -225,6 +226,7 @@ Sequence<OUString> ScFormulaCfg::GetPropertyNames()
"Syntax/SeparatorArrayRow"
,
// SCFORMULAOPT_SEP_ARRAY_ROW
"Syntax/SeparatorArrayCol"
,
// SCFORMULAOPT_SEP_ARRAY_COL
"Syntax/StringRefAddressSyntax"
,
// SCFORMULAOPT_STRING_REF_SYNTAX
"Syntax/EmptyStringAsZero"
,
// SCFORMULAOPT_EMPTY_STRING_AS_ZERO
};
Sequence
<
OUString
>
aNames
(
SCFORMULAOPT_COUNT
);
OUString
*
pNames
=
aNames
.
getArray
();
...
...
@@ -341,6 +343,15 @@ ScFormulaCfg::ScFormulaCfg() :
GetCalcConfig
().
meStringRefAddressSyntax
=
eConv
;
}
break
;
case
SCFORMULAOPT_EMPTY_STRING_AS_ZERO
:
{
sal_Bool
bVal
=
GetCalcConfig
().
mbEmptyStringAsZero
;
pValues
[
nProp
]
>>=
bVal
;
GetCalcConfig
().
mbEmptyStringAsZero
=
bVal
;
}
break
;
default
:
;
}
}
}
...
...
@@ -397,6 +408,14 @@ void ScFormulaCfg::Commit()
pValues
[
nProp
]
<<=
nVal
;
}
break
;
case
SCFORMULAOPT_EMPTY_STRING_AS_ZERO
:
{
sal_Bool
bVal
=
GetCalcConfig
().
mbEmptyStringAsZero
;
pValues
[
nProp
]
<<=
bVal
;
}
break
;
default
:
;
}
}
PutProperties
(
aNames
,
aValues
);
...
...
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