LibreOffice Module sw (master) 1
|
#include <drawdoc.hxx>
Public Member Functions | |
SwDrawModel (SwDoc &rDoc) | |
virtual | ~SwDrawModel () override |
const SwDoc & | GetDoc () const |
SwDoc & | GetDoc () |
void | PutAreaListItems (SfxItemSet &rSet) const |
Put needed items for XPropertyList entries from the DrawModel. More... | |
virtual rtl::Reference< SdrPage > | AllocPage (bool bMasterPage) override |
Create a new page (SdPage) and return a pointer to it back. More... | |
virtual css::uno::Reference< css::embed::XStorage > | GetDocumentStorage () const override |
Public Member Functions inherited from FmFormModel | |
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 () |
bool | ControlsUseRefDevice () const |
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) |
SfxUndoManager * | GetSdrUndoManager () const |
void | SetSdrUndoFactory (SdrUndoFactory *pUndoFactory) |
SdrUndoFactory & | GetSdrUndoFactory () const |
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 |
bool | IsInDestruction () const |
void | EnableUndo (bool bEnable) |
bool | IsUndoEnabled () const |
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) |
Private Member Functions | |
virtual css::uno::Reference< css::uno::XInterface > | createUnoModel () override |
override of <SdrModel::createUnoModel()> is needed to provide corresponding uno model. More... | |
Private Attributes | |
SwDoc & | m_rDoc |
Definition at line 26 of file drawdoc.hxx.
SwDrawModel::SwDrawModel | ( | SwDoc & | rDoc | ) |
Definition at line 36 of file drawdoc.cxx.
References SfxPoolItem::Clone(), SwDoc::GetAttrPool(), sw::DocumentSettingManager::getCharacterCompressionType(), SwDoc::GetDocShell(), SwDoc::GetDocumentSettingManager(), sw::DocumentSettingManager::getForbiddenCharacterTable(), SfxItemPool::GetPoolDefaultItem(), SfxItemPool::GetSecondaryPool(), SfxItemPool::GetSlotId(), SfxItemPool::GetWhich(), InitDrawModelAndDocShell(), SdrModel::m_bThemedControls, m_rDoc, RES_CHRATR_BEGIN(), RES_CHRATR_END(), RES_PARATR_BEGIN(), RES_PARATR_END(), SdrModel::SetCharCompressType(), SdrModel::SetForbiddenCharsTable(), SfxItemPool::SetPoolDefaultItem(), SdrModel::SetScaleUnit(), and SdrModel::SetSwapGraphics().
|
overridevirtual |
Definition at line 85 of file drawdoc.cxx.
References SdrModel::ClearModel(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdrObject::GetUserCall(), i, and SwDrawContact::RemoveAllVirtObjs().
|
overridevirtual |
Create a new page (SdPage) and return a pointer to it back.
The drawing engine is using this method while loading for the creating of pages (whose type it not even know, because they are inherited from SdrPage).
Reimplemented from FmFormModel.
Definition at line 120 of file drawdoc.cxx.
Referenced by SwDoc::CloneSdrObj().
|
overrideprivatevirtual |
override of <SdrModel::createUnoModel()> is needed to provide corresponding uno model.
Reimplemented from SdrModel.
Definition at line 132 of file drawdoc.cxx.
References GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetModel(), and xModel.
|
inline |
Definition at line 36 of file drawdoc.hxx.
References m_rDoc.
|
inline |
Definition at line 35 of file drawdoc.hxx.
References m_rDoc.
Referenced by createUnoModel(), and IMPL_LINK().
|
overridevirtual |
Reimplemented from SdrModel.
Definition at line 127 of file drawdoc.cxx.
References SwDoc::GetDocStorage(), and m_rDoc.
void SwDrawModel::PutAreaListItems | ( | SfxItemSet & | rSet | ) | const |
Put needed items for XPropertyList entries from the DrawModel.
Definition at line 151 of file drawdoc.cxx.
References SdrModel::GetBitmapList(), SdrModel::GetColorList(), SdrModel::GetGradientList(), SdrModel::GetHatchList(), SdrModel::GetPatternList(), SfxItemSet::Put(), and rSet.
Referenced by SwTextShell::CreateInsertFrameItemSet(), SwFrameShell::Execute(), and SwHeaderFooterWin::ExecuteCommand().
|
private |
Definition at line 29 of file drawdoc.hxx.
Referenced by GetDoc(), GetDocumentStorage(), and SwDrawModel().