LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ScDrawLayer Class Referencefinal

#include <drwlayer.hxx>

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

Public Member Functions

 ScDrawLayer (ScDocument *pDocument, OUString aName)
 
virtual ~ScDrawLayer () override
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage) override
 
virtual SdrModelAllocModel () const override
 
virtual void SetChanged (bool bFlg=true) override
 
void CreateDefaultStyles ()
 
bool HasObjects () const
 
bool ScAddPage (SCTAB nTab)
 
void ScRemovePage (SCTAB nTab)
 
void ScRenamePage (SCTAB nTab, const OUString &rNewName)
 
void ScMovePage (sal_uInt16 nOldPos, sal_uInt16 nNewPos)
 
void ScCopyPage (sal_uInt16 nOldPos, sal_uInt16 nNewPos)
 
void ResetTab (SCTAB nStart, SCTAB nEnd)
 
ScDocumentGetDocument () const
 
void UseHyphenator ()
 
bool GetPrintArea (ScRange &rRange, bool bSetHor, bool bSetVer) const
 
void EnableAdjust (bool bSet)
 
void BeginCalcUndo (bool bDisableTextEditUsesCommonUndoManager)
 
std::unique_ptr< SdrUndoGroupGetCalcUndo ()
 
bool IsRecording () const
 
void AddCalcUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
void MoveArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCCOL nDx, SCROW nDy, bool bInsDel, bool bUpdateNoteCaptionPos)
 
void InitializeCellAnchoredObj (SdrObject *pObj, ScDrawObjData &rData)
 
void RecalcPos (SdrObject *pObj, ScDrawObjData &rData, bool bNegativePage, bool bUpdateNoteCaptionPos)
 
bool HasObjectsInRows (SCTAB nTab, SCROW nStartRow, SCROW nEndRow)
 
void DeleteObjectsInArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bAnchored=false)
 
void DeleteObjectsInSelection (const ScMarkData &rMark)
 
void CopyToClip (ScDocument *pClipDoc, SCTAB nTab, const tools::Rectangle &rRange)
 
void CopyFromClip (ScDrawLayer *pClipModel, SCTAB nSourceTab, const ScRange &rSourceRange, const ScAddress &rDestPos, const ScRange &rDestRange, bool bTransposing=false)
 
void SetPageSize (sal_uInt16 nPageNo, const Size &rSize, bool bUpdateNoteCaptionPos, const ScObjectHandling eObjectHandling=ScObjectHandling::RecalcPosMode)
 
void MirrorRTL (SdrObject *pObj)
 
void MoveRTL (SdrObject *pObj)
 
SdrObjectGetNamedObject (std::u16string_view rName, SdrObjKind nId, SCTAB &rFoundTab) const
 
OUString GetNewGraphicName (tools::Long *pnCounter=nullptr) const
 
void EnsureGraphicNames ()
 
std::vector< SdrObject * > GetObjectsAnchoredToRows (SCTAB nTab, SCROW nStartRow, SCROW nEndRow)
 
std::map< SCROW, std::vector< SdrObject * > > GetObjectsAnchoredToRange (SCTAB nTab, SCCOL nCol, SCROW nStartRow, SCROW nEndRow)
 
bool HasObjectsAnchoredInRange (const ScRange &rRange)
 
std::vector< SdrObject * > GetObjectsAnchoredToCols (SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol)
 
void MoveObject (SdrObject *pObj, const ScAddress &rNewPosition)
 
- Public Member Functions inherited from FmFormModel
 FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr)
 
virtual ~FmFormModel () override
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage) override
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum) override
 
SfxObjectShellGetObjectShell () const
 
void SetObjectShell (SfxObjectShell *pShell)
 
bool GetOpenInDesignMode () const
 
void SetOpenInDesignMode (bool _bOpenDesignMode)
 
bool GetAutoControlFocus () const
 
void SetAutoControlFocus (bool _bAutoControlFocus)
 
bool OpenInDesignModeIsDefaulted ()
 
bool ControlsUseRefDevice () const
 
FmXUndoEnvironmentGetUndoEnv ()
 
- Public Member Functions inherited from SdrModel
std::vector< SdrOutliner * > GetActiveOutliners () const
 
sal_uInt16 getHandoutPageCount () const
 
void setHandoutPageCount (sal_uInt16 nHandoutPageCount)
 
virtual void adaptSizeAndBorderForAllPages (const Size &rNewSize, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0)
 
virtual SVX_DLLPRIVATE bool IsCreatingDataObj () const
 
bool IsTransportContainer () const
 
bool AreControlsThemed ()
 
bool IsPasteResize () const
 
void SetPasteResize (bool bOn)
 
 SdrModel (SfxItemPool *pPool=nullptr, ::comphelper::IEmbeddedHelper *pPers=nullptr, bool bDisablePropertyFiles=false)
 
virtual ~SdrModel () override
 
void ClearModel (bool bCalledFromDestructor)
 
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage () const
 
css::uno::Reference< css::io::XInputStream > GetDocumentStream (OUString const &rURL, ::comphelper::LifecycleProxy const &rProxy) const
 
void BurnInStyleSheetAttributes ()
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage)
 
virtual SdrModelAllocModel () const
 
const SdrLayerAdminGetLayerAdmin () const
 
SdrLayerAdminGetLayerAdmin ()
 
const SfxItemPoolGetItemPool () const
 
SfxItemPoolGetItemPool ()
 
SdrOutlinerGetDrawOutliner (const SdrTextObj *pObj=nullptr) const
 
SdrOutlinerGetHitTestOutliner () const
 
const SdrTextObjGetFormattingTextObj () const
 
void SetTextDefaults () const
 
SdrOutlinerGetChainingOutliner (const SdrTextObj *pObj) const
 
TextChainGetTextChain () const
 
void SetRefDevice (OutputDevice *pDev)
 
OutputDeviceGetRefDevice () const
 
void RefDeviceChanged ()
 
void SetDefaultFontHeight (sal_Int32 nVal)
 
void SetDefaultTabulator (sal_uInt16 nVal)
 
sal_uInt16 GetDefaultTabulator () const
 
SfxStyleSheetGetDefaultStyleSheet () const
 
void SetDefaultStyleSheet (SfxStyleSheet *pDefSS)
 
SfxStyleSheetGetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const
 
void SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS)
 
sfx2::LinkManagerGetLinkManager ()
 
void SetLinkManager (sfx2::LinkManager *pLinkMgr)
 
::comphelper::IEmbeddedHelperGetPersist () const
 
void SetPersist (::comphelper::IEmbeddedHelper *p)
 
MapUnit GetScaleUnit () const
 
void SetScaleUnit (MapUnit eMap)
 
const SizeGetMaxObjSize () const
 
void SetMaxObjSize (const Size &rSiz)
 
void SetUIUnit (FieldUnit eUnit)
 
FieldUnit GetUIUnit () const
 
void SetUIScale (const Fraction &rScale)
 
const FractionGetUIScale () const
 
void SetUIUnit (FieldUnit eUnit, const Fraction &rScale)
 
OUString GetMetricString (tools::Long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const
 
bool IsPagNumsDirty () const
 
bool IsMPgNumsDirty () const
 
void RecalcPageNums (bool bMaster)
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
virtual void DeletePage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum)
 
virtual void MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetPage (sal_uInt16 nPgNum) const
 
SdrPageGetPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetPageCount () const
 
virtual void PageListChanged ()
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
void DeleteMasterPage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum)
 
void MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetMasterPage (sal_uInt16 nPgNum) const
 
SdrPageGetMasterPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetMasterPageCount () const
 
virtual void MasterPageListChanged ()
 
bool IsChanged () const
 
virtual void SetChanged (bool bFlg=true)
 
bool IsSwapGraphics () const
 
void SetSwapGraphics ()
 
bool IsPickThroughTransparentTextFrames () const
 
void SetPickThroughTransparentTextFrames (bool bOn)
 
virtual bool IsReadOnly () const
 
void SetReadOnly (bool bYes)
 
virtual void Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false)
 
void CopyPages (sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bUndo, bool bMoveNoCopy)
 
void BegUndo ()
 
void BegUndo (const OUString &rComment)
 
void BegUndo (const OUString &rComment, const OUString &rObjDescr, SdrRepeatFunc eFunc)
 
void EndUndo ()
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
sal_uInt16 GetUndoBracketLevel () const
 
void SetUndoComment (const OUString &rComment)
 
void SetUndoComment (const OUString &rComment, const OUString &rObjDescr)
 
void SetMaxUndoActionCount (sal_uInt32 nCount)
 
void ClearUndoBuffer ()
 
bool HasUndoActions () const
 
bool HasRedoActions () const
 
void Undo ()
 
void Redo ()
 
void Repeat (SfxRepeatTarget &)
 
void SetNotifyUndoActionHdl (const std::function< void(std::unique_ptr< SdrUndoAction >)> &rLink)
 
void SetSdrUndoManager (SfxUndoManager *pUndoManager)
 
SfxUndoManagerGetSdrUndoManager () const
 
void SetSdrUndoFactory (SdrUndoFactory *pUndoFactory)
 
SdrUndoFactoryGetSdrUndoFactory () const
 
const XPropertyListRefGetPropertyList (XPropertyListType t) const
 
void SetPropertyList (XPropertyListRef const &p)
 
XDashListRef GetDashList () const
 
XHatchListRef GetHatchList () const
 
XColorListRef GetColorList () const
 
XBitmapListRef GetBitmapList () const
 
XPatternListRef GetPatternList () const
 
XLineEndListRef GetLineEndList () const
 
XGradientListRef GetGradientList () const
 
SfxStyleSheetBasePoolGetStyleSheetPool () const
 
void SetStyleSheetPool (SfxStyleSheetBasePool *pPool)
 
void setTheme (std::shared_ptr< model::Theme > const &pTheme)
 
std::shared_ptr< model::Theme > const & getTheme () const
 
void SetStarDrawPreviewMode (bool bPreview)
 
bool IsStarDrawPreviewMode () const
 
bool GetDisableTextEditUsesCommonUndoManager () const
 
void SetDisableTextEditUsesCommonUndoManager (bool bNew)
 
css::uno::Reference< css::uno::XInterface > const & getUnoModel ()
 
void setUnoModel (const css::uno::Reference< css::uno::XInterface > &xModel)
 
bool isLocked () const
 
void setLock (bool bLock)
 
void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
 
const std::shared_ptr< SvxForbiddenCharactersTable > & GetForbiddenCharsTable () const
 
void SetCharCompressType (CharCompressType nType)
 
CharCompressType GetCharCompressType () const
 
void SetKernAsianPunctuation (bool bEnabled)
 
bool IsKernAsianPunctuation () const
 
void SetAddExtLeading (bool bEnabled)
 
bool IsAddExtLeading () const
 
void SetCompatibilityFlag (SdrCompatibilityFlag eFlag, bool bEnabled)
 
bool GetCompatibilityFlag (SdrCompatibilityFlag eFlag) const
 
void ReformatAllTextObjects ()
 
std::unique_ptr< SdrOutlinercreateOutliner (OutlinerMode nOutlinerMode)
 
void disposeOutliner (std::unique_ptr< SdrOutliner > pOutliner)
 
bool IsWriter () const
 
void ReadUserDataSequenceValue (const css::beans::PropertyValue *pValue)
 
void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
virtual SvxNumType GetPageNumType () const
 
bool IsInDestruction () const
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
bool DoesMakePageObjectsNamesUnique () const
 
void DoMakePageObjectsNamesUnique (bool bDo)
 
virtual sal_Int32 getImagePreferredDPI () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
bool IsVOCInvalidationIsReliable () const
 
void SetVOCInvalidationIsReliable (bool b)
 

Static Public Member Functions

static void MirrorRectRTL (tools::Rectangle &rRect)
 
static tools::Rectangle GetCellRect (const ScDocument &rDoc, const ScAddress &rPos, bool bMergedCell)
 Returns the rectangle for the passed cell address in 1/100 mm. More...
 
static OUString GetVisibleName (const SdrObject *pObj)
 
static bool IsCellAnchored (const SdrObject &rObj)
 
static bool IsResizeWithCell (const SdrObject &rObj)
 
static void SetPageAnchored (SdrObject &)
 
static void SetCellAnchored (SdrObject &, const ScDrawObjData &rAnchor)
 
static void SetNonRotatedAnchor (SdrObject &, const ScDrawObjData &rAnchor)
 
static void GetCellAnchorFromPosition (const tools::Rectangle &rRectangle, ScDrawObjData &rAnchor, const ScDocument &rDoc, SCTAB nTab, bool bHiddenAsZero=true)
 
static void SetCellAnchoredFromPosition (SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab, bool bResizeWithCell)
 
static void UpdateCellAnchorFromPositionEnd (const SdrObject &rObj, ScDrawObjData &rAnchor, const ScDocument &rDoc, SCTAB nTab, bool bUseLogicRect=true)
 
static ScAnchorType GetAnchorType (const SdrObject &)
 
static ScDrawObjDataGetObjData (SdrObject *pObj, bool bCreate=false)
 
static ScDrawObjDataGetNonRotatedObjData (SdrObject *pObj, bool bCreate=false)
 
static ScDrawObjDataGetObjDataTab (SdrObject *pObj, SCTAB nTab)
 
static bool IsNoteCaption (SdrObject *pObj)
 Returns true, if the passed object is the caption of a cell note. More...
 
static ScDrawObjDataGetNoteCaptionData (SdrObject *pObj, SCTAB nTab)
 Returns the object data, if the passed object is a cell note caption. More...
 
static ScMacroInfoGetMacroInfo (SdrObject *pObj, bool bCreate=false)
 
static void SetGlobalDrawPersist (SfxObjectShell *pPersist)
 
- Static Public Member Functions inherited from SdrModel
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)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

void MoveCells (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCCOL nDx, SCROW nDy, bool bUpdateNoteCaptionPos)
 
void ResizeLastRectFromAnchor (const SdrObject *pObj, ScDrawObjData &rData, bool bNegativePage, bool bCanResize)
 
virtual css::uno::Reference< css::uno::XInterface > createUnoModel () override
 

Private Attributes

OUString aName
 
ScDocumentpDoc
 
std::unique_ptr< SdrUndoGrouppUndoGroup
 
bool bRecording
 
bool bAdjustEnabled
 
bool bHyphenatorSet
 

Static Private Attributes

static SfxObjectShellpGlobalDrawPersist = nullptr
 

Additional Inherited Members

- Public Attributes inherited from SdrModel
std::shared_ptr< SvxForbiddenCharactersTablempForbiddenCharactersTable
 
std::unique_ptr< SdrOutlinerCachempOutlinerCache
 
std::unique_ptr< SdrModelImplmpImpl
 
CharCompressType mnCharCompressType
 
sal_uInt16 mnHandoutPageCount
 
bool mbModelLocked
 
bool mbKernAsianPunctuation
 
bool mbAddExtLeading
 
bool mbInDestruction
 
o3tl::enumarray< XPropertyListType, XPropertyListRefmaProperties
 
virtual css::uno::Reference< css::uno::XInterface > createUnoModel ()
 
- Protected Attributes inherited from SdrModel
std::vector< rtl::Reference< SdrPage > > maMasterPages
 
std::vector< rtl::Reference< SdrPage > > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
rtl::Reference< SfxItemPoolm_pItemPool
 
comphelper::IEmbeddedHelperm_pEmbeddedHelper
 
std::unique_ptr< SdrOutlinerm_pDrawOutliner
 
std::unique_ptr< SdrOutlinerm_pHitTestOutliner
 
std::unique_ptr< SdrOutlinerm_pChainingOutliner
 
sal_Int32 mnDefTextHgt
 
VclPtr< OutputDevicem_pRefOutDev
 
rtl::Reference< SfxStyleSheetBasePoolmxStyleSheetPool
 
SfxStyleSheetm_pDefaultStyleSheet
 
SfxStyleSheetmpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj
 
sfx2::LinkManagerm_pLinkManager
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aUndoStack
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bIsWriter
 
bool m_bThemedControls
 
bool mbUndoEnabled
 
bool mbChanged
 
bool m_bPagNumsDirty
 
bool m_bMPgNumsDirty
 
bool m_bTransportContainer
 
bool m_bReadOnly
 
bool m_bTransparentTextFrames
 
bool m_bSwapGraphics
 
bool m_bPasteResize
 
bool m_bStarDrawPreviewMode
 
bool mbDisableTextEditUsesCommonUndoManager
 
bool mbVOCInvalidationIsReliable
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Detailed Description

Definition at line 97 of file drwlayer.hxx.

Constructor & Destructor Documentation

◆ ScDrawLayer()

ScDrawLayer::ScDrawLayer ( ScDocument pDocument,
OUString  aName 
)

◆ ~ScDrawLayer()

ScDrawLayer::~ScDrawLayer ( )
overridevirtual

Definition at line 346 of file drwlayer.cxx.

References SdrModel::ClearModel(), nInst, pF3d, and pUndoGroup.

Member Function Documentation

◆ AddCalcUndo()

void ScDrawLayer::AddCalcUndo ( std::unique_ptr< SdrUndoAction pUndo)

◆ AllocModel()

SdrModel * ScDrawLayer::AllocModel ( ) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 442 of file drwlayer.cxx.

References aName, ScStyleSheetPool::CopyUsedGraphicStylesFrom(), and SdrModel::GetStyleSheetPool().

◆ AllocPage()

rtl::Reference< SdrPage > ScDrawLayer::AllocPage ( bool  bMasterPage)
overridevirtual

Reimplemented from FmFormModel.

Definition at line 425 of file drwlayer.cxx.

Referenced by ScAddPage().

◆ BeginCalcUndo()

void ScDrawLayer::BeginCalcUndo ( bool  bDisableTextEditUsesCommonUndoManager)

◆ CopyFromClip()

void ScDrawLayer::CopyFromClip ( ScDrawLayer pClipModel,
SCTAB  nSourceTab,
const ScRange rSourceRange,
const ScAddress rDestPos,
const ScRange rDestRange,
bool  bTransposing = false 
)

Definition at line 1912 of file drwlayer.cxx.

References AddCalcUndo(), ScRange::aStart, bDrawIsInUndo, bRecording, SdrObject::CloneSdrObject(), ScAddress::Col(), ScRange::Contains(), ScStyleSheetPool::CopyStyleFrom(), ScDocument::CountNonFilteredRows(), ScDocument::EnableUndo(), GetCellRect(), ScChartHelper::GetChartFromSdrObject(), ScDocument::GetChartRanges(), ScDocument::GetClipParam(), SdrObject::GetCurrentBoundRect(), GetDocument(), SdrObject::GetLayer(), ScDocument::GetMMRect(), ScDocument::GetName(), GetObjData(), SdrObject::GetObjIdentifier(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), SdrModel::GetPage(), ScDocument::GetPool(), ScDocument::GetRange(), SdrObject::GetSnapRect(), SdrObject::GetStyleSheet(), SdrModel::GetStyleSheetPool(), ScDocument::GetStyleSheetPool(), Point::getX(), Point::getY(), ScAddress::IncCol(), ScAddress::IncRow(), SdrObjList::InsertObject(), SdrObjList::InsertObjectThenMakeNameUnique(), IsCellAnchored(), SotExchange::IsChart(), ScDocument::IsClipboard(), ScDocument::IsLayoutRTL(), IsNoteCaption(), SdrObject::IsResizeProtect(), IsResizeWithCell(), ScClipParam::isTransposed(), lcl_getClipRangeFromClipDoc(), lcl_IsAllInRange(), lcl_MoveRanges(), ScDrawObjData::maStartOffset, MirrorRectRTL(), MirrorRTL(), SdrObjListIter::Next(), pDoc, ScDocument::RenameTab(), ScAddress::Row(), ScDocument::RowFiltered(), SC_LAYER_INTERN(), SetCellAnchoredFromPosition(), ScDocument::SetChartRanges(), ScAddress::Tab(), tools::Rectangle::TopLeft(), ScDocument::ValidNewTabName(), Point::X(), and Point::Y().

Referenced by ScTable::CopyOneCellFromClip().

◆ CopyToClip()

void ScDrawLayer::CopyToClip ( ScDocument pClipDoc,
SCTAB  nTab,
const tools::Rectangle rRange 
)

◆ CreateDefaultStyles()

void ScDrawLayer::CreateDefaultStyles ( )

◆ createUnoModel()

css::uno::Reference< css::uno::XInterface > ScDrawLayer::createUnoModel ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 2940 of file drwlayer.cxx.

References ScDocument::GetDocumentShell(), SfxObjectShell::GetModel(), and pDoc.

◆ DeleteObjectsInArea()

void ScDrawLayer::DeleteObjectsInArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
bool  bAnchored = false 
)

◆ DeleteObjectsInSelection()

void ScDrawLayer::DeleteObjectsInSelection ( const ScMarkData rMark)

◆ EnableAdjust()

void ScDrawLayer::EnableAdjust ( bool  bSet)
inline

Definition at line 139 of file drwlayer.hxx.

Referenced by EnableDrawAdjust().

◆ EnsureGraphicNames()

void ScDrawLayer::EnsureGraphicNames ( )

◆ GetAnchorType()

ScAnchorType ScDrawLayer::GetAnchorType ( const SdrObject rObj)
static

◆ GetCalcUndo()

std::unique_ptr< SdrUndoGroup > ScDrawLayer::GetCalcUndo ( )

◆ GetCellAnchorFromPosition()

void ScDrawLayer::GetCellAnchorFromPosition ( const tools::Rectangle rRectangle,
ScDrawObjData rAnchor,
const ScDocument rDoc,
SCTAB  nTab,
bool  bHiddenAsZero = true 
)
static

◆ GetCellRect()

tools::Rectangle ScDrawLayer::GetCellRect ( const ScDocument rDoc,
const ScAddress rPos,
bool  bMergedCell 
)
static

◆ GetDocument()

ScDocument * ScDrawLayer::GetDocument ( ) const
inline

◆ GetMacroInfo()

ScMacroInfo * ScDrawLayer::GetMacroInfo ( SdrObject pObj,
bool  bCreate = false 
)
static

◆ GetNamedObject()

SdrObject * ScDrawLayer::GetNamedObject ( std::u16string_view  rName,
SdrObjKind  nId,
SCTAB rFoundTab 
) const

◆ GetNewGraphicName()

OUString ScDrawLayer::GetNewGraphicName ( tools::Long pnCounter = nullptr) const

◆ GetNonRotatedObjData()

ScDrawObjData * ScDrawLayer::GetNonRotatedObjData ( SdrObject pObj,
bool  bCreate = false 
)
static

◆ GetNoteCaptionData()

ScDrawObjData * ScDrawLayer::GetNoteCaptionData ( SdrObject pObj,
SCTAB  nTab 
)
static

Returns the object data, if the passed object is a cell note caption.

Definition at line 2907 of file drwlayer.cxx.

References ScDrawObjData::CellNote, GetObjDataTab(), and pData.

Referenced by ScXMLExport::CollectInternalShape(), ScDrawView::GetMarkedNoteCaption(), ScShapeObj::getParent(), FuSelection::IsNoteCaptionClicked(), and FuText::StopEditMode().

◆ GetObjData()

ScDrawObjData * ScDrawLayer::GetObjData ( SdrObject pObj,
bool  bCreate = false 
)
static

◆ GetObjDataTab()

ScDrawObjData * ScDrawLayer::GetObjDataTab ( SdrObject pObj,
SCTAB  nTab 
)
static

◆ GetObjectsAnchoredToCols()

std::vector< SdrObject * > ScDrawLayer::GetObjectsAnchoredToCols ( SCTAB  nTab,
SCCOL  nStartCol,
SCCOL  nEndCol 
)

◆ GetObjectsAnchoredToRange()

std::map< SCROW, std::vector< SdrObject * > > ScDrawLayer::GetObjectsAnchoredToRange ( SCTAB  nTab,
SCCOL  nCol,
SCROW  nStartRow,
SCROW  nEndRow 
)

◆ GetObjectsAnchoredToRows()

std::vector< SdrObject * > ScDrawLayer::GetObjectsAnchoredToRows ( SCTAB  nTab,
SCROW  nStartRow,
SCROW  nEndRow 
)

◆ GetPrintArea()

bool ScDrawLayer::GetPrintArea ( ScRange rRange,
bool  bSetHor,
bool  bSetVer 
) const

◆ GetVisibleName()

OUString ScDrawLayer::GetVisibleName ( const SdrObject pObj)
static

◆ HasObjects()

bool ScDrawLayer::HasObjects ( ) const

◆ HasObjectsAnchoredInRange()

bool ScDrawLayer::HasObjectsAnchoredInRange ( const ScRange rRange)

◆ HasObjectsInRows()

bool ScDrawLayer::HasObjectsInRows ( SCTAB  nTab,
SCROW  nStartRow,
SCROW  nEndRow 
)

◆ InitializeCellAnchoredObj()

void ScDrawLayer::InitializeCellAnchoredObj ( SdrObject pObj,
ScDrawObjData rData 
)

◆ IsCellAnchored()

bool ScDrawLayer::IsCellAnchored ( const SdrObject rObj)
static

Definition at line 2700 of file drwlayer.cxx.

References SC_UD_OBJDATA.

Referenced by CopyFromClip(), ScViewFunc::PasteDraw(), and ScUndoAnchorData::ScUndoAnchorData().

◆ IsNoteCaption()

bool ScDrawLayer::IsNoteCaption ( SdrObject pObj)
static

◆ IsRecording()

bool ScDrawLayer::IsRecording ( ) const
inline

◆ IsResizeWithCell()

bool ScDrawLayer::IsResizeWithCell ( const SdrObject rObj)
static

◆ MirrorRectRTL()

void ScDrawLayer::MirrorRectRTL ( tools::Rectangle rRect)
static

◆ MirrorRTL()

void ScDrawLayer::MirrorRTL ( SdrObject pObj)

◆ MoveArea()

void ScDrawLayer::MoveArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
SCCOL  nDx,
SCROW  nDy,
bool  bInsDel,
bool  bUpdateNoteCaptionPos 
)

◆ MoveCells()

void ScDrawLayer::MoveCells ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
SCCOL  nDx,
SCROW  nDy,
bool  bUpdateNoteCaptionPos 
)
private

◆ MoveObject()

void ScDrawLayer::MoveObject ( SdrObject pObj,
const ScAddress rNewPosition 
)

◆ MoveRTL()

void ScDrawLayer::MoveRTL ( SdrObject pObj)

◆ RecalcPos()

void ScDrawLayer::RecalcPos ( SdrObject pObj,
ScDrawObjData rData,
bool  bNegativePage,
bool  bUpdateNoteCaptionPos 
)

Definition at line 1105 of file drwlayer.cxx.

References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), SdrObject::AdjustToMaxRect(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), basegfx::B2DPolygon::append(), bRecording, SdrObject::BroadcastObjectChange(), ScDrawObjData::CellNote, ScAddress::Col(), ScDocument::ColHidden(), convertTwipToMm100(), DET_ARROW_OFFSET, ScDrawObjData::DetectiveArrow, GetCellRect(), ScDocument::GetColOffset(), ScDocument::GetColWidth(), GetDocument(), tools::Rectangle::GetHeight(), SdrObject::GetLogicRect(), GetNonRotatedObjData(), ScDocument::GetNote(), SdrObject::GetObjIdentifier(), SdrObject::GetPoint(), SdrObject::GetRelativePos(), ScDocument::GetRowHeight(), ScDocument::GetRowOffset(), SdrObject::getSdrModelFromSdrObject(), ScDrawObjData::getShapeRect(), SdrObject::GetSnapRect(), tools::Rectangle::GetWidth(), SdrModel::isLocked(), SdrObject::IsPolyObj(), SdrObject::IsResizeProtect(), ScAddress::IsValid(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maStart, ScDrawObjData::mbResizeWithCell, ScDrawObjData::meType, MirrorRectRTL(), SdrObject::NbcMove(), SdrObject::NbcResize(), pDoc, ResizeLastRectFromAnchor(), ScAddress::Row(), ScDocument::RowHidden(), SdrModel::setLock(), SdrObject::SetLogicRect(), SdrObject::SetPoint(), SdrObject::SetRelativePos(), ScDrawObjData::setShapeRect(), SdrObject::SetSnapRect(), Point::setX(), Point::setY(), ScAddress::Tab(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), UpdateCellAnchorFromPositionEnd(), ScDrawObjData::ValidationCircle, Point::X(), and Point::Y().

Referenced by ScXMLImport::endDocument(), MoveCells(), MoveObject(), and SetPageSize().

◆ ResetTab()

void ScDrawLayer::ResetTab ( SCTAB  nStart,
SCTAB  nEnd 
)

◆ ResizeLastRectFromAnchor()

void ScDrawLayer::ResizeLastRectFromAnchor ( const SdrObject pObj,
ScDrawObjData rData,
bool  bNegativePage,
bool  bCanResize 
)
private

◆ ScAddPage()

bool ScDrawLayer::ScAddPage ( SCTAB  nTab)

◆ ScCopyPage()

void ScDrawLayer::ScCopyPage ( sal_uInt16  nOldPos,
sal_uInt16  nNewPos 
)

◆ ScMovePage()

void ScDrawLayer::ScMovePage ( sal_uInt16  nOldPos,
sal_uInt16  nNewPos 
)

Definition at line 492 of file drwlayer.cxx.

References ScDocument::GetTableCount(), SdrModel::MovePage(), pDoc, and ResetTab().

◆ ScRemovePage()

void ScDrawLayer::ScRemovePage ( SCTAB  nTab)

◆ ScRenamePage()

void ScDrawLayer::ScRenamePage ( SCTAB  nTab,
const OUString &  rNewName 
)

Definition at line 485 of file drwlayer.cxx.

References SdrModel::GetPage(), and FmFormPage::SetName().

Referenced by ScTable::ScTable().

◆ SetCellAnchored()

void ScDrawLayer::SetCellAnchored ( SdrObject rObj,
const ScDrawObjData rAnchor 
)
static

◆ SetCellAnchoredFromPosition()

void ScDrawLayer::SetCellAnchoredFromPosition ( SdrObject rObj,
const ScDocument rDoc,
SCTAB  nTab,
bool  bResizeWithCell 
)
static

◆ SetChanged()

void ScDrawLayer::SetChanged ( bool  bFlg = true)
overridevirtual

Reimplemented from SdrModel.

Definition at line 2933 of file drwlayer.cxx.

References pDoc, SdrModel::SetChanged(), and ScDocument::SetChartListenerCollectionNeedsUpdate().

◆ SetGlobalDrawPersist()

void ScDrawLayer::SetGlobalDrawPersist ( SfxObjectShell pPersist)
static

◆ SetNonRotatedAnchor()

void ScDrawLayer::SetNonRotatedAnchor ( SdrObject rObj,
const ScDrawObjData rAnchor 
)
static

◆ SetPageAnchored()

void ScDrawLayer::SetPageAnchored ( SdrObject rObj)
static

◆ SetPageSize()

void ScDrawLayer::SetPageSize ( sal_uInt16  nPageNo,
const Size rSize,
bool  bUpdateNoteCaptionPos,
const ScObjectHandling  eObjectHandling = ScObjectHandling::RecalcPosMode 
)

◆ UpdateCellAnchorFromPositionEnd()

void ScDrawLayer::UpdateCellAnchorFromPositionEnd ( const SdrObject rObj,
ScDrawObjData rAnchor,
const ScDocument rDoc,
SCTAB  nTab,
bool  bUseLogicRect = true 
)
static

◆ UseHyphenator()

void ScDrawLayer::UseHyphenator ( )

Member Data Documentation

◆ aName

OUString ScDrawLayer::aName
private

Definition at line 100 of file drwlayer.hxx.

Referenced by AllocModel(), and GetVisibleName().

◆ bAdjustEnabled

bool ScDrawLayer::bAdjustEnabled
private

Definition at line 104 of file drwlayer.hxx.

Referenced by MoveArea().

◆ bHyphenatorSet

bool ScDrawLayer::bHyphenatorSet
private

Definition at line 105 of file drwlayer.hxx.

Referenced by UseHyphenator().

◆ bRecording

bool ScDrawLayer::bRecording
private

◆ pDoc

ScDocument* ScDrawLayer::pDoc
private

◆ pGlobalDrawPersist

SfxObjectShell * ScDrawLayer::pGlobalDrawPersist = nullptr
staticprivate

Definition at line 226 of file drwlayer.hxx.

Referenced by ScDrawLayer(), and SetGlobalDrawPersist().

◆ pUndoGroup

std::unique_ptr<SdrUndoGroup> ScDrawLayer::pUndoGroup
private

Definition at line 102 of file drwlayer.hxx.

Referenced by AddCalcUndo(), BeginCalcUndo(), GetCalcUndo(), and ~ScDrawLayer().


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