19#ifndef INCLUDED_SVX_SOURCE_INC_FMOBJ_HXX
20#define INCLUDED_SVX_SOURCE_INC_FMOBJ_HXX
22#include <config_options.h>
24#include <com/sun/star/container/XIndexContainer.hpp>
25#include <com/sun/star/form/XForms.hpp>
26#include <com/sun/star/script/ScriptEventDescriptor.hpp>
31class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmFormObj final :
public SdrUnoObj
33 FmFormObj(
const FmFormObj& ) =
delete;
35 css::uno::Sequence< css::script::ScriptEventDescriptor > aEvts;
36 css::uno::Sequence< css::script::ScriptEventDescriptor> m_aEventsHistory;
42 css::uno::Reference< css::container::XIndexContainer> m_xParent;
43 css::uno::Reference< css::form::XForms > m_xEnvironmentHistory;
51 SAL_DLLPRIVATE
virtual ~FmFormObj()
override;
56 const OUString& rModelName);
59 FmFormObj(
SdrModel& rSdrModel, FmFormObj
const & rSource);
61 SAL_DLLPRIVATE
const css::uno::Reference< css::container::XIndexContainer>&
62 GetOriginalParent()
const {
return m_xParent; }
63 SAL_DLLPRIVATE
const css::uno::Sequence< css::script::ScriptEventDescriptor >&
64 GetOriginalEvents()
const {
return aEvts; }
65 SAL_DLLPRIVATE sal_Int32
66 GetOriginalIndex()
const {
return m_nPos; }
68 SAL_DLLPRIVATE
void SetObjEnv(
69 const css::uno::Reference< css::container::XIndexContainer>& xForm,
71 const css::uno::Sequence< css::script::ScriptEventDescriptor >& rEvts );
72 SAL_DLLPRIVATE
void ClearObjEnv();
84 SAL_DLLPRIVATE
static css::uno::Reference< css::uno::XInterface> ensureModelEnv(
85 const css::uno::Reference< css::uno::XInterface>& _rSourceContainer,
86 const css::uno::Reference< css::form::XForms>& _rTopLevelDestContainer);
94 SAL_DLLPRIVATE
static FmFormObj* GetFormObject(
SdrObject* _pSdrObject );
95 SAL_DLLPRIVATE
static const FmFormObj* GetFormObject(
const SdrObject* _pSdrObject );
97 SAL_DLLPRIVATE
virtual void SetUnoControlModel(
const css::uno::Reference< css::awt::XControlModel >& _rxModel )
override;
106 SAL_DLLPRIVATE
void impl_isolateControlModel_nothrow();
110 SAL_DLLPRIVATE
void impl_checkRefDevice_nothrow(
bool _force =
false );
virtual SdrInventor GetObjInventor() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
virtual void NbcReformatText() override
virtual void BrkCreate(SdrDragStat &rStat) override
virtual void handlePageChange(SdrPage *pOldPage, SdrPage *pNewPage) override
virtual bool EndCreate(SdrDragStat &rStat, SdrCreateCmd eCmd) override
virtual void SetUnoControlModel(const css::uno::Reference< css::awt::XControlModel > &xModel)
virtual SdrObjKind GetObjIdentifier() const override
virtual rtl::Reference< SdrObject > CloneSdrObject(SdrModel &rTargetModel) const override