19#ifndef INCLUDED_REPORTDESIGN_INC_UNDOACTIONS_HXX
20#define INCLUDED_REPORTDESIGN_INC_UNDOACTIONS_HXX
24#include <com/sun/star/beans/XPropertySet.hpp>
25#include <com/sun/star/beans/PropertyChangeEvent.hpp>
26#include <com/sun/star/report/XReportDefinition.hpp>
27#include <com/sun/star/report/XGroup.hpp>
50 css::uno::Reference< css::report::XGroup >
m_xGroup;
60 const css::uno::Reference< css::report::XGroup >&
getGroup()
const {
return m_xGroup; }
65 static ::std::function<css::uno::Reference< css::report::XSection>(
OGroupHelper *)>
getMemberFunction(
const css::uno::Reference< css::report::XSection >& _xSection);
73 css::uno::Reference< css::report::XReportDefinition >
m_xReport;
75 OReportHelper(css::uno::Reference< css::report::XReportDefinition > _xReport)
90 static ::std::function<css::uno::Reference< css::report::XSection>(
OReportHelper *)>
getMemberFunction(
const css::uno::Reference< css::report::XSection >& _xSection);
148 virtual OUString
GetComment()
const override {
return m_strComment; }
149 virtual void Undo()
override;
150 virtual void Redo()
override;
160 css::uno::Reference< css::uno::XInterface >
162 css::uno::Reference< css::uno::XInterface >
164 css::uno::Reference< css::container::XIndexContainer >
171 ,css::uno::Reference< css::container::XIndexContainer > xContainer
172 ,
const css::uno::Reference< css::uno::XInterface>& xElem
176 virtual void Undo()
override;
177 virtual void Redo()
override;
194 ,::std::function<css::uno::Reference< css::report::XSection >(
OReportHelper *)> _pMemberFunction
195 ,
const css::uno::Reference< css::report::XReportDefinition >& _xReport
196 ,
const css::uno::Reference< css::uno::XInterface>& xElem
213 ,::std::function<css::uno::Reference< css::report::XSection >(
OGroupHelper *)> _pMemberFunction
214 ,
const css::uno::Reference< css::report::XGroup >& _xGroup
215 ,
const css::uno::Reference< css::uno::XInterface>& xElem
226 css::uno::Reference< css::beans::XPropertySet>
m_xObj;
237 virtual css::uno::Reference< css::beans::XPropertySet>
getObject();
242 virtual void Undo()
override;
243 virtual void Redo()
override;
256 virtual css::uno::Reference< css::beans::XPropertySet>
getObject()
override;
259 ,
const css::beans::PropertyChangeEvent& evt
260 ,::std::function<css::uno::Reference< css::report::XSection >(
OReportHelper *)> _pMemberFunction
261 ,
const css::uno::Reference< css::report::XReportDefinition >& _xReport
273 virtual css::uno::Reference< css::beans::XPropertySet>
getObject()
override;
276 ,
const css::beans::PropertyChangeEvent& evt
277 ,::std::function<css::uno::Reference< css::report::XSection >(
OGroupHelper *)> _pMemberFunction
278 ,
const css::uno::Reference< css::report::XGroup >& _xGroup
void EnableUndo(bool bEnable)
virtual void EnterListAction(const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId)
Helper class to allow std::mem_fun for SAL_CALL.
css::uno::Reference< css::report::XSection > getHeader()
css::uno::Reference< css::report::XSection > getFooter()
static ::std::function< css::uno::Reference< css::report::XSection >(OGroupHelper *)> getMemberFunction(const css::uno::Reference< css::report::XSection > &_xSection)
css::uno::Reference< css::report::XGroup > m_xGroup
OGroupHelper(const OGroupHelper &)=delete
OGroupHelper(css::uno::Reference< css::report::XGroup > _xGroup)
const css::uno::Reference< css::report::XGroup > & getGroup() const
OGroupHelper & operator=(const OGroupHelper &)=delete
Helper class to allow std::mem_fun for SAL_CALL.
css::uno::Reference< css::report::XSection > getPageFooter()
OReportHelper(css::uno::Reference< css::report::XReportDefinition > _xReport)
css::uno::Reference< css::report::XReportDefinition > m_xReport
css::uno::Reference< css::report::XSection > getReportFooter()
css::uno::Reference< css::report::XSection > getDetail()
static ::std::function< css::uno::Reference< css::report::XSection >(OReportHelper *)> getMemberFunction(const css::uno::Reference< css::report::XSection > &_xSection)
css::uno::Reference< css::report::XSection > getReportHeader()
css::uno::Reference< css::report::XSection > getPageHeader()
ORptUndoPropertyAction(SdrModel &rMod, const css::beans::PropertyChangeEvent &evt)
virtual void Redo() override
css::uno::Reference< css::beans::XPropertySet > m_xObj
void setProperty(bool _bOld)
sets either the old value or the new value again at the property set.
css::uno::Any m_aOldValue
virtual css::uno::Reference< css::beans::XPropertySet > getObject()
css::uno::Any m_aNewValue
virtual OUString GetComment() const override
virtual void Undo() override
css::uno::Reference< css::container::XIndexContainer > m_xContainer
virtual void Undo() override
void operator=(OUndoContainerAction const &)=delete
OUndoContainerAction(SdrModel &rMod, Action _eAction, css::uno::Reference< css::container::XIndexContainer > xContainer, const css::uno::Reference< css::uno::XInterface > &xElem, TranslateId pCommentId)
css::uno::Reference< css::uno::XInterface > m_xElement
virtual void implReInsert()
css::uno::Reference< css::uno::XInterface > m_xOwnElement
virtual void Redo() override
OUndoContainerAction(OUndoContainerAction const &)=delete
virtual void implReRemove()
virtual ~OUndoContainerAction() override
virtual void implReRemove() override
virtual void implReInsert() override
OUndoGroupSectionAction(SdrModel &rMod, Action _eAction,::std::function< css::uno::Reference< css::report::XSection >(OGroupHelper *)> _pMemberFunction, const css::uno::Reference< css::report::XGroup > &_xGroup, const css::uno::Reference< css::uno::XInterface > &xElem, TranslateId pCommentId)
OGroupHelper m_aGroupHelper
::std::function< css::uno::Reference< css::report::XSection >(OGroupHelper *)> m_pMemberFunction
::std::function< css::uno::Reference< css::report::XSection >(OGroupHelper *)> m_pMemberFunction
OGroupHelper m_aGroupHelper
virtual css::uno::Reference< css::beans::XPropertySet > getObject() override
OUndoPropertyGroupSectionAction(SdrModel &rMod, const css::beans::PropertyChangeEvent &evt,::std::function< css::uno::Reference< css::report::XSection >(OGroupHelper *)> _pMemberFunction, const css::uno::Reference< css::report::XGroup > &_xGroup)
OUndoPropertyReportSectionAction(SdrModel &rMod, const css::beans::PropertyChangeEvent &evt,::std::function< css::uno::Reference< css::report::XSection >(OReportHelper *)> _pMemberFunction, const css::uno::Reference< css::report::XReportDefinition > &_xReport)
OReportHelper m_aReportHelper
::std::function< css::uno::Reference< css::report::XSection >(OReportHelper *)> m_pMemberFunction
virtual css::uno::Reference< css::beans::XPropertySet > getObject() override
OReportHelper m_aReportHelper
virtual void implReRemove() override
virtual void implReInsert() override
::std::function< css::uno::Reference< css::report::XSection >(OReportHelper *)> m_pMemberFunction
OUndoReportSectionAction(SdrModel &rMod, Action _eAction,::std::function< css::uno::Reference< css::report::XSection >(OReportHelper *)> _pMemberFunction, const css::uno::Reference< css::report::XReportDefinition > &_xReport, const css::uno::Reference< css::uno::XInterface > &xElem, TranslateId pCommentId)
SfxUndoManager & m_rUndoManager
UndoContext(SfxUndoManager &i_undoManager, const OUString &i_undoTitle)
SfxUndoManager & m_rUndoManager
UndoSuppressor(SfxUndoManager &i_undoManager)
#define REPORTDESIGN_DLLPUBLIC