LibreOffice Module svx (master) 1
|
#include <fmmodel.hxx>
Public Member Functions | |
FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr) | |
virtual | ~FmFormModel () override |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) override |
virtual void | InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override |
virtual rtl::Reference< SdrPage > | RemovePage (sal_uInt16 nPgNum) override |
virtual void | InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override |
virtual rtl::Reference< SdrPage > | RemoveMasterPage (sal_uInt16 nPgNum) override |
SfxObjectShell * | GetObjectShell () 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... | |
FmXUndoEnvironment & | GetUndoEnv () |
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< SdrPage > | AllocPage (bool bMasterPage) |
virtual SdrModel * | AllocModel () const |
const SdrLayerAdmin & | GetLayerAdmin () const |
SdrLayerAdmin & | GetLayerAdmin () |
const SfxItemPool & | GetItemPool () const |
SfxItemPool & | GetItemPool () |
SdrOutliner & | GetDrawOutliner (const SdrTextObj *pObj=nullptr) const |
SdrOutliner & | GetHitTestOutliner () const |
const SdrTextObj * | GetFormattingTextObj () const |
void | SetTextDefaults () const |
SdrOutliner & | GetChainingOutliner (const SdrTextObj *pObj) const |
TextChain * | GetTextChain () const |
void | SetRefDevice (OutputDevice *pDev) |
OutputDevice * | GetRefDevice () const |
void | RefDeviceChanged () |
void | SetDefaultFontHeight (sal_Int32 nVal) |
void | SetDefaultTabulator (sal_uInt16 nVal) |
sal_uInt16 | GetDefaultTabulator () const |
SfxStyleSheet * | GetDefaultStyleSheet () const |
void | SetDefaultStyleSheet (SfxStyleSheet *pDefSS) |
SfxStyleSheet * | GetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const |
void | SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS) |
sfx2::LinkManager * | GetLinkManager () |
void | SetLinkManager (sfx2::LinkManager *pLinkMgr) |
::comphelper::IEmbeddedHelper * | GetPersist () const |
void | SetPersist (::comphelper::IEmbeddedHelper *p) |
MapUnit | GetScaleUnit () const |
void | SetScaleUnit (MapUnit eMap) |
const Size & | GetMaxObjSize () const |
void | SetMaxObjSize (const Size &rSiz) |
void | SetUIUnit (FieldUnit eUnit) |
FieldUnit | GetUIUnit () const |
void | SetUIScale (const Fraction &rScale) |
const Fraction & | GetUIScale () 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< SdrPage > | RemovePage (sal_uInt16 nPgNum) |
virtual void | MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetPage (sal_uInt16 nPgNum) const |
SdrPage * | GetPage (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< SdrPage > | RemoveMasterPage (sal_uInt16 nPgNum) |
void | MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) |
const SdrPage * | GetMasterPage (sal_uInt16 nPgNum) const |
SdrPage * | GetMasterPage (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... | |
SfxUndoManager * | GetSdrUndoManager () const |
void | SetSdrUndoFactory (SdrUndoFactory *pUndoFactory) |
applications can set their own undo factory to override creation of undo actions. More... | |
SdrUndoFactory & | GetSdrUndoFactory () const |
returns the models undo factory. More... | |
const XPropertyListRef & | GetPropertyList (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 |
SfxStyleSheetBasePool * | GetStyleSheetPool () 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< SdrOutliner > | createOutliner (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< FmFormModelImplData > | m_pImpl |
SfxObjectShell * | m_pObjShell |
bool | m_bOpenInDesignMode: 1 |
bool | m_bAutoControlFocus: 1 |
Definition at line 32 of file fmmodel.hxx.
|
privatedelete |
FmFormModel::FmFormModel | ( | SfxItemPool * | pPool = nullptr , |
SfxObjectShell * | pPers = nullptr |
||
) |
Definition at line 51 of file fmmodel.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 65 of file fmmodel.cxx.
References SdrModel::ClearUndoBuffer(), m_pImpl, m_pObjShell, SdrModel::SetMaxUndoActionCount(), and SetObjectShell().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 75 of file fmmodel.cxx.
Referenced by SvxGalleryDrawModel::SvxGalleryDrawModel().
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().
|
inline |
Definition at line 64 of file fmmodel.hxx.
Referenced by FmFormView::ChangeDesignMode(), FmFormShell::Execute(), svxform::IMPL_LINK(), and FmXFormView::onFirstViewActivation().
|
inline |
Definition at line 58 of file fmmodel.hxx.
Referenced by FmXUndoEnvironment::dispose(), svxform::FormScriptingEnvironment::doFireScriptEvent(), FmUndoPropertyAction::FmUndoPropertyAction(), FmFormPageImpl::getForms(), FmXUndoEnvironment::implSetModified(), FmFormView::Init(), FmXUndoEnvironment::ModeChanged(), and svxform::NavigatorTreeModel::SetModified().
|
inline |
Definition at line 61 of file fmmodel.hxx.
Referenced by FmFormShell::Execute(), svxform::IMPL_LINK(), and FmFormView::Init().
FmXUndoEnvironment & FmFormModel::GetUndoEnv | ( | ) |
Definition at line 204 of file fmmodel.cxx.
References m_pImpl.
Referenced by FmFormView::ChangeDesignMode(), FmFormPageImpl::getForms(), and FmFormShell::SetDesignMode().
|
private |
Definition at line 130 of file fmmodel.cxx.
References m_bOpenInDesignMode, m_pImpl, m_pObjShell, and SfxObjectShell::SetModified().
Referenced by SetOpenInDesignMode().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 106 of file fmmodel.cxx.
References SdrModel::InsertMasterPage(), m_pImpl, m_pObjShell, nPos, and SetObjectShell().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 80 of file fmmodel.cxx.
References SdrModel::InsertPage(), m_pImpl, m_pObjShell, nPos, and SetObjectShell().
Referenced by unogallery::GalleryTheme::insertDrawingByIndex(), and SvxGalleryDrawModel::SvxGalleryDrawModel().
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().
|
privatedelete |
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 115 of file fmmodel.cxx.
References m_pImpl, and SdrModel::RemoveMasterPage().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 89 of file fmmodel.cxx.
References FmFormPage::GetForms(), SdrModel::GetPage(), m_pImpl, and SdrModel::RemovePage().
void FmFormModel::SetAutoControlFocus | ( | bool | _bAutoControlFocus | ) |
Definition at line 169 of file fmmodel.cxx.
References m_bAutoControlFocus, m_pObjShell, and SfxObjectShell::SetModified().
Referenced by FmFormShell::Execute(), and svxform::IMPL_LINK().
void FmFormModel::SetObjectShell | ( | SfxObjectShell * | pShell | ) |
Definition at line 179 of file fmmodel.cxx.
References SfxObjectShell::IsReadOnly(), SfxObjectShell::IsReadOnlyUI(), m_pImpl, and m_pObjShell.
Referenced by InsertMasterPage(), InsertPage(), FmXUndoEnvironment::Notify(), and ~FmFormModel().
void FmFormModel::SetOpenInDesignMode | ( | bool | _bOpenDesignMode | ) |
Definition at line 144 of file fmmodel.cxx.
References implSetOpenInDesignMode().
Referenced by FmFormShell::Execute(), and svxform::IMPL_LINK().
|
private |
Definition at line 40 of file fmmodel.hxx.
Referenced by SetAutoControlFocus().
|
private |
Definition at line 39 of file fmmodel.hxx.
Referenced by implSetOpenInDesignMode().
|
private |
Definition at line 36 of file fmmodel.hxx.
Referenced by ControlsUseRefDevice(), FmFormModel(), GetUndoEnv(), implSetOpenInDesignMode(), InsertMasterPage(), InsertPage(), OpenInDesignModeIsDefaulted(), RemoveMasterPage(), RemovePage(), SetObjectShell(), and ~FmFormModel().
|
private |
Definition at line 37 of file fmmodel.hxx.
Referenced by ControlsUseRefDevice(), implSetOpenInDesignMode(), InsertMasterPage(), InsertPage(), SetAutoControlFocus(), SetObjectShell(), and ~FmFormModel().