diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-28 19:40:54 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-29 15:39:56 +0100 |
commit | 11670f4949ab5cea02d66b187f04c4e5e5efe4a3 (patch) | |
tree | 7bf89706e1bfac2038c02da3383e017dda1f6606 /sw/source/core/text/inftxt.cxx | |
parent | 7058bf6c3d41f8390befc04cad871f8b930ace29 (diff) |
Remove double line spacing, unused code and some unnecessary brackets.
Diffstat (limited to 'sw/source/core/text/inftxt.cxx')
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 6f7d185a66e8..6137324901ab 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -117,29 +117,17 @@ static sal_Bool bDbgLow = sal_False; #endif #if OSL_DEBUG_LEVEL > 1 - sal_Bool SwTxtSizeInfo::IsOptCalm() const { return !GetOpt().IsTest3(); } - sal_Bool SwTxtSizeInfo::IsOptLow() const { return bDbgLow; } - sal_Bool SwTxtSizeInfo::IsOptDbg() const { return GetOpt().IsTest4(); } - sal_Bool SwTxtSizeInfo::IsOptTest1() const { return GetOpt().IsTest1(); } - sal_Bool SwTxtSizeInfo::IsOptTest2() const { return GetOpt().IsTest2(); } - sal_Bool SwTxtSizeInfo::IsOptTest3() const { return GetOpt().IsTest3(); } - sal_Bool SwTxtSizeInfo::IsOptTest4() const { return GetOpt().IsTest4(); } - sal_Bool SwTxtSizeInfo::IsOptTest5() const { return GetOpt().IsTest5(); } - sal_Bool SwTxtSizeInfo::IsOptTest6() const { return GetOpt().IsTest6(); } - sal_Bool SwTxtSizeInfo::IsOptTest7() const { return GetOpt().IsTest7(); } - sal_Bool SwTxtSizeInfo::IsOptTest8() const { return GetOpt().IsTest8(); } - #endif /************************************************************************* @@ -163,7 +151,6 @@ SwLineInfo::~SwLineInfo() void SwLineInfo::CtorInitLineInfo( const SwAttrSet& rAttrSet, const SwTxtNode& rTxtNode ) { -// pRuler = &rAttrSet.GetTabStops(); delete pRuler; pRuler = new SvxTabStopItem( rAttrSet.GetTabStops() ); if ( rTxtNode.GetListTabStopPosition( nListTabStopPosition ) ) @@ -336,18 +323,6 @@ void SwTxtSizeInfo::CtorInitTxtSizeInfo( SwTxtFrm *pFrame, SwFont *pNewFnt, nDirection = DIR_LEFT2RIGHT; } -/* LanguageType eLang; - const SvtCTLOptions& rCTLOptions = SW_MOD()->GetCTLOptions(); - if ( SvtCTLOptions::NUMERALS_HINDI == rCTLOptions.GetCTLTextNumerals() ) - eLang = LANGUAGE_ARABIC_SAUDI_ARABIA; - else if ( SvtCTLOptions::NUMERALS_ARABIC == rCTLOptions.GetCTLTextNumerals() ) - eLang = LANGUAGE_ENGLISH; - else - eLang = (LanguageType)::GetAppLanguage(); - - pOut->SetDigitLanguage( eLang ); - pRef->SetDigitLanguage( eLang );*/ - // // The Options // @@ -1626,12 +1601,6 @@ xub_StrLen SwTxtFormatInfo::ScanPortionEnd( const xub_StrLen nStart, bool bNumFound = false; const bool bTabCompat = GetTxtFrm()->GetTxtNode()->getIDocumentSettingAccess()->get(IDocumentSettingAccess::TAB_COMPAT); - // Removed for i7288. bSkip used to be passed from SwFldPortion::Format - // as IsFollow(). Therefore more than one special character was not - // handled correctly at the beginning of follow fields. -// if ( bSkip && i < nEnd ) -// ++i; - for( ; i < nEnd; ++i ) { const xub_Unicode cPos = GetChar( i ); @@ -1650,8 +1619,6 @@ xub_StrLen SwTxtFormatInfo::ScanPortionEnd( const xub_StrLen nStart, case CH_BREAK: case CHAR_ZWSP : case CHAR_ZWNBSP : -// case CHAR_RLM : -// case CHAR_LRM : cHookChar = cPos; return i; |