summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/pvlaydlg.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 10:21:15 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 10:21:15 +0000
commit2552725af1eb5fa86e845090623c2c6e0b5a7c5a (patch)
treee6bec9f80dc00545050aacb928e6716ddbc5b7cc /sc/source/ui/dbgui/pvlaydlg.cxx
parent0f2c1641e3560d60a9f26bc8cb3c3ef25a141339 (diff)
INTEGRATION: CWS rowlimit (1.13.202); FILE MERGED
2004/04/30 15:42:28 er 1.13.202.5: #i1967# type correctness 2004/04/29 16:30:16 er 1.13.202.4: RESYNC: (1.13-1.14); FILE MERGED 2004/03/02 18:04:37 er 1.13.202.3: #i1967# type correctness 2004/02/24 20:21:38 er 1.13.202.2: #i1967# type correctness 2004/01/14 14:15:10 er 1.13.202.1: #i1967# SCCOL,SCROW,SCTAB replace USHORT; SCsCOL,SCsROW,SCsTAB replace short
Diffstat (limited to 'sc/source/ui/dbgui/pvlaydlg.cxx')
-rw-r--r--sc/source/ui/dbgui/pvlaydlg.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/dbgui/pvlaydlg.cxx b/sc/source/ui/dbgui/pvlaydlg.cxx
index eda33839d60c..dbdd768c34e8 100644
--- a/sc/source/ui/dbgui/pvlaydlg.cxx
+++ b/sc/source/ui/dbgui/pvlaydlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pvlaydlg.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 16:09:34 $
+ * last change: $Author: obo $ $Date: 2004-06-04 11:21:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,10 +110,10 @@ long PivotGlobal::nSelSpace = 0;
struct FuncData
{
- short nCol;
+ SCsCOL nCol;
USHORT nFuncMask;
- FuncData( short col, USHORT funcs = PIVOT_FUNC_SUM )
+ FuncData( SCsCOL col, USHORT funcs = PIVOT_FUNC_SUM )
: nCol(col), nFuncMask(funcs) {}
BOOL operator==( const FuncData& r )
@@ -259,16 +259,16 @@ void __EXPORT ScDPLayoutDlg::Init()
aRowArr.resize( MAX_FIELDS );
aDataArr.resize( MAX_FIELDS );
- InitWndSelect( thePivotData.ppLabelArr, thePivotData.nLabels );
- InitWnd( thePivotData.aPageArr, thePivotData.nPageCount, TYPE_PAGE );
- InitWnd( thePivotData.aColArr, thePivotData.nColCount, TYPE_COL );
- InitWnd( thePivotData.aRowArr, thePivotData.nRowCount, TYPE_ROW );
- InitWnd( thePivotData.aDataArr, thePivotData.nDataCount, TYPE_DATA );
+ InitWndSelect( thePivotData.ppLabelArr, static_cast<long>(thePivotData.nLabels) );
+ InitWnd( thePivotData.aPageArr, static_cast<long>(thePivotData.nPageCount), TYPE_PAGE );
+ InitWnd( thePivotData.aColArr, static_cast<long>(thePivotData.nColCount), TYPE_COL );
+ InitWnd( thePivotData.aRowArr, static_cast<long>(thePivotData.nRowCount), TYPE_ROW );
+ InitWnd( thePivotData.aDataArr, static_cast<long>(thePivotData.nDataCount), TYPE_DATA );
aSlider.SetPageSize( PAGE_SIZE );
aSlider.SetVisibleSize( PAGE_SIZE );
aSlider.SetLineSize( LINE_SIZE );
- aSlider.SetRange( Range( 0, ((thePivotData.nLabels+LINE_SIZE-1)/LINE_SIZE)*LINE_SIZE ) );
+ aSlider.SetRange( Range( 0, static_cast<long>(((thePivotData.nLabels+LINE_SIZE-1)/LINE_SIZE)*LINE_SIZE) ) );
if ( thePivotData.nLabels > PAGE_SIZE )
{
@@ -422,7 +422,7 @@ void ScDPLayoutDlg::InitWnd( PivotField* pArr, long nCount, ScDPFieldType eType
long j=0;
for ( long i=0; (i<nCount); i++ )
{
- USHORT nCol = pArr[i].nCol;
+ SCCOL nCol = pArr[i].nCol;
USHORT nMask = pArr[i].nFuncMask;
if ( nCol != PIVOT_DATA_FIELD )
@@ -1049,7 +1049,7 @@ void ScDPLayoutDlg::Deactivate()
//----------------------------------------------------------------------------
-BOOL ScDPLayoutDlg::Contains( FuncDataVec* pArr, short nCol, size_t& nAt )
+BOOL ScDPLayoutDlg::Contains( FuncDataVec* pArr, SCsCOL nCol, size_t& nAt )
{
if ( !pArr )
return FALSE;
@@ -1105,7 +1105,7 @@ void ScDPLayoutDlg::Insert( FuncDataVec* pArr, const FuncData& rFData, size_t nA
//----------------------------------------------------------------------------
-LabelData* ScDPLayoutDlg::GetLabelData( short nCol, size_t* pPos )
+LabelData* ScDPLayoutDlg::GetLabelData( SCsCOL nCol, size_t* pPos )
{
LabelData* pData = NULL;
BOOL bFound = FALSE;
@@ -1130,7 +1130,7 @@ LabelData* ScDPLayoutDlg::GetLabelData( short nCol, size_t* pPos )
//----------------------------------------------------------------------------
-String ScDPLayoutDlg::GetLabelString( short nCol )
+String ScDPLayoutDlg::GetLabelString( SCsCOL nCol )
{
LabelData* pData = GetLabelData( nCol );
DBG_ASSERT( pData, "LabelData not found" );
@@ -1528,7 +1528,7 @@ IMPL_LINK( ScDPLayoutDlg, ScrollHdl, ScrollBar *, EMPTYARG )
nOffset = nNewOffset;
LabelData* pData = NULL;
- size_t nFields = Min( nLabelCount - nOffset, PAGE_SIZE );
+ size_t nFields = Min( static_cast<size_t>(nLabelCount - nOffset), static_cast<size_t>(PAGE_SIZE) );
aWndSelect.ClearFields();