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
3c96c224
Kaydet (Commit)
3c96c224
authored
Şub 15, 2017
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SylkVersion to scoped enum
Change-Id: Ib7e02fee748bd55be6d74d60bff3d8ed765ea225
üst
d2871068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
unusedenumconstants.py
compilerplugins/clang/unusedenumconstants.py
+1
-0
impex.cxx
sc/source/ui/docshell/impex.cxx
+12
-12
No files found.
compilerplugins/clang/unusedenumconstants.py
Dosyayı görüntüle @
3c96c224
...
...
@@ -128,6 +128,7 @@ for d in definitionSet:
"svtools/source/config/helpopt.cxx"
,
# HelpProperty
"include/svtools/htmltokn.h"
,
"include/sfx2/sidebar/Theme.hxx"
,
# ThemeItem
"sc/source/ui/docshell/impex.cxx"
,
# SylkVersion
# Windows or OSX only
"include/canvas/rendering/icolorbuffer.hxx"
,
"include/vcl/commandevent.hxx"
,
...
...
sc/source/ui/docshell/impex.cxx
Dosyayı görüntüle @
3c96c224
...
...
@@ -79,12 +79,12 @@ namespace
}
}
enum
SylkVersion
enum
class
SylkVersion
{
S
YLK_S
CALC3
,
// Wrote wrongly quoted strings and unescaped semicolons.
SYLK_
OOO32
,
// Correct strings, plus multiline content.
SYLK_
OWN
,
// Place our new versions, if any, before this value.
SYLK_
OTHER
// Assume that aliens wrote correct strings.
SCALC3
,
// Wrote wrongly quoted strings and unescaped semicolons.
OOO32
,
// Correct strings, plus multiline content.
OWN
,
// Place our new versions, if any, before this value.
OTHER
// Assume that aliens wrote correct strings.
};
// Whole document without Undo
...
...
@@ -696,7 +696,7 @@ static void lcl_UnescapeSylk( OUString & rString, SylkVersion eVersion )
// Older versions didn't escape the semicolon.
// Older versions quoted the string and doubled embedded quotes, but not
// the semicolons, which was plain wrong.
if
(
eVersion
>=
S
YLK_
OOO32
)
if
(
eVersion
>=
S
ylkVersion
::
OOO32
)
rString
=
rString
.
replaceAll
(
";;"
,
";"
);
else
rString
=
rString
.
replaceAll
(
"
\"\"
"
,
"
\"
"
);
...
...
@@ -714,7 +714,7 @@ static const sal_Unicode* lcl_ScanSylkString( const sal_Unicode* p,
if
(
*
p
==
'"'
)
{
pEndQuote
=
p
;
if
(
eVersion
>=
S
YLK_
OOO32
)
if
(
eVersion
>=
S
ylkVersion
::
OOO32
)
{
if
(
*
(
p
+
1
)
==
';'
)
{
...
...
@@ -750,7 +750,7 @@ static const sal_Unicode* lcl_ScanSylkFormula( const sal_Unicode* p,
OUString
&
rString
,
SylkVersion
eVersion
)
{
const
sal_Unicode
*
pStart
=
p
;
if
(
eVersion
>=
S
YLK_
OOO32
)
if
(
eVersion
>=
S
ylkVersion
::
OOO32
)
{
while
(
*
p
)
{
...
...
@@ -1712,7 +1712,7 @@ bool ScImportExport::Sylk2Doc( SvStream& rStrm )
{
bool
bOk
=
true
;
bool
bMyDoc
=
false
;
SylkVersion
eVersion
=
S
YLK_
OTHER
;
SylkVersion
eVersion
=
S
ylkVersion
::
OTHER
;
// US-English separators for StringToDouble
sal_Unicode
cDecSep
=
'.'
;
...
...
@@ -1941,10 +1941,10 @@ bool ScImportExport::Sylk2Doc( SvStream& rStrm )
{
aLine
=
aLine
.
copy
(
4
);
if
(
aLine
==
"CALCOOO32"
)
eVersion
=
S
YLK_
OOO32
;
eVersion
=
S
ylkVersion
::
OOO32
;
else
if
(
aLine
==
"SCALC3"
)
eVersion
=
S
YLK_
SCALC3
;
bMyDoc
=
(
eVersion
<=
S
YLK_
OWN
);
eVersion
=
S
ylkVersion
::
SCALC3
;
bMyDoc
=
(
eVersion
<=
S
ylkVersion
::
OWN
);
}
else
if
(
cTag
==
'E'
)
// Ende
break
;
...
...
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