diff options
Diffstat (limited to 'svx/source/table/tableundo.cxx')
-rw-r--r-- | svx/source/table/tableundo.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/svx/source/table/tableundo.cxx b/svx/source/table/tableundo.cxx index 250675e67d48..baa7e6c29456 100644 --- a/svx/source/table/tableundo.cxx +++ b/svx/source/table/tableundo.cxx @@ -28,13 +28,10 @@ #include "tablecolumn.hxx" - - using namespace ::com::sun::star::uno; using namespace ::com::sun::star::table; - namespace sdr { namespace table { CellUndo::CellUndo( const SdrObjectWeakRef& xObjRef, const CellRef& xCell ) @@ -173,7 +170,6 @@ static void Dispose( RowVector& rRows ) } - InsertRowUndo::InsertRowUndo( const TableModelRef& xTable, sal_Int32 nIndex, RowVector& aNewRows ) : SdrUndoAction( *xTable->getSdrTableObj()->GetModel() ) , mxTable( xTable ) @@ -184,7 +180,6 @@ InsertRowUndo::InsertRowUndo( const TableModelRef& xTable, sal_Int32 nIndex, Row } - InsertRowUndo::~InsertRowUndo() { if( !mbUndo ) @@ -192,7 +187,6 @@ InsertRowUndo::~InsertRowUndo() } - void InsertRowUndo::Undo() { if( mxTable.is() ) @@ -203,7 +197,6 @@ void InsertRowUndo::Undo() } - void InsertRowUndo::Redo() { if( mxTable.is() ) @@ -227,7 +220,6 @@ RemoveRowUndo::RemoveRowUndo( const TableModelRef& xTable, sal_Int32 nIndex, Row } - RemoveRowUndo::~RemoveRowUndo() { if( mbUndo ) @@ -235,7 +227,6 @@ RemoveRowUndo::~RemoveRowUndo() } - void RemoveRowUndo::Undo() { if( mxTable.is() ) @@ -246,7 +237,6 @@ void RemoveRowUndo::Undo() } - void RemoveRowUndo::Redo() { if( mxTable.is() ) @@ -268,7 +258,6 @@ static void Dispose( ColumnVector& rCols ) } - static void Dispose( CellVector& rCells ) { CellVector::iterator aIter( rCells.begin() ); @@ -277,7 +266,6 @@ static void Dispose( CellVector& rCells ) } - InsertColUndo::InsertColUndo( const TableModelRef& xTable, sal_Int32 nIndex, ColumnVector& aNewCols, CellVector& aCells ) : SdrUndoAction( *xTable->getSdrTableObj()->GetModel() ) , mxTable( xTable ) @@ -289,7 +277,6 @@ InsertColUndo::InsertColUndo( const TableModelRef& xTable, sal_Int32 nIndex, Col } - InsertColUndo::~InsertColUndo() { if( !mbUndo ) @@ -300,7 +287,6 @@ InsertColUndo::~InsertColUndo() } - void InsertColUndo::Undo() { if( mxTable.is() ) @@ -311,7 +297,6 @@ void InsertColUndo::Undo() } - void InsertColUndo::Redo() { if( mxTable.is() ) @@ -336,7 +321,6 @@ RemoveColUndo::RemoveColUndo( const TableModelRef& xTable, sal_Int32 nIndex, Col } - RemoveColUndo::~RemoveColUndo() { if( mbUndo ) @@ -347,7 +331,6 @@ RemoveColUndo::~RemoveColUndo() } - void RemoveColUndo::Undo() { if( mxTable.is() ) @@ -358,7 +341,6 @@ void RemoveColUndo::Undo() } - void RemoveColUndo::Redo() { if( mxTable.is() ) @@ -381,13 +363,11 @@ TableColumnUndo::TableColumnUndo( const TableColumnRef& xCol ) } - TableColumnUndo::~TableColumnUndo() { } - void TableColumnUndo::Undo() { if( !mbHasRedoData ) @@ -399,14 +379,12 @@ void TableColumnUndo::Undo() } - void TableColumnUndo::Redo() { setData( maRedoData ); } - bool TableColumnUndo::Merge( SfxUndoAction *pNextAction ) { TableColumnUndo* pNext = dynamic_cast< TableColumnUndo* >( pNextAction ); @@ -414,7 +392,6 @@ bool TableColumnUndo::Merge( SfxUndoAction *pNextAction ) } - void TableColumnUndo::setData( const Data& rData ) { mxCol->mnColumn = rData.mnColumn; @@ -426,7 +403,6 @@ void TableColumnUndo::setData( const Data& rData ) } - void TableColumnUndo::getData( Data& rData ) { rData.mnColumn = mxCol->mnColumn; @@ -450,13 +426,11 @@ TableRowUndo::TableRowUndo( const TableRowRef& xRow ) } - TableRowUndo::~TableRowUndo() { } - void TableRowUndo::Undo() { if( !mbHasRedoData ) @@ -468,14 +442,12 @@ void TableRowUndo::Undo() } - void TableRowUndo::Redo() { setData( maRedoData ); } - bool TableRowUndo::Merge( SfxUndoAction *pNextAction ) { TableRowUndo* pNext = dynamic_cast< TableRowUndo* >( pNextAction ); @@ -483,7 +455,6 @@ bool TableRowUndo::Merge( SfxUndoAction *pNextAction ) } - void TableRowUndo::setData( const Data& rData ) { mxRow->mnRow = rData.mnRow; @@ -495,7 +466,6 @@ void TableRowUndo::setData( const Data& rData ) } - void TableRowUndo::getData( Data& rData ) { rData.mnRow = mxRow->mnRow; @@ -507,7 +477,6 @@ void TableRowUndo::getData( Data& rData ) } - TableStyleUndo::TableStyleUndo( const SdrTableObj& rTableObj ) : SdrUndoAction( *rTableObj.GetModel() ) , mxObjRef( const_cast< sdr::table::SdrTableObj*>( &rTableObj ) ) |