summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/ssfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 10:06:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-19 13:53:36 +0100
commit2c2d0c07b2120c5fe4333e7fed12bd59996c2972 (patch)
treeaa71e3df5e52ef2710b40535f8692a98f9925f9f /sw/source/core/layout/ssfrm.cxx
parent8960ecc689ce41cfaa40b65d75830d7491b06463 (diff)
loplugin:unusedmethods
Change-Id: I3ffd9142fed98e4df75c2c28f8a025be3e8eb803 Reviewed-on: https://gerrit.libreoffice.org/46687 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/ssfrm.cxx')
-rw-r--r--sw/source/core/layout/ssfrm.cxx45
1 files changed, 0 insertions, 45 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 0e4695dd2c56..9934d1c4b4dd 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -82,22 +82,6 @@ bool SwFrame::SetMaxBottom( long nDeadline )
return false;
}
-bool SwFrame::SetMinTop( long nDeadline )
-{
- SwTwips nDiff = nDeadline - getFrameArea().Top();
- if( nDiff > 0 )
- {
- SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
- aFrm.Top( nDeadline );
-
- SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
- aPrt.Height( aPrt.Height() - nDiff );
-
- return true;
- }
- return false;
-}
-
bool SwFrame::SetMaxRight( long nDeadline )
{
SwTwips nDiff = getFrameArea().Left() + getFrameArea().Width() - nDeadline;
@@ -135,28 +119,6 @@ void SwFrame::MakeBelowPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotif
}
}
-void SwFrame::MakeUpperPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify )
-{
- SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
-
- if( pPrv )
- {
- aFrm.Pos( pPrv->getFrameArea().Pos() );
- aFrm.Pos().Y() -= aFrm.Height();
- }
- else
- {
- aFrm.Pos( pUp->getFrameArea().Pos() );
- aFrm.Pos() += pUp->getFramePrintArea().Pos();
- aFrm.Pos().Y() += pUp->getFramePrintArea().Height() - aFrm.Height();
- }
-
- if( bNotify )
- {
- aFrm.Pos().Y() -= 1;
- }
-}
-
void SwFrame::MakeLeftPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify )
{
SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this);
@@ -207,13 +169,6 @@ void SwFrame::SetTopBottomMargins( long nTop, long nBot )
aPrt.Height( getFrameArea().Height() - nTop - nBot );
}
-void SwFrame::SetBottomTopMargins( long nBot, long nTop )
-{
- SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);
- aPrt.Top( nTop );
- aPrt.Height( getFrameArea().Height() - nTop - nBot );
-}
-
void SwFrame::SetLeftRightMargins( long nLeft, long nRight)
{
SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this);