25#include <com/sun/star/form/XForms.hpp>
30#include <osl/diagnose.h>
34using ::com::sun::star::uno::Reference;
35using ::com::sun::star::container::XNameContainer;
57 , m_pObjShell(nullptr)
58 , m_bOpenInDesignMode(false)
59 , m_bAutoControlFocus(false)
92 OSL_ENSURE( pToBeRemovedPage,
"FmFormModel::RemovePage: *which page*?" );
94 if ( pToBeRemovedPage )
96 Reference< XNameContainer > xForms( pToBeRemovedPage->
GetForms(
false ) );
98 m_pImpl->mxUndoEnv->RemoveForms( xForms );
102 OSL_ENSURE( pRemovedPage == pToBeRemovedPage,
"FmFormModel::RemovePage: inconsistency!" );
121 Reference< XNameContainer > xForms( pPage->GetForms(
false ) );
123 m_pImpl->mxUndoEnv->RemoveForms( xForms );
140 m_pImpl->bOpenInDesignIsDefaulted =
false;
152 return m_pImpl->bOpenInDesignIsDefaulted;
158 if ( !
m_pImpl->aControlsUseRefDevice )
165 return *
m_pImpl->aControlsUseRefDevice;
186 m_pImpl->mxUndoEnv->EndListening( *
this );
196 if (!
m_pImpl->mxUndoEnv->IsReadOnly())
197 m_pImpl->mxUndoEnv->StartListening(*
this);
const css::uno::Reference< css::form::XForms > & GetForms(bool _bForceCreate=true) const
virtual rtl::Reference< SdrPage > RemovePage(sal_uInt16 nPgNum)
virtual void InsertPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
void SetMaxUndoActionCount(sal_uInt32 nCount)
virtual rtl::Reference< SdrPage > RemoveMasterPage(sal_uInt16 nPgNum)
virtual void InsertMasterPage(SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
const SdrPage * GetPage(sal_uInt16 nPgNum) const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
bool IsReadOnlyUI() const
css::uno::Reference< css::frame::XModel3 > GetModel() const
virtual void SetModified(bool bModified=true)