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
2641accc
Kaydet (Commit)
2641accc
authored
Ara 05, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use enum over integer constant for type safety.
üst
3e4488fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
chart2uno.cxx
sc/source/ui/unoobj/chart2uno.cxx
+13
-16
No files found.
sc/source/ui/unoobj/chart2uno.cxx
Dosyayı görüntüle @
2641accc
...
...
@@ -603,12 +603,9 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
{
sal_uInt32
nCR
=
static_cast
<
sal_uInt32
>
(
nCols
*
nRows
);
const
sal_uInt8
nHole
=
0
;
const
sal_uInt8
nOccu
=
1
;
const
sal_uInt8
nFree
=
2
;
const
sal_uInt8
nGlue
=
3
;
enum
State
{
Hole
=
0
,
Occupied
=
1
,
Free
=
2
,
Glue
=
3
};
vector
<
sal_uInt8
>
aCellStates
(
nCR
);
vector
<
State
>
aCellStates
(
nCR
,
Hole
);
for
(
vector
<
ScTokenRef
>::
const_iterator
itr
=
mrRefTokens
.
begin
(),
itrEnd
=
mrRefTokens
.
end
();
itr
!=
itrEnd
;
++
itr
)
{
...
...
@@ -622,7 +619,7 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
for
(
SCROW
nRow
=
nRow1
;
nRow
<=
nRow2
;
++
nRow
)
{
size_t
i
=
nCol
*
nRows
+
nRow
;
aCellStates
[
i
]
=
nOccu
;
aCellStates
[
i
]
=
Occupied
;
}
}
bool
bGlue
=
true
;
...
...
@@ -634,7 +631,7 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
for
(
SCROW
nRow
=
0
;
bGlue
&&
nRow
<
nRows
;
++
nRow
)
{
i
=
nCol
*
nRows
+
nRow
;
if
(
aCellStates
[
i
]
==
nOccu
)
if
(
aCellStates
[
i
]
==
Occupied
)
{
if
(
nCol
>
0
&&
nRow
>
0
)
bGlue
=
false
;
...
...
@@ -642,12 +639,12 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
nRow
=
nRows
;
}
else
aCellStates
[
i
]
=
n
Free
;
aCellStates
[
i
]
=
Free
;
}
i
=
(
nCol
+
1
)
*
nRows
-
1
;
// index for the last cell in the column.
if
(
bGlue
&&
(
aCellStates
[
i
]
==
n
Free
))
if
(
bGlue
&&
(
aCellStates
[
i
]
==
Free
))
{
aCellStates
[
i
]
=
n
Glue
;
aCellStates
[
i
]
=
Glue
;
bGlueCols
=
true
;
}
}
...
...
@@ -658,7 +655,7 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
i
=
nRow
;
for
(
SCCOL
nCol
=
0
;
bGlue
&&
nCol
<
nCols
;
++
nCol
,
i
+=
nRows
)
{
if
(
aCellStates
[
i
]
==
nOccu
)
if
(
aCellStates
[
i
]
==
Occupied
)
{
if
(
nCol
>
0
&&
nRow
>
0
)
bGlue
=
false
;
...
...
@@ -666,19 +663,19 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
nCol
=
nCols
;
}
else
aCellStates
[
i
]
=
n
Free
;
aCellStates
[
i
]
=
Free
;
}
i
=
(
nCols
-
1
)
*
nRows
+
nRow
;
// index for the row position in the last column.
if
(
bGlue
&&
aCellStates
[
i
]
==
n
Free
)
if
(
bGlue
&&
aCellStates
[
i
]
==
Free
)
{
aCellStates
[
i
]
=
n
Glue
;
aCellStates
[
i
]
=
Glue
;
bGlueRows
=
true
;
}
}
i
=
1
;
for
(
sal_uInt32
n
=
1
;
bGlue
&&
n
<
nCR
;
++
n
,
++
i
)
if
(
aCellStates
[
i
]
==
n
Hole
)
if
(
aCellStates
[
i
]
==
Hole
)
bGlue
=
false
;
if
(
bGlue
)
...
...
@@ -689,7 +686,7 @@ void Chart2Positioner::calcGlueState(SCCOL nCols, SCROW nRows)
meGlue
=
GLUETYPE_ROWS
;
else
meGlue
=
GLUETYPE_COLS
;
if
(
aCellStates
.
front
()
!=
nOccu
)
if
(
aCellStates
.
front
()
!=
Occupied
)
mbDummyUpperLeft
=
true
;
}
else
...
...
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