LibreOffice Module svx (master) 1
|
#include <svdmodel.hxx>
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< 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 () |
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< SvxForbiddenCharactersTable > | mpForbiddenCharactersTable |
std::unique_ptr< SdrOutlinerCache > | mpOutlinerCache |
std::unique_ptr< SdrModelImpl > | mpImpl |
CharCompressType | mnCharCompressType |
sal_uInt16 | mnHandoutPageCount |
bool | mbModelLocked |
bool | mbKernAsianPunctuation |
bool | mbAddExtLeading |
bool | mbInDestruction |
o3tl::enumarray< XPropertyListType, XPropertyListRef > | maProperties |
Protected Member Functions | |
virtual css::uno::Reference< css::uno::XInterface > | createUnoModel () |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
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) |
Definition at line 148 of file svdmodel.hxx.
|
privatedelete |
Referenced by AllocModel().
|
explicit |
|
overridevirtual |
Definition at line 201 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), ClearModel(), ClearUndoBuffer(), m_pChainingOutliner, m_pCurrentUndoGroup, m_pDrawOutliner, m_pHitTestOutliner, m_pLayerAdmin, m_pTextChain, maAllIncarnatedObjects, mbInDestruction, ModelCleared, mpForbiddenCharactersTable, mpImpl, mpOutlinerCache, mxStyleSheetPool, SAL_WARN, and SAL_WARN_IF.
|
virtual |
Definition at line 1588 of file svdmodel.cxx.
void SdrModel::AddUndo | ( | std::unique_ptr< SdrUndoAction > | pUndo | ) |
Definition at line 516 of file svdmodel.cxx.
References ImpPostUndoAction(), IsUndoEnabled(), m_pCurrentUndoGroup, and mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), SdrEditView::AddUndo(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), sdr::table::SdrTableObj::EndTextEdit(), FmFormPageImpl::findPlaceInFormComponentHierarchy(), SdrHdlGradient::FromIAOToItem(), FmFormPageImpl::getDefaultForm(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), sdr::table::TableModel::insertColumns(), sdr::table::TableModel::insertRows(), Merge(), sdr::table::SvxTableController::MergeRange(), sdr::table::SvxTableController::onInsert(), FmXUndoEnvironment::propertyChange(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), sdr::table::TableModel::removeColumns(), sdr::table::TableModel::removeRows(), SdrObject::SetDecorative(), SdrObject::SetDescription(), sdr::table::TableColumn::setFastPropertyValue(), sdr::table::TableRow::setFastPropertyValue(), SdrObject::SetName(), sdr::table::SvxTableController::SetTableStyle(), sdr::table::SvxTableController::SetTableStyleSettings(), SdrObject::SetTitle(), sdr::table::SvxTableController::SetVertical(), SdrObjList::sort(), and sdr::table::SvxTableController::SplitMarkedCells().
|
virtual |
Definition at line 599 of file svdmodel.cxx.
References m_eObjUnit, SdrModel(), and SetScaleUnit().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 606 of file svdmodel.cxx.
|
inline |
Definition at line 272 of file svdmodel.hxx.
Referenced by sdr::contact::ViewObjectContactOfUnoControl_Impl::createControlForDevice().
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().
void SdrModel::BegUndo | ( | const OUString & | rComment | ) |
Definition at line 406 of file svdmodel.cxx.
References BegUndo(), SfxViewShell::Current(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
void SdrModel::BegUndo | ( | const OUString & | rComment, |
const OUString & | rObjDescr, | ||
SdrRepeatFunc | eFunc | ||
) |
Definition at line 426 of file svdmodel.cxx.
References BegUndo(), SfxViewShell::Current(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
void SdrModel::BurnInStyleSheetAttributes | ( | ) |
Definition at line 794 of file svdmodel.cxx.
References SdrObjList::BurnInStyleSheetAttributes(), GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), and nCount.
Referenced by GalleryFileStorage::insertModel(), and GalleryFileStorage::readModelStream().
void SdrModel::ClearModel | ( | bool | bCalledFromDestructor | ) |
Definition at line 570 of file svdmodel.cxx.
References DeleteMasterPage(), DeletePage(), GetMasterPageCount(), GetPageCount(), i, m_pLayerAdmin, maMasterPages, maPages, MasterPageListChanged(), mbInDestruction, nCount, and PageListChanged().
Referenced by ~SdrModel().
void SdrModel::ClearUndoBuffer | ( | ) |
Definition at line 282 of file svdmodel.cxx.
References m_aRedoStack, and m_aUndoStack.
Referenced by FmFormModel::~FmFormModel(), and ~SdrModel().
void SdrModel::CopyPages | ( | sal_uInt16 | nFirstPageNum, |
sal_uInt16 | nLastPageNum, | ||
sal_uInt16 | nDestPos, | ||
bool | bUndo, | ||
bool | bMoveNoCopy | ||
) |
Definition at line 1291 of file svdmodel.cxx.
References AddUndo(), BegUndo(), SdrPage::CloneSdrPage(), EndUndo(), GetPage(), GetPageCount(), GetSdrUndoFactory(), InsertPage(), IsUndoEnabled(), RemovePage(), and SvxResId().
Referenced by Merge().
std::unique_ptr< SdrOutliner > SdrModel::createOutliner | ( | OutlinerMode | nOutlinerMode | ) |
Definition at line 1755 of file svdmodel.cxx.
References mpOutlinerCache.
Referenced by SvxTextEditSourceImpl::GetBackgroundTextForwarder().
|
protectedvirtual |
Definition at line 1600 of file svdmodel.cxx.
Referenced by getUnoModel().
void SdrModel::DeleteMasterPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1243 of file svdmodel.cxx.
References RemoveMasterPage().
Referenced by ClearModel().
|
virtual |
Definition at line 1192 of file svdmodel.cxx.
References RemovePage().
Referenced by ClearModel(), and SvxUnoDrawPagesAccess::remove().
void SdrModel::disposeOutliner | ( | std::unique_ptr< SdrOutliner > | pOutliner | ) |
Definition at line 1772 of file svdmodel.cxx.
References mpOutlinerCache.
Referenced by SvxTextEditSourceImpl::dispose().
|
inline |
Definition at line 607 of file svdmodel.hxx.
|
inline |
Definition at line 608 of file svdmodel.hxx.
|
virtual |
Definition at line 1931 of file svdmodel.cxx.
References get(), i, maMasterPages, maPages, and mpImpl.
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().
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().
std::vector< SdrOutliner * > SdrModel::GetActiveOutliners | ( | ) | const |
Definition at line 1763 of file svdmodel.cxx.
References m_pDrawOutliner, m_pHitTestOutliner, and mpOutlinerCache.
|
static |
Definition at line 1087 of file svdmodel.cxx.
References aBuf, DEGREE_CHAR, SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::isNumLeadingZero(), and nCount.
Referenced by SdrDragRotate::GetSdrDragComment(), SdrDragShear::GetSdrDragComment(), SdrDragCrook::GetSdrDragComment(), ImpPathForDragAndCreate::getSpecialDragComment(), and SdrCircObj::getSpecialDragComment().
|
inline |
Definition at line 531 of file svdmodel.hxx.
References XPropertyList::AsBitmapList(), and Bitmap.
Referenced by SvxShape::SetFillAttribute().
SdrOutliner & SdrModel::GetChainingOutliner | ( | const SdrTextObj * | pObj | ) | const |
Definition at line 670 of file svdmodel.cxx.
References m_pChainingOutliner.
|
inline |
Definition at line 562 of file svdmodel.hxx.
Referenced by SdrMakeOutliner().
|
inline |
Definition at line 530 of file svdmodel.hxx.
References XPropertyList::AsColorList(), and Color.
bool SdrModel::GetCompatibilityFlag | ( | SdrCompatibilityFlag | eFlag | ) | const |
Definition at line 1733 of file svdmodel.cxx.
References AnchoredTextOverflowLegacy, ConnectorUseSnapRect, IgnoreBreakAfterMultilineField, LegacySingleLineFontwork, and mpImpl.
Referenced by SdrOutliner::GetCompatFlag(), InitializeFontWorkData(), and WriteUserDataSequence().
|
inline |
Definition at line 528 of file svdmodel.hxx.
References XPropertyList::AsDashList(), and Dash.
Referenced by SvxShape::SetFillAttribute().
|
inline |
Definition at line 345 of file svdmodel.hxx.
Referenced by sdr::properties::AttributeProperties::Notify().
|
inline |
Definition at line 349 of file svdmodel.hxx.
|
inline |
Definition at line 341 of file svdmodel.hxx.
Referenced by SdrObjEditView::Notify(), and SdrMakeOutliner().
|
inline |
Definition at line 547 of file svdmodel.hxx.
|
virtual |
Definition at line 754 of file svdmodel.cxx.
References getUnoModel(), and SAL_WARN.
Referenced by GetDocumentStream().
uno::Reference< io::XInputStream > SdrModel::GetDocumentStream | ( | OUString const & | rURL, |
::comphelper::LifecycleProxy const & | rProxy | ||
) | const |
Definition at line 767 of file svdmodel.cxx.
References GetDocumentStorage(), comphelper::OStorageHelper::GetStreamAtPackageURL(), SAL_INFO, SAL_WARN, TOOLS_WARN_EXCEPTION, and xStream.
SdrOutliner & SdrModel::GetDrawOutliner | ( | const SdrTextObj * | pObj = nullptr | ) | const |
Definition at line 664 of file svdmodel.cxx.
References m_pDrawOutliner.
Referenced by SdrEditView::CombineMarkedTextObjects(), drawinglayer::primitive2d::createNewSdrTextAttribute(), SdrOutlinerCache::createOutliner(), SdrText::ForceOutlinerParaObject(), drawinglayer::primitive2d::SdrTextPrimitive2D::get2DDecomposition(), and SetDefaultTabulator().
|
inline |
Definition at line 559 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
const SdrTextObj * SdrModel::GetFormattingTextObj | ( | ) | const |
Definition at line 676 of file svdmodel.cxx.
References m_pDrawOutliner.
|
inline |
Definition at line 534 of file svdmodel.hxx.
References XPropertyList::AsGradientList(), and Gradient.
Referenced by SvxShape::SetFillAttribute().
|
inline |
Definition at line 237 of file svdmodel.hxx.
|
inline |
Definition at line 529 of file svdmodel.hxx.
References XPropertyList::AsHatchList(), and Hatch.
Referenced by SvxShape::SetFillAttribute().
|
inline |
Definition at line 323 of file svdmodel.hxx.
Referenced by SdrText::CheckPortionInfo(), and sdr::table::SdrTableObj::NbcSetOutlinerParaObject().
|
inlinevirtual |
Definition at line 610 of file svdmodel.hxx.
Referenced by SvxGrafAttrHelper::ExecuteGrafAttr().
|
inline |
Definition at line 319 of file svdmodel.hxx.
|
inline |
Definition at line 318 of file svdmodel.hxx.
Referenced by unogallery::GalleryItem::_getPropertyValues(), SdrMarkView::AddDragModeHdl(), XFillBitmapItem::checkForUniqueItem(), XFillFloatTransparenceItem::checkForUniqueItem(), XFillGradientItem::checkForUniqueItem(), XFillHatchItem::checkForUniqueItem(), XLineDashItem::checkForUniqueItem(), XLineEndItem::checkForUniqueItem(), XLineStartItem::checkForUniqueItem(), sdr::properties::DefaultProperties::DefaultProperties(), ImpSdrGDIMetaFileImport::DoAction(), SdrDragCrop::EndSdrDrag(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrHdlGradient::FromIAOToItem(), GallerySvDrawImport(), E3dView::Get3DAttributes(), E3dView::GetDefaultCamFocal(), E3dView::GetDefaultCamPosZ(), svx::GetGeometryForCustomShape(), SvxGrafAttrHelper::GetGrafAttrState(), SdrObject::GetObjectItemPool(), sdr::table::SvxTableController::GetState(), IMPL_LINK_NOARG(), ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport(), ImpSdrPdfImport::ImpSdrPdfImport(), unogallery::GalleryTheme::insertDrawingByIndex(), svx::FontWorkGalleryDialog::insertSelectedFontwork(), sdr::table::SvxTableController::onFormatTable(), SdrMakeOutliner(), ConstructHelper::SetLineEnds(), and SvxCreateNumRule().
|
inline |
Definition at line 316 of file svdmodel.hxx.
|
inline |
Definition at line 315 of file svdmodel.hxx.
Referenced by SdrEditView::DeleteLayer(), SdrExchangeView::GetMarkedObjects(), SvxShape::getPropertyValueImpl(), SdrPaintView::ImpFormLayerDrawing(), SdrEditView::InsertNewLayer(), SdrPaintView::MergeNotPersistDefaultAttr(), SdrPageWindow::RedrawAll(), SdrPageWindow::RedrawLayer(), and SdrPaintView::SetNotPersistDefaultAttr().
|
inline |
Definition at line 533 of file svdmodel.hxx.
References XPropertyList::AsLineEndList(), and LineEnd.
Referenced by ConstructHelper::GetLineEndPoly(), and SvxShape::SetFillAttribute().
|
inline |
Definition at line 352 of file svdmodel.hxx.
Referenced by ImpSdrObjTextLink::DataChanged(), and SdrGraphicLink::DataChanged().
SdrPage * SdrModel::GetMasterPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1890 of file svdmodel.cxx.
References DBG_ASSERT, and maMasterPages.
const SdrPage * SdrModel::GetMasterPage | ( | sal_uInt16 | nPgNum | ) | const |
Definition at line 1884 of file svdmodel.cxx.
References DBG_ASSERT, and maMasterPages.
Referenced by BurnInStyleSheetAttributes(), SdrEditView::DeleteLayer(), FmXUndoEnvironment::dispose(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), Merge(), and FmXUndoEnvironment::ModeChanged().
sal_uInt16 SdrModel::GetMasterPageCount | ( | ) | const |
Definition at line 1896 of file svdmodel.cxx.
References maMasterPages.
Referenced by BurnInStyleSheetAttributes(), ClearModel(), FmXUndoEnvironment::dispose(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), InsertMasterPage(), Merge(), and FmXUndoEnvironment::ModeChanged().
|
inline |
Definition at line 375 of file svdmodel.hxx.
OUString SdrModel::GetMetricString | ( | tools::Long | nVal, |
bool | bNoUnitChars = false , |
||
sal_Int32 | nNumDigits = -1 |
||
) | const |
Definition at line 966 of file svdmodel.cxx.
References aBuf, SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::getNumDigits(), LocaleDataWrapper::getNumThousandSep(), i, LocaleDataWrapper::isNumLeadingZero(), LocaleDataWrapper::isNumTrailingZeros(), m_aUIUnitFact, m_aUIUnitStr, m_nUIUnitDecimalMark, and nCount.
Referenced by SdrObject::GetMetrStr(), SdrDragMove::GetSdrDragComment(), SdrDragDistort::GetSdrDragComment(), SdrDragCrop::GetSdrDragComment(), ImpPathForDragAndCreate::getSpecialDragComment(), and SdrMeasureObj::TakeRepresentation().
SdrPage * SdrModel::GetPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1865 of file svdmodel.cxx.
References maPages.
const SdrPage * SdrModel::GetPage | ( | sal_uInt16 | nPgNum | ) | const |
Definition at line 1860 of file svdmodel.cxx.
References maPages.
Referenced by BurnInStyleSheetAttributes(), CopyPages(), CreateIMapGraphic(), SgaObjectSvDraw::CreateThumb(), SdrEditView::DeleteLayer(), FmXUndoEnvironment::dispose(), SdrUndoSort::Do(), SvxUnoDrawPagesAccess::getByIndex(), FmFormShell::GetFormControl(), svx::GetGeometryForCustomShape(), GalleryTheme::GetGraphic(), SdrObject::getUnoShape(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), svx::FontWorkGalleryDialog::insertSelectedFontwork(), GalleryTheme::InsertTransferable(), SdrObject::MakeNameUnique(), Merge(), FmXUndoEnvironment::ModeChanged(), SdrExchangeView::Paste(), E3dView::Paste(), sdr::table::SvxTableController::PasteObjModel(), RemoveMasterPage(), FmFormModel::RemovePage(), IMapWindow::ReplaceImageMap(), SdrUndoDelPage::SdrUndoDelPage(), SvxGraphCtrlAccessibleContext::setModelAndView(), SvxShape::setPropertyValueImpl(), SdrPageProperties::SetTheme(), and SvxGraphCtrlAccessibleContext::SvxGraphCtrlAccessibleContext().
sal_uInt16 SdrModel::GetPageCount | ( | ) | const |
Definition at line 1870 of file svdmodel.cxx.
References maPages.
Referenced by BurnInStyleSheetAttributes(), ClearModel(), CopyPages(), CreateIMapGraphic(), FmXUndoEnvironment::dispose(), GallerySvDrawImport(), SvxUnoDrawPagesAccess::getByIndex(), SvxUnoDrawPagesAccess::getCount(), FmFormShell::GetFormControl(), svx::GetGeometryForCustomShape(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), InsertPage(), SdrObject::MakeNameUnique(), Merge(), FmXUndoEnvironment::ModeChanged(), SdrExchangeView::Paste(), E3dView::Paste(), sdr::table::SvxTableController::PasteObjModel(), SvxUnoDrawPagesAccess::remove(), RemoveMasterPage(), SdrUndoDelPage::SdrUndoDelPage(), SvxShape::setPropertyValueImpl(), SetStarDrawPreviewMode(), and SdrPageProperties::SetTheme().
|
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.
|
inline |
Definition at line 532 of file svdmodel.hxx.
References XPropertyList::AsPatternList(), and Pattern.
|
static |
Definition at line 1117 of file svdmodel.cxx.
References Fraction::GetDenominator(), and Fraction::GetNumerator().
Referenced by SdrDragResize::GetSdrDragComment().
|
inline |
Definition at line 355 of file svdmodel.hxx.
Referenced by SvxOle2Shape::createLink(), SvxOle2Shape::createObject(), SvxDrawPage::CreateShapeByTypeAndInventor(), SvxOle2Shape::GetClassName_Impl(), SdrOle2Obj::SdrOle2Obj(), SvxDrawingLayerExport(), and SvxDrawingLayerImport().
|
inline |
Definition at line 524 of file svdmodel.hxx.
References maProperties, and t.
Referenced by XFillBitmapItem::checkForUniqueItem(), XFillGradientItem::checkForUniqueItem(), XFillHatchItem::checkForUniqueItem(), and XLineDashItem::checkForUniqueItem().
|
inline |
Definition at line 334 of file svdmodel.hxx.
References VclPtr< class reference_type >::get().
Referenced by ImpSetOutlinerDefaults(), and SdrObjEditView::Notify().
|
inline |
Definition at line 371 of file svdmodel.hxx.
Referenced by EnhancedCustomShape3d::Create3DObject(), sdr::properties::DefaultProperties::DefaultProperties(), SdrExchangeView::GetObjGraphic(), SdrExchangeView::ImpPasteObject(), SvxTextEditSourceImpl::LogicToPixel(), SdrExchangeView::Paste(), and SvxTextEditSourceImpl::PixelToLogic().
SdrUndoFactory & SdrModel::GetSdrUndoFactory | ( | ) | const |
returns the models undo factory.
This must be used to create undo actions for this model.
Definition at line 1915 of file svdmodel.cxx.
References mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), SdrDragView::BegInsGluePoint(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), SdrDragObjOwn::EndSdrDrag(), svx::FontworkBar::execute(), svx::ExtrusionBar::execute(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrHdlGradient::FromIAOToItem(), SdrDragView::ImpBegInsObjPoint(), SdrGlueEditView::ImpDoMarkedGluePoints(), sdr::table::TableModel::insertColumns(), sdr::table::TableModel::insertRows(), Merge(), sdr::table::SvxTableController::MergeRange(), sdr::table::SvxTableController::onInsert(), SvxDrawPage::remove(), sdr::table::TableModel::removeColumns(), sdr::table::TableModel::removeRows(), SdrObjEditView::SdrEndTextEdit(), SdrUndoDelPage::SdrUndoDelPage(), sdr::table::SvxTableController::SetVertical(), and sdr::table::SvxTableController::SplitMarkedCells().
SfxUndoManager * SdrModel::GetSdrUndoManager | ( | ) | const |
Definition at line 1910 of file svdmodel.cxx.
References mpImpl.
|
inline |
Definition at line 538 of file svdmodel.hxx.
Referenced by sdr::properties::AttributeProperties::AttributeProperties(), XLineEndItem::checkForUniqueItem(), XLineStartItem::checkForUniqueItem(), SvxTextEditSourceImpl::GetBackgroundTextForwarder(), sdr::properties::AttributeProperties::Notify(), SdrMakeOutliner(), and sdr::properties::TextProperties::SetStyleSheet().
TextChain * SdrModel::GetTextChain | ( | ) | const |
Definition at line 1879 of file svdmodel.cxx.
References m_pTextChain.
Referenced by SdrTextObj::GetTextChain().
std::shared_ptr< model::Theme > const & SdrModel::getTheme | ( | ) | const |
Definition at line 1570 of file svdmodel.cxx.
References mpImpl.
|
inline |
Definition at line 383 of file svdmodel.hxx.
Referenced by svx::sidebar::PosSizePropertyPanel::executeSize(), svx::sidebar::PosSizePropertyPanel::Initialize(), svx::sidebar::PosSizePropertyPanel::SetPosSizeMinMax(), and svx::sidebar::PosSizePropertyPanel::UpdateUIScale().
|
inline |
Definition at line 380 of file svdmodel.hxx.
Referenced by getExtrusionDepthState(), and SdrMeasureObj::TakeRepresentation().
|
inline |
Definition at line 485 of file svdmodel.hxx.
|
static |
Definition at line 931 of file svdmodel.cxx.
Referenced by ImpSetUIUnit(), and SdrMeasureObj::TakeRepresentation().
uno::Reference< uno::XInterface > const & SdrModel::getUnoModel | ( | ) |
Definition at line 1575 of file svdmodel.cxx.
References createUnoModel(), and mxUnoModel.
Referenced by sdr::table::SdrTableObjImpl::disposing(), GetDocumentStorage(), sdr::table::SdrTableObjImpl::operator=(), and sdr::table::SvxTableController::SetTableStyle().
|
static |
Definition at line 1964 of file svdmodel.cxx.
References comphelper::UnoIdInit::getSeq().
bool SdrModel::HasRedoActions | ( | ) | const |
Definition at line 293 of file svdmodel.cxx.
References m_aRedoStack.
Referenced by IMPL_LINK(), and Redo().
bool SdrModel::HasUndoActions | ( | ) | const |
Definition at line 288 of file svdmodel.cxx.
References m_aUndoStack.
Referenced by IMPL_LINK(), Repeat(), and Undo().
|
private |
Definition at line 559 of file svdmodel.cxx.
References XPropertyList::CreatePropertyList(), i, and maProperties.
|
private |
Definition at line 361 of file svdmodel.cxx.
References DBG_ASSERT, IsUndoEnabled(), m_aRedoStack, m_aUndoLink, m_aUndoStack, m_nMaxUndoCount, and mpImpl.
|
private |
Definition at line 736 of file svdmodel.cxx.
References GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), isLocked(), nCount, and SdrObjList::ReformatAllEdgeObjects().
Referenced by setLock().
|
private |
Definition at line 716 of file svdmodel.cxx.
References GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), isLocked(), nCount, and SdrObjList::ReformatAllTextObjects().
Referenced by RefDeviceChanged(), ReformatAllTextObjects(), SetDefaultFontHeight(), SetDefaultTabulator(), SetScaleUnit(), SetUIScale(), and SetUIUnit().
|
private |
Definition at line 684 of file svdmodel.cxx.
References bInit, Outliner::EraseVirtualDevice(), GetForbiddenCharsTable(), GetRefDevice(), IsAddExtLeading(), IsKernAsianPunctuation(), m_eObjUnit, m_nDefaultTabulator, m_pItemPool, mnCharCompressType, Outliner::SetAddExtLeading(), Outliner::SetAsianCompressionMode(), Outliner::SetDefTab(), Outliner::SetEditTextObjectPool(), Outliner::SetForbiddenCharsTable(), Outliner::SetKernAsianPunctuation(), Outliner::SetRefDevice(), Outliner::SetRefMapMode(), and Outliner::SetUpdateLayout().
Referenced by SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), and SetScaleUnit().
|
private |
Definition at line 832 of file svdmodel.cxx.
References div(), FieldToO3tlLength(), Fraction, Fraction::GetDenominator(), Fraction::GetNumerator(), GetUnitString(), o3tl::invalid, m_aUIScale, m_aUIUnitFact, m_aUIUnitStr, m_eObjUnit, m_eUIUnit, m_nUIUnitDecimalMark, and MapToO3tlLength().
Referenced by SetScaleUnit(), SetUIScale(), and SetUIUnit().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1225 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetMasterPageCount(), m_bMPgNumsDirty, maMasterPages, MasterPageListChanged(), nCount, nPos, PageOrderChange, SetChanged(), SdrPage::SetInserted(), and SdrPage::SetPageNum().
Referenced by SdrUndoPage::ImpInsertPage(), and FmFormModel::InsertMasterPage().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1172 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetPageCount(), m_bPagNumsDirty, SdrPage::MakePageObjectsNamesUnique(), maPages, mbMakePageObjectsNamesUnique, nCount, nPos, PageListChanged(), PageOrderChange, SetChanged(), SdrPage::SetInserted(), and SdrPage::SetPageNum().
Referenced by CopyPages(), SdrUndoPage::ImpInsertPage(), SvxUnoDrawPagesAccess::insertNewByIndex(), FmFormModel::InsertPage(), Merge(), and MovePage().
|
inline |
Definition at line 568 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
|
inline |
Definition at line 420 of file svdmodel.hxx.
References mbChanged.
Referenced by SvxIMapDlg::DoSave().
|
inlinevirtual |
Definition at line 270 of file svdmodel.hxx.
|
inline |
Definition at line 592 of file svdmodel.hxx.
Referenced by SdrObject::IsInDestruction().
|
inline |
Definition at line 565 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
|
inline |
Definition at line 555 of file svdmodel.hxx.
Referenced by SdrEditView::DismantleMarkedObjects(), SvxUnoDrawingModel::hasControllersLocked(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), SdrObjList::InsertObject(), and SvxUnoDrawingModel::unlockControllers().
|
inline |
Definition at line 394 of file svdmodel.hxx.
|
inline |
Definition at line 393 of file svdmodel.hxx.
|
inline |
Definition at line 273 of file svdmodel.hxx.
|
inline |
Definition at line 435 of file svdmodel.hxx.
|
virtual |
Definition at line 263 of file svdmodel.cxx.
References m_bReadOnly.
Referenced by sdr::table::SvxTableController::onKeyInput().
|
inline |
Definition at line 545 of file svdmodel.hxx.
|
inline |
Definition at line 429 of file svdmodel.hxx.
|
inline |
Definition at line 271 of file svdmodel.hxx.
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().
|
inline |
Definition at line 614 of file svdmodel.hxx.
Referenced by sdr::contact::ViewObjectContact::getPrimitive2DSequence().
|
inline |
Definition at line 579 of file svdmodel.hxx.
Referenced by SvxShape::getPropertyValueImpl().
|
virtual |
Definition at line 1901 of file svdmodel.cxx.
Referenced by ClearModel(), InsertMasterPage(), Merge(), MoveMasterPage(), and RemoveMasterPage().
|
virtual |
Definition at line 1371 of file svdmodel.cxx.
References AddUndo(), BegUndo(), SdrPage::CloneSdrPage(), CopyPages(), DBG_ASSERT, EndUndo(), GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), SdrPage::GetPageNum(), GetSdrUndoFactory(), i, InsertPage(), IsUndoEnabled(), m_bMPgNumsDirty, m_bPagNumsDirty, maMasterPages, MasterPageListChanged(), RemoveMasterPage(), RemovePage(), SetChanged(), SvxResId(), SdrPage::TRG_GetMasterPage(), and SdrPage::TRG_HasMasterPage().
|
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().
void SdrModel::MoveMasterPage | ( | sal_uInt16 | nPgNum, |
sal_uInt16 | nNewPos | ||
) |
Definition at line 1274 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), m_bMPgNumsDirty, maMasterPages, MasterPageListChanged(), PageOrderChange, and SetChanged().
Referenced by SdrUndoPage::ImpMovePage().
|
virtual |
Definition at line 1212 of file svdmodel.cxx.
References InsertPage(), maPages, PageListChanged(), and RemovePage().
Referenced by SdrUndoPage::ImpMovePage().
|
privatedelete |
|
privatedelete |
|
virtual |
Definition at line 1875 of file svdmodel.cxx.
Referenced by ClearModel(), InsertPage(), MovePage(), and RemovePage().
void SdrModel::ReadUserDataSequenceValue | ( | const css::beans::PropertyValue * | pValue | ) |
Definition at line 1783 of file svdmodel.cxx.
References DeepWithGroups, get(), i, SdrObjListIter::IsMore(), maPages, mpImpl, and SdrObjListIter::Next().
void SdrModel::RecalcPageNums | ( | bool | bMaster | ) |
Definition at line 1148 of file svdmodel.cxx.
References i, m_bMPgNumsDirty, m_bPagNumsDirty, maMasterPages, maPages, nCount, and SdrPage::SetPageNum().
Referenced by SdrPage::GetPageNum().
void SdrModel::Redo | ( | ) |
Definition at line 320 of file svdmodel.cxx.
References HasRedoActions(), m_aRedoStack, m_aUndoStack, mbUndoEnabled, mpImpl, p, and SfxUndoAction::Redo().
Referenced by SdrView::KeyInput().
void SdrModel::RefDeviceChanged | ( | ) |
Definition at line 807 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), ImpReformatAllTextObjects(), and RefDeviceChange.
Referenced by SetRefDevice().
void SdrModel::ReformatAllTextObjects | ( | ) |
Definition at line 1750 of file svdmodel.cxx.
References ImpReformatAllTextObjects().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1248 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetPage(), GetPageCount(), m_bMPgNumsDirty, maMasterPages, MasterPageListChanged(), PageOrderChange, SetChanged(), and SdrPage::TRG_ImpMasterPageRemoved().
Referenced by DeleteMasterPage(), SdrUndoPage::ImpRemovePage(), Merge(), and FmFormModel::RemoveMasterPage().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1197 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), m_bPagNumsDirty, maPages, PageListChanged(), PageOrderChange, and SetChanged().
Referenced by CopyPages(), DeletePage(), SdrUndoPage::ImpRemovePage(), Merge(), MovePage(), and FmFormModel::RemovePage().
void SdrModel::Repeat | ( | SfxRepeatTarget & | rView | ) |
Definition at line 342 of file svdmodel.cxx.
References SfxUndoAction::CanRepeat(), HasUndoActions(), m_aUndoStack, mpImpl, and SfxUndoAction::Repeat().
Referenced by SdrView::KeyInput().
void SdrModel::SetAddExtLeading | ( | bool | bEnabled | ) |
Definition at line 1704 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mbAddExtLeading.
|
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().
void SdrModel::SetCharCompressType | ( | CharCompressType | nType | ) |
Definition at line 1684 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, mnCharCompressType, and nType.
void SdrModel::SetCompatibilityFlag | ( | SdrCompatibilityFlag | eFlag, |
bool | bEnabled | ||
) |
Definition at line 1714 of file svdmodel.cxx.
References AnchoredTextOverflowLegacy, ConnectorUseSnapRect, IgnoreBreakAfterMultilineField, LegacySingleLineFontwork, and mpImpl.
void SdrModel::SetDefaultFontHeight | ( | sal_Int32 | nVal | ) |
Definition at line 813 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), and mnDefTextHgt.
|
inline |
Definition at line 346 of file svdmodel.hxx.
|
inline |
Definition at line 350 of file svdmodel.hxx.
void SdrModel::SetDefaultTabulator | ( | sal_uInt16 | nVal | ) |
Definition at line 821 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), DefaultTabChange, GetDrawOutliner(), ImpReformatAllTextObjects(), m_nDefaultTabulator, and Outliner::SetDefTab().
|
inline |
Definition at line 548 of file svdmodel.hxx.
void SdrModel::SetForbiddenCharsTable | ( | const std::shared_ptr< SvxForbiddenCharactersTable > & | xForbiddenChars | ) |
Definition at line 1675 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mpForbiddenCharactersTable.
|
inline |
Definition at line 238 of file svdmodel.hxx.
void SdrModel::SetKernAsianPunctuation | ( | bool | bEnabled | ) |
Definition at line 1694 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mbKernAsianPunctuation.
|
inline |
Definition at line 353 of file svdmodel.hxx.
void SdrModel::setLock | ( | bool | bLock | ) |
Definition at line 1607 of file svdmodel.cxx.
References ImpReformatAllEdgeObjects(), and mbModelLocked.
Referenced by SdrEditView::DismantleMarkedObjects(), SvxUnoDrawingModel::lockControllers(), and SvxUnoDrawingModel::unlockControllers().
|
inline |
Definition at line 376 of file svdmodel.hxx.
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().
|
inline |
Definition at line 506 of file svdmodel.hxx.
|
inline |
Definition at line 274 of file svdmodel.hxx.
|
inline |
Definition at line 356 of file svdmodel.hxx.
References p.
|
inline |
Definition at line 436 of file svdmodel.hxx.
|
inline |
Definition at line 525 of file svdmodel.hxx.
References maProperties, and p.
void SdrModel::SetReadOnly | ( | bool | bYes | ) |
Definition at line 268 of file svdmodel.cxx.
References m_bReadOnly.
void SdrModel::SetRefDevice | ( | OutputDevice * | pDev | ) |
Definition at line 708 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, m_pRefOutDev, and RefDeviceChanged().
void SdrModel::SetScaleUnit | ( | MapUnit | eMap | ) |
Definition at line 891 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), m_eObjUnit, m_pDrawOutliner, m_pHitTestOutliner, and m_pItemPool.
Referenced by AllocModel().
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.
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.
void SdrModel::SetStarDrawPreviewMode | ( | bool | bPreview | ) |
Definition at line 1552 of file svdmodel.cxx.
References GetPageCount(), m_bStarDrawPreviewMode, and SAL_WARN.
|
inline |
Definition at line 539 of file svdmodel.hxx.
void SdrModel::SetSwapGraphics | ( | ) |
Definition at line 258 of file svdmodel.cxx.
References m_bSwapGraphics.
void SdrModel::SetTextDefaults | ( | ) | const |
Definition at line 611 of file svdmodel.cxx.
References m_pItemPool, mnDefTextHgt, and SetTextDefaults().
Referenced by SvxUnoDrawPool::init(), and SetTextDefaults().
|
static |
Definition at line 616 of file svdmodel.cxx.
References EE_CHAR_COLOR(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), vcl::Font::GetCharSet(), OutputDevice::GetDefaultFont(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SdrEngineDefaults::GetFontColor(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), vcl::Font::GetPitch(), Application::GetSettings(), utl::ConfigManager::IsFuzzing(), LANGUAGE_ENGLISH_US, SvxFontItem::SetCharSet(), SvxFontItem::SetFamily(), SvxFontItem::SetFamilyName(), SvxFontItem::SetPitch(), SfxItemPool::SetPoolDefaultItem(), and SvxFontItem::SetStyleName().
void SdrModel::setTheme | ( | std::shared_ptr< model::Theme > const & | pTheme | ) |
Definition at line 1565 of file svdmodel.cxx.
References mpImpl.
void SdrModel::SetUIScale | ( | const Fraction & | rScale | ) |
Definition at line 912 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_aUIScale.
void SdrModel::SetUIUnit | ( | FieldUnit | eUnit | ) |
Definition at line 903 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_eUIUnit.
Definition at line 921 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), m_aUIScale, and m_eUIUnit.
void SdrModel::SetUndoComment | ( | const OUString & | rComment | ) |
Definition at line 485 of file svdmodel.cxx.
References DBG_ASSERT, IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
Referenced by SdrEditView::DistributeMarkedObjects(), and SdrEditView::SetUndoComment().
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.
void SdrModel::setUnoModel | ( | const css::uno::Reference< css::uno::XInterface > & | xModel | ) |
Definition at line 1583 of file svdmodel.cxx.
References mxUnoModel, and xModel.
Referenced by unogallery::GalleryItem::_getPropertyValues(), unogallery::GalleryTheme::insertDrawingByIndex(), SvxDrawingLayerExport(), and SvxDrawingLayerImport().
|
inline |
Definition at line 615 of file svdmodel.hxx.
void SdrModel::Undo | ( | ) |
Definition at line 298 of file svdmodel.cxx.
References HasUndoActions(), m_aRedoStack, m_aUndoStack, mbUndoEnabled, mpImpl, p, and SfxUndoAction::Undo().
Referenced by SdrView::KeyInput().
void SdrModel::WriteUserDataSequence | ( | css::uno::Sequence< css::beans::PropertyValue > & | rValues | ) |
Definition at line 1837 of file svdmodel.cxx.
References AnchoredTextOverflowLegacy, ConnectorUseSnapRect, GetCompatibilityFlag(), IgnoreBreakAfterMultilineField, LegacySingleLineFontwork, and uno::Any::Value.
Definition at line 336 of file svdobj.cxx.
Definition at line 340 of file svdobj.cxx.
|
protected |
Definition at line 176 of file svdmodel.hxx.
|
protected |
Definition at line 197 of file svdmodel.hxx.
Referenced by ClearUndoBuffer(), HasRedoActions(), ImpPostUndoAction(), Redo(), and Undo().
|
protected |
Definition at line 179 of file svdmodel.hxx.
Referenced by ImpSetUIUnit(), SetUIScale(), and SetUIUnit().
|
protected |
Definition at line 181 of file svdmodel.hxx.
Referenced by GetMetricString(), and ImpSetUIUnit().
|
protected |
Definition at line 180 of file svdmodel.hxx.
Referenced by GetMetricString(), and ImpSetUIUnit().
|
protected |
Definition at line 175 of file svdmodel.hxx.
Referenced by ImpPostUndoAction().
|
protected |
Definition at line 196 of file svdmodel.hxx.
Referenced by ClearUndoBuffer(), HasUndoActions(), ImpPostUndoAction(), Redo(), Repeat(), SetMaxUndoActionCount(), and Undo().
|
protected |
Definition at line 200 of file svdmodel.hxx.
|
protected |
Definition at line 205 of file svdmodel.hxx.
Referenced by InsertMasterPage(), Merge(), MoveMasterPage(), RecalcPageNums(), and RemoveMasterPage().
|
protected |
Definition at line 204 of file svdmodel.hxx.
Referenced by InsertPage(), Merge(), RecalcPageNums(), and RemovePage().
|
protected |
Definition at line 210 of file svdmodel.hxx.
|
protected |
Definition at line 207 of file svdmodel.hxx.
Referenced by IsReadOnly(), and SetReadOnly().
|
protected |
Definition at line 211 of file svdmodel.hxx.
Referenced by SetStarDrawPreviewMode().
|
protected |
Definition at line 209 of file svdmodel.hxx.
Referenced by SetSwapGraphics().
|
protected |
Definition at line 201 of file svdmodel.hxx.
|
protected |
Definition at line 208 of file svdmodel.hxx.
|
protected |
Definition at line 206 of file svdmodel.hxx.
|
protected |
Definition at line 177 of file svdmodel.hxx.
Referenced by AllocModel(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), and SetScaleUnit().
|
protected |
Definition at line 178 of file svdmodel.hxx.
Referenced by ImpSetUIUnit(), and SetUIUnit().
|
protected |
Definition at line 214 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SetDefaultTabulator().
|
protected |
Definition at line 215 of file svdmodel.hxx.
Referenced by ImpPostUndoAction(), and SetMaxUndoActionCount().
|
protected |
Definition at line 182 of file svdmodel.hxx.
Referenced by GetMetricString(), and ImpSetUIUnit().
|
protected |
Definition at line 199 of file svdmodel.hxx.
Referenced by BegUndo(), EndUndo(), and SetUndoComment().
|
protected |
Definition at line 189 of file svdmodel.hxx.
Referenced by GetChainingOutliner(), and ~SdrModel().
|
protected |
Definition at line 198 of file svdmodel.hxx.
Referenced by AddUndo(), BegUndo(), EndUndo(), SetUndoComment(), and ~SdrModel().
|
protected |
Definition at line 193 of file svdmodel.hxx.
|
protected |
Definition at line 187 of file svdmodel.hxx.
Referenced by GetActiveOutliners(), GetDrawOutliner(), GetFormattingTextObj(), SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), SetScaleUnit(), and ~SdrModel().
|
protected |
Definition at line 186 of file svdmodel.hxx.
|
protected |
Definition at line 188 of file svdmodel.hxx.
Referenced by GetActiveOutliners(), SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), SetScaleUnit(), and ~SdrModel().
|
protected |
Definition at line 185 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), SetScaleUnit(), and SetTextDefaults().
|
protected |
Definition at line 184 of file svdmodel.hxx.
Referenced by ClearModel(), and ~SdrModel().
|
protected |
Definition at line 195 of file svdmodel.hxx.
|
protected |
Definition at line 191 of file svdmodel.hxx.
Referenced by SetRefDevice().
|
protected |
Definition at line 217 of file svdmodel.hxx.
Referenced by GetTextChain(), and ~SdrModel().
|
private |
Definition at line 170 of file svdmodel.hxx.
Referenced by ~SdrModel().
|
protected |
Definition at line 173 of file svdmodel.hxx.
Referenced by ClearModel(), dumpAsXml(), GetMasterPage(), GetMasterPageCount(), InsertMasterPage(), Merge(), MoveMasterPage(), RecalcPageNums(), and RemoveMasterPage().
|
protected |
Definition at line 174 of file svdmodel.hxx.
Referenced by ClearModel(), dumpAsXml(), GetPage(), GetPageCount(), InsertPage(), MovePage(), ReadUserDataSequenceValue(), RecalcPageNums(), and RemovePage().
o3tl::enumarray<XPropertyListType, XPropertyListRef> SdrModel::maProperties |
Definition at line 235 of file svdmodel.hxx.
Referenced by ImpCreateTables().
bool SdrModel::mbAddExtLeading |
Definition at line 231 of file svdmodel.hxx.
Referenced by SetAddExtLeading().
|
protected |
Definition at line 203 of file svdmodel.hxx.
Referenced by SetChanged().
|
protected |
Definition at line 212 of file svdmodel.hxx.
bool SdrModel::mbInDestruction |
Definition at line 232 of file svdmodel.hxx.
Referenced by ClearModel(), and ~SdrModel().
bool SdrModel::mbKernAsianPunctuation |
Definition at line 230 of file svdmodel.hxx.
Referenced by SetKernAsianPunctuation().
|
private |
Definition at line 267 of file svdmodel.hxx.
Referenced by InsertPage().
bool SdrModel::mbModelLocked |
Definition at line 229 of file svdmodel.hxx.
Referenced by setLock().
|
protected |
Definition at line 202 of file svdmodel.hxx.
Referenced by EnableUndo(), IsUndoEnabled(), Redo(), and Undo().
|
protected |
Definition at line 213 of file svdmodel.hxx.
CharCompressType SdrModel::mnCharCompressType |
Definition at line 227 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SetCharCompressType().
|
protected |
Definition at line 190 of file svdmodel.hxx.
Referenced by SetDefaultFontHeight(), and SetTextDefaults().
sal_uInt16 SdrModel::mnHandoutPageCount |
Definition at line 228 of file svdmodel.hxx.
|
protected |
Definition at line 194 of file svdmodel.hxx.
std::shared_ptr<SvxForbiddenCharactersTable> SdrModel::mpForbiddenCharactersTable |
Definition at line 221 of file svdmodel.hxx.
Referenced by SetForbiddenCharsTable(), and ~SdrModel().
std::unique_ptr<SdrModelImpl> SdrModel::mpImpl |
Definition at line 226 of file svdmodel.hxx.
Referenced by AddUndo(), BegUndo(), dumpAsXml(), EnableUndo(), EndUndo(), GetCompatibilityFlag(), GetSdrUndoFactory(), GetSdrUndoManager(), getTheme(), ImpPostUndoAction(), IsUndoEnabled(), ReadUserDataSequenceValue(), Redo(), Repeat(), SetCompatibilityFlag(), SetSdrUndoFactory(), SetSdrUndoManager(), setTheme(), SetUndoComment(), Undo(), and ~SdrModel().
std::unique_ptr<SdrOutlinerCache> SdrModel::mpOutlinerCache |
Definition at line 223 of file svdmodel.hxx.
Referenced by createOutliner(), disposeOutliner(), GetActiveOutliners(), and ~SdrModel().
|
protected |
Definition at line 192 of file svdmodel.hxx.
Referenced by ~SdrModel().
|
private |
Definition at line 264 of file svdmodel.hxx.
Referenced by getUnoModel(), and setUnoModel().