diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-18 18:55:56 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-18 18:55:56 -0500 |
commit | 1c1fbc6123545b16ba10679192ca85b1d939fad8 (patch) | |
tree | ecb31948cb3060c9b8c99f7bb13bd00de356a534 /sc/inc/drwlayer.hxx | |
parent | 39a09318dc2162a4f4edeed7c7d67149258201e2 (diff) |
Better cell anchoring. (fdo#33205)
Diffstat (limited to 'sc/inc/drwlayer.hxx')
-rw-r--r-- | sc/inc/drwlayer.hxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index a36c46e0148a..de87e7e0a781 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -107,12 +107,10 @@ private: BOOL bHyphenatorSet; private: - void MoveAreaTwips( SCTAB nTab, const Rectangle& rArea, const Point& rMove, - const Point& rTopLeft ); void MoveCells( SCTAB nTab, SCCOL nCol1,SCROW nRow1, SCCOL nCol2,SCROW nRow2, SCsCOL nDx,SCsROW nDy, bool bUpdateNoteCaptionPos ); - void RecalcPos( SdrObject* pObj, const ScDrawObjData& rData, bool bNegativePage, bool bUpdateNoteCaptionPos ); + void RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegativePage, bool bUpdateNoteCaptionPos ); public: ScDrawLayer( ScDocument* pDocument, const String& rName ); @@ -154,8 +152,6 @@ public: void MoveArea( SCTAB nTab, SCCOL nCol1,SCROW nRow1, SCCOL nCol2,SCROW nRow2, SCsCOL nDx,SCsROW nDy, BOOL bInsDel, bool bUpdateNoteCaptionPos = true ); - void WidthChanged( SCTAB nTab, SCCOL nCol, long nDifTwips ); - void HeightChanged( SCTAB nTab, SCROW nRow, long nDifTwips ); BOOL HasObjectsInRows( SCTAB nTab, SCROW nStartRow, SCROW nEndRow, bool bIncludeNotes = true ); @@ -188,8 +184,11 @@ public: String GetNewGraphicName( long* pnCounter = NULL ) const; void EnsureGraphicNames(); - static void SetAnchor( SdrObject*, ScAnchorType ); - static ScAnchorType GetAnchor( const SdrObject* ); + static void SetPageAnchored( SdrObject& ); + static void SetCellAnchored( SdrObject&, const ScDrawObjData &rAnchor ); + static void SetCellAnchoredFromPosition( SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab ); + static void UpdateCellAnchorFromPositionEnd( SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab ); + static ScAnchorType GetAnchorType( const SdrObject& ); // positions for detektive lines static ScDrawObjData* GetObjData( SdrObject* pObj, BOOL bCreate=FALSE ); |