summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/txtfrm.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-21 10:44:17 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-21 13:30:13 +0000
commit407731c9f403c35357a0d1428c9b99835f79a5f7 (patch)
treec3550703ea961e727e9fa155aa8efaa96ae84dd0 /sw/source/core/inc/txtfrm.hxx
parent2b75376a149803865c7cc0dbc72a870c1d86f428 (diff)
loplugin:unusedmethods sw
Change-Id: Ied51535fa169451fc4991237122817a34a59f6fe Reviewed-on: https://gerrit.libreoffice.org/17256 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/inc/txtfrm.hxx')
-rw-r--r--sw/source/core/inc/txtfrm.hxx44
1 files changed, 0 insertions, 44 deletions
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 693bb16419ec..cc9e9d5871b9 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -85,8 +85,6 @@ class SwTextFrm: public SwContentFrm
// Separates the Master and creates a Follow or adjusts the data in the Follow
void _AdjustFollow( SwTextFormatter &rLine, const sal_Int32 nOffset,
const sal_Int32 nStrEnd, const sal_uInt8 nMode );
- inline void AdjustFollow( SwTextFormatter &rLine, const sal_Int32 nOffset,
- const sal_Int32 nStrEnd, const sal_uInt8 nMode );
// Iterates all Lines and sets the line spacing using the attribute
void CalcLineSpace();
@@ -198,13 +196,6 @@ class SwTextFrm: public SwContentFrm
*/
void _CalcHeightOfLastLine( const bool _bUseFont = false );
- // ST2
- SwWrongList* _SmartTagScan ( const OUString& aTextToScan, SwWrongList *pSmartTagList,
- sal_Int32 nBegin,sal_Int32 nEnd,
- sal_Int32 nInsertPos, sal_Int32 nActPos,
- sal_Int32 &nChgStart, sal_Int32 &nChgEnd,
- sal_Int32 &nInvStart, sal_Int32 &nInvEnd);
-
virtual void DestroyImpl() SAL_OVERRIDE;
virtual ~SwTextFrm();
@@ -442,22 +433,12 @@ public:
*/
SwTwips GetFootnoteLine( const SwTextFootnote *pFootnote ) const;
- /**
- * Returns the left and the right margin document coordinates
- * (taking the paragraph attributes into account)
- */
- inline SwTwips GetLeftMargin() const;
- inline SwTwips GetRightMargin() const;
-
virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = 0 ) SAL_OVERRIDE;
virtual void CheckDirection( bool bVert ) SAL_OVERRIDE;
/// Returns the sum of line height in pLine
sal_uInt16 GetParHeight() const;
- /// Returns the remaining height
- inline SwTwips GetRstHeight() const;
-
inline SwTextFrm *GetFollow();
inline const SwTextFrm *GetFollow() const;
@@ -490,7 +471,6 @@ public:
static void SetTextCache( SwCache *pNew ) { pTextCache = pNew; }
static long GetMinPrtLine() { return nMinPrtLine; }
- static void SetMinPrtLine( long nNew ) { nMinPrtLine = nNew; }
inline sal_uInt16 GetCacheIdx() const { return nCacheIdx; }
inline void SetCacheIdx( const sal_uInt16 nNew ) { nCacheIdx = nNew; }
@@ -693,23 +673,6 @@ inline bool SwTextFrm::HasPara() const
return nCacheIdx!=USHRT_MAX && _HasPara();
}
-/// 9104: Frm().Height() - Prt().Height(), see widorp.cxx and 7455, 6114, 7908
-inline SwTwips SwTextFrm::GetRstHeight() const
-{
- return !GetUpper() ? 0 : static_cast<const SwFrm*>(GetUpper())->Frm().Top()
- + static_cast<const SwFrm*>(GetUpper())->Prt().Top()
- + static_cast<const SwFrm*>(GetUpper())->Prt().Height()
- - Frm().Top() - (Frm().Height() - Prt().Height());
-}
-
-inline SwTwips SwTextFrm::GetLeftMargin() const
-{
- return Frm().Left() + Prt().Left();
-}
-inline SwTwips SwTextFrm::GetRightMargin() const
-{
- return Frm().Left() + Prt().Left() + Prt().Width();
-}
inline SwTwips SwTextFrm::GrowTst( const SwTwips nGrow )
{
return Grow( nGrow, true );
@@ -751,13 +714,6 @@ inline const SwTextFrm *SwTextFrm::GetFrmAtPos( const SwPosition &rPos) const
return const_cast<SwTextFrm*>(this)->GetFrmAtPos( rPos );
}
-inline void SwTextFrm::AdjustFollow( SwTextFormatter &rLine,
- const sal_Int32 nOffset, const sal_Int32 nStrEnd, const sal_uInt8 nMode )
-{
- if ( HasFollow() )
- _AdjustFollow( rLine, nOffset, nStrEnd, nMode );
-}
-
inline void SwTextFrm::SetOfst( const sal_Int32 nNewOfst )
{
if ( nOfst != nNewOfst )