LibreOffice Module svx (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmUndoContainerAction Class Referencefinal

#include <fmundo.hxx>

Inheritance diagram for FmUndoContainerAction:
[legend]
Collaboration diagram for FmUndoContainerAction:
[legend]

Public Types

enum  Action {
  Inserted = 1 ,
  Removed = 2
}
 

Public Member Functions

 FmUndoContainerAction (FmFormModel &rMod, Action _eAction, const css::uno::Reference< css::container::XIndexContainer > &xCont, const css::uno::Reference< css::uno::XInterface > &xElem, sal_Int32 nIdx)
 
virtual ~FmUndoContainerAction () 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
 See SfxUndoAction::GetViewShellId(). More...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Static Public Member Functions

static void DisposeElement (const css::uno::Reference< css::uno::XInterface > &xElem)
 

Private Member Functions

void implReInsert ()
 
void implReRemove ()
 

Private Attributes

css::uno::Reference< css::container::XIndexContainer > m_xContainer
 
css::uno::Reference< css::uno::XInterface > m_xElement
 
css::uno::Reference< css::uno::XInterface > m_xOwnElement
 
sal_Int32 m_nIndex
 
css::uno::Sequence< css::script::ScriptEventDescriptor > m_aEvents
 
Action m_eAction
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Definition at line 63 of file fmundo.hxx.

Member Enumeration Documentation

◆ Action

Enumerator
Inserted 
Removed 

Definition at line 66 of file fmundo.hxx.

Constructor & Destructor Documentation

◆ FmUndoContainerAction()

FmUndoContainerAction::FmUndoContainerAction ( FmFormModel rMod,
Action  _eAction,
const css::uno::Reference< css::container::XIndexContainer > &  xCont,
const css::uno::Reference< css::uno::XInterface > &  xElem,
sal_Int32  nIdx 
)

Definition at line 1021 of file fmundo.cxx.

References m_aEvents, m_eAction, m_eAction, m_nIndex, m_xContainer, m_xElement, m_xOwnElement, and Removed.

◆ ~FmUndoContainerAction()

FmUndoContainerAction::~FmUndoContainerAction ( )
overridevirtual

Definition at line 1057 of file fmundo.cxx.

References DisposeElement(), and m_xOwnElement.

Member Function Documentation

◆ DisposeElement()

void FmUndoContainerAction::DisposeElement ( const css::uno::Reference< css::uno::XInterface > &  xElem)
static

◆ implReInsert()

void FmUndoContainerAction::implReInsert ( )
private

Definition at line 1078 of file fmundo.cxx.

References Any, getElementPos(), m_aEvents, m_nIndex, m_xContainer, m_xElement, and m_xOwnElement.

Referenced by Redo(), and Undo().

◆ implReRemove()

void FmUndoContainerAction::implReRemove ( )
private

Definition at line 1107 of file fmundo.cxx.

References getElementPos(), m_aEvents, m_nIndex, m_xContainer, m_xElement, and m_xOwnElement.

Referenced by Redo(), and Undo().

◆ Redo()

void FmUndoContainerAction::Redo ( )
overridevirtual

◆ Undo()

void FmUndoContainerAction::Undo ( )
overridevirtual

Member Data Documentation

◆ m_aEvents

css::uno::Sequence< css::script::ScriptEventDescriptor > FmUndoContainerAction::m_aEvents
private

Definition at line 96 of file fmundo.hxx.

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

◆ m_eAction

Action FmUndoContainerAction::m_eAction
private

Definition at line 97 of file fmundo.hxx.

Referenced by FmUndoContainerAction(), Redo(), and Undo().

◆ m_nIndex

sal_Int32 FmUndoContainerAction::m_nIndex
private

Definition at line 94 of file fmundo.hxx.

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

◆ m_xContainer

css::uno::Reference< css::container::XIndexContainer > FmUndoContainerAction::m_xContainer
private

Definition at line 89 of file fmundo.hxx.

Referenced by implReInsert(), implReRemove(), Redo(), and Undo().

◆ m_xElement

css::uno::Reference< css::uno::XInterface > FmUndoContainerAction::m_xElement
private

Definition at line 91 of file fmundo.hxx.

Referenced by FmUndoContainerAction(), implReInsert(), implReRemove(), Redo(), and Undo().

◆ m_xOwnElement

css::uno::Reference< css::uno::XInterface > FmUndoContainerAction::m_xOwnElement
private

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