Kaydet (Commit) 87214657 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_Bool to bool

Change-Id: I5f09b1832fa453299c4f8a455d2f3499225550a1
üst ace25568
...@@ -128,8 +128,7 @@ void SwEditShell::Insert2(const OUString &rStr, const bool bForceExpandHints ) ...@@ -128,8 +128,7 @@ void SwEditShell::Insert2(const OUString &rStr, const bool bForceExpandHints )
if ( nPrevPos ) if ( nPrevPos )
--nPrevPos; --nPrevPos;
SwScriptInfo* pSI = SwScriptInfo::GetScriptInfo( ((SwTxtNode&)rNode), SwScriptInfo* pSI = SwScriptInfo::GetScriptInfo( ((SwTxtNode&)rNode), true );
sal_True );
sal_uInt8 nLevel = 0; sal_uInt8 nLevel = 0;
if ( ! pSI ) if ( ! pSI )
......
...@@ -91,7 +91,7 @@ public: ...@@ -91,7 +91,7 @@ public:
~SwScriptInfo(); ~SwScriptInfo();
// determines script changes // determines script changes
void InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL ); void InitScriptInfo( const SwTxtNode& rNode, bool bRTL );
void InitScriptInfo( const SwTxtNode& rNode ); void InitScriptInfo( const SwTxtNode& rNode );
// set/get position from which data is invalid // set/get position from which data is invalid
...@@ -361,7 +361,7 @@ public: ...@@ -361,7 +361,7 @@ public:
long nSpaceAdd = 0 ); long nSpaceAdd = 0 );
static SwScriptInfo* GetScriptInfo( const SwTxtNode& rNode, static SwScriptInfo* GetScriptInfo( const SwTxtNode& rNode,
sal_Bool bAllowInvalid = sal_False ); bool bAllowInvalid = false );
static sal_uInt8 WhichFont(sal_Int32 nIdx, const OUString* pTxt, const SwScriptInfo* pSI); static sal_uInt8 WhichFont(sal_Int32 nIdx, const OUString* pTxt, const SwScriptInfo* pSI);
}; };
......
...@@ -293,7 +293,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -293,7 +293,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
bool bOnlyPostIts = true; bool bOnlyPostIts = true;
SetHanging( false ); SetHanging( false );
sal_Bool bTmpDummy = ( 0 == GetLen() ); bool bTmpDummy = !GetLen();
SwFlyCntPortion* pFlyCnt = 0; SwFlyCntPortion* pFlyCnt = 0;
if( bTmpDummy ) if( bTmpDummy )
{ {
...@@ -316,7 +316,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -316,7 +316,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
{ {
SetLen( pPortion->GetLen() ); SetLen( pPortion->GetLen() );
if( GetLen() ) if( GetLen() )
bTmpDummy = sal_False; bTmpDummy = false;
} }
else else
{ {
...@@ -464,7 +464,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -464,7 +464,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
} }
} }
else if( pPos->GetLen() ) else if( pPos->GetLen() )
bTmpDummy = sal_False; bTmpDummy = false;
if( !HasCntnt() && !pPos->InNumberGrp() ) if( !HasCntnt() && !pPos->InNumberGrp() )
{ {
...@@ -479,8 +479,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf ) ...@@ -479,8 +479,7 @@ void SwLineLayout::CalcLine( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf )
SetCntnt(); SetCntnt();
} }
bTmpDummy = bTmpDummy && !HasCntnt() && bTmpDummy &= !HasCntnt() && ( !pPos->Width() || pPos->IsFlyPortion() );
( !pPos->Width() || pPos->IsFlyPortion() );
pLast = pPos; pLast = pPos;
pPos = pPos->GetPortion(); pPos = pPos->GetPortion();
...@@ -582,7 +581,7 @@ void SwLineLayout::MaxAscentDescent( SwTwips& _orAscent, ...@@ -582,7 +581,7 @@ void SwLineLayout::MaxAscentDescent( SwTwips& _orAscent,
SwTwips nPortionDesc = static_cast<SwTwips>(pTmpPortion->Height()) - SwTwips nPortionDesc = static_cast<SwTwips>(pTmpPortion->Height()) -
nPortionAsc; nPortionAsc;
const sal_Bool bFlyCmp = pTmpPortion->IsFlyCntPortion() ? const bool bFlyCmp = pTmpPortion->IsFlyCntPortion() ?
static_cast<const SwFlyCntPortion*>(pTmpPortion)->IsMax() : static_cast<const SwFlyCntPortion*>(pTmpPortion)->IsMax() :
!( pTmpPortion == _pDontConsiderPortion ); !( pTmpPortion == _pDontConsiderPortion );
...@@ -672,7 +671,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode ) ...@@ -672,7 +671,7 @@ void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode )
InitScriptInfo( rNode, nDefaultDir == UBIDI_RTL ); InitScriptInfo( rNode, nDefaultDir == UBIDI_RTL );
} }
void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, sal_Bool bRTL ) void SwScriptInfo::InitScriptInfo( const SwTxtNode& rNode, bool bRTL )
{ {
if( !g_pBreakIt->GetBreakIter().is() ) if( !g_pBreakIt->GetBreakIter().is() )
return; return;
...@@ -2056,7 +2055,7 @@ sal_Int32 SwScriptInfo::ThaiJustify( const OUString& rTxt, sal_Int32* pKernArray ...@@ -2056,7 +2055,7 @@ sal_Int32 SwScriptInfo::ThaiJustify( const OUString& rTxt, sal_Int32* pKernArray
} }
SwScriptInfo* SwScriptInfo::GetScriptInfo( const SwTxtNode& rTNd, SwScriptInfo* SwScriptInfo::GetScriptInfo( const SwTxtNode& rTNd,
sal_Bool bAllowInvalid ) bool bAllowInvalid )
{ {
SwIterator<SwTxtFrm,SwTxtNode> aIter( rTNd ); SwIterator<SwTxtFrm,SwTxtNode> aIter( rTNd );
SwScriptInfo* pScriptInfo = 0; SwScriptInfo* pScriptInfo = 0;
...@@ -2181,7 +2180,7 @@ void SwScriptInfo::selectHiddenTextProperty(const SwTxtNode& rNode, MultiSelecti ...@@ -2181,7 +2180,7 @@ void SwScriptInfo::selectHiddenTextProperty(const SwTxtNode& rNode, MultiSelecti
|| (rNode.GetTxt().getLength() == rHiddenMulti.GetTotalRange().Len())); || (rNode.GetTxt().getLength() == rHiddenMulti.GetTotalRange().Len()));
const SfxPoolItem* pItem = 0; const SfxPoolItem* pItem = 0;
if( SFX_ITEM_SET == rNode.GetSwAttrSet().GetItemState( RES_CHRATR_HIDDEN, sal_True, &pItem ) && if( SFX_ITEM_SET == rNode.GetSwAttrSet().GetItemState( RES_CHRATR_HIDDEN, true, &pItem ) &&
((SvxCharHiddenItem*)pItem)->GetValue() ) ((SvxCharHiddenItem*)pItem)->GetValue() )
{ {
rHiddenMulti.SelectAll(); rHiddenMulti.SelectAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment