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
d4d5af73
Kaydet (Commit)
d4d5af73
authored
Agu 26, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translated comments
Change-Id: I29cbd65d57b1c6cc26039c0f5472ecb9e669e6a7
üst
6dc98de9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
44 deletions
+16
-44
asciiopt.cxx
sc/source/ui/dbgui/asciiopt.cxx
+16
-44
No files found.
sc/source/ui/dbgui/asciiopt.cxx
Dosyayı görüntüle @
d4d5af73
...
...
@@ -168,7 +168,7 @@ bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const
nInfoCount
==
rCmp
.
nInfoCount
)
{
OSL_ENSURE
(
!
nInfoCount
||
(
pColStart
&&
pColFormat
&&
rCmp
.
pColStart
&&
rCmp
.
pColFormat
),
"
0-Zeiger in ScAsciiOptions
"
);
"
NULL pointer in ScAsciiOptions::operator==() column info
"
);
for
(
sal_uInt16
i
=
0
;
i
<
nInfoCount
;
i
++
)
if
(
pColStart
[
i
]
!=
rCmp
.
pColStart
[
i
]
||
pColFormat
[
i
]
!=
rCmp
.
pColFormat
[
i
]
)
...
...
@@ -179,11 +179,8 @@ bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const
return
false
;
}
//
// Der Options-String darf kein Semikolon mehr enthalten (wegen Pickliste)
// darum ab Version 336 Komma stattdessen
//
// The options string must not contain semicolons (because of the pick list),
// use comma as separator.
void
ScAsciiOptions
::
ReadFromString
(
const
String
&
rString
)
{
...
...
@@ -192,10 +189,7 @@ void ScAsciiOptions::ReadFromString( const String& rString )
xub_StrLen
nSub
;
xub_StrLen
i
;
//
// Feld-Trenner
//
// Field separator.
if
(
nCount
>=
1
)
{
bFixedLen
=
bMergeFieldSeps
=
false
;
...
...
@@ -219,10 +213,7 @@ void ScAsciiOptions::ReadFromString( const String& rString )
}
}
//
// Text-Trenner
//
// Text separator.
if
(
nCount
>=
2
)
{
aToken
=
rString
.
GetToken
(
1
,
','
);
...
...
@@ -230,30 +221,21 @@ void ScAsciiOptions::ReadFromString( const String& rString )
cTextSep
=
(
sal_Unicode
)
nVal
;
}
//
// Zeichensatz
//
// Text encoding.
if
(
nCount
>=
3
)
{
aToken
=
rString
.
GetToken
(
2
,
','
);
eCharSet
=
ScGlobal
::
GetCharsetValue
(
aToken
);
}
//
// Startzeile
//
// Number of start row.
if
(
nCount
>=
4
)
{
aToken
=
rString
.
GetToken
(
3
,
','
);
nStartRow
=
aToken
.
ToInt32
();
}
//
// Spalten-Infos
//
// Column info.
if
(
nCount
>=
5
)
{
delete
[]
pColStart
;
...
...
@@ -311,10 +293,7 @@ String ScAsciiOptions::WriteToString() const
{
OUString
aOutStr
;
//
// Feld-Trenner
//
// Field separator.
if
(
bFixedLen
)
aOutStr
+=
pStrFix
;
else
if
(
!
aFieldSeps
.
Len
()
)
...
...
@@ -335,27 +314,20 @@ String ScAsciiOptions::WriteToString() const
}
}
aOutStr
+=
","
+
// Text-Trenner
OUString
::
number
(
cTextSep
)
+
","
;
//
// Zeichensatz
//
// Text delimiter.
aOutStr
+=
","
+
OUString
::
number
(
cTextSep
)
+
","
;
// Text encoding.
if
(
bCharSetSystem
)
// force "SYSTEM"
aOutStr
+=
ScGlobal
::
GetCharsetString
(
RTL_TEXTENCODING_DONTKNOW
);
else
aOutStr
+=
ScGlobal
::
GetCharsetString
(
eCharSet
);
aOutStr
+=
","
+
// Startzeile
OUString
::
number
(
nStartRow
)
+
","
;
//
// Spalten-Infos
//
// Number of start row.
aOutStr
+=
","
+
OUString
::
number
(
nStartRow
)
+
","
;
OSL_ENSURE
(
!
nInfoCount
||
(
pColStart
&&
pColFormat
),
"0-Zeiger in ScAsciiOptions"
);
// Column info.
OSL_ENSURE
(
!
nInfoCount
||
(
pColStart
&&
pColFormat
),
"NULL pointer in ScAsciiOptions column info"
);
for
(
sal_uInt16
nInfo
=
0
;
nInfo
<
nInfoCount
;
nInfo
++
)
{
if
(
nInfo
)
...
...
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