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, const char *pCommentID, Action _eAction, const css::uno::Reference< css::report::XGroup > &_xGroup, const 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, const char *pCommentID)
 
virtual ~OCommentUndoAction () override
 
virtual OUString GetComment () const 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

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

Member Function Documentation

void rptui::OGroupUndo::implReInsert ( )
private

Definition at line 329 of file RptUndo.cxx.

References m_nLastPosition, m_xGroup, and m_xReportDefinition.

Referenced by Redo(), and Undo().

void rptui::OGroupUndo::implReRemove ( )
private

Definition at line 341 of file RptUndo.cxx.

References m_nLastPosition, and m_xReportDefinition.

Referenced by Redo(), and Undo().

void rptui::OGroupUndo::Redo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 368 of file RptUndo.cxx.

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

void rptui::OGroupUndo::Undo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 353 of file RptUndo.cxx.

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

Member Data Documentation

Action rptui::OGroupUndo::m_eAction
private

! the current action

Definition at line 118 of file RptUndo.hxx.

Referenced by Redo(), and Undo().

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().

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().

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: