Lines Matching refs:m_nColumnCount
83 : m_nColumnCount( 0 ) in InternalData()
95 m_nColumnCount = nColumnCount; in createDefaultData()
117 m_aColumnLabels.reserve( m_nColumnCount ); in createDefaultData()
118 generate_n( back_inserter( m_aColumnLabels ), m_nColumnCount, in createDefaultData()
125 m_nColumnCount = (m_nRowCount ? rDataInRows[0].getLength() : 0); in setData()
129 if( m_aColumnLabels.size() != static_cast< sal_uInt32 >( m_nColumnCount )) in setData()
130 m_aColumnLabels.resize( m_nColumnCount ); in setData()
132 m_aData.resize( m_nRowCount * m_nColumnCount ); in setData()
140 int nDataIdx = nRow*m_nColumnCount; in setData()
141 const sal_Int32 nMax = ::std::min( rDataInRows[nRow].getLength(), m_nColumnCount ); in setData()
156 m_aData[ ::std::slice( i*m_nColumnCount, m_nColumnCount, 1 ) ] ); in getData()
163 if( nColumnIndex >= 0 && nColumnIndex < m_nColumnCount ) in getColumnValues()
165 m_aData[ ::std::slice( nColumnIndex, m_nRowCount, m_nColumnCount ) ] ); in getColumnValues()
172 m_aData[ ::std::slice( nRowIndex*m_nColumnCount, m_nColumnCount, 1 ) ] ); in getRowValues()
182 tDataType aSlice = m_aData[ ::std::slice( nColumnIndex, m_nRowCount, m_nColumnCount ) ]; in setColumnValues()
185 m_aData[ ::std::slice( nColumnIndex, m_nRowCount, m_nColumnCount ) ] = aSlice; in setColumnValues()
194 tDataType aSlice = m_aData[ ::std::slice( nRowIndex*m_nColumnCount, m_nColumnCount, 1 ) ]; in setRowValues()
197 m_aData[ ::std::slice( nRowIndex*m_nColumnCount, m_nColumnCount, 1 ) ]= aSlice; in setRowValues()
243 const sal_Int32 nMax = m_nColumnCount; in swapRowWithNext()
246 size_t nIndex1 = nColIdx + nRowIndex*m_nColumnCount; in swapRowWithNext()
247 size_t nIndex2 = nIndex1 + m_nColumnCount; in swapRowWithNext()
261 if( nColumnIndex < m_nColumnCount - 1 ) in swapColumnWithNext()
266 size_t nIndex1 = nColumnIndex + nRowIdx*m_nColumnCount; in swapColumnWithNext()
281 sal_Int32 nNewColumnCount( ::std::max<sal_Int32>( m_nColumnCount, nColumnCount ) ); in enlargeData()
285 bool bGrow = (nNewSize > m_nColumnCount*m_nRowCount); in enlargeData()
293 for( int nCol=0; nCol<m_nColumnCount; ++nCol ) in enlargeData()
296 m_aData[ ::std::slice( nCol, m_nRowCount, m_nColumnCount ) ]; in enlargeData()
301 m_nColumnCount = nNewColumnCount; in enlargeData()
309 OSL_ASSERT( nAfterIndex < m_nColumnCount && nAfterIndex >= -1 ); in insertColumn()
310 if( nAfterIndex >= m_nColumnCount || nAfterIndex < -1 ) in insertColumn()
312 sal_Int32 nNewColumnCount = m_nColumnCount + 1; in insertColumn()
324 m_aData[ ::std::slice( nCol, m_nRowCount, m_nColumnCount ) ] ); in insertColumn()
328 m_aData[ ::std::slice( nCol - 1, m_nRowCount, m_nColumnCount ) ] ); in insertColumn()
330 m_nColumnCount = nNewColumnCount; in insertColumn()
362 sal_Int32 nNewSize( m_nColumnCount * nNewRowCount ); in insertRow()
370 aNewData[ ::std::slice( 0, nIndex * m_nColumnCount, 1 ) ] = in insertRow()
372 m_aData[ ::std::slice( 0, nIndex * m_nColumnCount, 1 ) ] ); in insertRow()
376 sal_Int32 nRemainingCount = m_nColumnCount * (m_nRowCount - nIndex); in insertRow()
377 aNewData[ ::std::slice( (nIndex + 1) * m_nColumnCount, nRemainingCount, 1 ) ] = in insertRow()
379 m_aData[ ::std::slice( nIndex * m_nColumnCount, nRemainingCount, 1 ) ] ); in insertRow()
397 OSL_ASSERT( nAtIndex < m_nColumnCount && nAtIndex >= 0 ); in deleteColumn()
398 if( nAtIndex >= m_nColumnCount || m_nColumnCount < 1 || nAtIndex < 0 ) in deleteColumn()
400 sal_Int32 nNewColumnCount = m_nColumnCount - 1; in deleteColumn()
412 m_aData[ ::std::slice( nCol, m_nRowCount, m_nColumnCount ) ] ); in deleteColumn()
416 m_aData[ ::std::slice( nCol + 1, m_nRowCount, m_nColumnCount ) ] ); in deleteColumn()
418 m_nColumnCount = nNewColumnCount; in deleteColumn()
437 sal_Int32 nNewSize( m_nColumnCount * nNewRowCount ); in deleteRow()
446 aNewData[ ::std::slice( 0, nIndex * m_nColumnCount, 1 ) ] = in deleteRow()
448 m_aData[ ::std::slice( 0, nIndex * m_nColumnCount, 1 ) ] ); in deleteRow()
452 sal_Int32 nRemainingCount = m_nColumnCount * (nNewRowCount - nIndex); in deleteRow()
453 aNewData[ ::std::slice( nIndex * m_nColumnCount, nRemainingCount, 1 ) ] = in deleteRow()
455 m_aData[ ::std::slice( (nIndex + 1) * m_nColumnCount, nRemainingCount, 1 ) ] ); in deleteRow()
478 return m_nColumnCount; in getColumnCount()
500 if( nNewColumnCount < m_nColumnCount ) in setComplexColumnLabels()
501 m_aColumnLabels.resize( m_nColumnCount ); in setComplexColumnLabels()
518 tDataType aSlice( m_aData[ ::std::slice( i*m_nColumnCount, m_nColumnCount, 1 ) ] ); in traceData()
519 for( sal_Int32 j=0; j<m_nColumnCount; ++j ) in traceData()