27#include <svx/svxids.hrc>
53 m_pTabDgnCtrl->GetView()->getController().InvalidateFeature(SID_SAVEDOC);
65 m_pTabDgnCtrl->GetView()->getController().InvalidateFeature(SID_SAVEDOC);
124 ,m_pOldType(
std::move( _pOldType ))
159 std::vector< std::shared_ptr<OTableRow> >* pOriginalRows =
pOwner->GetRowList();
161 std::shared_ptr<OTableRow> pOriginalRow;
162 std::shared_ptr<OTableRow> pNewRow;
166 pOriginalRow = (*pOriginalRows)[
nIndex];
167 pNewRow = std::make_shared<OTableRow>( *pOriginalRow,
nIndex );
184 std::shared_ptr<OTableRow> pNewOrigRow;
185 std::vector< std::shared_ptr<OTableRow> >* pOriginalRows =
pTabEdCtrl->GetRowList();
189 pNewOrigRow = std::make_shared<OTableRow>( *deletedRow );
190 nPos = deletedRow->GetPos();
191 pOriginalRows->insert( pOriginalRows->begin()+
nPos,pNewOrigRow);
202 std::vector< std::shared_ptr<OTableRow> >* pOriginalRows =
pTabEdCtrl->GetRowList();
206 auto it = pOriginalRows->begin() + deletedRow->GetPos();
207 pOriginalRows->erase(it);
217 std::vector< std::shared_ptr<OTableRow> >&& _vInsertedRows)
219 ,m_vInsertedRows(
std::move(_vInsertedRows))
220 ,m_nInsPos( nInsertPosition )
232 std::vector< std::shared_ptr<OTableRow> >* pOriginalRows =
pTabEdCtrl->GetRowList();
245 std::shared_ptr<OTableRow> pRow;
246 std::vector< std::shared_ptr<OTableRow> >* pRowList =
pTabEdCtrl->GetRowList();
249 pRow = std::make_shared<OTableRow>( *insertedRow );
250 pRowList->insert( pRowList->begin()+nInsertRow ,pRow );
262 ,m_nInsPos( nInsertPosition )
263 ,m_nInsRows( nInsertedRows )
274 std::vector< std::shared_ptr<OTableRow> >* pOriginalRows =
pTabEdCtrl->GetRowList();
287 std::vector< std::shared_ptr<OTableRow> >* pRowList =
pTabEdCtrl->GetRowList();
290 pRowList->insert( pRowList->begin()+
i,std::make_shared<OTableRow>() );
300 ,m_aDelKeys( aDeletedKeys )
301 ,m_aInsKeys( aInsertedKeys )
312 std::vector< std::shared_ptr<OTableRow> >* pRowList =
pTabEdCtrl->GetRowList();
313 std::shared_ptr<OTableRow> pRow;
319 OSL_ENSURE(
nIndex <=
static_cast<tools::Long>(pRowList->size()),
"Index for undo isn't valid!");
320 pRow = (*pRowList)[
nIndex];
321 pRow->SetPrimaryKey(
false );
327 OSL_ENSURE(
nIndex <=
static_cast<tools::Long>(pRowList->size()),
"Index for undo isn't valid!");
328 pRow = (*pRowList)[
nIndex];
329 pRow->SetPrimaryKey(
true );
338 std::vector< std::shared_ptr<OTableRow> >* pRowList =
pTabEdCtrl->GetRowList();
343 (*pRowList)[
nIndex]->SetPrimaryKey(
false );
347 (*pRowList)[
nIndex]->SetPrimaryKey(
true );
sal_Int32 FirstSelected()
const TOTypeInfoSP & getTypeInfo() const
virtual void Undo() override
virtual void Redo() override
MultiSelection m_aDelKeys
virtual ~OPrimKeyUndoAct() override
OPrimKeyUndoAct(OTableEditorCtrl *pOwner, const MultiSelection &aDeletedKeys, const MultiSelection &aInsertedKeys)
VclPtr< OTableEditorCtrl > m_pEditorCtrl
MultiSelection m_aInsKeys
virtual ~OTableDesignCellUndoAct() override
virtual void Redo() override
OTableDesignCellUndoAct(OTableRowView *pOwner, sal_Int32 nRowID, sal_uInt16 nColumn)
virtual void Undo() override
virtual void Redo() override
virtual void Undo() override
VclPtr< OTableRowView > m_pTabDgnCtrl
virtual ~OTableDesignUndoAct() override
virtual ~OTableEditorDelUndoAct() override
virtual void Redo() override
OTableEditorDelUndoAct(OTableEditorCtrl *pOwner)
std::vector< std::shared_ptr< OTableRow > > m_aDeletedRows
virtual void Undo() override
virtual void Undo() override
virtual ~OTableEditorInsNewUndoAct() override
virtual void Redo() override
OTableEditorInsNewUndoAct(OTableEditorCtrl *pOwner, sal_Int32 nInsertPosition, sal_Int32 nInsertedRows)
virtual void Redo() override
OTableEditorInsUndoAct(OTableEditorCtrl *pOwner, tools::Long nInsertPosition, std::vector< std::shared_ptr< OTableRow > > &&_vInsertedRows)
std::vector< std::shared_ptr< OTableRow > > m_vInsertedRows
virtual ~OTableEditorInsUndoAct() override
virtual void Undo() override
virtual ~OTableEditorTypeSelUndoAct() override
virtual void Undo() override
virtual void Redo() override
OTableEditorTypeSelUndoAct(OTableEditorCtrl *pOwner, sal_Int32 nRowID, sal_uInt16 nColumn, TOTypeInfoSP _pOldType)
virtual ~OTableEditorUndoAct() override
VclPtr< OTableEditorCtrl > pTabEdCtrl
OTableEditorUndoAct(OTableEditorCtrl *pOwner, TranslateId pCommentID)
#define SFX_ENDOFSELECTION
std::shared_ptr< OTypeInfo > TOTypeInfoSP
Reference< XController > xController
the controller of the sub component. Must not be <NULL>