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 | 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 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 Fraction & | GetScaleFraction () const |
void | SetScaleFraction (const Fraction &rFrac) |
void | SetScaleUnit (MapUnit eMap, const Fraction &rFrac) |
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 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 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 | 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 | SetAnchoredTextOverflowLegacy (bool bEnabled) |
bool | IsAnchoredTextOverflowLegacy () 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 void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
size_t | GetSizeOfVector () const |
SfxListener * | GetListener (size_t nNo) const |
![]() | |
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 () |
![]() | |
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) |
SVX_DLLPRIVATE void | ImpCtor (SfxItemPool *pPool,::comphelper::IEmbeddedHelper *pPers, bool bDisablePropertyFiles) |
Private Attributes | |
std::unordered_set< const SdrObject * > | maAllIncarnatedObjects |
css::uno::Reference< css::uno::XInterface > | mxUnoModel |
bool | mbMakePageObjectsNamesUnique = true |
Friends | |
void | impAddIncarnatedSdrObjectToSdrModel (const SdrObject &rSdrObject, SdrModel &rSdrModel) |
void | impRemoveIncarnatedSdrObjectToSdrModel (const SdrObject &rSdrObject, SdrModel &rSdrModel) |
Definition at line 139 of file svdmodel.hxx.
|
privatedelete |
Referenced by AllocModel().
|
explicit |
Definition at line 192 of file svdmodel.cxx.
References ImpCtor().
|
overridevirtual |
Definition at line 207 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), ClearModel(), ClearUndoBuffer(), SfxItemPool::Free(), SdrObject::Free(), SfxItemPool::GetSecondaryPool(), m_bMyPool, m_pChainingOutliner, m_pCurrentUndoGroup, m_pDrawOutliner, m_pHitTestOutliner, m_pItemPool, m_pLayerAdmin, m_pTextChain, maAllIncarnatedObjects, mbInDestruction, ModelCleared, mpForbiddenCharactersTable, mpImpl, mpOutlinerCache, mxStyleSheetPool, SAL_WARN, and SAL_WARN_IF.
|
virtual |
Definition at line 1634 of file svdmodel.cxx.
void SdrModel::AddUndo | ( | std::unique_ptr< SdrUndoAction > | pUndo | ) |
Definition at line 547 of file svdmodel.cxx.
References ImpPostUndoAction(), IsUndoEnabled(), m_pCurrentUndoGroup, and mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), CopyPages(), sdr::table::SdrTableObj::EndTextEdit(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), Merge(), FmXUndoEnvironment::propertyChange(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), SdrObject::SetDescription(), SdrObject::SetName(), and SdrObject::SetTitle().
|
virtual |
Definition at line 630 of file svdmodel.cxx.
References m_aObjUnit, m_eObjUnit, SdrModel(), and SetScaleUnit().
Referenced by SdrExchangeView::CreateMarkedObjModel().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 637 of file svdmodel.cxx.
void SdrModel::BegUndo | ( | ) |
Definition at line 413 of file svdmodel.cxx.
References SfxViewShell::Current(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), sdr::table::SvxTableController::ApplyFormatPaintBrush(), BegUndo(), CopyPages(), sdr::table::SvxTableController::DeleteMarked(), svxform::NavigatorTree::DeleteSelection(), sdr::table::SvxTableController::DistributeColumns(), sdr::table::SvxTableController::DistributeRows(), svxform::IMPL_LINK(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), sdr::table::CellCursor::merge(), Merge(), sdr::table::SvxTableController::MergeRange(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), sdr::table::TableModel::removeColumns(), sdr::table::SvxTableController::SetAttrToSelectedCells(), SdrObject::SetDescription(), SdrObject::SetName(), SdrObject::SetTitle(), sdr::table::CellCursor::split(), and sdr::table::SvxTableController::SplitMarkedCells().
void SdrModel::BegUndo | ( | const OUString & | rComment | ) |
Definition at line 437 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 457 of file svdmodel.cxx.
References BegUndo(), SfxViewShell::Current(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
void SdrModel::BurnInStyleSheetAttributes | ( | ) |
Definition at line 825 of file svdmodel.cxx.
References SdrObjList::BurnInStyleSheetAttributes(), GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), and nCount.
Referenced by GalleryBinaryEngine::insertModel(), and GalleryBinaryEngine::readModelStream().
void SdrModel::ClearModel | ( | bool | bCalledFromDestructor | ) |
Definition at line 601 of file svdmodel.cxx.
References DeleteMasterPage(), DeletePage(), GetMasterPageCount(), GetPageCount(), i, m_pLayerAdmin, maMaPag, maPages, MasterPageListChanged(), mbInDestruction, nCount, and PageListChanged().
Referenced by ~SdrModel().
void SdrModel::ClearUndoBuffer | ( | ) |
Definition at line 306 of file svdmodel.cxx.
References m_pRedoStack, and m_pUndoStack.
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 1347 of file svdmodel.cxx.
References AddUndo(), BegUndo(), SdrPage::CloneSdrPage(), EndUndo(), GetPage(), GetPageCount(), SdrPage::GetPageNum(), GetSdrUndoFactory(), InsertPage(), IsUndoEnabled(), RemovePage(), and SvxResId().
Referenced by Merge().
std::unique_ptr< SdrOutliner > SdrModel::createOutliner | ( | OutlinerMode | nOutlinerMode | ) |
Definition at line 1778 of file svdmodel.cxx.
References mpOutlinerCache.
Referenced by SvxTextEditSourceImpl::GetBackgroundTextForwarder().
|
protectedvirtual |
Definition at line 1646 of file svdmodel.cxx.
Referenced by getUnoModel().
void SdrModel::DeleteMasterPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1298 of file svdmodel.cxx.
References RemoveMasterPage().
Referenced by ClearModel().
|
virtual |
Definition at line 1246 of file svdmodel.cxx.
References RemovePage().
Referenced by ClearModel(), and SvxUnoDrawPagesAccess::remove().
void SdrModel::disposeOutliner | ( | std::unique_ptr< SdrOutliner > | pOutliner | ) |
Definition at line 1795 of file svdmodel.cxx.
References mpOutlinerCache.
Referenced by SvxTextEditSourceImpl::dispose().
|
inline |
Definition at line 604 of file svdmodel.hxx.
|
inline |
Definition at line 605 of file svdmodel.hxx.
|
virtual |
Definition at line 1915 of file svdmodel.cxx.
References GetPage(), GetPageCount(), and i.
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 566 of file svdmodel.cxx.
References mbUndoEnabled, and mpImpl.
void SdrModel::EndUndo | ( | ) |
Definition at line 484 of file svdmodel.cxx.
References DBG_ASSERT, ImpPostUndoAction(), IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), CopyPages(), svxform::NavigatorTree::DeleteSelection(), SdrEditView::EndUndo(), svxform::IMPL_LINK(), svxform::NavigatorTree::implExecuteDataTransfer(), svxform::NavigatorTreeModel::Insert(), Merge(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), SdrObject::SetDescription(), SdrObject::SetName(), and SdrObject::SetTitle().
std::vector< SdrOutliner * > SdrModel::GetActiveOutliners | ( | ) | const |
Definition at line 1786 of file svdmodel.cxx.
References m_pDrawOutliner, m_pHitTestOutliner, and mpOutlinerCache.
|
static |
Definition at line 1143 of file svdmodel.cxx.
References aBuf, DEGREE_CHAR, SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::isNumLeadingZero(), and nCount.
Referenced by SdrDragRotate::GetSdrDragComment(), SdrDragShear::GetSdrDragComment(), SdrDragCrook::GetSdrDragComment(), SdrCircObj::getSpecialDragComment(), and ImpPathForDragAndCreate::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 701 of file svdmodel.cxx.
References m_pChainingOutliner.
|
inline |
Definition at line 559 of file svdmodel.hxx.
Referenced by SdrMakeOutliner().
|
inline |
Definition at line 530 of file svdmodel.hxx.
References XPropertyList::AsColorList(), and Color.
|
inline |
Definition at line 528 of file svdmodel.hxx.
References XPropertyList::AsDashList(), and Dash.
Referenced by SvxShape::SetFillAttribute().
|
inline |
Definition at line 341 of file svdmodel.hxx.
Referenced by SdrPaintView::SdrPaintView().
|
inline |
Definition at line 345 of file svdmodel.hxx.
|
inline |
Definition at line 337 of file svdmodel.hxx.
Referenced by SdrObjEditView::Notify(), and SdrMakeOutliner().
|
inline |
Definition at line 544 of file svdmodel.hxx.
|
virtual |
Definition at line 785 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 798 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 695 of file svdmodel.cxx.
References m_pDrawOutliner.
Referenced by drawinglayer::primitive2d::createNewSdrTextAttribute(), SdrOutlinerCache::createOutliner(), SdrText::ForceOutlinerParaObject(), drawinglayer::primitive2d::SdrTextPrimitive2D::get2DDecomposition(), and SetDefaultTabulator().
|
inline |
Definition at line 556 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
const SdrTextObj * SdrModel::GetFormattingTextObj | ( | ) | const |
Definition at line 707 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 229 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 319 of file svdmodel.hxx.
Referenced by SdrText::CheckPortionInfo(), sdr::table::SdrTableObj::NbcSetOutlinerParaObject(), SdrExchangeView::Paste(), SdrText::RemoveOutlinerParaObject(), and SdrText::SetOutlinerParaObject().
|
inline |
Definition at line 314 of file svdmodel.hxx.
Referenced by unogallery::GalleryItem::_getPropertyValues(), SdrMarkView::AddDragModeHdl(), XLineStartItem::checkForUniqueItem(), XLineEndItem::checkForUniqueItem(), XFillFloatTransparenceItem::checkForUniqueItem(), XFillGradientItem::checkForUniqueItem(), XFillHatchItem::checkForUniqueItem(), XFillBitmapItem::checkForUniqueItem(), XLineDashItem::checkForUniqueItem(), sdr::properties::DefaultProperties::DefaultProperties(), ImpSdrGDIMetaFileImport::DoAction(), SdrDragCrop::EndSdrDrag(), SvxGrafAttrHelper::ExecuteGrafAttr(), GallerySvDrawImport(), E3dView::Get3DAttributes(), SdrEditView::GetAttrFromMarked(), E3dView::GetDefaultCamFocal(), E3dView::GetDefaultCamPosZ(), SdrEditView::GetGeoAttrFromMarked(), GetGeometryForCustomShape(), SvxGrafAttrHelper::GetGrafAttrState(), SdrObject::GetObjectItemPool(), SdrCreateView::ImpBegCreateObj(), IMPL_LINK_NOARG(), ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport(), SdrExchangeView::Paste(), SdrMakeOutliner(), E3dView::Set3DAttributes(), SdrObjEditView::SetAttributes(), SdrEditView::SetGeoAttrToMarked(), SvxCreateNumRule(), and SdrObjEditView::TakeFormatPaintBrush().
|
inline |
Definition at line 315 of file svdmodel.hxx.
|
inline |
Definition at line 311 of file svdmodel.hxx.
Referenced by SdrEditView::DeleteLayer(), SdrExchangeView::GetMarkedObjects(), SvxShape::getPropertyValueImpl(), SdrPaintView::ImpFormLayerDrawing(), SdrEditView::InsertNewLayer(), SdrPaintView::MergeNotPersistDefaultAttr(), SdrPageWindow::RedrawAll(), SdrPageWindow::RedrawLayer(), SdrPaintView::SetNotPersistDefaultAttr(), and SvxShape::setPropertyValueImpl().
|
inline |
Definition at line 312 of file svdmodel.hxx.
|
inline |
Definition at line 533 of file svdmodel.hxx.
References XPropertyList::AsLineEndList(), and LineEnd.
Referenced by SvxShape::SetFillAttribute().
|
inline |
Definition at line 348 of file svdmodel.hxx.
const SdrPage * SdrModel::GetMasterPage | ( | sal_uInt16 | nPgNum | ) | const |
Definition at line 1868 of file svdmodel.cxx.
References DBG_ASSERT, and maMaPag.
Referenced by BurnInStyleSheetAttributes(), SdrEditView::DeleteLayer(), FmXUndoEnvironment::dispose(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), Merge(), FmXUndoEnvironment::ModeChanged(), SdrUndoPageChangeMasterPage::Redo(), SdrUndoPageRemoveMasterPage::Undo(), and SdrUndoPageChangeMasterPage::Undo().
SdrPage * SdrModel::GetMasterPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1874 of file svdmodel.cxx.
References DBG_ASSERT, and maMaPag.
sal_uInt16 SdrModel::GetMasterPageCount | ( | ) | const |
Definition at line 1880 of file svdmodel.cxx.
References maMaPag.
Referenced by BurnInStyleSheetAttributes(), ClearModel(), SdrEditView::DeleteLayer(), 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 1021 of file svdmodel.cxx.
References aBuf, SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getNumDigits(), i, LocaleDataWrapper::isNumLeadingZero(), LocaleDataWrapper::isNumTrailingZeros(), m_aUIUnitFact, m_aUIUnitStr, m_nUIUnitDecimalMark, and nCount.
Referenced by SdrObject::GetMetrStr(), SdrDragDistort::GetSdrDragComment(), SdrDragCrop::GetSdrDragComment(), SdrDragMove::GetSdrDragComment(), ImpPathForDragAndCreate::getSpecialDragComment(), and SdrMeasureObj::TakeRepresentation().
const SdrPage * SdrModel::GetPage | ( | sal_uInt16 | nPgNum | ) | const |
Definition at line 1842 of file svdmodel.cxx.
References DBG_ASSERT, and maPages.
Referenced by BurnInStyleSheetAttributes(), CopyPages(), CreateIMapGraphic(), SgaObjectSvDraw::CreateThumb(), SdrEditView::DeleteLayer(), FmXUndoEnvironment::dispose(), dumpAsXml(), SvxUnoDrawPagesAccess::getByIndex(), FmFormShell::GetFormControl(), GetGeometryForCustomShape(), SdrObject::getUnoShape(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), GalleryTheme::InsertTransferable(), SdrObject::MakeNameUnique(), Merge(), FmXUndoEnvironment::ModeChanged(), E3dView::Paste(), SdrExchangeView::Paste(), sdr::table::SvxTableController::PasteObjModel(), RemoveMasterPage(), FmFormModel::RemovePage(), IMapWindow::ReplaceImageMap(), SdrUndoDelPage::SdrUndoDelPage(), SvxGraphCtrlAccessibleContext::setModelAndView(), and SvxGraphCtrlAccessibleContext::SvxGraphCtrlAccessibleContext().
SdrPage * SdrModel::GetPage | ( | sal_uInt16 | nPgNum | ) |
Definition at line 1848 of file svdmodel.cxx.
References DBG_ASSERT, and maPages.
sal_uInt16 SdrModel::GetPageCount | ( | ) | const |
Definition at line 1854 of file svdmodel.cxx.
References maPages.
Referenced by BurnInStyleSheetAttributes(), ClearModel(), CopyPages(), CreateIMapGraphic(), SdrEditView::DeleteLayer(), FmXUndoEnvironment::dispose(), dumpAsXml(), GallerySvDrawImport(), SvxUnoDrawPagesAccess::getByIndex(), SvxUnoDrawPagesAccess::getCount(), FmFormShell::GetFormControl(), GetGeometryForCustomShape(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), InsertPage(), SdrObject::MakeNameUnique(), Merge(), FmXUndoEnvironment::ModeChanged(), E3dView::Paste(), SdrExchangeView::Paste(), sdr::table::SvxTableController::PasteObjModel(), SvxUnoDrawPagesAccess::remove(), RemoveMasterPage(), SdrUndoDelPage::SdrUndoDelPage(), and SetStarDrawPreviewMode().
|
virtual |
returns the numbering type that is used to format page fields in drawing shapes
Definition at line 1801 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 1173 of file svdmodel.cxx.
References Fraction::GetDenominator(), and Fraction::GetNumerator().
Referenced by SdrDragResize::GetSdrDragComment().
|
inline |
Definition at line 351 of file svdmodel.hxx.
Referenced by SvxOle2Shape::createLink(), SdrExchangeView::CreateMarkedObjModel(), SvxOle2Shape::createObject(), SvxOle2Shape::GetClassName_Impl(), SdrOle2Obj::GetObjRef_Impl(), SvxOle2Shape::resetModifiedState(), SdrOle2Obj::SdrOle2Obj(), SvxDrawingLayerExport(), and SvxDrawingLayerImport().
|
inline |
Definition at line 524 of file svdmodel.hxx.
References t.
Referenced by XFillGradientItem::checkForUniqueItem(), XFillHatchItem::checkForUniqueItem(), XFillBitmapItem::checkForUniqueItem(), and XLineDashItem::checkForUniqueItem().
|
inline |
Definition at line 330 of file svdmodel.hxx.
References VclPtr< OutputDevice >::get().
Referenced by ImpSetOutlinerDefaults(), and SdrObjEditView::Notify().
|
inline |
Definition at line 369 of file svdmodel.hxx.
Referenced by EnhancedCustomShape3d::Create3DObject(), SdrExchangeView::GetMarkedObjMetaFile(), SdrExchangeView::GetObjGraphic(), SdrExchangeView::ImpPasteObject(), and SdrExchangeView::Paste().
|
inline |
Definition at line 367 of file svdmodel.hxx.
Referenced by EnhancedCustomShape3d::Create3DObject(), sdr::properties::DefaultProperties::DefaultProperties(), SdrExchangeView::GetMarkedObjMetaFile(), SdrExchangeView::GetObjGraphic(), SdrGrafObj::getOriginalSize(), 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 1899 of file svdmodel.cxx.
References mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), SdrDragView::BegInsGluePoint(), sdr::table::SvxTableController::changeTableEdge(), CopyPages(), SdrDragObjOwn::EndSdrDrag(), svx::ExtrusionBar::execute(), svx::FontworkBar::execute(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrDragView::ImpBegInsObjPoint(), SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), Merge(), SvxDrawPage::remove(), SdrObjEditView::SdrEndTextEdit(), and SdrUndoDelPage::SdrUndoDelPage().
SfxUndoManager * SdrModel::GetSdrUndoManager | ( | ) | const |
Definition at line 1894 of file svdmodel.cxx.
References mpImpl.
Referenced by SdrObjEditView::getSdrUndoManagerForEnhancedTextEdit().
|
inline |
Definition at line 538 of file svdmodel.hxx.
Referenced by sdr::properties::AttributeProperties::AttributeProperties(), XLineStartItem::checkForUniqueItem(), XLineEndItem::checkForUniqueItem(), SvxTextEditSourceImpl::GetBackgroundTextForwarder(), SdrExchangeView::Paste(), SdrUndoAttrObj::Redo(), SdrMakeOutliner(), sdr::properties::TextProperties::SetStyleSheet(), and SdrUndoAttrObj::Undo().
TextChain * SdrModel::GetTextChain | ( | ) | const |
Definition at line 1863 of file svdmodel.cxx.
References m_pTextChain.
Referenced by SdrTextObj::GetTextChain().
|
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.
Referenced by SdrEditView::EndUndo().
|
static |
Definition at line 986 of file svdmodel.cxx.
Referenced by ImpSetUIUnit(), and SdrMeasureObj::TakeRepresentation().
uno::Reference< uno::XInterface > const & SdrModel::getUnoModel | ( | ) |
Definition at line 1621 of file svdmodel.cxx.
References createUnoModel(), and mxUnoModel.
Referenced by SdrOle2Obj::Disconnect_Impl(), and GetDocumentStorage().
|
static |
Definition at line 1935 of file svdmodel.cxx.
Referenced by SvxGalleryDrawModel::SvxGalleryDrawModel().
bool SdrModel::HasRedoActions | ( | ) | const |
Definition at line 317 of file svdmodel.cxx.
References m_pRedoStack.
Referenced by IMPL_LINK(), and Redo().
bool SdrModel::HasUndoActions | ( | ) | const |
Definition at line 312 of file svdmodel.cxx.
References m_pUndoStack.
Referenced by IMPL_LINK(), Repeat(), and Undo().
|
private |
Definition at line 590 of file svdmodel.cxx.
References XPropertyList::CreatePropertyList(), i, and maProperties.
Referenced by ImpCtor().
|
private |
Definition at line 90 of file svdmodel.cxx.
References EditEngine::CreatePool(), EE_CHAR_FONTHEIGHT(), Fraction, SdrEngineDefaults::GetFontHeight(), SdrEngineDefaults::GetMapFraction(), SdrEngineDefaults::GetMapUnit(), SfxItemPool::GetPoolDefaultItem(), ImpCreateTables(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), utl::ConfigManager::IsFuzzing(), m_aObjUnit, m_aUIScale, m_bMPgNumsDirty, m_bMyPool, m_bPagNumsDirty, m_bPasteResize, m_bReadOnly, m_bStarDrawPreviewMode, m_bSwapGraphics, m_bTransparentTextFrames, m_bTransportContainer, m_eObjUnit, m_eUIUnit, m_nDefaultTabulator, m_nMaxUndoCount, m_nUIUnitDecimalMark, m_nUndoLevel, m_pChainingOutliner, m_pCurrentUndoGroup, m_pDefaultStyleSheet, m_pDrawOutliner, m_pEmbeddedHelper, m_pHitTestOutliner, m_pItemPool, m_pLayerAdmin, m_pLinkManager, m_pRedoStack, m_pRefOutDev, m_pTextChain, m_pUndoStack, makeSdrTextWordWrapItem(), mbAddExtLeading, mbChanged, mbDisableTextEditUsesCommonUndoManager, mbInDestruction, mbKernAsianPunctuation, mbModelLocked, mbUndoEnabled, mnCharCompressType, mnDefTextHgt, mnHandoutPageCount, mpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj, mpForbiddenCharactersTable, mpImpl, mpOutlinerCache, SdrMakeOutliner(), SfxItemPool::SetDefaultMetric(), SfxItemPool::SetPoolDefaultItem(), SfxItemPool::SetSecondaryPool(), and SetTextDefaults().
Referenced by SdrModel().
|
private |
Definition at line 389 of file svdmodel.cxx.
References DBG_ASSERT, IsUndoEnabled(), m_aUndoLink, m_nMaxUndoCount, m_pRedoStack, m_pUndoStack, and mpImpl.
|
private |
Definition at line 767 of file svdmodel.cxx.
References GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), isLocked(), nCount, and SdrObjList::ReformatAllEdgeObjects().
Referenced by setLock().
|
private |
Definition at line 747 of file svdmodel.cxx.
References GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), isLocked(), nCount, and SdrObjList::ReformatAllTextObjects().
Referenced by RefDeviceChanged(), ReformatAllTextObjects(), SetDefaultFontHeight(), SetDefaultTabulator(), SetScaleFraction(), SetScaleUnit(), SetUIScale(), and SetUIUnit().
|
private |
Definition at line 715 of file svdmodel.cxx.
References Outliner::EraseVirtualDevice(), GetForbiddenCharsTable(), GetRefDevice(), IsAddExtLeading(), IsKernAsianPunctuation(), m_aObjUnit, m_eObjUnit, m_nDefaultTabulator, m_pItemPool, mnCharCompressType, Point, Outliner::SetAddExtLeading(), Outliner::SetAsianCompressionMode(), Outliner::SetDefTab(), Outliner::SetEditTextObjectPool(), Outliner::SetForbiddenCharsTable(), Outliner::SetKernAsianPunctuation(), Outliner::SetRefDevice(), Outliner::SetRefMapMode(), and Outliner::SetUpdateMode().
Referenced by ImpCtor(), SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), SetScaleFraction(), and SetScaleUnit().
|
private |
Definition at line 863 of file svdmodel.cxx.
References div(), FieldToO3tlLength(), Fraction, o3tl::getConversionMulDiv(), Fraction::GetDenominator(), Fraction::GetNumerator(), GetUnitString(), o3tl::invalid, m_aUIScale, m_aUIUnitFact, m_aUIUnitStr, m_eObjUnit, m_eUIUnit, m_nUIUnitDecimalMark, and MapToO3tlLength().
Referenced by ImpCtor(), SetScaleFraction(), SetScaleUnit(), SetUIScale(), and SetUIUnit().
Reimplemented in FmFormModel.
Definition at line 1280 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetMasterPageCount(), m_bMPgNumsDirty, maMaPag, MasterPageListChanged(), nCount, PageOrderChange, SetChanged(), SdrPage::SetInserted(), and SdrPage::SetPageNum().
Referenced by SdrUndoPage::ImpInsertPage(), and FmFormModel::InsertMasterPage().
Reimplemented in FmFormModel.
Definition at line 1228 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetPageCount(), m_bPagNumsDirty, SdrPage::MakePageObjectsNamesUnique(), maPages, mbMakePageObjectsNamesUnique, nCount, PageListChanged(), PageOrderChange, SetChanged(), SdrPage::SetInserted(), and SdrPage::SetPageNum().
Referenced by CopyPages(), SdrUndoPage::ImpInsertPage(), SvxUnoDrawPagesAccess::insertNewByIndex(), FmFormModel::InsertPage(), Merge(), and MovePage().
|
inline |
Definition at line 565 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
bool SdrModel::IsAnchoredTextOverflowLegacy | ( | ) | const |
Definition at line 1768 of file svdmodel.cxx.
References mpImpl.
Referenced by WriteUserDataSequence().
|
inline |
Definition at line 420 of file svdmodel.hxx.
References mbChanged.
Referenced by SvxIMapDlg::DoSave().
|
inlinevirtual |
Definition at line 267 of file svdmodel.hxx.
|
inline |
Definition at line 589 of file svdmodel.hxx.
Referenced by SdrOle2Obj::Disconnect_Impl(), and SdrObject::IsInDestruction().
|
inline |
Definition at line 562 of file svdmodel.hxx.
Referenced by ImpSetOutlinerDefaults(), and SdrMakeOutliner().
|
inline |
Definition at line 552 of file svdmodel.hxx.
Referenced by SvxUnoDrawingModel::hasControllersLocked(), ImpReformatAllEdgeObjects(), ImpReformatAllTextObjects(), SdrObjEditView::SdrEndTextEdit(), 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 269 of file svdmodel.hxx.
|
inline |
Definition at line 435 of file svdmodel.hxx.
|
virtual |
Definition at line 284 of file svdmodel.cxx.
References m_bReadOnly.
|
inline |
Definition at line 542 of file svdmodel.hxx.
|
inline |
Definition at line 429 of file svdmodel.hxx.
|
inline |
Definition at line 268 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 578 of file svdmodel.cxx.
References mbUndoEnabled, and mpImpl.
Referenced by SdrMarkView::AddDragModeHdl(), AddUndo(), BegUndo(), CopyPages(), EndUndo(), E3dView::ImpChangeSomeAttributesFor3DConversion2(), SdrEditView::ImpDelLayerDelObjs(), svxform::NavigatorTree::implExecuteDataTransfer(), ImpPostUndoAction(), svxform::NavigatorTreeModel::Insert(), SdrEditView::IsUndoEnabled(), Merge(), sdr::table::SvxTableController::onFormatTable(), FmXUndoEnvironment::propertyChange(), SvxDrawPage::remove(), svxform::NavigatorTreeModel::Remove(), and SetUndoComment().
|
inline |
Definition at line 576 of file svdmodel.hxx.
Referenced by SvxShape::getPosition(), SvxCustomShape::getPosition(), SvxShape::getPropertyValueImpl(), SvxShape::setPropertyValueImpl(), SdrMeasureObj::TRGetBaseGeometry(), SdrObjCustomShape::TRGetBaseGeometry(), SdrTextObj::TRGetBaseGeometry(), SdrObject::TRGetBaseGeometry(), SdrPathObj::TRSetBaseGeometry(), and SdrObject::TRSetBaseGeometry().
|
virtual |
Definition at line 1885 of file svdmodel.cxx.
Referenced by ClearModel(), InsertMasterPage(), Merge(), MoveMasterPage(), and RemoveMasterPage().
|
virtual |
Definition at line 1427 of file svdmodel.cxx.
References AddUndo(), BegUndo(), CopyPages(), DBG_ASSERT, EndUndo(), GetMasterPage(), GetMasterPageCount(), GetPage(), GetPageCount(), SdrPage::GetPageNum(), GetSdrUndoFactory(), i, InsertPage(), IsUndoEnabled(), m_bMPgNumsDirty, m_bPagNumsDirty, maMaPag, 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 1668 of file svdmodel.cxx.
References assert(), SfxWhichIter::FirstWhich(), SfxItemSet::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 1330 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), m_bMPgNumsDirty, maMaPag, MasterPageListChanged(), PageOrderChange, SetChanged(), and SdrPage::SetInserted().
Referenced by SdrUndoPage::ImpMovePage().
|
virtual |
Definition at line 1267 of file svdmodel.cxx.
References InsertPage(), maPages, PageListChanged(), RemovePage(), and SdrPage::SetInserted().
Referenced by SdrUndoPage::ImpMovePage().
|
privatedelete |
|
virtual |
Definition at line 1859 of file svdmodel.cxx.
Referenced by ClearModel(), InsertPage(), MovePage(), and RemovePage().
void SdrModel::ReadUserDataSequenceValue | ( | const css::beans::PropertyValue * | pValue | ) |
Definition at line 1806 of file svdmodel.cxx.
References mpImpl.
void SdrModel::RecalcPageNums | ( | bool | bMaster | ) |
Definition at line 1204 of file svdmodel.cxx.
References i, m_bMPgNumsDirty, m_bPagNumsDirty, maMaPag, maPages, nCount, and SdrPage::SetPageNum().
Referenced by SdrPage::GetPageNum().
void SdrModel::Redo | ( | ) |
Definition at line 346 of file svdmodel.cxx.
References HasRedoActions(), m_pRedoStack, m_pUndoStack, mbUndoEnabled, mpImpl, p, and SfxUndoAction::Redo().
Referenced by SdrView::KeyInput().
void SdrModel::RefDeviceChanged | ( | ) |
Definition at line 838 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), ImpReformatAllTextObjects(), and RefDeviceChange.
Referenced by SetRefDevice().
void SdrModel::ReformatAllTextObjects | ( | ) |
Definition at line 1773 of file svdmodel.cxx.
References ImpReformatAllTextObjects().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1304 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), GetPage(), GetPageCount(), m_bMPgNumsDirty, maMaPag, MasterPageListChanged(), PageOrderChange, SetChanged(), SdrPage::SetInserted(), and SdrPage::TRG_ImpMasterPageRemoved().
Referenced by DeleteMasterPage(), SdrUndoPage::ImpRemovePage(), Merge(), and FmFormModel::RemoveMasterPage().
|
virtual |
Reimplemented in FmFormModel.
Definition at line 1252 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), m_bPagNumsDirty, maPages, PageListChanged(), PageOrderChange, SetChanged(), and SdrPage::SetInserted().
Referenced by CopyPages(), DeletePage(), SdrUndoPage::ImpRemovePage(), Merge(), MovePage(), and FmFormModel::RemovePage().
void SdrModel::Repeat | ( | SfxRepeatTarget & | rView | ) |
Definition at line 370 of file svdmodel.cxx.
References SfxUndoAction::CanRepeat(), HasUndoActions(), m_pUndoStack, mpImpl, and SfxUndoAction::Repeat().
Referenced by SdrView::KeyInput().
void SdrModel::SetAddExtLeading | ( | bool | bEnabled | ) |
Definition at line 1753 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mbAddExtLeading.
void SdrModel::SetAnchoredTextOverflowLegacy | ( | bool | bEnabled | ) |
Definition at line 1763 of file svdmodel.cxx.
References mpImpl.
|
virtual |
Definition at line 1199 of file svdmodel.cxx.
References mbChanged.
Referenced by SvxShape::_setPropertyToDefault(), SvxShape::_setPropertyValue(), SvxDrawPage::add(), Svx3DSceneObject::add(), SvxDrawPage::addBottom(), SvxShapeGroup::addUnoShape(), 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(), InsertMasterPage(), SdrEditView::InsertNewLayer(), SdrObjList::InsertObject(), InsertPage(), SdrObjEditView::KeyInput(), Merge(), MoveMasterPage(), SvxDrawPage::remove(), SvxShapeGroup::remove(), RemoveMasterPage(), SdrObjList::RemoveObject(), RemovePage(), SdrObjList::ReplaceObject(), SvxShape::setAllPropertiesToDefault(), SdrObjEditView::SetAttributes(), SdrObject::SetChanged(), SdrPage::SetChanged(), SvxShapeControl::setControl(), SdrLayer::SetName(), SdrObjList::SetObjectNavigationPosition(), SdrObjList::SetObjectOrdNum(), SvxShape::setPosition(), SvxGraphicObject::setPropertyValueImpl(), SvxShape::setSize(), and SvxDrawPage::ungroup().
void SdrModel::SetCharCompressType | ( | CharCompressType | nType | ) |
Definition at line 1733 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mnCharCompressType.
void SdrModel::SetDefaultFontHeight | ( | sal_Int32 | nVal | ) |
Definition at line 844 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), and mnDefTextHgt.
|
inline |
Definition at line 342 of file svdmodel.hxx.
|
inline |
Definition at line 346 of file svdmodel.hxx.
void SdrModel::SetDefaultTabulator | ( | sal_uInt16 | nVal | ) |
Definition at line 852 of file svdmodel.cxx.
References SfxBroadcaster::Broadcast(), DefaultTabChange, GetDrawOutliner(), ImpReformatAllTextObjects(), m_nDefaultTabulator, and Outliner::SetDefTab().
|
inline |
Definition at line 545 of file svdmodel.hxx.
void SdrModel::SetForbiddenCharsTable | ( | const std::shared_ptr< SvxForbiddenCharactersTable > & | xForbiddenChars | ) |
Definition at line 1724 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mpForbiddenCharactersTable.
|
inline |
Definition at line 230 of file svdmodel.hxx.
void SdrModel::SetKernAsianPunctuation | ( | bool | bEnabled | ) |
Definition at line 1743 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, and mbKernAsianPunctuation.
|
inline |
Definition at line 349 of file svdmodel.hxx.
void SdrModel::setLock | ( | bool | bLock | ) |
Definition at line 1653 of file svdmodel.cxx.
References ImpReformatAllEdgeObjects(), and mbModelLocked.
Referenced by SvxUnoDrawingModel::lockControllers(), and SvxUnoDrawingModel::unlockControllers().
Definition at line 376 of file svdmodel.hxx.
void SdrModel::SetMaxUndoActionCount | ( | sal_uInt32 | nCount | ) |
Definition at line 295 of file svdmodel.cxx.
References m_nMaxUndoCount, and m_pUndoStack.
Referenced by FmFormModel::~FmFormModel().
|
inline |
Definition at line 506 of file svdmodel.hxx.
|
inline |
Definition at line 270 of file svdmodel.hxx.
Referenced by SdrExchangeView::Paste().
|
inline |
Definition at line 352 of file svdmodel.hxx.
|
inline |
Definition at line 436 of file svdmodel.hxx.
|
inline |
Definition at line 525 of file svdmodel.hxx.
void SdrModel::SetReadOnly | ( | bool | bYes | ) |
Definition at line 289 of file svdmodel.cxx.
References m_bReadOnly.
void SdrModel::SetRefDevice | ( | OutputDevice * | pDev | ) |
Definition at line 739 of file svdmodel.cxx.
References ImpSetOutlinerDefaults(), m_pDrawOutliner, m_pHitTestOutliner, m_pRefOutDev, and RefDeviceChanged().
Definition at line 947 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), m_aObjUnit, m_pDrawOutliner, and m_pHitTestOutliner.
Definition at line 935 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), m_eObjUnit, m_pDrawOutliner, m_pHitTestOutliner, m_pItemPool, and SfxItemPool::SetDefaultMetric().
Referenced by AllocModel().
Definition at line 922 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), m_aObjUnit, m_eObjUnit, m_pDrawOutliner, m_pHitTestOutliner, m_pItemPool, and SfxItemPool::SetDefaultMetric().
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 1906 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 1889 of file svdmodel.cxx.
References mpImpl.
void SdrModel::SetStarDrawPreviewMode | ( | bool | bPreview | ) |
Definition at line 1608 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 279 of file svdmodel.cxx.
References m_bSwapGraphics.
void SdrModel::SetTextDefaults | ( | ) | const |
Definition at line 642 of file svdmodel.cxx.
References m_pItemPool, and mnDefTextHgt.
Referenced by ImpCtor(), and SvxUnoDrawPool::init().
|
static |
Definition at line 647 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().
Definition at line 967 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_aUIScale.
Definition at line 958 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), and m_eUIUnit.
Definition at line 976 of file svdmodel.cxx.
References ImpReformatAllTextObjects(), ImpSetUIUnit(), m_aUIScale, and m_eUIUnit.
void SdrModel::SetUndoComment | ( | const OUString & | rComment | ) |
Definition at line 516 of file svdmodel.cxx.
References DBG_ASSERT, IsUndoEnabled(), m_nUndoLevel, m_pCurrentUndoGroup, and mpImpl.
void SdrModel::SetUndoComment | ( | const OUString & | rComment, |
const OUString & | rObjDescr | ||
) |
Definition at line 530 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 1629 of file svdmodel.cxx.
References mxUnoModel.
Referenced by unogallery::GalleryItem::_getPropertyValues(), unogallery::GalleryTheme::insertDrawingByIndex(), SvxDrawingLayerExport(), and SvxDrawingLayerImport().
void SdrModel::Undo | ( | ) |
Definition at line 322 of file svdmodel.cxx.
References HasUndoActions(), m_pRedoStack, m_pUndoStack, mbUndoEnabled, mpImpl, p, and SfxUndoAction::Undo().
Referenced by SdrView::KeyInput().
void SdrModel::WriteUserDataSequence | ( | css::uno::Sequence< css::beans::PropertyValue > & | rValues | ) |
Definition at line 1824 of file svdmodel.cxx.
References addPair(), and IsAnchoredTextOverflowLegacy().
|
friend |
Definition at line 317 of file svdobj.cxx.
|
friend |
Definition at line 321 of file svdobj.cxx.
|
protected |
Definition at line 168 of file svdmodel.hxx.
|
protected |
Definition at line 169 of file svdmodel.hxx.
Referenced by AllocModel(), ImpCtor(), ImpSetOutlinerDefaults(), SetScaleFraction(), and SetScaleUnit().
|
protected |
Definition at line 172 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpSetUIUnit(), SetUIScale(), and SetUIUnit().
|
protected |
Definition at line 174 of file svdmodel.hxx.
Referenced by GetMetricString(), and ImpSetUIUnit().
|
protected |
Definition at line 173 of file svdmodel.hxx.
Referenced by GetMetricString(), and ImpSetUIUnit().
|
protected |
Definition at line 167 of file svdmodel.hxx.
Referenced by ImpPostUndoAction().
|
protected |
Definition at line 198 of file svdmodel.hxx.
Referenced by ImpCtor(), InsertMasterPage(), Merge(), MoveMasterPage(), RecalcPageNums(), and RemoveMasterPage().
|
protected |
Definition at line 194 of file svdmodel.hxx.
Referenced by ImpCtor(), and ~SdrModel().
|
protected |
Definition at line 197 of file svdmodel.hxx.
Referenced by ImpCtor(), InsertPage(), Merge(), RecalcPageNums(), and RemovePage().
|
protected |
Definition at line 203 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 200 of file svdmodel.hxx.
Referenced by ImpCtor(), IsReadOnly(), and SetReadOnly().
|
protected |
Definition at line 204 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetStarDrawPreviewMode().
|
protected |
Definition at line 202 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetSwapGraphics().
|
protected |
Definition at line 201 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 199 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 170 of file svdmodel.hxx.
Referenced by AllocModel(), ImpCtor(), ImpSetOutlinerDefaults(), ImpSetUIUnit(), and SetScaleUnit().
|
protected |
Definition at line 171 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpSetUIUnit(), and SetUIUnit().
|
protected |
Definition at line 206 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpSetOutlinerDefaults(), and SetDefaultTabulator().
|
protected |
Definition at line 207 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpPostUndoAction(), and SetMaxUndoActionCount().
|
protected |
Definition at line 175 of file svdmodel.hxx.
Referenced by GetMetricString(), ImpCtor(), and ImpSetUIUnit().
|
protected |
Definition at line 193 of file svdmodel.hxx.
Referenced by BegUndo(), EndUndo(), ImpCtor(), and SetUndoComment().
|
protected |
Definition at line 183 of file svdmodel.hxx.
Referenced by GetChainingOutliner(), ImpCtor(), and ~SdrModel().
|
protected |
Definition at line 192 of file svdmodel.hxx.
Referenced by AddUndo(), BegUndo(), EndUndo(), ImpCtor(), SetUndoComment(), and ~SdrModel().
|
protected |
Definition at line 187 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 181 of file svdmodel.hxx.
Referenced by GetActiveOutliners(), GetDrawOutliner(), GetFormattingTextObj(), ImpCtor(), SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), SetScaleFraction(), SetScaleUnit(), and ~SdrModel().
|
protected |
Definition at line 180 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 182 of file svdmodel.hxx.
Referenced by GetActiveOutliners(), ImpCtor(), SetAddExtLeading(), SetCharCompressType(), SetForbiddenCharsTable(), SetKernAsianPunctuation(), SetRefDevice(), SetScaleFraction(), SetScaleUnit(), and ~SdrModel().
|
protected |
Definition at line 178 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpSetOutlinerDefaults(), SetScaleUnit(), SetTextDefaults(), and ~SdrModel().
|
protected |
Definition at line 177 of file svdmodel.hxx.
Referenced by ClearModel(), ImpCtor(), and ~SdrModel().
|
protected |
Definition at line 189 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 191 of file svdmodel.hxx.
Referenced by ClearUndoBuffer(), HasRedoActions(), ImpCtor(), ImpPostUndoAction(), Redo(), and Undo().
|
protected |
Definition at line 185 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetRefDevice().
|
protected |
Definition at line 209 of file svdmodel.hxx.
Referenced by GetTextChain(), ImpCtor(), and ~SdrModel().
|
protected |
Definition at line 190 of file svdmodel.hxx.
Referenced by ClearUndoBuffer(), HasUndoActions(), ImpCtor(), ImpPostUndoAction(), Redo(), Repeat(), SetMaxUndoActionCount(), and Undo().
|
private |
Definition at line 162 of file svdmodel.hxx.
Referenced by impAddIncarnatedSdrObjectToSdrModel(), impRemoveIncarnatedSdrObjectToSdrModel(), and ~SdrModel().
|
protected |
Definition at line 165 of file svdmodel.hxx.
Referenced by ClearModel(), GetMasterPage(), GetMasterPageCount(), InsertMasterPage(), Merge(), MoveMasterPage(), RecalcPageNums(), and RemoveMasterPage().
|
protected |
Definition at line 166 of file svdmodel.hxx.
Referenced by ClearModel(), GetPage(), GetPageCount(), InsertPage(), MovePage(), RecalcPageNums(), and RemovePage().
o3tl::enumarray<XPropertyListType, XPropertyListRef> SdrModel::maProperties |
Definition at line 227 of file svdmodel.hxx.
Referenced by ImpCreateTables().
bool SdrModel::mbAddExtLeading |
Definition at line 223 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetAddExtLeading().
|
protected |
Definition at line 196 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetChanged().
|
protected |
Definition at line 205 of file svdmodel.hxx.
Referenced by ImpCtor().
bool SdrModel::mbInDestruction |
Definition at line 224 of file svdmodel.hxx.
Referenced by ClearModel(), ImpCtor(), and ~SdrModel().
bool SdrModel::mbKernAsianPunctuation |
Definition at line 222 of file svdmodel.hxx.
Referenced by ImpCtor(), and SetKernAsianPunctuation().
|
private |
Definition at line 264 of file svdmodel.hxx.
Referenced by InsertPage().
bool SdrModel::mbModelLocked |
Definition at line 221 of file svdmodel.hxx.
|
protected |
Definition at line 195 of file svdmodel.hxx.
Referenced by EnableUndo(), ImpCtor(), IsUndoEnabled(), Redo(), and Undo().
CharCompressType SdrModel::mnCharCompressType |
Definition at line 219 of file svdmodel.hxx.
Referenced by ImpCtor(), ImpSetOutlinerDefaults(), and SetCharCompressType().
|
protected |
Definition at line 184 of file svdmodel.hxx.
Referenced by ImpCtor(), SetDefaultFontHeight(), and SetTextDefaults().
sal_uInt16 SdrModel::mnHandoutPageCount |
Definition at line 220 of file svdmodel.hxx.
Referenced by ImpCtor().
|
protected |
Definition at line 188 of file svdmodel.hxx.
Referenced by ImpCtor().
std::shared_ptr<SvxForbiddenCharactersTable> SdrModel::mpForbiddenCharactersTable |
Definition at line 213 of file svdmodel.hxx.
Referenced by ImpCtor(), SetForbiddenCharsTable(), and ~SdrModel().
std::unique_ptr<SdrModelImpl> SdrModel::mpImpl |
Definition at line 218 of file svdmodel.hxx.
Referenced by AddUndo(), BegUndo(), EnableUndo(), EndUndo(), GetSdrUndoFactory(), GetSdrUndoManager(), ImpCtor(), ImpPostUndoAction(), IsAnchoredTextOverflowLegacy(), IsUndoEnabled(), ReadUserDataSequenceValue(), Redo(), Repeat(), SetAnchoredTextOverflowLegacy(), SetSdrUndoFactory(), SetSdrUndoManager(), SetUndoComment(), Undo(), and ~SdrModel().
std::unique_ptr<SdrOutlinerCache> SdrModel::mpOutlinerCache |
Definition at line 215 of file svdmodel.hxx.
Referenced by createOutliner(), disposeOutliner(), GetActiveOutliners(), ImpCtor(), and ~SdrModel().
|
protected |
Definition at line 186 of file svdmodel.hxx.
Referenced by ~SdrModel().
|
private |
Definition at line 261 of file svdmodel.hxx.
Referenced by getUnoModel(), and setUnoModel().