diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-15 01:14:16 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-15 13:27:11 +0100 |
commit | 83f391a2852565e127bed88ba0486eee689b7462 (patch) | |
tree | 375b0b104bbf7cef054cd61c70c7a8d9451ff82b /svx | |
parent | e820caa09b420600892621289ebdf892f0b71d35 (diff) |
Remove PLEASE_DEBUG_THE_TABLES and some dead code
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/table/tablemodel.cxx | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index ef2723f45fc1..76a6ea5a3d48 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -50,8 +50,6 @@ #include "svdstr.hrc" #include "svdglob.hxx" -//#define PLEASE_DEBUG_THE_TABLES 1 - using ::rtl::OUString; using namespace ::osl; using namespace ::com::sun::star::uno; @@ -610,10 +608,6 @@ void TableModel::unlockBroadcasts() throw (RuntimeException) } // ----------------------------------------------------------------------------- -#ifdef PLEASE_DEBUG_THE_TABLES -#include <stdio.h> -#endif - void TableModel::notifyModification() { ::osl::MutexGuard guard( m_aMutex ); @@ -633,50 +627,6 @@ void TableModel::notifyModification() { mbNotifyPending = true; } - -#ifdef PLEASE_DEBUG_THE_TABLES - FILE* file = fopen( "c:\\table.xml","w" ); - - const sal_Int32 nColCount = getColumnCountImpl(); - const sal_Int32 nRowCount = getRowCountImpl(); - - fprintf( file, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\r" ); - fprintf( file, "<table columns=\"%ld\" rows=\"%ld\" updated=\"%s\">\n\r", nColCount, nRowCount, mbNotifyPending ? "false" : "true"); - - for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) - { - fprintf( file, "<column this=\"%lx\"/>\n\r", maColumns[nCol].get() ); - } - - // first check merged cells before and inside the removed rows - for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) - { - fprintf( file, "<row this=\"%lx\">\n\r", maRows[nRow].get() ); - for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) - { - CellRef xCell( getCell( nCol, nRow ) ); - fprintf( file, "<cell this=\"%lx\"", xCell.get() ); - - sal_Int32 nRowSpan = xCell->getRowSpan(); - sal_Int32 nColSpan = xCell->getColumnSpan(); - sal_Bool bMerged = xCell->isMerged(); - - if( nColSpan != 1 ) - fprintf( file, " column-span=\"%ld\"", nColSpan ); - if( nRowSpan != 1 ) - fprintf( file, " row-span=\"%ld\"", nRowSpan ); - - if( bMerged ) - fprintf( file, " merged=\"true\"" ); - - fprintf( file, "/>" ); - } - fprintf( file, "\n\r</row>\n\r" ); - } - - fprintf( file, "</table>\n\r" ); - fclose( file ); -#endif } // ----------------------------------------------------------------------------- @@ -695,26 +645,6 @@ CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const } // ----------------------------------------------------------------------------- -/* -bool TableModel::getCellPos( const CellRef& xCell, ::sal_Int32& rnCol, ::sal_Int32& rnRow ) const -{ - const sal_Int32 nRowCount = getRowCount(); - const sal_Int32 nColCount = getColumnCount(); - for( rnRow = 0; rnRow < nRowCount; rnRow++ ) - { - for( rnCol = 0; rnCol < nColCount; rnCol++ ) - { - if( maRows[rnRow]->maCells[rnCol] == xCell ) - { - return true; - } - } - } - return false; -} -*/ - -// ----------------------------------------------------------------------------- CellRef TableModel::createCell() { |