diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-10 23:04:00 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-02-16 22:52:26 +0100 |
commit | 4e36974dcc9448768542c2acf558f27f0189b651 (patch) | |
tree | 13be3e40eb078c4cf0bfc228e085b9a4ee74d01f /sw | |
parent | 48aa3dd3dddffee3aef7a8c3dc77853fb7cd4e9a (diff) |
sal_Bool to bool, sal_uInt8 to sal_Int32
Change-Id: Icb6081ea018ee28fc932db0425dfd980021e7eb8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/itrcrsr.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/text/porlin.hxx | 88 |
2 files changed, 43 insertions, 47 deletions
diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx index ffbe4f667450..69c3c254e07f 100644 --- a/sw/source/core/text/itrcrsr.cxx +++ b/sw/source/core/text/itrcrsr.cxx @@ -625,7 +625,7 @@ void SwTxtCursor::_GetCharRect( SwRect* pOrig, const sal_Int32 nOfst, // For common portions (including BidiPortions) we want to add // the portion width to nX. For MultiPortions, nExtra = 0, // therefore we go to the 'else' branch and start a recursion. - const sal_uInt8 nExtra = pPor->IsMultiPortion() && + const sal_Int32 nExtra = pPor->IsMultiPortion() && ! ((SwMultiPortion*)pPor)->IsBidi() && ! bWidth ? 0 : 1; if ( aInf.GetIdx() + pPor->GetLen() < nOfst + nExtra ) diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx index cf5a9ff983f8..ccec88a25473 100644 --- a/sw/source/core/text/porlin.hxx +++ b/sw/source/core/text/porlin.hxx @@ -109,53 +109,49 @@ public: inline MSHORT GetWhichPor( ) const { return nWhichPor; } // Group queries - inline sal_Bool InTxtGrp( ) const { return nWhichPor & PORGRP_TXT ? sal_True : sal_False; } - inline sal_Bool InGlueGrp( ) const { return nWhichPor & PORGRP_GLUE ? sal_True : sal_False;} - inline sal_Bool InTabGrp( ) const { return nWhichPor & PORGRP_TAB ? sal_True : sal_False; } - inline sal_Bool InHyphGrp( ) const { return nWhichPor & PORGRP_HYPH ? sal_True : sal_False;} - inline sal_Bool InNumberGrp( )const { return nWhichPor & PORGRP_NUMBER ? sal_True : sal_False;} - inline sal_Bool InFixGrp( ) const { return nWhichPor & PORGRP_FIX ? sal_True : sal_False; } - inline sal_Bool InFldGrp( ) const { return nWhichPor & PORGRP_FLD ? sal_True : sal_False; } - inline sal_Bool InToxRefGrp( ) const { return nWhichPor & PORGRP_TOXREF ? sal_True : sal_False; } - inline sal_Bool InToxRefOrFldGrp( ) const { return nWhichPor & - ( PORGRP_FLD | PORGRP_TOXREF ) ? sal_True : sal_False; } - inline sal_Bool InExpGrp( ) const { return nWhichPor & PORGRP_EXP ? sal_True : sal_False; } - inline sal_Bool InTabnLftGrp( ) const - { return nWhichPor & PORGRP_TABNOTLFT ? sal_True : sal_False; } - inline sal_Bool InFixMargGrp( )const - { return nWhichPor & PORGRP_FIXMARG ? sal_True : sal_False; } - inline sal_Bool InSpaceGrp( )const - { return InTxtGrp() || IsMultiPortion(); } + inline bool InTxtGrp() const { return nWhichPor & PORGRP_TXT; } + inline bool InGlueGrp() const { return nWhichPor & PORGRP_GLUE; } + inline bool InTabGrp() const { return nWhichPor & PORGRP_TAB; } + inline bool InHyphGrp() const { return nWhichPor & PORGRP_HYPH; } + inline bool InNumberGrp() const { return nWhichPor & PORGRP_NUMBER; } + inline bool InFixGrp() const { return nWhichPor & PORGRP_FIX; } + inline bool InFldGrp() const { return nWhichPor & PORGRP_FLD; } + inline bool InToxRefGrp() const { return nWhichPor & PORGRP_TOXREF; } + inline bool InToxRefOrFldGrp() const { return nWhichPor & ( PORGRP_FLD | PORGRP_TOXREF ); } + inline bool InExpGrp() const { return nWhichPor & PORGRP_EXP; } + inline bool InTabnLftGrp() const { return nWhichPor & PORGRP_TABNOTLFT; } + inline bool InFixMargGrp() const { return nWhichPor & PORGRP_FIXMARG; } + inline bool InSpaceGrp() const { return InTxtGrp() || IsMultiPortion(); } // Individual queries - inline sal_Bool IsGrfNumPortion( )const{ return nWhichPor == POR_GRFNUM; } - inline sal_Bool IsFlyCntPortion( )const{ return nWhichPor == POR_FLYCNT; } - inline sal_Bool IsBlankPortion( ) const{ return nWhichPor == POR_BLANK; } - inline sal_Bool IsBreakPortion( ) const{ return nWhichPor == POR_BRK; } - inline sal_Bool IsErgoSumPortion()const{ return nWhichPor == POR_ERGOSUM;} - inline sal_Bool IsQuoVadisPortion()const{ return nWhichPor==POR_QUOVADIS;} - inline sal_Bool IsTabCntPortion( )const{ return nWhichPor==POR_TABCENTER;} - inline sal_Bool IsTabDecimalPortion() const { return nWhichPor == POR_TABDECIMAL;} - inline sal_Bool IsTabLeftPortion()const{ return nWhichPor == POR_TABLEFT;} - inline sal_Bool IsFtnNumPortion( )const{ return nWhichPor == POR_FTNNUM; } - inline sal_Bool IsFtnPortion( ) const{ return nWhichPor == POR_FTN; } - inline sal_Bool IsTmpEndPortion( )const{ return nWhichPor == POR_TMPEND; } - inline sal_Bool IsDropPortion( ) const{ return nWhichPor == POR_DROP; } - inline sal_Bool IsLayPortion( ) const{ return nWhichPor == POR_LAY; } - inline sal_Bool IsParaPortion( ) const{ return nWhichPor == POR_PARA; } - inline sal_Bool IsMarginPortion( )const{ return nWhichPor == POR_MARGIN; } - inline sal_Bool IsFlyPortion( ) const{ return nWhichPor == POR_FLY; } - inline sal_Bool IsHolePortion( ) const{ return nWhichPor == POR_HOLE; } - inline sal_Bool IsSoftHyphPortion()const{ return nWhichPor==POR_SOFTHYPH;} - inline sal_Bool IsPostItsPortion()const{ return nWhichPor == POR_POSTITS;} - inline sal_Bool IsCombinedPortion()const{ return nWhichPor==POR_COMBINED;} - inline sal_Bool IsTextPortion( ) const{ return nWhichPor == POR_TXT; } - inline sal_Bool IsURLPortion( ) const{ return nWhichPor == POR_URL; } - inline sal_Bool IsHangingPortion( ) const{ return nWhichPor == POR_HNG; } - inline sal_Bool IsKernPortion( ) const{ return nWhichPor == POR_KERN; } - inline sal_Bool IsArrowPortion( ) const{ return nWhichPor == POR_ARROW; } - inline sal_Bool IsMultiPortion( ) const{ return nWhichPor == POR_MULTI; } - inline sal_Bool IsNumberPortion( ) const{ return nWhichPor == POR_NUMBER; } // #i23726# - inline sal_Bool IsControlCharPortion() const { return nWhichPor == POR_CONTROLCHAR; } + inline bool IsGrfNumPortion() const { return nWhichPor == POR_GRFNUM; } + inline bool IsFlyCntPortion() const { return nWhichPor == POR_FLYCNT; } + inline bool IsBlankPortion() const { return nWhichPor == POR_BLANK; } + inline bool IsBreakPortion() const { return nWhichPor == POR_BRK; } + inline bool IsErgoSumPortion() const { return nWhichPor == POR_ERGOSUM; } + inline bool IsQuoVadisPortion() const { return nWhichPor == POR_QUOVADIS; } + inline bool IsTabCntPortion() const { return nWhichPor == POR_TABCENTER; } + inline bool IsTabDecimalPortion() const { return nWhichPor == POR_TABDECIMAL; } + inline bool IsTabLeftPortion() const { return nWhichPor == POR_TABLEFT; } + inline bool IsFtnNumPortion() const { return nWhichPor == POR_FTNNUM; } + inline bool IsFtnPortion() const { return nWhichPor == POR_FTN; } + inline bool IsTmpEndPortion() const { return nWhichPor == POR_TMPEND; } + inline bool IsDropPortion() const { return nWhichPor == POR_DROP; } + inline bool IsLayPortion() const { return nWhichPor == POR_LAY; } + inline bool IsParaPortion() const { return nWhichPor == POR_PARA; } + inline bool IsMarginPortion() const { return nWhichPor == POR_MARGIN; } + inline bool IsFlyPortion() const { return nWhichPor == POR_FLY; } + inline bool IsHolePortion() const { return nWhichPor == POR_HOLE; } + inline bool IsSoftHyphPortion() const { return nWhichPor == POR_SOFTHYPH; } + inline bool IsPostItsPortion() const { return nWhichPor == POR_POSTITS; } + inline bool IsCombinedPortion() const { return nWhichPor == POR_COMBINED; } + inline bool IsTextPortion() const { return nWhichPor == POR_TXT; } + inline bool IsURLPortion() const { return nWhichPor == POR_URL; } + inline bool IsHangingPortion() const { return nWhichPor == POR_HNG; } + inline bool IsKernPortion() const { return nWhichPor == POR_KERN; } + inline bool IsArrowPortion() const { return nWhichPor == POR_ARROW; } + inline bool IsMultiPortion() const { return nWhichPor == POR_MULTI; } + inline bool IsNumberPortion() const { return nWhichPor == POR_NUMBER; } // #i23726# + inline bool IsControlCharPortion() const { return nWhichPor == POR_CONTROLCHAR; } // Positioning SwLinePortion *FindPrevPortion( const SwLinePortion *pRoot ); |