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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () 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 const 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 64 of file fmundo.hxx.

Member Enumeration Documentation

Enumerator
Inserted 
Removed 

Definition at line 67 of file fmundo.hxx.

Constructor & Destructor Documentation

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 1025 of file fmundo.cxx.

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

FmUndoContainerAction::~FmUndoContainerAction ( )
overridevirtual

Definition at line 1061 of file fmundo.cxx.

References DisposeElement(), and m_xOwnElement.

Member Function Documentation

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

Definition at line 1082 of file fmundo.cxx.

References Any, cppu::UnoType< class >::get(), getElementPos(), m_aEvents, m_nIndex, m_xContainer, m_xElement, and m_xOwnElement.

Referenced by Redo(), and Undo().

void FmUndoContainerAction::implReRemove ( )
private

Definition at line 1111 of file fmundo.cxx.

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

Referenced by Redo(), and Undo().

void FmUndoContainerAction::Redo ( )
overridevirtual
void FmUndoContainerAction::Undo ( )
overridevirtual

Member Data Documentation

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

Definition at line 97 of file fmundo.hxx.

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

Action const FmUndoContainerAction::m_eAction
private

Definition at line 98 of file fmundo.hxx.

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

sal_Int32 FmUndoContainerAction::m_nIndex
private

Definition at line 95 of file fmundo.hxx.

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

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

Definition at line 90 of file fmundo.hxx.

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

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

Definition at line 92 of file fmundo.hxx.

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

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

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