Lines 310-337
Link Here
|
310 |
// BM: Fix for #68864# |
310 |
// BM: Fix for #68864# |
311 |
// Use these four methods with care! The arrays MUST have the correct size! |
311 |
// Use these four methods with care! The arrays MUST have the correct size! |
312 |
// ******************** |
312 |
// ******************** |
313 |
void SetRowTranslation( const long* pTransTable ) |
313 |
void SetRowTranslation( const sal_Int32* pTransTable ) |
314 |
{ |
314 |
{ |
315 |
if( !pRowTable ) return; |
315 |
if( !pRowTable ) return; |
316 |
for( long i=0; i<nRowCnt; i++ ) |
316 |
for( sal_Int32 i=0; i<nRowCnt; i++ ) |
317 |
pRowTable[ i ] = pTransTable[ i ]; |
317 |
pRowTable[ i ] = pTransTable[ i ]; |
318 |
} |
318 |
} |
319 |
void SetColTranslation( const long* pTransTable ) |
319 |
void SetColTranslation( const sal_Int32* pTransTable ) |
320 |
{ |
320 |
{ |
321 |
if( !pColTable ) return; |
321 |
if( !pColTable ) return; |
322 |
for( long i=0; i<nColCnt; i++ ) |
322 |
for( sal_Int32 i=0; i<nColCnt; i++ ) |
323 |
pColTable[ i ] = pTransTable[ i ]; |
323 |
pColTable[ i ] = pTransTable[ i ]; |
324 |
} |
324 |
} |
325 |
void SetRowNumFmtTable( const long* pNumFmtTable ) |
325 |
void SetRowNumFmtTable( const sal_Int32* pNumFmtTable ) |
326 |
{ |
326 |
{ |
327 |
if( !pRowNumFmtId ) return; |
327 |
if( !pRowNumFmtId ) return; |
328 |
for( long i=0; i<nRowCnt; i++ ) |
328 |
for( sal_Int32 i=0; i<nRowCnt; i++ ) |
329 |
pRowNumFmtId[ i ] = pNumFmtTable[ i ]; |
329 |
pRowNumFmtId[ i ] = pNumFmtTable[ i ]; |
330 |
} |
330 |
} |
331 |
void SetColNumFmtTable( const long* pNumFmtTable ) |
331 |
void SetColNumFmtTable( const sal_Int32* pNumFmtTable ) |
332 |
{ |
332 |
{ |
333 |
if( !pColNumFmtId ) return; |
333 |
if( !pColNumFmtId ) return; |
334 |
for( long i=0; i<nColCnt; i++ ) |
334 |
for( sal_Int32 i=0; i<nColCnt; i++ ) |
335 |
pColNumFmtId[ i ] = pNumFmtTable[ i ]; |
335 |
pColNumFmtId[ i ] = pNumFmtTable[ i ]; |
336 |
} |
336 |
} |
337 |
// this is only valid if the corresponding translation table was set correctly! |
337 |
// this is only valid if the corresponding translation table was set correctly! |