diff options
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableUndo.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableUndo.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index ec495aa75d7d..0c5d901bc52e 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -169,10 +169,10 @@ OTableEditorDelUndoAct::OTableEditorDelUndoAct( OTableEditorCtrl* pOwner) : OTableEditorUndoAct( pOwner ,STR_TABED_UNDO_ROWDELETED) { // fill DeletedRowList - ::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pOwner->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pOwner->GetRowList(); long nIndex = pOwner->FirstSelectedRow(); - ::boost::shared_ptr<OTableRow> pOriginalRow; - ::boost::shared_ptr<OTableRow> pNewRow; + std::shared_ptr<OTableRow> pOriginalRow; + std::shared_ptr<OTableRow> pNewRow; while( nIndex >= 0 ) { @@ -193,11 +193,11 @@ void OTableEditorDelUndoAct::Undo() { // Insert the deleted line sal_uLong nPos; - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_aDeletedRows.begin(); - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_aDeletedRows.end(); + ::std::vector< std::shared_ptr<OTableRow> >::iterator aIter = m_aDeletedRows.begin(); + ::std::vector< std::shared_ptr<OTableRow> >::iterator aEnd = m_aDeletedRows.end(); - ::boost::shared_ptr<OTableRow> pNewOrigRow; - ::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + std::shared_ptr<OTableRow> pNewOrigRow; + ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { @@ -215,9 +215,9 @@ void OTableEditorDelUndoAct::Redo() { // delete line again sal_uLong nPos; - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_aDeletedRows.begin(); - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_aDeletedRows.end(); - ::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >::iterator aIter = m_aDeletedRows.begin(); + ::std::vector< std::shared_ptr<OTableRow> >::iterator aEnd = m_aDeletedRows.end(); + ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { @@ -233,7 +233,7 @@ void OTableEditorDelUndoAct::Redo() // class OTableEditorInsUndoAct OTableEditorInsUndoAct::OTableEditorInsUndoAct( OTableEditorCtrl* pOwner, long nInsertPosition , - const ::std::vector< ::boost::shared_ptr<OTableRow> >& _vInsertedRows) + const ::std::vector< std::shared_ptr<OTableRow> >& _vInsertedRows) :OTableEditorUndoAct( pOwner,STR_TABED_UNDO_ROWINSERTED ) ,m_vInsertedRows(_vInsertedRows) ,m_nInsPos( nInsertPosition ) @@ -248,7 +248,7 @@ OTableEditorInsUndoAct::~OTableEditorInsUndoAct() void OTableEditorInsUndoAct::Undo() { // delete lines again - ::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for( long i=(m_nInsPos+m_vInsertedRows.size()-1); i>(m_nInsPos-1); i-- ) { pOriginalRows->erase(pOriginalRows->begin()+i); @@ -264,10 +264,10 @@ void OTableEditorInsUndoAct::Redo() { // insert lines again long nInsertRow = m_nInsPos; - ::boost::shared_ptr<OTableRow> pRow; - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_vInsertedRows.begin(); - ::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_vInsertedRows.end(); - ::std::vector< ::boost::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::shared_ptr<OTableRow> pRow; + ::std::vector< std::shared_ptr<OTableRow> >::iterator aIter = m_vInsertedRows.begin(); + ::std::vector< std::shared_ptr<OTableRow> >::iterator aEnd = m_vInsertedRows.end(); + ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { pRow.reset(new OTableRow( **aIter )); @@ -296,7 +296,7 @@ OTableEditorInsNewUndoAct::~OTableEditorInsNewUndoAct() void OTableEditorInsNewUndoAct::Undo() { // delete inserted lines - ::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for( long i=(m_nInsPos+m_nInsRows-1); i>(m_nInsPos-1); i-- ) { @@ -312,10 +312,10 @@ void OTableEditorInsNewUndoAct::Undo() void OTableEditorInsNewUndoAct::Redo() { // insert lines again - ::std::vector< ::boost::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); for( long i=m_nInsPos; i<(m_nInsPos+m_nInsRows); i++ ) - pRowList->insert( pRowList->begin()+i,::boost::shared_ptr<OTableRow>(new OTableRow()) ); + pRowList->insert( pRowList->begin()+i,std::shared_ptr<OTableRow>(new OTableRow()) ); pTabEdCtrl->RowInserted( m_nInsPos, m_nInsRows, true ); pTabEdCtrl->InvalidateHandleColumn(); @@ -338,8 +338,8 @@ OPrimKeyUndoAct::~OPrimKeyUndoAct() void OPrimKeyUndoAct::Undo() { - ::std::vector< ::boost::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); - ::boost::shared_ptr<OTableRow> pRow; + ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::shared_ptr<OTableRow> pRow; long nIndex; // delete inserted keys @@ -364,7 +364,7 @@ void OPrimKeyUndoAct::Undo() void OPrimKeyUndoAct::Redo() { - ::std::vector< ::boost::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); long nIndex; // delete the deleted keys |