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

#include <UndoActions.hxx>

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

Public Member Functions

 ORptUndoPropertyAction (SdrModel &rMod, const css::beans::PropertyChangeEvent &evt)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual OUString GetComment () const 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
 

Protected Member Functions

virtual css::uno::Reference< css::beans::XPropertySetgetObject ()
 
- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 

Private Member Functions

void setProperty (bool _bOld)
 sets either the old value or the new value again at the property set. More...
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetm_xObj
 
OUString m_aPropertyName
 
css::uno::Any m_aNewValue
 
css::uno::Any m_aOldValue
 

Additional Inherited Members

- Protected Attributes inherited from rptui::OCommentUndoAction
OUString m_strComment
 
::dbaui::IControllerm_pController
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 224 of file UndoActions.hxx.

Constructor & Destructor Documentation

◆ ORptUndoPropertyAction()

rptui::ORptUndoPropertyAction::ORptUndoPropertyAction ( SdrModel rMod,
const css::beans::PropertyChangeEvent &  evt 
)

Definition at line 319 of file UndoActions.cxx.

Member Function Documentation

◆ GetComment()

OUString rptui::ORptUndoPropertyAction::GetComment ( ) const
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 361 of file UndoActions.cxx.

References aStr, m_aPropertyName, and RptResId().

◆ getObject()

Reference< XPropertySet > rptui::ORptUndoPropertyAction::getObject ( )
protectedvirtual

Reimplemented in rptui::OUndoPropertyReportSectionAction, and rptui::OUndoPropertyGroupSectionAction.

Definition at line 339 of file UndoActions.cxx.

References m_xObj.

Referenced by setProperty().

◆ Redo()

void rptui::ORptUndoPropertyAction::Redo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 334 of file UndoActions.cxx.

References setProperty().

◆ setProperty()

void rptui::ORptUndoPropertyAction::setProperty ( bool  _bOld)
private

sets either the old value or the new value again at the property set.

Parameters
_bOldIf set to <TRUE> than the old value will be set otherwise the new value will be set.

Definition at line 344 of file UndoActions.cxx.

References Exception, getObject(), m_aNewValue, m_aOldValue, m_aPropertyName, and TOOLS_WARN_EXCEPTION.

Referenced by Redo(), and Undo().

◆ Undo()

void rptui::ORptUndoPropertyAction::Undo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 328 of file UndoActions.cxx.

References setProperty().

Member Data Documentation

◆ m_aNewValue

css::uno::Any rptui::ORptUndoPropertyAction::m_aNewValue
private

Definition at line 228 of file UndoActions.hxx.

Referenced by setProperty().

◆ m_aOldValue

css::uno::Any rptui::ORptUndoPropertyAction::m_aOldValue
private

Definition at line 229 of file UndoActions.hxx.

Referenced by setProperty().

◆ m_aPropertyName

OUString rptui::ORptUndoPropertyAction::m_aPropertyName
private

Definition at line 227 of file UndoActions.hxx.

Referenced by GetComment(), and setProperty().

◆ m_xObj

css::uno::Reference< css::beans::XPropertySet> rptui::ORptUndoPropertyAction::m_xObj
private

Definition at line 226 of file UndoActions.hxx.

Referenced by getObject().


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