summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-21 12:53:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-21 12:53:51 +0100
commite8f8f24c8415898c787bbfb629247ed62e73a2b9 (patch)
treedae18a3acbf29c192118e7c003f80df8da8e21ae /editeng
parent1c8402465cfd4df862409dc310f5f099d044c4d8 (diff)
vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editattr.cxx6
-rw-r--r--editeng/source/editeng/editdoc.cxx2
-rw-r--r--editeng/source/editeng/editsel.cxx10
-rw-r--r--editeng/source/editeng/editsel.hxx4
-rw-r--r--editeng/source/editeng/editview.cxx6
-rw-r--r--editeng/source/editeng/impedit2.cxx4
-rw-r--r--editeng/source/editeng/impedit3.cxx6
-rw-r--r--editeng/source/items/bulitem.cxx2
-rw-r--r--editeng/source/items/svxfont.cxx4
-rw-r--r--editeng/source/misc/swafopt.cxx2
10 files changed, 23 insertions, 23 deletions
diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx
index d5e7e23f94bf..b764d47d8efc 100644
--- a/editeng/source/editeng/editattr.cxx
+++ b/editeng/source/editeng/editattr.cxx
@@ -244,7 +244,7 @@ EditCharAttribShadow::EditCharAttribShadow( const SvxShadowedItem& rAttr, sal_uI
void EditCharAttribShadow::SetFont( SvxFont& rFont, OutputDevice* )
{
- rFont.SetShadow( (sal_Bool)((const SvxShadowedItem*)GetItem())->GetValue() );
+ rFont.SetShadow( ((const SvxShadowedItem*)GetItem())->GetValue() );
}
// -------------------------------------------------------------------------
@@ -280,7 +280,7 @@ EditCharAttribOutline::EditCharAttribOutline( const SvxContourItem& rAttr, sal_u
void EditCharAttribOutline::SetFont( SvxFont& rFont, OutputDevice* )
{
- rFont.SetOutline( (sal_Bool)((const SvxContourItem*)GetItem())->GetValue() );
+ rFont.SetOutline( ((const SvxContourItem*)GetItem())->GetValue() );
}
// -------------------------------------------------------------------------
@@ -325,7 +325,7 @@ void EditCharAttribField::SetFont( SvxFont& rFont, OutputDevice* )
if ( pFldColor )
{
rFont.SetFillColor( *pFldColor );
- rFont.SetTransparent( sal_False );
+ rFont.SetTransparent( false );
}
if ( pTxtColor )
rFont.SetColor( *pTxtColor );
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 51ba58791968..0478e343fef8 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1918,7 +1918,7 @@ void CreateFont( SvxFont& rFont, const SfxItemSet& rSet, bool bSearchInParent, s
{
Font aPrevFont( rFont );
rFont.SetAlign( ALIGN_BASELINE );
- rFont.SetTransparent( sal_True );
+ rFont.SetTransparent( true );
sal_uInt16 nWhich_FontInfo = GetScriptItemId( EE_CHAR_FONTINFO, nScriptType );
sal_uInt16 nWhich_Language = GetScriptItemId( EE_CHAR_LANGUAGE, nScriptType );
diff --git a/editeng/source/editeng/editsel.cxx b/editeng/source/editeng/editsel.cxx
index 23d13ba30032..1ef2fddd997d 100644
--- a/editeng/source/editeng/editsel.cxx
+++ b/editeng/source/editeng/editsel.cxx
@@ -44,20 +44,20 @@ void EditSelFunctionSet::DestroyAnchor()
// Only with multiple selection
}
-sal_Bool EditSelFunctionSet::SetCursorAtPoint( const Point& rPointPixel, sal_Bool )
+bool EditSelFunctionSet::SetCursorAtPoint( const Point& rPointPixel, sal_Bool )
{
if ( pCurView )
return pCurView->pImpEditView->SetCursorAtPoint( rPointPixel );
- return sal_False;
+ return false;
}
-sal_Bool EditSelFunctionSet::IsSelectionAtPoint( const Point& rPointPixel )
+bool EditSelFunctionSet::IsSelectionAtPoint( const Point& rPointPixel )
{
if ( pCurView )
return pCurView->pImpEditView->IsSelectionAtPoint( rPointPixel );
- return sal_False;
+ return false;
}
void EditSelFunctionSet::DeselectAtPoint( const Point& )
@@ -85,7 +85,7 @@ void EditSelFunctionSet::DeselectAll()
EditSelectionEngine::EditSelectionEngine() : SelectionEngine( (Window*)0 )
{
SetSelectionMode( RANGE_SELECTION );
- EnableDrag( sal_True );
+ EnableDrag( true );
}
void EditSelectionEngine::SetCurView( EditView* pNewView )
diff --git a/editeng/source/editeng/editsel.hxx b/editeng/source/editeng/editsel.hxx
index 769e832ffccf..c9073e5d4032 100644
--- a/editeng/source/editeng/editsel.hxx
+++ b/editeng/source/editeng/editsel.hxx
@@ -37,9 +37,9 @@ public:
virtual void CreateAnchor();
virtual void DestroyAnchor();
- virtual sal_Bool SetCursorAtPoint( const Point& rPointPixel, sal_Bool bDontSelectAtCursor = sal_False );
+ virtual bool SetCursorAtPoint( const Point& rPointPixel, sal_Bool bDontSelectAtCursor = sal_False );
- virtual sal_Bool IsSelectionAtPoint( const Point& rPointPixel );
+ virtual bool IsSelectionAtPoint( const Point& rPointPixel );
virtual void DeselectAtPoint( const Point& rPointPixel );
virtual void DeselectAll();
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index cd1badd6ab64..637a1c597374 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -901,11 +901,11 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack )
}
}
if ( pInsertMenu->GetItemCount() != 1)
- aPopupMenu.EnableItem( MN_INSERT_SINGLE, sal_False );
+ aPopupMenu.EnableItem( MN_INSERT_SINGLE, false );
if ( pInsertMenu->GetItemCount() < 2 )
- aPopupMenu.EnableItem( MN_INSERT, sal_False );
+ aPopupMenu.EnableItem( MN_INSERT, false );
- aPopupMenu.RemoveDisabledEntries( sal_True, sal_True );
+ aPopupMenu.RemoveDisabledEntries( true, true );
Rectangle aTempRect = PIMPEE->PaMtoEditCursor( aPaM, GETCRSR_TXTONLY );
Point aScreenPos = pImpEditView->GetWindowPos( aTempRect.TopLeft() );
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 7ab6412297a0..43d3f702482c 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -318,7 +318,7 @@ sal_Bool ImpEditEngine::MouseButtonDown( const MouseEvent& rMEvt, EditView* pVie
if ( rMEvt.GetClicks() == 2 )
{
// So that the SelectionEngine knows about the anchor.
- aSelEngine.CursorPosChanging( sal_True, sal_False );
+ aSelEngine.CursorPosChanging( true, false );
EditSelection aNewSelection( SelectWord( aCurSel ) );
pView->pImpEditView->DrawSelection();
@@ -329,7 +329,7 @@ sal_Bool ImpEditEngine::MouseButtonDown( const MouseEvent& rMEvt, EditView* pVie
else if ( rMEvt.GetClicks() == 3 )
{
// So that the SelectionEngine knows about the anchor.
- aSelEngine.CursorPosChanging( sal_True, sal_False );
+ aSelEngine.CursorPosChanging( true, false );
EditSelection aNewSelection( aCurSel );
aNewSelection.Min().SetIndex( 0 );
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index a6968724da5b..88337a915341 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -2763,7 +2763,7 @@ void ImpEditEngine::SeekCursor( ContentNode* pNode, sal_Int32 nPos, SvxFont& rFo
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
rFont.SetColor( rStyleSettings.GetHighlightTextColor() );
rFont.SetFillColor( rStyleSettings.GetHighlightColor() );
- rFont.SetTransparent( sal_False );
+ rFont.SetTransparent( false );
}
else if ( nAttr & EXTTEXTINPUT_ATTR_GRAYWAVELINE )
{
@@ -3004,7 +3004,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRect, Point aSt
( GetBackgroundColor() != COL_AUTO ) && GetBackgroundColor().IsDark() &&
( IsAutoColorEnabled() && ( pOutDev->GetOutDevType() != OUTDEV_PRINTER ) ) )
{
- aTmpFont.SetTransparent( sal_True );
+ aTmpFont.SetTransparent( true );
pOutDev->SetFillColor();
pOutDev->SetLineColor( GetAutoColor() );
bDrawFrame = true;
@@ -3514,7 +3514,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRect, Point aSt
if ( pTextPortion->GetExtraValue() && ( pTextPortion->GetExtraValue() != ' ' ) )
{
SeekCursor( pPortion->GetNode(), nIndex+1, aTmpFont, pOutDev );
- aTmpFont.SetTransparent( sal_False );
+ aTmpFont.SetTransparent( false );
aTmpFont.SetEscapement( 0 );
aTmpFont.SetPhysFont( pOutDev );
long nCharWidth = aTmpFont.QuickGetTextSize( pOutDev,
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx
index 9c64912139be..b9d687df002e 100644
--- a/editeng/source/items/bulitem.cxx
+++ b/editeng/source/items/bulitem.cxx
@@ -211,7 +211,7 @@ void SvxBulletItem::SetDefaultFont_Impl()
{
aFont = OutputDevice::GetDefaultFont( DEFAULTFONT_FIXED, LANGUAGE_SYSTEM, 0 );
aFont.SetAlign( ALIGN_BOTTOM);
- aFont.SetTransparent( sal_True );
+ aFont.SetTransparent( true );
}
// -----------------------------------------------------------------------
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx
index cf67643fc2f0..636c1535f366 100644
--- a/editeng/source/items/svxfont.cxx
+++ b/editeng/source/items/svxfont.cxx
@@ -678,8 +678,8 @@ void SvxDoDrawCapital::DoSpace( const sal_Bool bDraw )
{
sal_Bool bWordWise = pFont->IsWordLineMode();
sal_Bool bTrans = pFont->IsTransparent();
- pFont->SetWordLineMode( sal_False );
- pFont->SetTransparent( sal_True );
+ pFont->SetWordLineMode( false );
+ pFont->SetTransparent( true );
pFont->SetPhysFont( pOut );
pOut->DrawStretchText( aSpacePos, nDiff, " ", 0, 2 );
pFont->SetWordLineMode( bWordWise );
diff --git a/editeng/source/misc/swafopt.cxx b/editeng/source/misc/swafopt.cxx
index 0ac6368c28a7..fd81eff75eda 100644
--- a/editeng/source/misc/swafopt.cxx
+++ b/editeng/source/misc/swafopt.cxx
@@ -68,7 +68,7 @@ SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
aBulletFont.SetFamily( FAMILY_DONTKNOW );
aBulletFont.SetPitch( PITCH_DONTKNOW );
aBulletFont.SetWeight( WEIGHT_DONTKNOW );
- aBulletFont.SetTransparent( sal_True );
+ aBulletFont.SetTransparent( true );
cBullet = 0x2022;
cByInputBullet = cBullet;