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, const OUString &rName)
 
virtual ~ScDrawLayer () override
 
virtual SdrPageAllocPage (bool bMasterPage) override
 
virtual SdrModelAllocModel () const override
 
virtual void SetChanged (bool bFlg=true) override
 
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 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 tools::Rectangle &rSourceRange, const ScAddress &rDestPos, const tools::Rectangle &rDestRange)
 
void SetPageSize (sal_uInt16 nPageNo, const Size &rSize, bool bUpdateNoteCaptionPos)
 
void MirrorRTL (SdrObject *pObj)
 
SdrObjectGetNamedObject (const OUString &rName, sal_uInt16 nId, SCTAB &rFoundTab) const
 
OUString GetNewGraphicName (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)
 
void MoveObject (SdrObject *pObj, const ScAddress &rNewPosition)
 
- Public Member Functions inherited from FmFormModel
 FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr)
 
virtual ~FmFormModel () override
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual 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, long nLeft=0, long nRight=0, long nUpper=0, 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 ()
 
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 FractionGetScaleFraction () const
 
void SetScaleFraction (const Fraction &rFrac)
 
void SetScaleUnit (MapUnit eMap, const Fraction &rFrac)
 
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 (long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const
 
bool IsPagNumsDirty () const
 
bool IsMPgNumsDirty () const
 
void RecalcPageNums (bool bMaster)
 
virtual void DeletePage (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 ()
 
void DeleteMasterPage (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
 
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 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< 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 void dumpAsXml (xmlTextWriterPtr pWriter) const
 

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 SetVisualCellAnchored (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 (long 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 bUseLogicRect, bool bNegativePage, bool bCanResize, bool bHiddenAsZero=true)
 
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
 
- Protected Attributes inherited from SdrModel
std::vector< SdrPage * > maMaPag
 
std::vector< SdrPage * > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
Fraction m_aObjUnit
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
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::unique_ptr< std::deque< std::unique_ptr< SfxUndoAction > > > m_pUndoStack
 
std::unique_ptr< std::deque< std::unique_ptr< SfxUndoAction > > > m_pRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bMyPool
 
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
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Detailed Description

Definition at line 89 of file drwlayer.hxx.

Constructor & Destructor Documentation

ScDrawLayer::ScDrawLayer ( ScDocument pDocument,
const OUString &  rName 
)
ScDrawLayer::~ScDrawLayer ( )
overridevirtual

Definition at line 332 of file drwlayer.cxx.

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

Member Function Documentation

void ScDrawLayer::AddCalcUndo ( std::unique_ptr< SdrUndoAction pUndo)
SdrModel * ScDrawLayer::AllocModel ( ) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 377 of file drwlayer.cxx.

References aName, and ScDrawLayer().

SdrPage * ScDrawLayer::AllocPage ( bool  bMasterPage)
overridevirtual

Reimplemented from FmFormModel.

Definition at line 360 of file drwlayer.cxx.

Referenced by ScAddPage().

void ScDrawLayer::BeginCalcUndo ( bool  bDisableTextEditUsesCommonUndoManager)
void ScDrawLayer::CopyFromClip ( ScDrawLayer pClipModel,
SCTAB  nSourceTab,
const tools::Rectangle rSourceRange,
const ScAddress rDestPos,
const tools::Rectangle rDestRange 
)
void ScDrawLayer::CopyToClip ( ScDocument pClipDoc,
SCTAB  nTab,
const tools::Rectangle rRange 
)
css::uno::Reference< css::uno::XInterface > ScDrawLayer::createUnoModel ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 2348 of file drwlayer.cxx.

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

void ScDrawLayer::DeleteObjectsInArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
bool  bAnchored = false 
)
void ScDrawLayer::DeleteObjectsInSelection ( const ScMarkData rMark)
void ScDrawLayer::EnableAdjust ( bool  bSet)
inline

Definition at line 130 of file drwlayer.hxx.

Referenced by EnableDrawAdjust().

void ScDrawLayer::EnsureGraphicNames ( )
ScAnchorType ScDrawLayer::GetAnchorType ( const SdrObject rObj)
static
std::unique_ptr< SdrUndoGroup > ScDrawLayer::GetCalcUndo ( )
void ScDrawLayer::GetCellAnchorFromPosition ( const tools::Rectangle rRectangle,
ScDrawObjData rAnchor,
const ScDocument rDoc,
SCTAB  nTab,
bool  bHiddenAsZero = true 
)
static
tools::Rectangle ScDrawLayer::GetCellRect ( const ScDocument rDoc,
const ScAddress rPos,
bool  bMergedCell 
)
static
ScDocument* ScDrawLayer::GetDocument ( ) const
inline
ScMacroInfo * ScDrawLayer::GetMacroInfo ( SdrObject pObj,
bool  bCreate = false 
)
static
SdrObject * ScDrawLayer::GetNamedObject ( const OUString &  rName,
sal_uInt16  nId,
SCTAB rFoundTab 
) const
OUString ScDrawLayer::GetNewGraphicName ( long *  pnCounter = nullptr) const

Definition at line 1943 of file drwlayer.cxx.

References GetNamedObject(), nId, and ScResId().

Referenced by EnsureGraphicNames(), and ScDrawShell::ExecDrawFunc().

ScDrawObjData * ScDrawLayer::GetNonRotatedObjData ( SdrObject pObj,
bool  bCreate = false 
)
static
ScDrawObjData * ScDrawLayer::GetNoteCaptionData ( SdrObject pObj,
SCTAB  nTab 
)
static
ScDrawObjData * ScDrawLayer::GetObjData ( SdrObject pObj,
bool  bCreate = false 
)
static
ScDrawObjData * ScDrawLayer::GetObjDataTab ( SdrObject pObj,
SCTAB  nTab 
)
static
std::map< SCROW, std::vector< SdrObject * > > ScDrawLayer::GetObjectsAnchoredToRange ( SCTAB  nTab,
SCCOL  nCol,
SCROW  nStartRow,
SCROW  nEndRow 
)
std::vector< SdrObject * > ScDrawLayer::GetObjectsAnchoredToRows ( SCTAB  nTab,
SCROW  nStartRow,
SCROW  nEndRow 
)
bool ScDrawLayer::GetPrintArea ( ScRange rRange,
bool  bSetHor,
bool  bSetVer 
) const
OUString ScDrawLayer::GetVisibleName ( const SdrObject pObj)
static
bool ScDrawLayer::HasObjects ( ) const

Definition at line 365 of file drwlayer.cxx.

References SdrModel::GetPage(), SdrModel::GetPageCount(), i, and nCount.

Referenced by ScShapeChildren::GetDrawPage().

bool ScDrawLayer::HasObjectsAnchoredInRange ( const ScRange rRange)
bool ScDrawLayer::HasObjectsInRows ( SCTAB  nTab,
SCROW  nStartRow,
SCROW  nEndRow 
)
bool ScDrawLayer::IsCellAnchored ( const SdrObject rObj)
static

Definition at line 2126 of file drwlayer.cxx.

References SC_UD_OBJDATA.

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

bool ScDrawLayer::IsNoteCaption ( SdrObject pObj)
static
bool ScDrawLayer::IsRecording ( ) const
inline
bool ScDrawLayer::IsResizeWithCell ( const SdrObject rObj)
static
void ScDrawLayer::MirrorRectRTL ( tools::Rectangle rRect)
static
void ScDrawLayer::MirrorRTL ( SdrObject pObj)
void ScDrawLayer::MoveArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
SCCOL  nDx,
SCROW  nDy,
bool  bInsDel,
bool  bUpdateNoteCaptionPos 
)
void ScDrawLayer::MoveCells ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2,
SCCOL  nDx,
SCROW  nDy,
bool  bUpdateNoteCaptionPos 
)
private
void ScDrawLayer::MoveObject ( SdrObject pObj,
const ScAddress rNewPosition 
)
void ScDrawLayer::RecalcPos ( SdrObject pObj,
ScDrawObjData rData,
bool  bNegativePage,
bool  bUpdateNoteCaptionPos 
)

Definition at line 786 of file drwlayer.cxx.

References AddCalcUndo(), tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), SdrObject::AdjustToMaxRect(), tools::Rectangle::AdjustTop(), basegfx::B2DPolygon::append(), bRecording, SdrObject::BroadcastObjectChange(), ScDrawObjData::CellNote, ScAddress::Col(), ScDocument::ColHidden(), DET_ARROW_OFFSET, ScDrawObjData::DetectiveArrow, GetAnchorType(), GetCellAnchorFromPosition(), ScDocument::GetColOffset(), ScDocument::GetColWidth(), GetDocument(), tools::Rectangle::GetHeight(), SdrObject::GetLogicRect(), ScDocument::GetMMRect(), GetNonRotatedObjData(), ScDocument::GetNote(), SdrObject::GetObjIdentifier(), SdrObject::GetPoint(), SdrObject::GetRelativePos(), ScDocument::GetRowHeight(), ScDocument::GetRowOffset(), SdrObject::getSdrModelFromSdrObject(), ScDrawObjData::getShapeRect(), SdrObject::GetSnapRect(), tools::Rectangle::GetWidth(), tools::Rectangle::getX(), tools::Rectangle::getY(), tools::Rectangle::IsEmpty(), SdrModel::isLocked(), SdrObject::IsPolyObj(), SdrObject::IsResizeProtect(), ScAddress::IsValid(), SdrObject::IsVisible(), tools::Rectangle::Left(), ScDrawObjData::maEnd, ScDrawObjData::maEndOffset, ScDrawObjData::maStart, ScDrawObjData::maStartOffset, ScDrawObjData::mbResizeWithCell, ScDrawObjData::meType, MirrorRectRTL(), SdrObject::NbcMove(), SdrObject::NbcResize(), OBJ_CUSTOMSHAPE, pDoc, Point, ResizeLastRectFromAnchor(), tools::Rectangle::Right(), ScAddress::Row(), ScDocument::RowHidden(), SCA_CELL, SCA_CELL_RESIZE, SdrModel::setLock(), SdrObject::SetLogicRect(), SdrObject::SetPoint(), SdrObject::SetRelativePos(), ScDrawObjData::setShapeRect(), SdrObject::SetSnapRect(), ScAddress::Tab(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), basegfx::B2DHomMatrix::translate(), SdrObject::TRGetBaseGeometry(), SdrObject::TRSetBaseGeometry(), TwipsToHmm(), UpdateCellAnchorFromPositionEnd(), and ScDrawObjData::ValidationCircle.

Referenced by MoveCells(), MoveObject(), and SetPageSize().

void ScDrawLayer::ResetTab ( SCTAB  nStart,
SCTAB  nEnd 
)
void ScDrawLayer::ResizeLastRectFromAnchor ( const SdrObject pObj,
ScDrawObjData rData,
bool  bUseLogicRect,
bool  bNegativePage,
bool  bCanResize,
bool  bHiddenAsZero = true 
)
private
bool ScDrawLayer::ScAddPage ( SCTAB  nTab)
void ScDrawLayer::ScCopyPage ( sal_uInt16  nOldPos,
sal_uInt16  nNewPos 
)
void ScDrawLayer::ScMovePage ( sal_uInt16  nOldPos,
sal_uInt16  nNewPos 
)

Definition at line 424 of file drwlayer.cxx.

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

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

Definition at line 417 of file drwlayer.cxx.

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

Referenced by ScTable::ScTable().

void ScDrawLayer::SetCellAnchored ( SdrObject rObj,
const ScDrawObjData rAnchor 
)
static
void ScDrawLayer::SetCellAnchoredFromPosition ( SdrObject rObj,
const ScDocument rDoc,
SCTAB  nTab,
bool  bResizeWithCell 
)
static
void ScDrawLayer::SetChanged ( bool  bFlg = true)
overridevirtual

Reimplemented from SdrModel.

Definition at line 2341 of file drwlayer.cxx.

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

void ScDrawLayer::SetGlobalDrawPersist ( SfxObjectShell pPersist)
static
void ScDrawLayer::SetPageAnchored ( SdrObject rObj)
static
void ScDrawLayer::SetPageSize ( sal_uInt16  nPageNo,
const Size rSize,
bool  bUpdateNoteCaptionPos 
)
void ScDrawLayer::SetVisualCellAnchored ( SdrObject rObj,
const ScDrawObjData rAnchor 
)
static
void ScDrawLayer::UpdateCellAnchorFromPositionEnd ( const SdrObject rObj,
ScDrawObjData rAnchor,
const ScDocument rDoc,
SCTAB  nTab,
bool  bUseLogicRect = true 
)
static
void ScDrawLayer::UseHyphenator ( )

Member Data Documentation

OUString ScDrawLayer::aName
private

Definition at line 92 of file drwlayer.hxx.

Referenced by AllocModel(), and GetVisibleName().

bool ScDrawLayer::bAdjustEnabled
private

Definition at line 96 of file drwlayer.hxx.

Referenced by MoveArea().

bool ScDrawLayer::bHyphenatorSet
private

Definition at line 97 of file drwlayer.hxx.

Referenced by UseHyphenator().

bool ScDrawLayer::bRecording
private
ScDocument* ScDrawLayer::pDoc
private
SfxObjectShell * ScDrawLayer::pGlobalDrawPersist = nullptr
staticprivate

Definition at line 212 of file drwlayer.hxx.

Referenced by ScDrawLayer(), and SetGlobalDrawPersist().

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

Definition at line 94 of file drwlayer.hxx.

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


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