summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsf.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:00:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:23 +0100
commit608953c42590c3100eaa46ba686560403d1b8d03 (patch)
treea0b706f6199e17174fc61b8948c5b63e8490ff72 /sd/source/ui/view/drviewsf.cxx
parente7d1a81ee3befa9e9444fe5bf5c4ced9c98eecf5 (diff)
bool improvements
Change-Id: Icac34936bdb551ad517170fd497212513719d2aa
Diffstat (limited to 'sd/source/ui/view/drviewsf.cxx')
-rw-r--r--sd/source/ui/view/drviewsf.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx
index 6ed5dbc46fee..4032e6fb2e01 100644
--- a/sd/source/ui/view/drviewsf.cxx
+++ b/sd/source/ui/view/drviewsf.cxx
@@ -201,7 +201,7 @@ void DrawViewShell::GetCtrlState(SfxItemSet &rSet)
if ( SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_MAIL_SCROLLBODY_PAGEDOWN) )
{
- rSet.Put( SfxBoolItem( SID_MAIL_SCROLLBODY_PAGEDOWN, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_MAIL_SCROLLBODY_PAGEDOWN, true ) );
}
if ( SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_ATTR_YEAR2000) )
@@ -295,7 +295,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
SvxAdjust eAdj = aItem.GetAdjust();
if ( eAdj == SVX_ADJUST_LEFT)
{
- rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_LEFT, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_LEFT, true ) );
}
bAttr = sal_True;
@@ -312,7 +312,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
SvxAdjust eAdj = aItem.GetAdjust();
if ( eAdj == SVX_ADJUST_CENTER)
{
- rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_CENTER, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_CENTER, true ) );
}
bAttr = sal_True;
@@ -329,7 +329,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
SvxAdjust eAdj = aItem.GetAdjust();
if ( eAdj == SVX_ADJUST_RIGHT)
{
- rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_RIGHT, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_RIGHT, true ) );
}
bAttr = sal_True;
@@ -346,7 +346,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
SvxAdjust eAdj = aItem.GetAdjust();
if ( eAdj == SVX_ADJUST_BLOCK)
{
- rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_BLOCK, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_BLOCK, true ) );
}
bAttr = sal_True;
@@ -487,7 +487,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
{
ISfxTemplateCommon* pTemplateCommon = SFX_APP()->GetCurrentTemplateCommon(GetViewFrame()->GetBindings());
if (pTemplateCommon && pTemplateCommon->GetActualFamily() == SD_STYLE_FAMILY_PSEUDO)
- rSet.Put(SfxBoolItem(nWhich,sal_False));
+ rSet.Put(SfxBoolItem(nWhich,false));
else
{
SfxBoolItem aItem(nWhich, SD_MOD()->GetWaterCan());
@@ -559,7 +559,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
mpDrawView->GetAttributes( aEditAttr );
SfxItemSet aNewAttr( GetPool(), EE_ITEMS_START, EE_ITEMS_END );
- aNewAttr.Put( aEditAttr, sal_False );
+ aNewAttr.Put( aEditAttr, false );
SvxNumRule* pNumRule = NULL;
@@ -652,8 +652,8 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
}
if (bEnable)
{
- rSet.Put(SfxBoolItem(FN_NUM_BULLET_ON, sal_False));
- rSet.Put(SfxBoolItem(FN_NUM_NUMBERING_ON, sal_False));
+ rSet.Put(SfxBoolItem(FN_NUM_BULLET_ON, false));
+ rSet.Put(SfxBoolItem(FN_NUM_NUMBERING_ON, false));
}
else
{
@@ -672,10 +672,10 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
{
pSet = new SfxItemSet( GetDoc()->GetPool() );
mpDrawView->GetAttributes( *pSet );
- rSet.Put( *pSet, sal_False );
+ rSet.Put( *pSet, false );
}
- rSet.Put( aAllSet, sal_False );
+ rSet.Put( aAllSet, false );
// there were changes at area and/or line attributes
if( bAttr && pSet )
@@ -720,11 +720,11 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet )
pSet->Get( EE_CHAR_ESCAPEMENT ) ).GetEnumValue();
if( eEsc == SVX_ESCAPEMENT_SUPERSCRIPT )
{
- rSet.Put( SfxBoolItem( SID_SET_SUPER_SCRIPT, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_SET_SUPER_SCRIPT, true ) );
}
else if( eEsc == SVX_ESCAPEMENT_SUBSCRIPT )
{
- rSet.Put( SfxBoolItem( SID_SET_SUB_SCRIPT, sal_True ) );
+ rSet.Put( SfxBoolItem( SID_SET_SUB_SCRIPT, true ) );
}
eState = pSet->GetItemState( EE_CHAR_KERNING, sal_True );