summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsubt.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 10:22:04 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 10:22:04 +0000
commit622242619075db80764bf1d40e829d006784244d (patch)
tree4757301fae067896d388ef00b1020e0b8f8405dd /sc/source/ui/dbgui/tpsubt.cxx
parent304c8bdcd61a8c3eef4d74f1bca37bf232285c20 (diff)
INTEGRATION: CWS rowlimit (1.4.302); FILE MERGED
2004/02/24 20:21:39 er 1.4.302.3: #i1967# type correctness 2004/01/21 14:38:48 er 1.4.302.2: RESYNC: (1.4-1.5); FILE MERGED 2004/01/14 14:15:17 er 1.4.302.1: #i1967# SCCOL,SCROW,SCTAB replace USHORT; SCsCOL,SCsROW,SCsTAB replace short
Diffstat (limited to 'sc/source/ui/dbgui/tpsubt.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index 078964b898e0..5093f7607040 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tpsubt.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 18:58:38 $
+ * last change: $Author: obo $ $Date: 2004-06-04 11:22:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -201,9 +201,9 @@ BOOL ScTpSubTotalGroup::DoReset( USHORT nGroupNo,
if ( theSubTotalData.bGroupActive[nGroupIdx] )
{
- USHORT nField = theSubTotalData.nField[nGroupIdx];
- USHORT nSubTotals = theSubTotalData.nSubTotals[nGroupIdx];
- USHORT* pSubTotals = theSubTotalData.pSubTotals[nGroupIdx];
+ SCCOL nField = theSubTotalData.nField[nGroupIdx];
+ SCCOL nSubTotals = theSubTotalData.nSubTotals[nGroupIdx];
+ SCCOL* pSubTotals = theSubTotalData.pSubTotals[nGroupIdx];
ScSubTotalFunc* pFunctions = theSubTotalData.pFunctions[nGroupIdx];
aLbGroup.SelectEntryPos( GetFieldSelPos( nField )+1 );
@@ -264,7 +264,7 @@ BOOL ScTpSubTotalGroup::DoFillItemSet( USHORT nGroupNo,
}
ScSubTotalFunc* pFunctions = NULL;
- USHORT* pSubTotals = NULL;
+ SCCOL* pSubTotals = NULL;
USHORT nGroup = aLbGroup.GetSelectEntryPos();
USHORT nEntryCount = (USHORT)aLbColumns.GetEntryCount();
USHORT nCheckCount = aLbColumns.GetCheckedEntryCount();
@@ -276,13 +276,13 @@ BOOL ScTpSubTotalGroup::DoFillItemSet( USHORT nGroupNo,
theSubTotalData.bGroupActive[nGroupIdx] = (nGroup != 0);
theSubTotalData.nField[nGroupIdx] = (nGroup != 0)
? nFieldArr[nGroup-1]
- : 0;
+ : static_cast<SCCOL>(0);
if ( nEntryCount>0 && nCheckCount>0 && nGroup!=0 )
{
USHORT nFunction = 0;
- pSubTotals = new USHORT [nCheckCount];
+ pSubTotals = new SCCOL [nCheckCount];
pFunctions = new ScSubTotalFunc [nCheckCount];
for ( USHORT i=0, nCheck=0; i<nEntryCount; i++ )
@@ -320,11 +320,11 @@ void ScTpSubTotalGroup::FillListBoxes()
if ( pViewData && pDoc )
{
- USHORT nFirstCol = rSubTotalData.nCol1;
- USHORT nFirstRow = rSubTotalData.nRow1;
- USHORT nTab = pViewData->GetTabNo();
- USHORT nMaxCol = rSubTotalData.nCol2;
- USHORT col;
+ SCCOL nFirstCol = rSubTotalData.nCol1;
+ SCROW nFirstRow = rSubTotalData.nRow1;
+ SCTAB nTab = pViewData->GetTabNo();
+ SCCOL nMaxCol = rSubTotalData.nCol2;
+ SCCOL col;
USHORT i=0;
String aFieldName;
@@ -355,7 +355,7 @@ void ScTpSubTotalGroup::FillListBoxes()
// -----------------------------------------------------------------------
-USHORT ScTpSubTotalGroup::GetFieldSelPos( USHORT nField )
+USHORT ScTpSubTotalGroup::GetFieldSelPos( SCCOL nField )
{
USHORT nFieldPos = 0;
BOOL bFound = FALSE;