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
af611617
Kaydet (Commit)
af611617
authored
Şub 01, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bit of a cleanup.
Change-Id: I814ab7e55119a28bd52a8da7f21c03ff44c73e33
üst
a995462e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
table4.cxx
sc/source/core/data/table4.cxx
+12
-18
No files found.
sc/source/core/data/table4.cxx
Dosyayı görüntüle @
af611617
...
@@ -1267,7 +1267,6 @@ void ScTable::FillAutoSimple(
...
@@ -1267,7 +1267,6 @@ void ScTable::FillAutoSimple(
sal_Int32
nStringValue
=
0
;
sal_Int32
nStringValue
=
0
;
OUString
aValue
;
OUString
aValue
;
ScCellValue
aSrcCell
;
ScCellValue
aSrcCell
;
CellType
eCellType
=
CELLTYPE_NONE
;
bool
bIsOrdinalSuffix
=
false
;
bool
bIsOrdinalSuffix
=
false
;
bool
bColHidden
=
false
,
bRowHidden
=
false
;
bool
bColHidden
=
false
,
bRowHidden
=
false
;
...
@@ -1287,19 +1286,18 @@ void ScTable::FillAutoSimple(
...
@@ -1287,19 +1286,18 @@ void ScTable::FillAutoSimple(
if
(
bGetCell
)
if
(
bGetCell
)
{
{
if
(
bVertical
)
// rInner&:=nRow, rOuter&:=nCol
if
(
bVertical
)
// rInner&:=nRow, rOuter&:=nCol
aSrcCell
=
aCol
[
rCol
].
GetCellValue
(
static_cast
<
SCROW
>
(
nSource
)
);
aSrcCell
=
aCol
[
rCol
].
GetCellValue
(
nSource
);
else
// rInner&:=nCol, rOuter&:=nRow
else
// rInner&:=nCol, rOuter&:=nRow
aSrcCell
=
aCol
[
nSource
].
GetCellValue
(
static_cast
<
SCROW
>
(
rRow
)
);
aSrcCell
=
aCol
[
nSource
].
GetCellValue
(
rRow
);
bGetCell
=
false
;
bGetCell
=
false
;
if
(
!
aSrcCell
.
isEmpty
())
if
(
!
aSrcCell
.
isEmpty
())
{
{
eCellType
=
aSrcCell
.
meType
;
switch
(
aSrcCell
.
meType
)
switch
(
eCellType
)
{
{
case
CELLTYPE_STRING
:
case
CELLTYPE_STRING
:
case
CELLTYPE_EDIT
:
case
CELLTYPE_EDIT
:
if
(
eCellType
==
CELLTYPE_STRING
)
if
(
aSrcCell
.
meType
==
CELLTYPE_STRING
)
aValue
=
aSrcCell
.
mpString
->
getString
();
aValue
=
aSrcCell
.
mpString
->
getString
();
else
else
aValue
=
ScEditUtil
::
GetString
(
*
aSrcCell
.
mpEditText
,
pDocument
);
aValue
=
ScEditUtil
::
GetString
(
*
aSrcCell
.
mpEditText
,
pDocument
);
...
@@ -1319,14 +1317,12 @@ void ScTable::FillAutoSimple(
...
@@ -1319,14 +1317,12 @@ void ScTable::FillAutoSimple(
}
}
}
}
}
}
else
eCellType
=
CELLTYPE_NONE
;
}
}
switch
(
eCell
Type
)
switch
(
aSrcCell
.
me
Type
)
{
{
case
CELLTYPE_VALUE
:
case
CELLTYPE_VALUE
:
aCol
[
rCol
].
SetValue
(
static_cast
<
SCROW
>
(
rRow
)
,
aSrcCell
.
mfValue
+
nDelta
);
aCol
[
rCol
].
SetValue
(
rRow
,
aSrcCell
.
mfValue
+
nDelta
);
break
;
break
;
case
CELLTYPE_STRING
:
case
CELLTYPE_STRING
:
case
CELLTYPE_EDIT
:
case
CELLTYPE_EDIT
:
...
@@ -1341,14 +1337,14 @@ void ScTable::FillAutoSimple(
...
@@ -1341,14 +1337,14 @@ void ScTable::FillAutoSimple(
if
(
nHeadNoneTail
<
0
)
if
(
nHeadNoneTail
<
0
)
{
{
setSuffixCell
(
setSuffixCell
(
aCol
[
rCol
],
static_cast
<
SCROW
>
(
rRow
)
,
aCol
[
rCol
],
rRow
,
nNextValue
,
nCellDigits
,
aValue
,
nNextValue
,
nCellDigits
,
aValue
,
eCell
Type
,
bIsOrdinalSuffix
);
aSrcCell
.
me
Type
,
bIsOrdinalSuffix
);
}
}
else
else
{
{
aStr
=
aValue
+
lcl_ValueString
(
nNextValue
,
nCellDigits
);
aStr
=
aValue
+
lcl_ValueString
(
nNextValue
,
nCellDigits
);
aCol
[
rCol
].
SetRawString
(
static_cast
<
SCROW
>
(
rRow
)
,
aStr
);
aCol
[
rCol
].
SetRawString
(
rRow
,
aStr
);
}
}
}
}
else
else
...
@@ -1357,9 +1353,7 @@ void ScTable::FillAutoSimple(
...
@@ -1357,9 +1353,7 @@ void ScTable::FillAutoSimple(
break
;
break
;
case
CELLTYPE_FORMULA
:
case
CELLTYPE_FORMULA
:
FillFormula
(
FillFormula
(
aSrcCell
.
mpFormula
,
aSrcCell
.
mpFormula
,
rCol
,
rRow
,
(
rInner
==
nIEnd
));
static_cast
<
SCCOL
>
(
rCol
),
static_cast
<
SCROW
>
(
rRow
),
(
rInner
==
nIEnd
)
);
if
(
nFormulaCounter
-
nActFormCnt
>
nMaxFormCnt
)
if
(
nFormulaCounter
-
nActFormCnt
>
nMaxFormCnt
)
nMaxFormCnt
=
nFormulaCounter
-
nActFormCnt
;
nMaxFormCnt
=
nFormulaCounter
-
nActFormCnt
;
break
;
break
;
...
@@ -1369,7 +1363,7 @@ void ScTable::FillAutoSimple(
...
@@ -1369,7 +1363,7 @@ void ScTable::FillAutoSimple(
}
}
}
}
if
(
nSource
==
nISrcEnd
)
if
(
nSource
==
nISrcEnd
)
{
{
if
(
nSource
!=
nISrcStart
)
if
(
nSource
!=
nISrcStart
)
{
// More than one source cell
{
// More than one source cell
...
@@ -1404,7 +1398,7 @@ void ScTable::FillAutoSimple(
...
@@ -1404,7 +1398,7 @@ void ScTable::FillAutoSimple(
// and even then not individually for each one
// and even then not individually for each one
++
rProgress
;
++
rProgress
;
if
(
pProgress
&&
(
eCellType
==
CELLTYPE_FORMULA
||
eCell
Type
==
CELLTYPE_EDIT
)
)
if
(
pProgress
&&
(
aSrcCell
.
meType
==
CELLTYPE_FORMULA
||
aSrcCell
.
me
Type
==
CELLTYPE_EDIT
)
)
pProgress
->
SetStateOnPercent
(
rProgress
);
pProgress
->
SetStateOnPercent
(
rProgress
);
}
}
...
...
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