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
245ef210
Kaydet (Commit)
245ef210
authored
Şub 14, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Misc cleanup - scope reduction, string, class description etc.
Change-Id: I607efcda0f24d6d6c6b1359858fed417475ccde1
üst
779f6188
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
29 deletions
+31
-29
dptabres.hxx
sc/inc/dptabres.hxx
+3
-0
dptabres.cxx
sc/source/core/data/dptabres.cxx
+28
-29
No files found.
sc/inc/dptabres.hxx
Dosyayı görüntüle @
245ef210
...
...
@@ -281,6 +281,9 @@ public:
bool
IsEnd
(
size_t
nPos
)
const
;
};
/**
* The term 'measure' here roughly equals "data dimension" ?
*/
class
ScDPResultData
{
private
:
...
...
sc/source/core/data/dptabres.cxx
Dosyayı görüntüle @
245ef210
...
...
@@ -237,8 +237,9 @@ void ScDPInitState::RemoveMember()
maMembers
.
pop_back
();
}
static
void
lcl_DumpRow
(
const
String
&
rType
,
const
String
&
rName
,
const
ScDPAggData
*
pAggData
,
ScDocument
*
pDoc
,
ScAddress
&
rPos
)
static
void
lcl_DumpRow
(
const
OUString
&
rType
,
const
OUString
&
rName
,
const
ScDPAggData
*
pAggData
,
ScDocument
*
pDoc
,
ScAddress
&
rPos
)
{
SCCOL
nCol
=
rPos
.
Col
();
SCROW
nRow
=
rPos
.
Row
();
...
...
@@ -1603,38 +1604,37 @@ void ScDPResultMember::UpdateDataResults( const ScDPResultMember* pRefMember, lo
bool
bHasChild
=
(
pChildDimension
!=
NULL
);
long
nUserSubCount
=
GetSubTotalCount
();
// process subtotals even if not shown
// if ( nUserSubCount || !bHasChild )
{
// Calculate at least automatic if no subtotals are selected,
// show only own values if there's no child dimension (innermost).
if
(
!
nUserSubCount
||
!
bHasChild
)
nUserSubCount
=
1
;
long
nMemberMeasure
=
nMeasure
;
long
nSubSize
=
pResultData
->
GetCountForMeasure
(
nMeasure
);
// Calculate at least automatic if no subtotals are selected,
// show only own values if there's no child dimension (innermost).
if
(
!
nUserSubCount
||
!
bHasChild
)
nUserSubCount
=
1
;
if
(
pDataRoot
)
{
ScDPSubTotalState
aSubState
;
// initial state
long
nMemberMeasure
=
nMeasure
;
long
nSubSize
=
pResultData
->
GetCountForMeasure
(
nMeasure
);
for
(
long
nUserPos
=
0
;
nUserPos
<
nUserSubCount
;
nUserPos
++
)
// including hidden "automatic"
if
(
pDataRoot
)
{
ScDPSubTotalState
aSubState
;
// initial state
for
(
long
nUserPos
=
0
;
nUserPos
<
nUserSubCount
;
++
nUserPos
)
// including hidden "automatic"
{
if
(
bHasChild
&&
nUserSubCount
>
1
)
{
if
(
bHasChild
&&
nUserSubCount
>
1
)
{
aSubState
.
nRowSubTotalFunc
=
nUserPos
;
aSubState
.
eRowForce
=
lcl_GetForceFunc
(
/*pParentLevel*/
GetParentLevel
()
,
nUserPos
);
}
aSubState
.
nRowSubTotalFunc
=
nUserPos
;
aSubState
.
eRowForce
=
lcl_GetForceFunc
(
GetParentLevel
(),
nUserPos
);
}
for
(
long
nSubCount
=
0
;
nSubCount
<
nSubSize
;
nSubCount
++
)
{
if
(
nMeasure
==
SC_DPMEASURE_ALL
)
nMemberMeasure
=
nSubCount
;
else
if
(
pResultData
->
GetColStartMeasure
()
==
SC_DPMEASURE_ALL
)
nMemberMeasure
=
SC_DPMEASURE_ALL
;
for
(
long
nSubCount
=
0
;
nSubCount
<
nSubSize
;
++
nSubCount
)
{
if
(
nMeasure
==
SC_DPMEASURE_ALL
)
nMemberMeasure
=
nSubCount
;
else
if
(
pResultData
->
GetColStartMeasure
()
==
SC_DPMEASURE_ALL
)
nMemberMeasure
=
SC_DPMEASURE_ALL
;
pDataRoot
->
UpdateDataRow
(
pRefMember
,
nMemberMeasure
,
bHasChild
,
aSubState
);
}
pDataRoot
->
UpdateDataRow
(
pRefMember
,
nMemberMeasure
,
bHasChild
,
aSubState
);
}
}
}
...
...
@@ -1871,8 +1871,6 @@ void ScDPDataMember::ProcessData( const vector< SCROW >& aChildMembers, const ve
InitFrom
(
pResultMember
->
GetChildDimension
()
);
}
ScDPSubTotalState
aLocalSubState
(
rSubState
);
// keep row state, modify column
long
nUserSubCount
=
pResultMember
?
pResultMember
->
GetSubTotalCount
()
:
0
;
// Calculate at least automatic if no subtotals are selected,
...
...
@@ -1880,6 +1878,7 @@ void ScDPDataMember::ProcessData( const vector< SCROW >& aChildMembers, const ve
if
(
!
nUserSubCount
||
!
pChildDimension
)
nUserSubCount
=
1
;
ScDPSubTotalState
aLocalSubState
=
rSubState
;
// keep row state, modify column
for
(
long
nUserPos
=
0
;
nUserPos
<
nUserSubCount
;
nUserPos
++
)
// including hidden "automatic"
{
if
(
pChildDimension
&&
nUserSubCount
>
1
)
...
...
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