LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmFormModel Class Reference

#include <fmmodel.hxx>

Inheritance diagram for FmFormModel:
[legend]
Collaboration diagram for FmFormModel:
[legend]

Public Member Functions

 FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr)
 
virtual ~FmFormModel () override
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage) override
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum) override
 
SfxObjectShellGetObjectShell () const
 
void SetObjectShell (SfxObjectShell *pShell)
 
bool GetOpenInDesignMode () const
 
void SetOpenInDesignMode (bool _bOpenDesignMode)
 
bool GetAutoControlFocus () const
 
void SetAutoControlFocus (bool _bAutoControlFocus)
 
bool OpenInDesignModeIsDefaulted ()
 check whether the OpenInDesignMode has been set explicitly or been loaded (<FALSE>) or if it still has the default value from construction (<TRUE>) More...
 
bool ControlsUseRefDevice () const
 determines whether form controls should use the SdrModel's reference device for text rendering More...
 
FmXUndoEnvironmentGetUndoEnv ()
 
- Public Member Functions inherited from SdrModel
std::vector< SdrOutliner * > GetActiveOutliners () const
 
sal_uInt16 getHandoutPageCount () const
 
void setHandoutPageCount (sal_uInt16 nHandoutPageCount)
 
virtual void adaptSizeAndBorderForAllPages (const Size &rNewSize, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0)
 
virtual SVX_DLLPRIVATE bool IsCreatingDataObj () const
 
bool IsTransportContainer () const
 
bool AreControlsThemed ()
 
bool IsPasteResize () const
 
void SetPasteResize (bool bOn)
 
 SdrModel (SfxItemPool *pPool=nullptr, ::comphelper::IEmbeddedHelper *pPers=nullptr, bool bDisablePropertyFiles=false)
 
virtual ~SdrModel () override
 
void ClearModel (bool bCalledFromDestructor)
 
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage () const
 
css::uno::Reference< css::io::XInputStream > GetDocumentStream (OUString const &rURL, ::comphelper::LifecycleProxy const &rProxy) const
 
void BurnInStyleSheetAttributes ()
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage)
 
virtual SdrModelAllocModel () const
 
const SdrLayerAdminGetLayerAdmin () const
 
SdrLayerAdminGetLayerAdmin ()
 
const SfxItemPoolGetItemPool () const
 
SfxItemPoolGetItemPool ()
 
SdrOutlinerGetDrawOutliner (const SdrTextObj *pObj=nullptr) const
 
SdrOutlinerGetHitTestOutliner () const
 
const SdrTextObjGetFormattingTextObj () const
 
void SetTextDefaults () const
 
SdrOutlinerGetChainingOutliner (const SdrTextObj *pObj) const
 
TextChainGetTextChain () const
 
void SetRefDevice (OutputDevice *pDev)
 
OutputDeviceGetRefDevice () const
 
void RefDeviceChanged ()
 
void SetDefaultFontHeight (sal_Int32 nVal)
 
void SetDefaultTabulator (sal_uInt16 nVal)
 
sal_uInt16 GetDefaultTabulator () const
 
SfxStyleSheetGetDefaultStyleSheet () const
 
void SetDefaultStyleSheet (SfxStyleSheet *pDefSS)
 
SfxStyleSheetGetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const
 
void SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS)
 
sfx2::LinkManagerGetLinkManager ()
 
void SetLinkManager (sfx2::LinkManager *pLinkMgr)
 
::comphelper::IEmbeddedHelperGetPersist () const
 
void SetPersist (::comphelper::IEmbeddedHelper *p)
 
MapUnit GetScaleUnit () const
 
void SetScaleUnit (MapUnit eMap)
 
const SizeGetMaxObjSize () const
 
void SetMaxObjSize (const Size &rSiz)
 
void SetUIUnit (FieldUnit eUnit)
 
FieldUnit GetUIUnit () const
 
void SetUIScale (const Fraction &rScale)
 
const FractionGetUIScale () const
 
void SetUIUnit (FieldUnit eUnit, const Fraction &rScale)
 
OUString GetMetricString (tools::Long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const
 
bool IsPagNumsDirty () const
 
bool IsMPgNumsDirty () const
 
void RecalcPageNums (bool bMaster)
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
virtual void DeletePage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum)
 
virtual void MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetPage (sal_uInt16 nPgNum) const
 
SdrPageGetPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetPageCount () const
 
virtual void PageListChanged ()
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
void DeleteMasterPage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum)
 
void MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetMasterPage (sal_uInt16 nPgNum) const
 
SdrPageGetMasterPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetMasterPageCount () const
 
virtual void MasterPageListChanged ()
 
bool IsChanged () const
 
virtual void SetChanged (bool bFlg=true)
 
bool IsSwapGraphics () const
 
void SetSwapGraphics ()
 
bool IsPickThroughTransparentTextFrames () const
 
void SetPickThroughTransparentTextFrames (bool bOn)
 
virtual bool IsReadOnly () const
 
void SetReadOnly (bool bYes)
 
virtual void Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false)
 
void CopyPages (sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bUndo, bool bMoveNoCopy)
 
void BegUndo ()
 
void BegUndo (const OUString &rComment)
 
void BegUndo (const OUString &rComment, const OUString &rObjDescr, SdrRepeatFunc eFunc)
 
void EndUndo ()
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
sal_uInt16 GetUndoBracketLevel () const
 
void SetUndoComment (const OUString &rComment)
 
void SetUndoComment (const OUString &rComment, const OUString &rObjDescr)
 
void SetMaxUndoActionCount (sal_uInt32 nCount)
 
void ClearUndoBuffer ()
 
bool HasUndoActions () const
 
bool HasRedoActions () const
 
void Undo ()
 
void Redo ()
 
void Repeat (SfxRepeatTarget &)
 
void SetNotifyUndoActionHdl (const std::function< void(std::unique_ptr< SdrUndoAction >)> &rLink)
 
void SetSdrUndoManager (SfxUndoManager *pUndoManager)
 application can set its own undo manager, BegUndo, EndUndo and AddUndoAction calls are routed to this interface if given More...
 
SfxUndoManagerGetSdrUndoManager () const
 
void SetSdrUndoFactory (SdrUndoFactory *pUndoFactory)
 applications can set their own undo factory to override creation of undo actions. More...
 
SdrUndoFactoryGetSdrUndoFactory () const
 returns the models undo factory. More...
 
const XPropertyListRefGetPropertyList (XPropertyListType t) const
 
void SetPropertyList (XPropertyListRef const &p)
 
XDashListRef GetDashList () const
 
XHatchListRef GetHatchList () const
 
XColorListRef GetColorList () const
 
XBitmapListRef GetBitmapList () const
 
XPatternListRef GetPatternList () const
 
XLineEndListRef GetLineEndList () const
 
XGradientListRef GetGradientList () const
 
SfxStyleSheetBasePoolGetStyleSheetPool () const
 
void SetStyleSheetPool (SfxStyleSheetBasePool *pPool)
 
void setTheme (std::shared_ptr< model::Theme > const &pTheme)
 
std::shared_ptr< model::Theme > const & getTheme () const
 
void SetStarDrawPreviewMode (bool bPreview)
 
bool IsStarDrawPreviewMode () const
 
bool GetDisableTextEditUsesCommonUndoManager () const
 
void SetDisableTextEditUsesCommonUndoManager (bool bNew)
 
css::uno::Reference< css::uno::XInterface > const & getUnoModel ()
 
void setUnoModel (const css::uno::Reference< css::uno::XInterface > &xModel)
 
bool isLocked () const
 
void setLock (bool bLock)
 
void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
 
const std::shared_ptr< SvxForbiddenCharactersTable > & GetForbiddenCharsTable () const
 
void SetCharCompressType (CharCompressType nType)
 
CharCompressType GetCharCompressType () const
 
void SetKernAsianPunctuation (bool bEnabled)
 
bool IsKernAsianPunctuation () const
 
void SetAddExtLeading (bool bEnabled)
 
bool IsAddExtLeading () const
 
void SetCompatibilityFlag (SdrCompatibilityFlag eFlag, bool bEnabled)
 
bool GetCompatibilityFlag (SdrCompatibilityFlag eFlag) const
 
void ReformatAllTextObjects ()
 
std::unique_ptr< SdrOutlinercreateOutliner (OutlinerMode nOutlinerMode)
 
void disposeOutliner (std::unique_ptr< SdrOutliner > pOutliner)
 
bool IsWriter () const
 
void ReadUserDataSequenceValue (const css::beans::PropertyValue *pValue)
 
void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
virtual SvxNumType GetPageNumType () const
 returns the numbering type that is used to format page fields in drawing shapes More...
 
bool IsInDestruction () const
 
void EnableUndo (bool bEnable)
 enables (true) or disables (false) recording of undo actions If undo actions are added while undo is disabled, they are deleted. More...
 
bool IsUndoEnabled () const
 returns true if undo is currently enabled This returns false if undo was disabled using EnableUndo( false ) and also during the runtime of the Undo() and Redo() methods. More...
 
bool DoesMakePageObjectsNamesUnique () const
 
void DoMakePageObjectsNamesUnique (bool bDo)
 
virtual sal_Int32 getImagePreferredDPI () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
bool IsVOCInvalidationIsReliable () const
 
void SetVOCInvalidationIsReliable (bool b)
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 
- Public Member Functions inherited from tools::WeakBase
 WeakBase ()
 
virtual ~WeakBase ()
 
void clearWeak ()
 

Private Member Functions

 FmFormModel (const FmFormModel &)=delete
 
void operator= (const FmFormModel &rSrcModel)=delete
 
void implSetOpenInDesignMode (bool _bOpenDesignMode)
 

Private Attributes

std::unique_ptr< FmFormModelImplDatam_pImpl
 
SfxObjectShellm_pObjShell
 
bool m_bOpenInDesignMode: 1
 
bool m_bAutoControlFocus: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from SdrModel
static void SetTextDefaults (SfxItemPool *pItemPool, sal_Int32 nDefTextHgt)
 
static OUString GetUnitString (FieldUnit eUnit)
 
static OUString GetAngleString (Degree100 nAngle)
 
static OUString GetPercentString (const Fraction &rVal)
 
static void MigrateItemSet (const SfxItemSet *pSourceSet, SfxItemSet *pDestSet, SdrModel *pNewModel)
 copies the items from the source set to the destination set. More...
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- Public Attributes inherited from SdrModel
std::shared_ptr< SvxForbiddenCharactersTablempForbiddenCharactersTable
 
std::unique_ptr< SdrOutlinerCachempOutlinerCache
 
std::unique_ptr< SdrModelImplmpImpl
 
CharCompressType mnCharCompressType
 
sal_uInt16 mnHandoutPageCount
 
bool mbModelLocked
 
bool mbKernAsianPunctuation
 
bool mbAddExtLeading
 
bool mbInDestruction
 
o3tl::enumarray< XPropertyListType, XPropertyListRefmaProperties
 
- Protected Member Functions inherited from SdrModel
virtual css::uno::Reference< css::uno::XInterface > createUnoModel ()
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Attributes inherited from SdrModel
std::vector< rtl::Reference< SdrPage > > maMasterPages
 
std::vector< rtl::Reference< SdrPage > > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
rtl::Reference< SfxItemPoolm_pItemPool
 
comphelper::IEmbeddedHelperm_pEmbeddedHelper
 
std::unique_ptr< SdrOutlinerm_pDrawOutliner
 
std::unique_ptr< SdrOutlinerm_pHitTestOutliner
 
std::unique_ptr< SdrOutlinerm_pChainingOutliner
 
sal_Int32 mnDefTextHgt
 
VclPtr< OutputDevicem_pRefOutDev
 
rtl::Reference< SfxStyleSheetBasePoolmxStyleSheetPool
 
SfxStyleSheetm_pDefaultStyleSheet
 
SfxStyleSheetmpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj
 
sfx2::LinkManagerm_pLinkManager
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aUndoStack
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bIsWriter:1
 
bool m_bThemedControls:1
 
bool mbUndoEnabled:1
 
bool mbChanged:1
 
bool m_bPagNumsDirty:1
 
bool m_bMPgNumsDirty:1
 
bool m_bTransportContainer:1
 
bool m_bReadOnly:1
 
bool m_bTransparentTextFrames:1
 
bool m_bSwapGraphics:1
 
bool m_bPasteResize:1
 
bool m_bStarDrawPreviewMode:1
 
bool mbDisableTextEditUsesCommonUndoManager:1
 
bool mbVOCInvalidationIsReliable:1
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Detailed Description

Definition at line 32 of file fmmodel.hxx.

Constructor & Destructor Documentation

◆ FmFormModel() [1/2]

FmFormModel::FmFormModel ( const FmFormModel )
privatedelete

◆ FmFormModel() [2/2]

FmFormModel::FmFormModel ( SfxItemPool pPool = nullptr,
SfxObjectShell pPers = nullptr 
)

Definition at line 51 of file fmmodel.cxx.

References m_pImpl.

◆ ~FmFormModel()

FmFormModel::~FmFormModel ( )
overridevirtual

Member Function Documentation

◆ AllocPage()

rtl::Reference< SdrPage > FmFormModel::AllocPage ( bool  bMasterPage)
overridevirtual

Reimplemented from SdrModel.

Definition at line 75 of file fmmodel.cxx.

Referenced by SvxGalleryDrawModel::SvxGalleryDrawModel().

◆ ControlsUseRefDevice()

bool FmFormModel::ControlsUseRefDevice ( ) const

determines whether form controls should use the SdrModel's reference device for text rendering

Definition at line 156 of file fmmodel.cxx.

References svxform::eUnknownDocumentType, SfxObjectShell::GetModel(), m_pImpl, m_pObjShell, and svxform::ControlLayouter::useDocumentReferenceDevice().

◆ GetAutoControlFocus()

bool FmFormModel::GetAutoControlFocus ( ) const
inline

◆ GetObjectShell()

SfxObjectShell * FmFormModel::GetObjectShell ( ) const
inline

◆ GetOpenInDesignMode()

bool FmFormModel::GetOpenInDesignMode ( ) const
inline

Definition at line 61 of file fmmodel.hxx.

Referenced by FmFormShell::Execute(), svxform::IMPL_LINK(), and FmFormView::Init().

◆ GetUndoEnv()

FmXUndoEnvironment & FmFormModel::GetUndoEnv ( )

◆ implSetOpenInDesignMode()

void FmFormModel::implSetOpenInDesignMode ( bool  _bOpenDesignMode)
private

Definition at line 130 of file fmmodel.cxx.

References m_bOpenInDesignMode, m_pImpl, m_pObjShell, and SfxObjectShell::SetModified().

Referenced by SetOpenInDesignMode().

◆ InsertMasterPage()

void FmFormModel::InsertMasterPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
overridevirtual

Reimplemented from SdrModel.

Definition at line 106 of file fmmodel.cxx.

References SdrModel::InsertMasterPage(), m_pImpl, m_pObjShell, nPos, and SetObjectShell().

◆ InsertPage()

void FmFormModel::InsertPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
overridevirtual

◆ OpenInDesignModeIsDefaulted()

bool FmFormModel::OpenInDesignModeIsDefaulted ( )

check whether the OpenInDesignMode has been set explicitly or been loaded (<FALSE>) or if it still has the default value from construction (<TRUE>)

Definition at line 150 of file fmmodel.cxx.

References m_pImpl.

Referenced by FmFormView::Init().

◆ operator=()

void FmFormModel::operator= ( const FmFormModel rSrcModel)
privatedelete

◆ RemoveMasterPage()

rtl::Reference< SdrPage > FmFormModel::RemoveMasterPage ( sal_uInt16  nPgNum)
overridevirtual

Reimplemented from SdrModel.

Definition at line 115 of file fmmodel.cxx.

References m_pImpl, and SdrModel::RemoveMasterPage().

◆ RemovePage()

rtl::Reference< SdrPage > FmFormModel::RemovePage ( sal_uInt16  nPgNum)
overridevirtual

Reimplemented from SdrModel.

Definition at line 89 of file fmmodel.cxx.

References FmFormPage::GetForms(), SdrModel::GetPage(), m_pImpl, and SdrModel::RemovePage().

◆ SetAutoControlFocus()

void FmFormModel::SetAutoControlFocus ( bool  _bAutoControlFocus)

◆ SetObjectShell()

void FmFormModel::SetObjectShell ( SfxObjectShell pShell)

◆ SetOpenInDesignMode()

void FmFormModel::SetOpenInDesignMode ( bool  _bOpenDesignMode)

Definition at line 144 of file fmmodel.cxx.

References implSetOpenInDesignMode().

Referenced by FmFormShell::Execute(), and svxform::IMPL_LINK().

Member Data Documentation

◆ m_bAutoControlFocus

bool FmFormModel::m_bAutoControlFocus
private

Definition at line 40 of file fmmodel.hxx.

Referenced by SetAutoControlFocus().

◆ m_bOpenInDesignMode

bool FmFormModel::m_bOpenInDesignMode
private

Definition at line 39 of file fmmodel.hxx.

Referenced by implSetOpenInDesignMode().

◆ m_pImpl

std::unique_ptr<FmFormModelImplData> FmFormModel::m_pImpl
private

◆ m_pObjShell

SfxObjectShell* FmFormModel::m_pObjShell
private

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