LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rptui::OGroupUndo Class Reference

/class OGroupUndo More...

#include <RptUndo.hxx>

Inheritance diagram for rptui::OGroupUndo:
[legend]
Collaboration diagram for rptui::OGroupUndo:
[legend]

Public Member Functions

 OGroupUndo (OReportModel &rMod, TranslateId pCommentID, Action _eAction, css::uno::Reference< css::report::XGroup > _xGroup, css::uno::Reference< css::report::XReportDefinition > _xReportDefinition)
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from rptui::OCommentUndoAction
 OCommentUndoAction (SdrModel &rMod, TranslateId pCommentID)
 
virtual ~OCommentUndoAction () override
 
virtual OUString GetComment () const override
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from SdrUndoAction
virtual ~SdrUndoAction () override
 
virtual bool CanRepeat (SfxRepeatTarget &rView) const override
 
virtual void Repeat (SfxRepeatTarget &rView) override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &rView) const override
 
virtual OUString GetSdrRepeatComment () const
 
virtual bool CanSdrRepeat (SdrView &rView) const
 
virtual void SdrRepeat (SdrView &rView)
 
ViewShellId GetViewShellId () const override
 

Private Member Functions

void implReInsert ()
 
void implReRemove ()
 

Private Attributes

css::uno::Reference< css::report::XGroup > m_xGroup
 ! the group for the undo redo action More...
 
css::uno::Reference< css::report::XReportDefinition > m_xReportDefinition
 ! the parent report definition More...
 
Action m_eAction
 ! the current action More...
 
sal_Int32 m_nLastPosition
 ! the last position of the group More...
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Protected Attributes inherited from rptui::OCommentUndoAction
OUString m_strComment
 
::dbaui::IControllerm_pController
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

/class OGroupUndo

Undo action for removing a group object.

Definition at line 114 of file RptUndo.hxx.

Constructor & Destructor Documentation

◆ OGroupUndo()

rptui::OGroupUndo::OGroupUndo ( OReportModel rMod,
TranslateId  pCommentID,
Action  _eAction,
css::uno::Reference< css::report::XGroup >  _xGroup,
css::uno::Reference< css::report::XReportDefinition >  _xReportDefinition 
)

Member Function Documentation

◆ implReInsert()

void rptui::OGroupUndo::implReInsert ( )
private

Definition at line 321 of file RptUndo.cxx.

References m_nLastPosition, m_xGroup, m_xReportDefinition, and TOOLS_WARN_EXCEPTION.

Referenced by Redo(), and Undo().

◆ implReRemove()

void rptui::OGroupUndo::implReRemove ( )
private

Definition at line 333 of file RptUndo.cxx.

References m_nLastPosition, m_xReportDefinition, and TOOLS_WARN_EXCEPTION.

Referenced by Redo(), and Undo().

◆ Redo()

void rptui::OGroupUndo::Redo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 360 of file RptUndo.cxx.

References implReInsert(), implReRemove(), rptui::Inserted, m_eAction, and rptui::Removed.

◆ Undo()

void rptui::OGroupUndo::Undo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 345 of file RptUndo.cxx.

References implReInsert(), implReRemove(), rptui::Inserted, m_eAction, and rptui::Removed.

Member Data Documentation

◆ m_eAction

Action rptui::OGroupUndo::m_eAction
private

! the current action

Definition at line 118 of file RptUndo.hxx.

Referenced by Redo(), and Undo().

◆ m_nLastPosition

sal_Int32 rptui::OGroupUndo::m_nLastPosition
private

! the last position of the group

Definition at line 119 of file RptUndo.hxx.

Referenced by implReInsert(), implReRemove(), and OGroupUndo().

◆ m_xGroup

css::uno::Reference< css::report::XGroup> rptui::OGroupUndo::m_xGroup
private

! the group for the undo redo action

Definition at line 116 of file RptUndo.hxx.

Referenced by implReInsert(), and OGroupUndo().

◆ m_xReportDefinition

css::uno::Reference< css::report::XReportDefinition > rptui::OGroupUndo::m_xReportDefinition
private

! the parent report definition

Definition at line 117 of file RptUndo.hxx.

Referenced by implReInsert(), implReRemove(), and OGroupUndo().


The documentation for this class was generated from the following files: