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
79f91e64
Kaydet (Commit)
79f91e64
authored
Şub 10, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool.
üst
2357da95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
docsh.cxx
sc/source/ui/docshell/docsh.cxx
+14
-14
No files found.
sc/source/ui/docshell/docsh.cxx
Dosyayı görüntüle @
79f91e64
...
@@ -1674,8 +1674,8 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1674,8 +1674,8 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
sal_Unicode
cDelim
=
rAsciiOpt
.
nFieldSepCode
;
sal_Unicode
cDelim
=
rAsciiOpt
.
nFieldSepCode
;
sal_Unicode
cStrDelim
=
rAsciiOpt
.
nTextSepCode
;
sal_Unicode
cStrDelim
=
rAsciiOpt
.
nTextSepCode
;
CharSet
eCharSet
=
rAsciiOpt
.
eCharSet
;
CharSet
eCharSet
=
rAsciiOpt
.
eCharSet
;
sal_B
ool
bFixedWidth
=
rAsciiOpt
.
bFixedWidth
;
b
ool
bFixedWidth
=
rAsciiOpt
.
bFixedWidth
;
sal_B
ool
bSaveAsShown
=
rAsciiOpt
.
bSaveAsShown
;
b
ool
bSaveAsShown
=
rAsciiOpt
.
bSaveAsShown
;
CharSet
eOldCharSet
=
rStream
.
GetStreamCharSet
();
CharSet
eOldCharSet
=
rStream
.
GetStreamCharSet
();
rStream
.
SetStreamCharSet
(
eCharSet
);
rStream
.
SetStreamCharSet
(
eCharSet
);
...
@@ -1684,7 +1684,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1684,7 +1684,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
UniString
aStrDelimDecoded
;
// only used if context encoding
UniString
aStrDelimDecoded
;
// only used if context encoding
ByteString
aDelimEncoded
;
ByteString
aDelimEncoded
;
UniString
aDelimDecoded
;
UniString
aDelimDecoded
;
sal_B
ool
bContextOrNotAsciiEncoding
;
b
ool
bContextOrNotAsciiEncoding
;
if
(
eCharSet
==
RTL_TEXTENCODING_UNICODE
)
if
(
eCharSet
==
RTL_TEXTENCODING_UNICODE
)
{
{
rStream
.
StartWritingUnicodeText
();
rStream
.
StartWritingUnicodeText
();
...
@@ -1726,8 +1726,8 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1726,8 +1726,8 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
const
ScViewOptions
&
rOpt
=
(
pViewSh
)
const
ScViewOptions
&
rOpt
=
(
pViewSh
)
?
pViewSh
->
GetViewData
()
->
GetOptions
()
?
pViewSh
->
GetViewData
()
->
GetOptions
()
:
aDocument
.
GetViewOptions
();
:
aDocument
.
GetViewOptions
();
sal_B
ool
bShowFormulas
=
rOpt
.
GetOption
(
VOPT_FORMULAS
);
b
ool
bShowFormulas
=
rOpt
.
GetOption
(
VOPT_FORMULAS
);
sal_B
ool
bTabProtect
=
aDocument
.
IsTabProtected
(
nTab
);
b
ool
bTabProtect
=
aDocument
.
IsTabProtected
(
nTab
);
SCCOL
nCol
;
SCCOL
nCol
;
SCROW
nRow
;
SCROW
nRow
;
...
@@ -1742,10 +1742,10 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1742,10 +1742,10 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
ScBaseCell
*
pCell
;
ScBaseCell
*
pCell
;
while
(
(
pCell
=
aIter
.
GetNext
(
nCol
,
nRow
)
)
!=
NULL
)
while
(
(
pCell
=
aIter
.
GetNext
(
nCol
,
nRow
)
)
!=
NULL
)
{
{
sal_B
ool
bProgress
=
false
;
// only upon line change
b
ool
bProgress
=
false
;
// only upon line change
if
(
nNextRow
<
nRow
)
if
(
nNextRow
<
nRow
)
{
// empty rows or/and empty columns up to end of row
{
// empty rows or/and empty columns up to end of row
bProgress
=
sal_T
rue
;
bProgress
=
t
rue
;
for
(
nEmptyCol
=
nNextCol
;
nEmptyCol
<
nEndCol
;
nEmptyCol
++
)
for
(
nEmptyCol
=
nNextCol
;
nEmptyCol
<
nEndCol
;
nEmptyCol
++
)
{
// remaining columns of last row
{
// remaining columns of last row
if
(
bFixedWidth
)
if
(
bFixedWidth
)
...
@@ -1791,7 +1791,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1791,7 +1791,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
}
}
if
(
nCol
==
nEndCol
)
if
(
nCol
==
nEndCol
)
{
{
bProgress
=
sal_T
rue
;
bProgress
=
t
rue
;
nNextCol
=
nStartCol
;
nNextCol
=
nStartCol
;
nNextRow
=
nRow
+
1
;
nNextRow
=
nRow
+
1
;
}
}
...
@@ -1809,7 +1809,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1809,7 +1809,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
pProtAttr
->
GetHideFormula
()
)
)
pProtAttr
->
GetHideFormula
()
)
)
eType
=
CELLTYPE_NONE
;
// hide
eType
=
CELLTYPE_NONE
;
// hide
}
}
sal_B
ool
bString
;
b
ool
bString
;
switch
(
eType
)
switch
(
eType
)
{
{
case
CELLTYPE_NOTE
:
case
CELLTYPE_NOTE
:
...
@@ -1823,12 +1823,12 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1823,12 +1823,12 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
if
(
bShowFormulas
)
if
(
bShowFormulas
)
{
{
((
ScFormulaCell
*
)
pCell
)
->
GetFormula
(
aString
);
((
ScFormulaCell
*
)
pCell
)
->
GetFormula
(
aString
);
bString
=
sal_T
rue
;
bString
=
t
rue
;
}
}
else
if
(
(
nErrCode
=
((
ScFormulaCell
*
)
pCell
)
->
GetErrCode
()
)
!=
0
)
else
if
(
(
nErrCode
=
((
ScFormulaCell
*
)
pCell
)
->
GetErrCode
()
)
!=
0
)
{
{
aString
=
ScGlobal
::
GetErrorString
(
nErrCode
);
aString
=
ScGlobal
::
GetErrorString
(
nErrCode
);
bString
=
sal_T
rue
;
bString
=
t
rue
;
}
}
else
if
(
((
ScFormulaCell
*
)
pCell
)
->
IsValue
()
)
else
if
(
((
ScFormulaCell
*
)
pCell
)
->
IsValue
()
)
{
{
...
@@ -1857,7 +1857,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1857,7 +1857,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
}
}
else
else
((
ScFormulaCell
*
)
pCell
)
->
GetString
(
aString
);
((
ScFormulaCell
*
)
pCell
)
->
GetString
(
aString
);
bString
=
sal_T
rue
;
bString
=
t
rue
;
}
}
}
}
break
;
break
;
...
@@ -1871,7 +1871,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1871,7 +1871,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
}
}
else
else
((
ScStringCell
*
)
pCell
)
->
GetString
(
aString
);
((
ScStringCell
*
)
pCell
)
->
GetString
(
aString
);
bString
=
sal_T
rue
;
bString
=
t
rue
;
break
;
break
;
case
CELLTYPE_EDIT
:
case
CELLTYPE_EDIT
:
{
{
...
@@ -1880,7 +1880,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
...
@@ -1880,7 +1880,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
EditEngine
&
rEngine
=
aDocument
.
GetEditEngine
();
EditEngine
&
rEngine
=
aDocument
.
GetEditEngine
();
rEngine
.
SetText
(
*
pObj
);
rEngine
.
SetText
(
*
pObj
);
aString
=
rEngine
.
GetText
();
// including LF
aString
=
rEngine
.
GetText
();
// including LF
bString
=
sal_T
rue
;
bString
=
t
rue
;
}
}
break
;
break
;
case
CELLTYPE_VALUE
:
case
CELLTYPE_VALUE
:
...
...
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