20#ifndef INCLUDED_SVX_SOURCE_INC_FMUNDO_HXX
21#define INCLUDED_SVX_SOURCE_INC_FMUNDO_HXX
28#include <com/sun/star/util/XModifyListener.hpp>
29#include <com/sun/star/beans/XPropertySet.hpp>
30#include <com/sun/star/beans/XPropertyChangeListener.hpp>
31#include <com/sun/star/beans/PropertyChangeEvent.hpp>
32#include <com/sun/star/script/ScriptEventDescriptor.hpp>
33#include <com/sun/star/container/XIndexContainer.hpp>
34#include <com/sun/star/container/XContainerListener.hpp>
35#include <com/sun/star/container/ContainerEvent.hpp>
36#include <com/sun/star/container/XNameContainer.hpp>
48 css::uno::Reference< css::beans::XPropertySet>
xObj;
56 virtual void Undo()
override;
57 virtual void Redo()
override;
74 const css::uno::Reference< css::container::XIndexContainer >& xCont,
75 const css::uno::Reference< css::uno::XInterface >& xElem,
79 virtual void Undo()
override;
80 virtual void Redo()
override;
82 static void DisposeElement(
const css::uno::Reference< css::uno::XInterface >& xElem );
88 css::uno::Reference< css::container::XIndexContainer >
90 css::uno::Reference< css::uno::XInterface >
92 css::uno::Reference< css::uno::XInterface >
95 css::uno::Sequence< css::script::ScriptEventDescriptor >
109 virtual void Undo()
override;
114 static void DisposeElement(
const css::uno::Reference< css::awt::XControlModel>& xReplaced );
119 :
public ::cppu::WeakImplHelper< css::beans::XPropertyChangeListener
120 , css::container::XContainerListener
121 , css::util::XModifyListener
142 void AddForms(
const css::uno::Reference< css::container::XNameContainer>& rForms );
143 void RemoveForms(
const css::uno::Reference< css::container::XNameContainer>& rForms );
154 static void Inserted(FmFormObj* pObj);
155 static void Removed(FmFormObj* pObj);
159 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source)
override;
162 virtual void SAL_CALL
propertyChange(
const css::beans::PropertyChangeEvent& evt)
override;
165 virtual void SAL_CALL
elementInserted(
const css::container::ContainerEvent& rEvent)
override;
166 virtual void SAL_CALL
elementReplaced(
const css::container::ContainerEvent& rEvent)
override;
167 virtual void SAL_CALL
elementRemoved(
const css::container::ContainerEvent& rEvent)
override;
170 virtual void SAL_CALL
modified(
const css::lang::EventObject& aEvent )
override;
177 void AddElement(
const css::uno::Reference< css::uno::XInterface>& Element);
178 void RemoveElement(
const css::uno::Reference< css::uno::XInterface>& Element);
183 void switchListening(
const css::uno::Reference< css::container::XIndexContainer >& _rxContainer,
bool _bStartListening );
184 void switchListening(
const css::uno::Reference< css::uno::XInterface >& _rxObject,
bool _bStartListening );
virtual ~FmUndoContainerAction() override
virtual void Redo() override
css::uno::Sequence< css::script::ScriptEventDescriptor > m_aEvents
css::uno::Reference< css::container::XIndexContainer > m_xContainer
virtual void Undo() override
static void DisposeElement(const css::uno::Reference< css::uno::XInterface > &xElem)
FmUndoContainerAction(FmFormModel &rMod, Action _eAction, const css::uno::Reference< css::container::XIndexContainer > &xCont, const css::uno::Reference< css::uno::XInterface > &xElem, sal_Int32 nIdx)
css::uno::Reference< css::uno::XInterface > m_xElement
css::uno::Reference< css::uno::XInterface > m_xOwnElement
FmUndoModelReplaceAction(FmFormModel &rMod, SdrUnoObj *pObject, const css::uno::Reference< css::awt::XControlModel > &xReplaced)
virtual void Undo() override
css::uno::Reference< css::awt::XControlModel > m_xReplaced
static void DisposeElement(const css::uno::Reference< css::awt::XControlModel > &xReplaced)
virtual OUString GetComment() const override
virtual ~FmUndoModelReplaceAction() override
virtual void Redo() override
virtual void Undo() override
FmUndoPropertyAction(FmFormModel &rMod, const css::beans::PropertyChangeEvent &evt)
virtual void Redo() override
virtual OUString GetComment() const override
css::uno::Reference< css::beans::XPropertySet > xObj
oslInterlockedCount m_Locks
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &rEvent) override
void switchListening(const css::uno::Reference< css::uno::XInterface > &_rxObject, bool _bStartListening)
void RemoveElement(const css::uno::Reference< css::uno::XInterface > &Element)
void AddForms(const css::uno::Reference< css::container::XNameContainer > &rForms)
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
void AddElement(const css::uno::Reference< css::uno::XInterface > &Element)
void TogglePropertyListening(const css::uno::Reference< css::uno::XInterface > &Element)
void Inserted(SdrObject *pObj)
void * m_pPropertySetCache
virtual ~FmXUndoEnvironment() override
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &evt) override
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &rEvent) override
FmXUndoEnvironment(FmFormModel &_rModel)
void Removed(SdrObject *pObj)
void SetReadOnly(bool bRead, const Accessor &)
void switchListening(const css::uno::Reference< css::container::XIndexContainer > &_rxContainer, bool _bStartListening)
css::uno::Reference< css::script::XScriptListener > m_vbaListener
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &rEvent) override
::rtl::Reference< svxform::FormScriptingEnvironment > m_pScriptingEnv
void RemoveForms(const css::uno::Reference< css::container::XNameContainer > &rForms)
Abstract base class (ABC) for all UndoActions of DrawingEngine.