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, const char *pCommentID)
 
virtual ~OCommentUndoAction () 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 223 of file UndoActions.hxx.

Constructor & Destructor Documentation

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

Definition at line 325 of file UndoActions.cxx.

References Source.

Member Function Documentation

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

Reimplemented from rptui::OCommentUndoAction.

Definition at line 367 of file UndoActions.cxx.

References aStr, m_aPropertyName, and RptResId().

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

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

Definition at line 345 of file UndoActions.cxx.

References m_xObj.

Referenced by setProperty().

void rptui::ORptUndoPropertyAction::Redo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 340 of file UndoActions.cxx.

References 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 350 of file UndoActions.cxx.

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

Referenced by Redo(), and Undo().

void rptui::ORptUndoPropertyAction::Undo ( )
overridevirtual

Reimplemented from rptui::OCommentUndoAction.

Definition at line 334 of file UndoActions.cxx.

References setProperty().

Member Data Documentation

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

Definition at line 227 of file UndoActions.hxx.

Referenced by setProperty().

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

Definition at line 228 of file UndoActions.hxx.

Referenced by setProperty().

OUString rptui::ORptUndoPropertyAction::m_aPropertyName
private

Definition at line 226 of file UndoActions.hxx.

Referenced by GetComment(), and setProperty().

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

Definition at line 225 of file UndoActions.hxx.

Referenced by getObject().


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