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
aea66f8a
Kaydet (Commit)
aea66f8a
authored
Nis 30, 2018
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert a sequence of if to a switch
Change-Id: Ibca33b2170348ce56e9fa376009ee1cdea2dd67e
üst
d324ed83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
23 deletions
+27
-23
MSWorksCalcImportFilter.cxx
writerperfect/source/calc/MSWorksCalcImportFilter.cxx
+27
-23
No files found.
writerperfect/source/calc/MSWorksCalcImportFilter.cxx
Dosyayı görüntüle @
aea66f8a
...
@@ -195,31 +195,35 @@ bool MSWorksCalcImportFilter::doImportDocument(librevenge::RVNGInputStream& rInp
...
@@ -195,31 +195,35 @@ bool MSWorksCalcImportFilter::doImportDocument(librevenge::RVNGInputStream& rInp
if
(
needEncoding
)
if
(
needEncoding
)
{
{
OUString
title
,
encoding
;
OUString
title
,
encoding
;
if
(
creator
==
libwps
::
WPS_MSWORKS
)
switch
(
creator
)
{
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_MSWORKS
);
encoding
=
"CP850"
;
}
else
if
(
creator
==
libwps
::
WPS_LOTUS
)
{
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_LOTUS
);
encoding
=
"CP437"
;
}
else
if
(
creator
==
libwps
::
WPS_SYMPHONY
)
{
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_SYMPHONY
);
encoding
=
"CP437"
;
}
else
if
(
creator
==
libwps
::
WPS_QUATTRO_PRO
)
{
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_QUATTROPRO
);
encoding
=
"CP437"
;
}
else
{
{
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_MSMULTIPLAN
);
case
libwps
:
:
WPS_MSWORKS
:
encoding
=
"CP437"
;
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_MSWORKS
);
encoding
=
"CP850"
;
break
;
case
libwps
:
:
WPS_LOTUS
:
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_LOTUS
);
encoding
=
"CP437"
;
break
;
case
libwps
:
:
WPS_SYMPHONY
:
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_SYMPHONY
);
encoding
=
"CP437"
;
break
;
case
libwps
:
:
WPS_QUATTRO_PRO
:
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_QUATTROPRO
);
encoding
=
"CP437"
;
break
;
case
libwps
:
:
WPS_RESERVED_2
:
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE_MSMULTIPLAN
);
encoding
=
"CP437"
;
break
;
default
:
SAL_INFO
(
"writerperfect"
,
"unexpected creator: "
<<
creator
);
title
=
WpResId
(
STR_ENCODING_DIALOG_TITLE
);
encoding
=
"CP437"
;
break
;
}
}
try
try
{
{
const
ScopedVclPtrInstance
<
writerperfect
::
WPFTEncodingDialog
>
pDlg
(
title
,
encoding
);
const
ScopedVclPtrInstance
<
writerperfect
::
WPFTEncodingDialog
>
pDlg
(
title
,
encoding
);
...
...
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