LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SdrModel Class Reference

#include <svdmodel.hxx>

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

Public Member Functions

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 ()
 

Static Public Member Functions

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

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

virtual css::uno::Reference< css::uno::XInterface > createUnoModel ()
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Protected Attributes

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
 

Private Member Functions

 SdrModel (const SdrModel &rSrcModel)=delete
 
void operator= (const SdrModel &rSrcModel)=delete
 
bool operator== (const SdrModel &rCmpModel) const =delete
 
SVX_DLLPRIVATE void ImpPostUndoAction (std::unique_ptr< SdrUndoAction > pUndo)
 
SVX_DLLPRIVATE void ImpSetUIUnit ()
 
SVX_DLLPRIVATE void ImpSetOutlinerDefaults (SdrOutliner *pOutliner, bool bInit=false)
 
SVX_DLLPRIVATE void ImpReformatAllTextObjects ()
 
SVX_DLLPRIVATE void ImpReformatAllEdgeObjects ()
 
SVX_DLLPRIVATE void ImpCreateTables (bool bDisablePropertyFiles)
 

Private Attributes

std::unordered_set< SdrObject * > maAllIncarnatedObjects
 
css::uno::Reference< css::uno::XInterface > mxUnoModel
 
bool mbMakePageObjectsNamesUnique = true
 

Friends

void impAddIncarnatedSdrObjectToSdrModel (SdrObject &rSdrObject, SdrModel &rSdrModel)
 
void impRemoveIncarnatedSdrObjectToSdrModel (SdrObject &rSdrObject, SdrModel &rSdrModel)
 

Detailed Description

Definition at line 148 of file svdmodel.hxx.

Constructor & Destructor Documentation

◆ SdrModel() [1/2]

SdrModel::SdrModel ( const SdrModel rSrcModel)
privatedelete

Referenced by AllocModel().

◆ SdrModel() [2/2]

SdrModel::SdrModel ( SfxItemPool pPool = nullptr,
::comphelper::IEmbeddedHelper pPers = nullptr,
bool  bDisablePropertyFiles = false 
)
explicit

◆ ~SdrModel()

SdrModel::~SdrModel ( )
overridevirtual

Member Function Documentation

◆ adaptSizeAndBorderForAllPages()

void SdrModel::adaptSizeAndBorderForAllPages ( const Size rNewSize,
tools::Long  nLeft = 0,
tools::Long  nRight = 0,
tools::Long  nUpper = 0,
tools::Long  nLower = 0 
)
virtual

Definition at line 1588 of file svdmodel.cxx.

◆ AddUndo()

void SdrModel::AddUndo ( std::unique_ptr< SdrUndoAction pUndo)

◆ AllocModel()

SdrModel * SdrModel::AllocModel ( ) const
virtual

Definition at line 599 of file svdmodel.cxx.

References m_eObjUnit, SdrModel(), and SetScaleUnit().

◆ AllocPage()

rtl::Reference< SdrPage > SdrModel::AllocPage ( bool  bMasterPage)
virtual

Reimplemented in FmFormModel.

Definition at line 606 of file svdmodel.cxx.

◆ AreControlsThemed()

bool SdrModel::AreControlsThemed ( )
inline

◆ BegUndo() [1/3]

void SdrModel::BegUndo ( )

Definition at line 382 of file svdmodel.cxx.

References SfxViewShell::Current(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.

Referenced by SdrMarkView::AddDragModeHdl(), sdr::table::SvxTableController::ApplyFormatPaintBrush(), SdrEditView::BegUndo(), BegUndo(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), sdr::table::SvxTableController::DeleteMarked(), svxform::NavigatorTree::DeleteSelection(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), FmFormPageImpl::findPlaceInFormComponentHierarchy(), SdrHdlGradient::FromIAOToItem(), FmFormPageImpl::getDefaultForm(), svxform::IMPL_LINK(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), sdr::table::TableModel::insertColumns(), sdr::table::TableModel::insertRows(), sdr::table::CellCursor::merge(), Merge(), sdr::table::SvxTableController::MergeRange(), sdr::table::SvxTableController::onFormatTable(), sdr::table::SvxTableController::onInsert(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), sdr::table::TableModel::removeColumns(), sdr::table::TableModel::removeRows(), sdr::table::SvxTableController::SetAttrToSelectedCells(), SdrObject::SetDecorative(), SdrObject::SetDescription(), SdrObject::SetName(), sdr::table::SvxTableController::SetTableStyle(), sdr::table::SvxTableController::SetTableStyleSettings(), SdrObject::SetTitle(), sdr::table::SvxTableController::SetVertical(), sdr::table::CellCursor::split(), and sdr::table::SvxTableController::SplitMarkedCells().

◆ BegUndo() [2/3]

void SdrModel::BegUndo ( const OUString &  rComment)

◆ BegUndo() [3/3]

void SdrModel::BegUndo ( const OUString &  rComment,
const OUString &  rObjDescr,
SdrRepeatFunc  eFunc 
)

◆ BurnInStyleSheetAttributes()

void SdrModel::BurnInStyleSheetAttributes ( )

◆ ClearModel()

void SdrModel::ClearModel ( bool  bCalledFromDestructor)

◆ ClearUndoBuffer()

void SdrModel::ClearUndoBuffer ( )

Definition at line 282 of file svdmodel.cxx.

References m_aRedoStack, and m_aUndoStack.

Referenced by FmFormModel::~FmFormModel(), and ~SdrModel().

◆ CopyPages()

void SdrModel::CopyPages ( sal_uInt16  nFirstPageNum,
sal_uInt16  nLastPageNum,
sal_uInt16  nDestPos,
bool  bUndo,
bool  bMoveNoCopy 
)

◆ createOutliner()

std::unique_ptr< SdrOutliner > SdrModel::createOutliner ( OutlinerMode  nOutlinerMode)

Definition at line 1755 of file svdmodel.cxx.

References mpOutlinerCache.

Referenced by SvxTextEditSourceImpl::GetBackgroundTextForwarder().

◆ createUnoModel()

uno::Reference< uno::XInterface > SdrModel::createUnoModel ( )
protectedvirtual

Definition at line 1600 of file svdmodel.cxx.

Referenced by getUnoModel().

◆ DeleteMasterPage()

void SdrModel::DeleteMasterPage ( sal_uInt16  nPgNum)

Definition at line 1243 of file svdmodel.cxx.

References RemoveMasterPage().

Referenced by ClearModel().

◆ DeletePage()

void SdrModel::DeletePage ( sal_uInt16  nPgNum)
virtual

Definition at line 1192 of file svdmodel.cxx.

References RemovePage().

Referenced by ClearModel(), and SvxUnoDrawPagesAccess::remove().

◆ disposeOutliner()

void SdrModel::disposeOutliner ( std::unique_ptr< SdrOutliner pOutliner)

Definition at line 1772 of file svdmodel.cxx.

References mpOutlinerCache.

Referenced by SvxTextEditSourceImpl::dispose().

◆ DoesMakePageObjectsNamesUnique()

bool SdrModel::DoesMakePageObjectsNamesUnique ( ) const
inline

Definition at line 607 of file svdmodel.hxx.

◆ DoMakePageObjectsNamesUnique()

void SdrModel::DoMakePageObjectsNamesUnique ( bool  bDo)
inline

Definition at line 608 of file svdmodel.hxx.

◆ dumpAsXml()

void SdrModel::dumpAsXml ( xmlTextWriterPtr  pWriter) const
virtual

Definition at line 1931 of file svdmodel.cxx.

References get(), i, maMasterPages, maPages, and mpImpl.

◆ EnableUndo()

void SdrModel::EnableUndo ( bool  bEnable)

enables (true) or disables (false) recording of undo actions If undo actions are added while undo is disabled, they are deleted.

Disabling undo does not clear the current undo buffer!

Definition at line 535 of file svdmodel.cxx.

References mbUndoEnabled, and mpImpl.

Referenced by SdrEditView::InsertObjectAtView(), and SdrMediaObj::SdrMediaObj().

◆ EndUndo()

void SdrModel::EndUndo ( )

Definition at line 453 of file svdmodel.cxx.

References DBG_ASSERT, ImpPostUndoAction(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.

Referenced by SdrMarkView::AddDragModeHdl(), sdr::table::SvxTableController::ApplyFormatPaintBrush(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), sdr::table::SvxTableController::DeleteMarked(), svxform::NavigatorTree::DeleteSelection(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), SdrEditView::EndUndo(), FmFormPageImpl::findPlaceInFormComponentHierarchy(), SdrHdlGradient::FromIAOToItem(), FmFormPageImpl::getDefaultForm(), svxform::IMPL_LINK(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), sdr::table::TableModel::insertColumns(), sdr::table::TableModel::insertRows(), sdr::table::CellCursor::merge(), Merge(), sdr::table::SvxTableController::MergeRange(), sdr::table::SvxTableController::onFormatTable(), sdr::table::SvxTableController::onInsert(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), sdr::table::TableModel::removeColumns(), sdr::table::TableModel::removeRows(), sdr::table::SvxTableController::SetAttrToSelectedCells(), SdrObject::SetDecorative(), SdrObject::SetDescription(), SdrObject::SetName(), sdr::table::SvxTableController::SetTableStyle(), sdr::table::SvxTableController::SetTableStyleSettings(), SdrObject::SetTitle(), sdr::table::SvxTableController::SetVertical(), sdr::table::CellCursor::split(), and sdr::table::SvxTableController::SplitMarkedCells().

◆ GetActiveOutliners()

std::vector< SdrOutliner * > SdrModel::GetActiveOutliners ( ) const

Definition at line 1763 of file svdmodel.cxx.

References m_pDrawOutliner, m_pHitTestOutliner, and mpOutlinerCache.

◆ GetAngleString()

OUString SdrModel::GetAngleString ( Degree100  nAngle)
static

◆ GetBitmapList()

XBitmapListRef SdrModel::GetBitmapList ( ) const
inline

Definition at line 531 of file svdmodel.hxx.

References XPropertyList::AsBitmapList(), and Bitmap.

Referenced by SvxShape::SetFillAttribute().

◆ GetChainingOutliner()

SdrOutliner & SdrModel::GetChainingOutliner ( const SdrTextObj pObj) const

Definition at line 670 of file svdmodel.cxx.

References m_pChainingOutliner.

◆ GetCharCompressType()

CharCompressType SdrModel::GetCharCompressType ( ) const
inline

Definition at line 562 of file svdmodel.hxx.

Referenced by SdrMakeOutliner().

◆ GetColorList()

XColorListRef SdrModel::GetColorList ( ) const
inline

Definition at line 530 of file svdmodel.hxx.

References XPropertyList::AsColorList(), and Color.

◆ GetCompatibilityFlag()

bool SdrModel::GetCompatibilityFlag ( SdrCompatibilityFlag  eFlag) const

◆ GetDashList()

XDashListRef SdrModel::GetDashList ( ) const
inline

Definition at line 528 of file svdmodel.hxx.

References XPropertyList::AsDashList(), and Dash.

Referenced by SvxShape::SetFillAttribute().

◆ GetDefaultStyleSheet()

SfxStyleSheet * SdrModel::GetDefaultStyleSheet ( ) const
inline

Definition at line 345 of file svdmodel.hxx.

Referenced by sdr::properties::AttributeProperties::Notify().

◆ GetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj()

SfxStyleSheet * SdrModel::GetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj ( ) const
inline

Definition at line 349 of file svdmodel.hxx.

◆ GetDefaultTabulator()

sal_uInt16 SdrModel::GetDefaultTabulator ( ) const
inline

Definition at line 341 of file svdmodel.hxx.

Referenced by SdrObjEditView::Notify(), and SdrMakeOutliner().

◆ GetDisableTextEditUsesCommonUndoManager()

bool SdrModel::GetDisableTextEditUsesCommonUndoManager ( ) const
inline

Definition at line 547 of file svdmodel.hxx.

◆ GetDocumentStorage()

uno::Reference< embed::XStorage > SdrModel::GetDocumentStorage ( ) const
virtual

Definition at line 754 of file svdmodel.cxx.

References getUnoModel(), and SAL_WARN.

Referenced by GetDocumentStream().

◆ GetDocumentStream()

uno::Reference< io::XInputStream > SdrModel::GetDocumentStream ( OUString const &  rURL,
::comphelper::LifecycleProxy const &  rProxy 
) const

◆ GetDrawOutliner()

SdrOutliner & SdrModel::GetDrawOutliner ( const SdrTextObj pObj = nullptr) const

◆ GetForbiddenCharsTable()

const std::shared_ptr< SvxForbiddenCharactersTable > & SdrModel::GetForbiddenCharsTable ( ) const
inline

Definition at line 559 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().

◆ GetFormattingTextObj()

const SdrTextObj * SdrModel::GetFormattingTextObj ( ) const

Definition at line 676 of file svdmodel.cxx.

References m_pDrawOutliner.

◆ GetGradientList()

XGradientListRef SdrModel::GetGradientList ( ) const
inline

Definition at line 534 of file svdmodel.hxx.

References XPropertyList::AsGradientList(), and Gradient.

Referenced by SvxShape::SetFillAttribute().

◆ getHandoutPageCount()

sal_uInt16 SdrModel::getHandoutPageCount ( ) const
inline

Definition at line 237 of file svdmodel.hxx.

◆ GetHatchList()

XHatchListRef SdrModel::GetHatchList ( ) const
inline

Definition at line 529 of file svdmodel.hxx.

References XPropertyList::AsHatchList(), and Hatch.

Referenced by SvxShape::SetFillAttribute().

◆ GetHitTestOutliner()

SdrOutliner & SdrModel::GetHitTestOutliner ( ) const
inline

◆ getImagePreferredDPI()

virtual sal_Int32 SdrModel::getImagePreferredDPI ( ) const
inlinevirtual

Definition at line 610 of file svdmodel.hxx.

Referenced by SvxGrafAttrHelper::ExecuteGrafAttr().

◆ GetItemPool() [1/2]

SfxItemPool & SdrModel::GetItemPool ( )
inline

Definition at line 319 of file svdmodel.hxx.

◆ GetItemPool() [2/2]

const SfxItemPool & SdrModel::GetItemPool ( ) const
inline

◆ GetLayerAdmin() [1/2]

SdrLayerAdmin & SdrModel::GetLayerAdmin ( )
inline

Definition at line 316 of file svdmodel.hxx.

◆ GetLayerAdmin() [2/2]

const SdrLayerAdmin & SdrModel::GetLayerAdmin ( ) const
inline

◆ GetLineEndList()

XLineEndListRef SdrModel::GetLineEndList ( ) const
inline

◆ GetLinkManager()

sfx2::LinkManager * SdrModel::GetLinkManager ( )
inline

Definition at line 352 of file svdmodel.hxx.

Referenced by ImpSdrObjTextLink::DataChanged(), and SdrGraphicLink::DataChanged().

◆ GetMasterPage() [1/2]

SdrPage * SdrModel::GetMasterPage ( sal_uInt16  nPgNum)

Definition at line 1890 of file svdmodel.cxx.

References DBG_ASSERT, and maMasterPages.

◆ GetMasterPage() [2/2]

const SdrPage * SdrModel::GetMasterPage ( sal_uInt16  nPgNum) const

◆ GetMasterPageCount()

sal_uInt16 SdrModel::GetMasterPageCount ( ) const

◆ GetMaxObjSize()

const Size & SdrModel::GetMaxObjSize ( ) const
inline

Definition at line 375 of file svdmodel.hxx.

◆ GetMetricString()

OUString SdrModel::GetMetricString ( tools::Long  nVal,
bool  bNoUnitChars = false,
sal_Int32  nNumDigits = -1 
) const

◆ GetPage() [1/2]

SdrPage * SdrModel::GetPage ( sal_uInt16  nPgNum)

Definition at line 1865 of file svdmodel.cxx.

References maPages.

◆ GetPage() [2/2]

const SdrPage * SdrModel::GetPage ( sal_uInt16  nPgNum) const

◆ GetPageCount()

sal_uInt16 SdrModel::GetPageCount ( ) const

◆ GetPageNumType()

SvxNumType SdrModel::GetPageNumType ( ) const
virtual

returns the numbering type that is used to format page fields in drawing shapes

Definition at line 1778 of file svdmodel.cxx.

References SVX_NUM_ARABIC.

◆ GetPatternList()

XPatternListRef SdrModel::GetPatternList ( ) const
inline

Definition at line 532 of file svdmodel.hxx.

References XPropertyList::AsPatternList(), and Pattern.

◆ GetPercentString()

OUString SdrModel::GetPercentString ( const Fraction rVal)
static

◆ GetPersist()

::comphelper::IEmbeddedHelper * SdrModel::GetPersist ( ) const
inline

◆ GetPropertyList()

const XPropertyListRef & SdrModel::GetPropertyList ( XPropertyListType  t) const
inline

◆ GetRefDevice()

OutputDevice * SdrModel::GetRefDevice ( ) const
inline

◆ GetScaleUnit()

MapUnit SdrModel::GetScaleUnit ( ) const
inline

◆ GetSdrUndoFactory()

SdrUndoFactory & SdrModel::GetSdrUndoFactory ( ) const

◆ GetSdrUndoManager()

SfxUndoManager * SdrModel::GetSdrUndoManager ( ) const

Definition at line 1910 of file svdmodel.cxx.

References mpImpl.

◆ GetStyleSheetPool()

SfxStyleSheetBasePool * SdrModel::GetStyleSheetPool ( ) const
inline

◆ GetTextChain()

TextChain * SdrModel::GetTextChain ( ) const

Definition at line 1879 of file svdmodel.cxx.

References m_pTextChain.

Referenced by SdrTextObj::GetTextChain().

◆ getTheme()

std::shared_ptr< model::Theme > const & SdrModel::getTheme ( ) const

Definition at line 1570 of file svdmodel.cxx.

References mpImpl.

◆ GetUIScale()

const Fraction & SdrModel::GetUIScale ( ) const
inline

◆ GetUIUnit()

FieldUnit SdrModel::GetUIUnit ( ) const
inline

Definition at line 380 of file svdmodel.hxx.

Referenced by getExtrusionDepthState(), and SdrMeasureObj::TakeRepresentation().

◆ GetUndoBracketLevel()

sal_uInt16 SdrModel::GetUndoBracketLevel ( ) const
inline

Definition at line 485 of file svdmodel.hxx.

◆ GetUnitString()

OUString SdrModel::GetUnitString ( FieldUnit  eUnit)
static

Definition at line 931 of file svdmodel.cxx.

Referenced by ImpSetUIUnit(), and SdrMeasureObj::TakeRepresentation().

◆ getUnoModel()

uno::Reference< uno::XInterface > const & SdrModel::getUnoModel ( )

◆ getUnoTunnelId()

const uno::Sequence< sal_Int8 > & SdrModel::getUnoTunnelId ( )
static

Definition at line 1964 of file svdmodel.cxx.

References comphelper::UnoIdInit::getSeq().

◆ HasRedoActions()

bool SdrModel::HasRedoActions ( ) const

Definition at line 293 of file svdmodel.cxx.

References m_aRedoStack.

Referenced by IMPL_LINK(), and Redo().

◆ HasUndoActions()

bool SdrModel::HasUndoActions ( ) const

Definition at line 288 of file svdmodel.cxx.

References m_aUndoStack.

Referenced by IMPL_LINK(), Repeat(), and Undo().

◆ ImpCreateTables()

void SdrModel::ImpCreateTables ( bool  bDisablePropertyFiles)
private

Definition at line 559 of file svdmodel.cxx.

References XPropertyList::CreatePropertyList(), i, and maProperties.

◆ ImpPostUndoAction()

void SdrModel::ImpPostUndoAction ( std::unique_ptr< SdrUndoAction pUndo)
private

Definition at line 361 of file svdmodel.cxx.

References DBG_ASSERT, IsUndoEnabled(), m_aRedoStack, m_aUndoLink, m_aUndoStack, m_nMaxUndoCount, and mpImpl.

Referenced by AddUndo(), and EndUndo().

◆ ImpReformatAllEdgeObjects()

void SdrModel::ImpReformatAllEdgeObjects ( )
private

◆ ImpReformatAllTextObjects()

void SdrModel::ImpReformatAllTextObjects ( )
private

◆ ImpSetOutlinerDefaults()

void SdrModel::ImpSetOutlinerDefaults ( SdrOutliner pOutliner,
bool  bInit = false 
)
private

◆ ImpSetUIUnit()

void SdrModel::ImpSetUIUnit ( )
private

◆ InsertMasterPage()

void SdrModel::InsertMasterPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
virtual

◆ InsertPage()

void SdrModel::InsertPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
virtual

◆ IsAddExtLeading()

bool SdrModel::IsAddExtLeading ( ) const
inline

Definition at line 568 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().

◆ IsChanged()

bool SdrModel::IsChanged ( ) const
inline

Definition at line 420 of file svdmodel.hxx.

References mbChanged.

Referenced by SvxIMapDlg::DoSave().

◆ IsCreatingDataObj()

virtual SVX_DLLPRIVATE bool SdrModel::IsCreatingDataObj ( ) const
inlinevirtual

Definition at line 270 of file svdmodel.hxx.

◆ IsInDestruction()

bool SdrModel::IsInDestruction ( ) const
inline

Definition at line 592 of file svdmodel.hxx.

Referenced by SdrObject::IsInDestruction().

◆ IsKernAsianPunctuation()

bool SdrModel::IsKernAsianPunctuation ( ) const
inline

Definition at line 565 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().

◆ isLocked()

bool SdrModel::isLocked ( ) const
inline

◆ IsMPgNumsDirty()

bool SdrModel::IsMPgNumsDirty ( ) const
inline

Definition at line 394 of file svdmodel.hxx.

◆ IsPagNumsDirty()

bool SdrModel::IsPagNumsDirty ( ) const
inline

Definition at line 393 of file svdmodel.hxx.

◆ IsPasteResize()

bool SdrModel::IsPasteResize ( ) const
inline

Definition at line 273 of file svdmodel.hxx.

◆ IsPickThroughTransparentTextFrames()

bool SdrModel::IsPickThroughTransparentTextFrames ( ) const
inline

Definition at line 435 of file svdmodel.hxx.

◆ IsReadOnly()

bool SdrModel::IsReadOnly ( ) const
virtual

Definition at line 263 of file svdmodel.cxx.

References m_bReadOnly.

Referenced by sdr::table::SvxTableController::onKeyInput().

◆ IsStarDrawPreviewMode()

bool SdrModel::IsStarDrawPreviewMode ( ) const
inline

Definition at line 545 of file svdmodel.hxx.

◆ IsSwapGraphics()

bool SdrModel::IsSwapGraphics ( ) const
inline

Definition at line 429 of file svdmodel.hxx.

◆ IsTransportContainer()

bool SdrModel::IsTransportContainer ( ) const
inline

Definition at line 271 of file svdmodel.hxx.

◆ IsUndoEnabled()

bool SdrModel::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.

Definition at line 547 of file svdmodel.cxx.

References mbUndoEnabled, and mpImpl.

Referenced by SdrMarkView::AddDragModeHdl(), AddUndo(), sdr::table::SvxTableController::ApplyFormatPaintBrush(), BegUndo(), sdr::table::SvxTableController::ChangeFontSize(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), sdr::table::SvxTableController::DeleteMarked(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), EndUndo(), FmFormPageImpl::findPlaceInFormComponentHierarchy(), SdrHdlGradient::FromIAOToItem(), FmFormPageImpl::getDefaultForm(), E3dView::ImpChangeSomeAttributesFor3DConversion2(), SdrEditView::ImpDelLayerDelObjs(), svxform::NavigatorTree::implExecuteDataTransfer(), ImpPostUndoAction(), svxform::NavigatorTreeModel::Insert(), sdr::table::TableModel::insertColumns(), sdr::table::TableModel::insertRows(), SdrEditView::IsUndoEnabled(), sdr::table::CellCursor::merge(), sdr::table::TableModel::merge(), Merge(), sdr::table::SvxTableController::MergeRange(), sdr::table::SvxTableController::onFormatTable(), sdr::table::SvxTableController::onInsert(), FmXUndoEnvironment::propertyChange(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), sdr::table::TableModel::removeColumns(), sdr::table::TableModel::removeRows(), SdrMediaObj::SdrMediaObj(), sdr::table::SvxTableController::SetAttrToSelectedCells(), sdr::table::TableColumn::setFastPropertyValue(), sdr::table::TableRow::setFastPropertyValue(), sdr::table::SvxTableController::SetTableStyle(), sdr::table::SvxTableController::SetTableStyleSettings(), SetUndoComment(), sdr::table::SvxTableController::SetVertical(), SdrObjList::sort(), sdr::table::CellCursor::split(), and sdr::table::SvxTableController::SplitMarkedCells().

◆ IsVOCInvalidationIsReliable()

bool SdrModel::IsVOCInvalidationIsReliable ( ) const
inline

◆ IsWriter()

bool SdrModel::IsWriter ( ) const
inline

Definition at line 579 of file svdmodel.hxx.

Referenced by SvxShape::getPropertyValueImpl().

◆ MasterPageListChanged()

void SdrModel::MasterPageListChanged ( )
virtual

Definition at line 1901 of file svdmodel.cxx.

Referenced by ClearModel(), InsertMasterPage(), Merge(), MoveMasterPage(), and RemoveMasterPage().

◆ Merge()

void SdrModel::Merge ( SdrModel rSourceModel,
sal_uInt16  nFirstPageNum,
sal_uInt16  nLastPageNum,
sal_uInt16  nDestPos,
bool  bMergeMasterPages,
bool  bAllMasterPages,
bool  bUndo = true,
bool  bTreadSourceAsConst = false 
)
virtual

◆ MigrateItemSet()

void SdrModel::MigrateItemSet ( const SfxItemSet pSourceSet,
SfxItemSet pDestSet,
SdrModel pNewModel 
)
static

copies the items from the source set to the destination set.

Both sets must have same ranges but can have different pools.

Definition at line 1622 of file svdmodel.cxx.

References SfxWhichIter::FirstWhich(), SfxWhichIter::GetItemState(), SfxWhichIter::NextWhich(), SfxItemSet::Put(), XATTR_FILLBITMAP(), XATTR_FILLFLOATTRANSPARENCE(), XATTR_FILLGRADIENT(), XATTR_FILLHATCH(), XATTR_LINEDASH(), XATTR_LINEEND(), and XATTR_LINESTART().

◆ MoveMasterPage()

void SdrModel::MoveMasterPage ( sal_uInt16  nPgNum,
sal_uInt16  nNewPos 
)

◆ MovePage()

void SdrModel::MovePage ( sal_uInt16  nPgNum,
sal_uInt16  nNewPos 
)
virtual

Definition at line 1212 of file svdmodel.cxx.

References InsertPage(), maPages, PageListChanged(), and RemovePage().

Referenced by SdrUndoPage::ImpMovePage().

◆ operator=()

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

◆ operator==()

bool SdrModel::operator== ( const SdrModel rCmpModel) const
privatedelete

◆ PageListChanged()

void SdrModel::PageListChanged ( )
virtual

Definition at line 1875 of file svdmodel.cxx.

Referenced by ClearModel(), InsertPage(), MovePage(), and RemovePage().

◆ ReadUserDataSequenceValue()

void SdrModel::ReadUserDataSequenceValue ( const css::beans::PropertyValue *  pValue)

◆ RecalcPageNums()

void SdrModel::RecalcPageNums ( bool  bMaster)

◆ Redo()

void SdrModel::Redo ( )

◆ RefDeviceChanged()

void SdrModel::RefDeviceChanged ( )

Definition at line 807 of file svdmodel.cxx.

References SfxBroadcaster::Broadcast(), ImpReformatAllTextObjects(), and RefDeviceChange.

Referenced by SetRefDevice().

◆ ReformatAllTextObjects()

void SdrModel::ReformatAllTextObjects ( )

Definition at line 1750 of file svdmodel.cxx.

References ImpReformatAllTextObjects().

◆ RemoveMasterPage()

rtl::Reference< SdrPage > SdrModel::RemoveMasterPage ( sal_uInt16  nPgNum)
virtual

◆ RemovePage()

rtl::Reference< SdrPage > SdrModel::RemovePage ( sal_uInt16  nPgNum)
virtual

◆ Repeat()

void SdrModel::Repeat ( SfxRepeatTarget &  rView)

◆ SetAddExtLeading()

void SdrModel::SetAddExtLeading ( bool  bEnabled)

◆ SetChanged()

void SdrModel::SetChanged ( bool  bFlg = true)
virtual

Definition at line 1143 of file svdmodel.cxx.

References mbChanged.

Referenced by SvxShape::_setPropertyToDefault(), SvxShape::_setPropertyValue(), SvxDrawPage::add(), Svx3DSceneObject::add(), SvxDrawPage::addBottom(), Svx3DSceneObject::addShape(), SvxShapeGroup::addShape(), SdrLayerAdmin::Broadcast(), SdrObjEditView::Command(), SvxShapeConnector::connectEnd(), SvxShapeConnector::connectStart(), SdrEditView::DeleteLayer(), SdrGlueEditView::DeleteMarkedGluePoints(), SvxShapeConnector::disconnectBegin(), SvxShapeConnector::disconnectEnd(), SvxIMapDlg::DoSave(), SdrOle2Obj::GetObjRef_Impl(), SvxDrawPage::group(), SdrObjList::impClearSdrObjList(), SdrGlueEditView::ImpCopyMarkedGluePoints(), SdrGlueEditView::ImpDoMarkedGluePoints(), ImpPageChange(), SdrGrafObj::ImpSetLinkedGraphic(), SdrGlueEditView::ImpTransformMarkedGluePoints(), sdr::table::TableModel::insertColumns(), InsertMasterPage(), SdrEditView::InsertNewLayer(), SdrObjList::InsertObject(), InsertPage(), sdr::table::TableModel::insertRows(), SdrObjEditView::KeyInput(), sdr::table::CellCursor::merge(), Merge(), MoveMasterPage(), SvxDrawPage::remove(), SvxShapeGroup::remove(), sdr::table::TableModel::removeColumns(), RemoveMasterPage(), RemovePage(), sdr::table::TableModel::removeRows(), SdrObjList::ReplaceObject(), SvxShape::setAllPropertiesToDefault(), SdrObjEditView::SetAttributes(), SdrObject::SetChanged(), SdrPage::SetChanged(), SvxShapeControl::setControl(), SdrObjList::SetExistingObjectOrdNum(), SdrLayer::SetName(), SdrObjList::SetObjectNavigationPosition(), SvxShape::setPosition(), SvxGraphicObject::setPropertyValueImpl(), SvxShape::setSize(), sdr::table::CellCursor::split(), and SvxDrawPage::ungroup().

◆ SetCharCompressType()

void SdrModel::SetCharCompressType ( CharCompressType  nType)

◆ SetCompatibilityFlag()

void SdrModel::SetCompatibilityFlag ( SdrCompatibilityFlag  eFlag,
bool  bEnabled 
)

◆ SetDefaultFontHeight()

void SdrModel::SetDefaultFontHeight ( sal_Int32  nVal)

Definition at line 813 of file svdmodel.cxx.

References ImpReformatAllTextObjects(), and mnDefTextHgt.

◆ SetDefaultStyleSheet()

void SdrModel::SetDefaultStyleSheet ( SfxStyleSheet pDefSS)
inline

Definition at line 346 of file svdmodel.hxx.

◆ SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj()

void SdrModel::SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj ( SfxStyleSheet pDefSS)
inline

Definition at line 350 of file svdmodel.hxx.

◆ SetDefaultTabulator()

void SdrModel::SetDefaultTabulator ( sal_uInt16  nVal)

◆ SetDisableTextEditUsesCommonUndoManager()

void SdrModel::SetDisableTextEditUsesCommonUndoManager ( bool  bNew)
inline

Definition at line 548 of file svdmodel.hxx.

◆ SetForbiddenCharsTable()

void SdrModel::SetForbiddenCharsTable ( const std::shared_ptr< SvxForbiddenCharactersTable > &  xForbiddenChars)

◆ setHandoutPageCount()

void SdrModel::setHandoutPageCount ( sal_uInt16  nHandoutPageCount)
inline

Definition at line 238 of file svdmodel.hxx.

◆ SetKernAsianPunctuation()

void SdrModel::SetKernAsianPunctuation ( bool  bEnabled)

◆ SetLinkManager()

void SdrModel::SetLinkManager ( sfx2::LinkManager pLinkMgr)
inline

Definition at line 353 of file svdmodel.hxx.

◆ setLock()

void SdrModel::setLock ( bool  bLock)

◆ SetMaxObjSize()

void SdrModel::SetMaxObjSize ( const Size rSiz)
inline

Definition at line 376 of file svdmodel.hxx.

◆ SetMaxUndoActionCount()

void SdrModel::SetMaxUndoActionCount ( sal_uInt32  nCount)

Definition at line 274 of file svdmodel.cxx.

References m_aUndoStack, m_nMaxUndoCount, and nCount.

Referenced by FmFormModel::~FmFormModel().

◆ SetNotifyUndoActionHdl()

void SdrModel::SetNotifyUndoActionHdl ( const std::function< void(std::unique_ptr< SdrUndoAction >)> &  rLink)
inline

Definition at line 506 of file svdmodel.hxx.

◆ SetPasteResize()

void SdrModel::SetPasteResize ( bool  bOn)
inline

Definition at line 274 of file svdmodel.hxx.

◆ SetPersist()

void SdrModel::SetPersist ( ::comphelper::IEmbeddedHelper p)
inline

Definition at line 356 of file svdmodel.hxx.

References p.

◆ SetPickThroughTransparentTextFrames()

void SdrModel::SetPickThroughTransparentTextFrames ( bool  bOn)
inline

Definition at line 436 of file svdmodel.hxx.

◆ SetPropertyList()

void SdrModel::SetPropertyList ( XPropertyListRef const &  p)
inline

Definition at line 525 of file svdmodel.hxx.

References maProperties, and p.

◆ SetReadOnly()

void SdrModel::SetReadOnly ( bool  bYes)

Definition at line 268 of file svdmodel.cxx.

References m_bReadOnly.

◆ SetRefDevice()

void SdrModel::SetRefDevice ( OutputDevice pDev)

◆ SetScaleUnit()

void SdrModel::SetScaleUnit ( MapUnit  eMap)

◆ SetSdrUndoFactory()

void SdrModel::SetSdrUndoFactory ( SdrUndoFactory pUndoFactory)

applications can set their own undo factory to override creation of undo actions.

The SdrModel will become owner of the given SdrUndoFactory and delete it upon its destruction.

Definition at line 1922 of file svdmodel.cxx.

References mpImpl.

◆ SetSdrUndoManager()

void SdrModel::SetSdrUndoManager ( SfxUndoManager pUndoManager)

application can set its own undo manager, BegUndo, EndUndo and AddUndoAction calls are routed to this interface if given

Definition at line 1905 of file svdmodel.cxx.

References mpImpl.

◆ SetStarDrawPreviewMode()

void SdrModel::SetStarDrawPreviewMode ( bool  bPreview)

Definition at line 1552 of file svdmodel.cxx.

References GetPageCount(), m_bStarDrawPreviewMode, and SAL_WARN.

◆ SetStyleSheetPool()

void SdrModel::SetStyleSheetPool ( SfxStyleSheetBasePool pPool)
inline

Definition at line 539 of file svdmodel.hxx.

◆ SetSwapGraphics()

void SdrModel::SetSwapGraphics ( )

Definition at line 258 of file svdmodel.cxx.

References m_bSwapGraphics.

◆ SetTextDefaults() [1/2]

void SdrModel::SetTextDefaults ( ) const

Definition at line 611 of file svdmodel.cxx.

References m_pItemPool, mnDefTextHgt, and SetTextDefaults().

Referenced by SvxUnoDrawPool::init(), and SetTextDefaults().

◆ SetTextDefaults() [2/2]

void SdrModel::SetTextDefaults ( SfxItemPool pItemPool,
sal_Int32  nDefTextHgt 
)
static

◆ setTheme()

void SdrModel::setTheme ( std::shared_ptr< model::Theme > const &  pTheme)

Definition at line 1565 of file svdmodel.cxx.

References mpImpl.

◆ SetUIScale()

void SdrModel::SetUIScale ( const Fraction rScale)

Definition at line 912 of file svdmodel.cxx.

References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_aUIScale.

◆ SetUIUnit() [1/2]

void SdrModel::SetUIUnit ( FieldUnit  eUnit)

Definition at line 903 of file svdmodel.cxx.

References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_eUIUnit.

◆ SetUIUnit() [2/2]

void SdrModel::SetUIUnit ( FieldUnit  eUnit,
const Fraction rScale 
)

Definition at line 921 of file svdmodel.cxx.

References ImpReformatAllTextObjects(), ImpSetUIUnit(), m_aUIScale, and m_eUIUnit.

◆ SetUndoComment() [1/2]

void SdrModel::SetUndoComment ( const OUString &  rComment)

◆ SetUndoComment() [2/2]

void SdrModel::SetUndoComment ( const OUString &  rComment,
const OUString &  rObjDescr 
)

Definition at line 499 of file svdmodel.cxx.

References DBG_ASSERT, m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.

◆ setUnoModel()

void SdrModel::setUnoModel ( const css::uno::Reference< css::uno::XInterface > &  xModel)

◆ SetVOCInvalidationIsReliable()

void SdrModel::SetVOCInvalidationIsReliable ( bool  b)
inline

Definition at line 615 of file svdmodel.hxx.

◆ Undo()

void SdrModel::Undo ( )

◆ WriteUserDataSequence()

void SdrModel::WriteUserDataSequence ( css::uno::Sequence< css::beans::PropertyValue > &  rValues)

Friends And Related Function Documentation

◆ impAddIncarnatedSdrObjectToSdrModel

void impAddIncarnatedSdrObjectToSdrModel ( SdrObject rSdrObject,
SdrModel rSdrModel 
)
friend

Definition at line 336 of file svdobj.cxx.

◆ impRemoveIncarnatedSdrObjectToSdrModel

void impRemoveIncarnatedSdrObjectToSdrModel ( SdrObject rSdrObject,
SdrModel rSdrModel 
)
friend

Definition at line 340 of file svdobj.cxx.

Member Data Documentation

◆ m_aMaxObjSize

Size SdrModel::m_aMaxObjSize
protected

Definition at line 176 of file svdmodel.hxx.

◆ m_aRedoStack

std::deque<std::unique_ptr<SfxUndoAction> > SdrModel::m_aRedoStack
protected

Definition at line 197 of file svdmodel.hxx.

Referenced by ClearUndoBuffer(), HasRedoActions(), ImpPostUndoAction(), Redo(), and Undo().

◆ m_aUIScale

Fraction SdrModel::m_aUIScale
protected

Definition at line 179 of file svdmodel.hxx.

Referenced by ImpSetUIUnit(), SetUIScale(), and SetUIUnit().

◆ m_aUIUnitFact

Fraction SdrModel::m_aUIUnitFact
protected

Definition at line 181 of file svdmodel.hxx.

Referenced by GetMetricString(), and ImpSetUIUnit().

◆ m_aUIUnitStr

OUString SdrModel::m_aUIUnitStr
protected

Definition at line 180 of file svdmodel.hxx.

Referenced by GetMetricString(), and ImpSetUIUnit().

◆ m_aUndoLink

std::function<void(std::unique_ptr<SdrUndoAction>)> SdrModel::m_aUndoLink
protected

Definition at line 175 of file svdmodel.hxx.

Referenced by ImpPostUndoAction().

◆ m_aUndoStack

std::deque<std::unique_ptr<SfxUndoAction> > SdrModel::m_aUndoStack
protected

◆ m_bIsWriter

bool SdrModel::m_bIsWriter
protected

Definition at line 200 of file svdmodel.hxx.

◆ m_bMPgNumsDirty

bool SdrModel::m_bMPgNumsDirty
protected

◆ m_bPagNumsDirty

bool SdrModel::m_bPagNumsDirty
protected

Definition at line 204 of file svdmodel.hxx.

Referenced by InsertPage(), Merge(), RecalcPageNums(), and RemovePage().

◆ m_bPasteResize

bool SdrModel::m_bPasteResize
protected

Definition at line 210 of file svdmodel.hxx.

◆ m_bReadOnly

bool SdrModel::m_bReadOnly
protected

Definition at line 207 of file svdmodel.hxx.

Referenced by IsReadOnly(), and SetReadOnly().

◆ m_bStarDrawPreviewMode

bool SdrModel::m_bStarDrawPreviewMode
protected

Definition at line 211 of file svdmodel.hxx.

Referenced by SetStarDrawPreviewMode().

◆ m_bSwapGraphics

bool SdrModel::m_bSwapGraphics
protected

Definition at line 209 of file svdmodel.hxx.

Referenced by SetSwapGraphics().

◆ m_bThemedControls

bool SdrModel::m_bThemedControls
protected

Definition at line 201 of file svdmodel.hxx.

◆ m_bTransparentTextFrames

bool SdrModel::m_bTransparentTextFrames
protected

Definition at line 208 of file svdmodel.hxx.

◆ m_bTransportContainer

bool SdrModel::m_bTransportContainer
protected

Definition at line 206 of file svdmodel.hxx.

◆ m_eObjUnit

MapUnit SdrModel::m_eObjUnit
protected

Definition at line 177 of file svdmodel.hxx.

Referenced by AllocModel(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), and SetScaleUnit().

◆ m_eUIUnit

FieldUnit SdrModel::m_eUIUnit
protected

Definition at line 178 of file svdmodel.hxx.

Referenced by ImpSetUIUnit(), and SetUIUnit().

◆ m_nDefaultTabulator

sal_uInt16 SdrModel::m_nDefaultTabulator
protected

Definition at line 214 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), and SetDefaultTabulator().

◆ m_nMaxUndoCount

sal_uInt32 SdrModel::m_nMaxUndoCount
protected

Definition at line 215 of file svdmodel.hxx.

Referenced by ImpPostUndoAction(), and SetMaxUndoActionCount().

◆ m_nUIUnitDecimalMark

int SdrModel::m_nUIUnitDecimalMark
protected

Definition at line 182 of file svdmodel.hxx.

Referenced by GetMetricString(), and ImpSetUIUnit().

◆ m_nUndoLevel

sal_uInt16 SdrModel::m_nUndoLevel
protected

Definition at line 199 of file svdmodel.hxx.

Referenced by BegUndo(), EndUndo(), and SetUndoComment().

◆ m_pChainingOutliner

std::unique_ptr<SdrOutliner> SdrModel::m_pChainingOutliner
protected

Definition at line 189 of file svdmodel.hxx.

Referenced by GetChainingOutliner(), and ~SdrModel().

◆ m_pCurrentUndoGroup

std::unique_ptr<SdrUndoGroup> SdrModel::m_pCurrentUndoGroup
protected

Definition at line 198 of file svdmodel.hxx.

Referenced by AddUndo(), BegUndo(), EndUndo(), SetUndoComment(), and ~SdrModel().

◆ m_pDefaultStyleSheet

SfxStyleSheet* SdrModel::m_pDefaultStyleSheet
protected

Definition at line 193 of file svdmodel.hxx.

◆ m_pDrawOutliner

std::unique_ptr<SdrOutliner> SdrModel::m_pDrawOutliner
protected

◆ m_pEmbeddedHelper

comphelper::IEmbeddedHelper* SdrModel::m_pEmbeddedHelper
protected

Definition at line 186 of file svdmodel.hxx.

◆ m_pHitTestOutliner

std::unique_ptr<SdrOutliner> SdrModel::m_pHitTestOutliner
protected

◆ m_pItemPool

rtl::Reference<SfxItemPool> SdrModel::m_pItemPool
protected

Definition at line 185 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), SetScaleUnit(), and SetTextDefaults().

◆ m_pLayerAdmin

std::unique_ptr<SdrLayerAdmin> SdrModel::m_pLayerAdmin
protected

Definition at line 184 of file svdmodel.hxx.

Referenced by ClearModel(), and ~SdrModel().

◆ m_pLinkManager

sfx2::LinkManager* SdrModel::m_pLinkManager
protected

Definition at line 195 of file svdmodel.hxx.

◆ m_pRefOutDev

VclPtr<OutputDevice> SdrModel::m_pRefOutDev
protected

Definition at line 191 of file svdmodel.hxx.

Referenced by SetRefDevice().

◆ m_pTextChain

std::unique_ptr<TextChain> SdrModel::m_pTextChain
protected

Definition at line 217 of file svdmodel.hxx.

Referenced by GetTextChain(), and ~SdrModel().

◆ maAllIncarnatedObjects

std::unordered_set< SdrObject* > SdrModel::maAllIncarnatedObjects
private

Definition at line 170 of file svdmodel.hxx.

Referenced by ~SdrModel().

◆ maMasterPages

std::vector<rtl::Reference<SdrPage> > SdrModel::maMasterPages
protected

◆ maPages

std::vector<rtl::Reference<SdrPage> > SdrModel::maPages
protected

◆ maProperties

Definition at line 235 of file svdmodel.hxx.

Referenced by ImpCreateTables().

◆ mbAddExtLeading

bool SdrModel::mbAddExtLeading

Definition at line 231 of file svdmodel.hxx.

Referenced by SetAddExtLeading().

◆ mbChanged

bool SdrModel::mbChanged
protected

Definition at line 203 of file svdmodel.hxx.

Referenced by SetChanged().

◆ mbDisableTextEditUsesCommonUndoManager

bool SdrModel::mbDisableTextEditUsesCommonUndoManager
protected

Definition at line 212 of file svdmodel.hxx.

◆ mbInDestruction

bool SdrModel::mbInDestruction

Definition at line 232 of file svdmodel.hxx.

Referenced by ClearModel(), and ~SdrModel().

◆ mbKernAsianPunctuation

bool SdrModel::mbKernAsianPunctuation

Definition at line 230 of file svdmodel.hxx.

Referenced by SetKernAsianPunctuation().

◆ mbMakePageObjectsNamesUnique

bool SdrModel::mbMakePageObjectsNamesUnique = true
private

Definition at line 267 of file svdmodel.hxx.

Referenced by InsertPage().

◆ mbModelLocked

bool SdrModel::mbModelLocked

Definition at line 229 of file svdmodel.hxx.

Referenced by setLock().

◆ mbUndoEnabled

bool SdrModel::mbUndoEnabled
protected

Definition at line 202 of file svdmodel.hxx.

Referenced by EnableUndo(), IsUndoEnabled(), Redo(), and Undo().

◆ mbVOCInvalidationIsReliable

bool SdrModel::mbVOCInvalidationIsReliable
protected

Definition at line 213 of file svdmodel.hxx.

◆ mnCharCompressType

CharCompressType SdrModel::mnCharCompressType

Definition at line 227 of file svdmodel.hxx.

Referenced by ImpSetOutlinerDefaults(), and SetCharCompressType().

◆ mnDefTextHgt

sal_Int32 SdrModel::mnDefTextHgt
protected

Definition at line 190 of file svdmodel.hxx.

Referenced by SetDefaultFontHeight(), and SetTextDefaults().

◆ mnHandoutPageCount

sal_uInt16 SdrModel::mnHandoutPageCount

Definition at line 228 of file svdmodel.hxx.

◆ mpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj

SfxStyleSheet* SdrModel::mpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj
protected

Definition at line 194 of file svdmodel.hxx.

◆ mpForbiddenCharactersTable

std::shared_ptr<SvxForbiddenCharactersTable> SdrModel::mpForbiddenCharactersTable

Definition at line 221 of file svdmodel.hxx.

Referenced by SetForbiddenCharsTable(), and ~SdrModel().

◆ mpImpl

std::unique_ptr<SdrModelImpl> SdrModel::mpImpl

◆ mpOutlinerCache

std::unique_ptr<SdrOutlinerCache> SdrModel::mpOutlinerCache

Definition at line 223 of file svdmodel.hxx.

Referenced by createOutliner(), disposeOutliner(), GetActiveOutliners(), and ~SdrModel().

◆ mxStyleSheetPool

rtl::Reference< SfxStyleSheetBasePool > SdrModel::mxStyleSheetPool
protected

Definition at line 192 of file svdmodel.hxx.

Referenced by ~SdrModel().

◆ mxUnoModel

css::uno::Reference< css::uno::XInterface > SdrModel::mxUnoModel
private

Definition at line 264 of file svdmodel.hxx.

Referenced by getUnoModel(), and setUnoModel().


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