From 49c2b9808df8a6b197dec666dfc0cda6321a4306 Mon Sep 17 00:00:00 2001 From: Robinson Tryon Date: Wed, 25 Nov 2015 06:03:10 -0500 Subject: bin/rename-sw-abbreviations.sh This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8 --- sw/source/core/text/widorp.hxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sw/source/core/text/widorp.hxx') diff --git a/sw/source/core/text/widorp.hxx b/sw/source/core/text/widorp.hxx index 207bfe3117e5..8b214a3f5e4f 100644 --- a/sw/source/core/text/widorp.hxx +++ b/sw/source/core/text/widorp.hxx @@ -18,22 +18,22 @@ */ #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_WIDORP_HXX #define INCLUDED_SW_SOURCE_CORE_TEXT_WIDORP_HXX -class SwTextFrm; +class SwTextFrame; #include "swtypes.hxx" #include "itrtxt.hxx" -class SwTextFrmBreak +class SwTextFrameBreak { private: SwTwips m_nRstHeight; SwTwips m_nOrigin; protected: - SwTextFrm *m_pFrm; + SwTextFrame *m_pFrame; bool m_bBreak; bool m_bKeep; public: - SwTextFrmBreak( SwTextFrm *pFrm, const SwTwips nRst = 0 ); + SwTextFrameBreak( SwTextFrame *pFrame, const SwTwips nRst = 0 ); bool IsBreakNow( SwTextMargin &rLine ); bool IsKeepAlways() const { return m_bKeep; } @@ -42,7 +42,7 @@ public: bool IsInside( SwTextMargin &rLine ) const; // In order to be able to handle special cases with Footnote. - // SetRstHeight sets the rest height for SwTextFrmBreak. This is needed + // SetRstHeight sets the rest height for SwTextFrameBreak. This is needed // to call TruncLines() without IsBreakNow() returning another value. // We assume that rLine is pointing to the last non-fitting line. @@ -50,25 +50,25 @@ public: void SetRstHeight( const SwTextMargin &rLine ); }; -class WidowsAndOrphans : public SwTextFrmBreak +class WidowsAndOrphans : public SwTextFrameBreak { private: sal_uInt16 nWidLines, nOrphLines; public: - WidowsAndOrphans( SwTextFrm *pFrm, const SwTwips nRst = 0, + WidowsAndOrphans( SwTextFrame *pFrame, const SwTwips nRst = 0, bool bCheckKeep = true ); - bool FindWidows( SwTextFrm *pFrm, SwTextMargin &rLine ); + bool FindWidows( SwTextFrame *pFrame, SwTextMargin &rLine ); sal_uInt16 GetWidowsLines() const { return nWidLines; } sal_uInt16 GetOrphansLines() const { return nOrphLines; } void ClrOrphLines(){ nOrphLines = 0; } - bool FindBreak( SwTextFrm *pFrm, SwTextMargin &rLine, bool bHasToFit ); + bool FindBreak( SwTextFrame *pFrame, SwTextMargin &rLine, bool bHasToFit ); bool WouldFit( SwTextMargin &rLine, SwTwips &rMaxHeight, bool bTest ); // OD 2004-02-25 #i16128# - rename method to avoid confusion with base class - // method , which isn't virtual. + // method , which isn't virtual. bool IsBreakNowWidAndOrp( SwTextMargin &rLine ) { bool isOnFirstLine = (rLine.GetLineNr() == 1 && !rLine.GetPrev()); -- cgit v1.2.3