summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsort.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 10:21:49 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 10:21:49 +0000
commit304c8bdcd61a8c3eef4d74f1bca37bf232285c20 (patch)
tree9805c09193e182985a078209eed5a827995f39af /sc/source/ui/dbgui/tpsort.cxx
parent095cce8374835523b108732973a1a2c570b23124 (diff)
INTEGRATION: CWS rowlimit (1.6.202); FILE MERGED
2004/02/24 20:21:39 er 1.6.202.2: #i1967# type correctness 2004/01/14 14:15:15 er 1.6.202.1: #i1967# SCCOL,SCROW,SCTAB replace USHORT; SCsCOL,SCsROW,SCsTAB replace short
Diffstat (limited to 'sc/source/ui/dbgui/tpsort.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsort.cxx30
1 files changed, 17 insertions, 13 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx
index 7bf91633223b..6b9573398530 100644
--- a/sc/source/ui/dbgui/tpsort.cxx
+++ b/sc/source/ui/dbgui/tpsort.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tpsort.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: hr $ $Date: 2003-03-26 18:05:54 $
+ * last change: $Author: obo $ $Date: 2004-06-04 11:21:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -185,7 +185,9 @@ void ScTabPageSortFields::Init()
DBG_ASSERT( pViewData, "ViewData not found!" );
- nFieldArr[0] = nFirstCol = nFirstRow = 0;
+ nFieldArr[0] = 0;
+ nFirstCol = 0;
+ nFirstRow = 0;
aLbSort1.SetSelectHdl( LINK( this, ScTabPageSortFields, SelectHdl ) );
aLbSort2.SetSelectHdl( LINK( this, ScTabPageSortFields, SelectHdl ) );
@@ -323,7 +325,9 @@ BOOL __EXPORT ScTabPageSortFields::FillItemSet( SfxItemSet& rArgSet )
{
theSortData.nField[0] =
theSortData.nField[1] =
- theSortData.nField[2] = ( bSortByRows ? nFirstRow : nFirstCol );
+ theSortData.nField[2] = ( bSortByRows ?
+ static_cast<SCCOLROW>(nFirstRow) :
+ static_cast<SCCOLROW>(nFirstCol) );
}
else
{
@@ -441,16 +445,16 @@ void ScTabPageSortFields::FillFieldLists()
aLbSort2.InsertEntry( aStrUndefined, 0 );
aLbSort3.InsertEntry( aStrUndefined, 0 );
- USHORT nFirstCol = rSortData.nCol1;
- USHORT nFirstRow = rSortData.nRow1;
- USHORT nTab = pViewData->GetTabNo();
+ SCCOL nFirstCol = rSortData.nCol1;
+ SCROW nFirstRow = rSortData.nRow1;
+ SCTAB nTab = pViewData->GetTabNo();
USHORT i = 1;
if ( bSortByRows )
{
String aFieldName;
- USHORT nMaxCol = rSortData.nCol2;
- USHORT col;
+ SCCOL nMaxCol = rSortData.nCol2;
+ SCCOL col;
for ( col=nFirstCol; col<=nMaxCol && i<SC_MAXFIELDS; col++ )
{
@@ -471,8 +475,8 @@ void ScTabPageSortFields::FillFieldLists()
else
{
String aFieldName;
- USHORT nMaxRow = rSortData.nRow2;
- USHORT row;
+ SCROW nMaxRow = rSortData.nRow2;
+ SCROW row;
for ( row=nFirstRow; row<=nMaxRow && i<SC_MAXFIELDS; row++ )
{
@@ -497,7 +501,7 @@ void ScTabPageSortFields::FillFieldLists()
//------------------------------------------------------------------------
-USHORT ScTabPageSortFields::GetFieldSelPos( USHORT nField )
+USHORT ScTabPageSortFields::GetFieldSelPos( SCCOLROW nField )
{
USHORT nFieldPos = 0;
BOOL bFound = FALSE;
@@ -653,7 +657,7 @@ void ScTabPageSortOptions::Init()
ScDBCollection* pDBColl = pDoc->GetDBCollection();
String theDbArea;
String theDbName = aStrNoName;
- const USHORT nCurTab = pViewData->GetTabNo();
+ const SCTAB nCurTab = pViewData->GetTabNo();
aLbOutPos.Clear();
aLbOutPos.InsertEntry( aStrUndefined, 0 );