summaryrefslogtreecommitdiff
path: root/svtools/source/control
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control')
-rw-r--r--svtools/source/control/calendar.cxx4
-rw-r--r--svtools/source/control/ctrlbox.cxx22
-rw-r--r--svtools/source/control/filectrl.cxx2
-rw-r--r--svtools/source/control/headbar.cxx4
-rw-r--r--svtools/source/control/inettbc.cxx2
-rw-r--r--svtools/source/control/roadmap.cxx4
-rw-r--r--svtools/source/control/ruler.cxx4
-rw-r--r--svtools/source/control/stdmenu.cxx10
-rw-r--r--svtools/source/control/tabbar.cxx4
-rw-r--r--svtools/source/control/toolbarmenu.cxx6
-rw-r--r--svtools/source/control/valueset.cxx12
11 files changed, 37 insertions, 37 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index d1708d60b5e9..f9589b89bd4c 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -2485,7 +2485,7 @@ void CalendarField::Select()
// -----------------------------------------------------------------------
-sal_Bool CalendarField::ShowDropDown( sal_Bool bShow )
+bool CalendarField::ShowDropDown( sal_Bool bShow )
{
if ( bShow )
{
@@ -2530,7 +2530,7 @@ sal_Bool CalendarField::ShowDropDown( sal_Bool bShow )
mpCalendar->EndSelection();
EndDropDown();
}
- return sal_True;
+ return true;
}
// -----------------------------------------------------------------------
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index a75e2d555593..5997da3ed221 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -88,7 +88,7 @@ void ColorListBox::ImplInit()
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
aImageSize = rStyleSettings.GetListBoxPreviewDefaultPixelSize();
- EnableUserDraw( sal_True );
+ EnableUserDraw( true );
SetUserItemSize( aImageSize );
}
@@ -308,13 +308,13 @@ void ColorListBox::UserDraw( const UserDrawEvent& rUDEvt )
}
}
- ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_False );
+ ListBox::DrawEntry( rUDEvt, false, true, false );
}
else
- ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_True );
+ ListBox::DrawEntry( rUDEvt, false, true, true );
}
else
- ListBox::DrawEntry( rUDEvt, sal_True, sal_True, sal_False );
+ ListBox::DrawEntry( rUDEvt, true, true, false );
}
// =======================================================================
@@ -921,7 +921,7 @@ sal_Bool LineListBox::UpdatePaintLineColor( void )
void LineListBox::UpdateEntries( long nOldWidth )
{
- SetUpdateMode( sal_False );
+ SetUpdateMode( false );
UpdatePaintLineColor( );
@@ -960,7 +960,7 @@ void LineListBox::UpdateEntries( long nOldWidth )
n++;
}
- SetUpdateMode( sal_True );
+ SetUpdateMode( true );
Invalidate();
}
@@ -1391,11 +1391,11 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt )
}
rUDEvt.GetDevice()->SetFont( aOldFont );
- DrawEntry( rUDEvt, sal_False, sal_False); // draw separator
+ DrawEntry( rUDEvt, false, false); // draw separator
}
else
{
- DrawEntry( rUDEvt, sal_True, sal_True );
+ DrawEntry( rUDEvt, true, true );
}
}
@@ -1669,7 +1669,7 @@ FontSizeBox::~FontSizeBox()
void FontSizeBox::ImplInit()
{
- EnableAutocomplete( sal_False );
+ EnableAutocomplete( false );
bRelativeMode = sal_False;
bPtRelative = sal_False;
@@ -1677,7 +1677,7 @@ void FontSizeBox::ImplInit()
bStdSize = sal_False;
pFontList = NULL;
- SetShowTrailingZeros( sal_False );
+ SetShowTrailingZeros( false );
SetDecimalDigits( 1 );
SetMin( 20 );
SetMax( 9999 );
@@ -1957,7 +1957,7 @@ void FontSizeBox::SetValue( sal_Int64 nNewValue, FieldUnit eInUnit )
mnLastValue = nTempValue;
SetText( aName );
mnFieldValue = mnLastValue;
- SetEmptyFieldValueData( sal_False );
+ SetEmptyFieldValueData( false );
return;
}
}
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index 19856d2c8d75..75c38696eb86 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -48,7 +48,7 @@ FileControl::FileControl( Window* pParent, WinBits nStyle, FileControlMode nFlag
maButton.Show();
maEdit.Show();
- SetCompoundControl( sal_True );
+ SetCompoundControl( true );
SetStyle( ImplInitStyle( GetStyle() ) );
}
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx
index 1a25cbe05f8c..7df2ec124bf0 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -385,9 +385,9 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
// draw ButtonStyle
// avoid 3D borders
if( bHigh )
- DrawSelectionBackground( aRect, 1, sal_True, sal_False, sal_False, &aSelectionTextColor );
+ DrawSelectionBackground( aRect, 1, true, false, false, &aSelectionTextColor );
else if ( !mbButtonStyle || (nBits & HIB_FLAT) )
- DrawSelectionBackground( aRect, 0, sal_True, sal_False, sal_False, &aSelectionTextColor );
+ DrawSelectionBackground( aRect, 0, true, false, false, &aSelectionTextColor );
}
// do not draw if there is no space
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index d527408ce235..ac0529c6399a 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -895,7 +895,7 @@ void SvtURLBox::Init(bool bSetDefaultHelpID)
if (bSetDefaultHelpID && GetHelpId().isEmpty())
SetHelpId( ".uno:OpenURL" );
- EnableAutocomplete( sal_False );
+ EnableAutocomplete( false );
SetText( OUString() );
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index d75d61456b50..dc4ea873e5d3 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -228,7 +228,7 @@ namespace svt
// on this with calculating a new bold font.
// Unfortunately, the OutputDevice does not offer a notify mechanism for a changed font.
// So settings the font from outside is simply a forbidded scenario at the moment
- EnableMapMode( sal_False );
+ EnableMapMode( false );
}
//---------------------------------------------------------------------
@@ -617,7 +617,7 @@ namespace svt
// draw it
DrawText( Rectangle( aTextPos, aOutputSize ), GetText(), TEXT_DRAW_LEFT | TEXT_DRAW_TOP | TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK );
- DrawTextLine( aTextPos, aOutputSize.Width(), STRIKEOUT_NONE, UNDERLINE_SINGLE, UNDERLINE_NONE, sal_False );
+ DrawTextLine( aTextPos, aOutputSize.Width(), STRIKEOUT_NONE, UNDERLINE_SINGLE, UNDERLINE_NONE, false );
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
SetLineColor( rStyleSettings.GetFieldTextColor());
SetTextColor(rStyleSettings.GetFieldTextColor());
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 0778237b06d0..115eea59abe4 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -216,7 +216,7 @@ void Ruler::ImplInit( WinBits nWinBits )
// --- RTL --- no UI mirroring for horizontal rulers, because
// the document is also not mirrored
- EnableRTL( sal_False );
+ EnableRTL( false );
}
// Variablen initialisieren
@@ -1133,7 +1133,7 @@ void Ruler::ImplFormat()
aVirDevSize.Width() = mnVirHeight;
}
if ( aVirDevSize != maVirDev.GetOutputSizePixel() )
- maVirDev.SetOutputSizePixel( aVirDevSize, sal_True );
+ maVirDev.SetOutputSizePixel( aVirDevSize, true );
else
maVirDev.Erase();
diff --git a/svtools/source/control/stdmenu.cxx b/svtools/source/control/stdmenu.cxx
index 04fbe3e0da7c..a8c08377619d 100644
--- a/svtools/source/control/stdmenu.cxx
+++ b/svtools/source/control/stdmenu.cxx
@@ -106,13 +106,13 @@ void FontNameMenu::SetCurName(const OUString& rName)
OUString aText = GetItemText( nItemId );
if ( aText == maCurName )
{
- CheckItem( nItemId, sal_True );
+ CheckItem( nItemId, true );
return;
}
}
if ( nChecked )
- CheckItem( nChecked, sal_False );
+ CheckItem( nChecked, false );
}
// ========================================================================
@@ -219,7 +219,7 @@ void FontSizeMenu::Fill( const FontInfo& rInfo, const FontList* pList )
{
mpHeightAry[nPos] = *pTempAry;
nPos++; // Id is nPos+1
- InsertItem( nPos, rI18nHelper.GetNum( *pTempAry, 1, sal_True, sal_False ), MIB_RADIOCHECK | MIB_AUTOCHECK );
+ InsertItem( nPos, rI18nHelper.GetNum( *pTempAry, 1, true, false ), MIB_RADIOCHECK | MIB_AUTOCHECK );
pTempAry++;
}
@@ -241,7 +241,7 @@ void FontSizeMenu::SetCurHeight( long nHeight )
if ( mpHeightAry[i] == nHeight )
{
- CheckItem( nItemId, sal_True );
+ CheckItem( nItemId, true );
return;
}
@@ -250,7 +250,7 @@ void FontSizeMenu::SetCurHeight( long nHeight )
}
if ( nChecked )
- CheckItem( nChecked, sal_False );
+ CheckItem( nChecked, false );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 16d7c7a4a0a6..382ca95c879b 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -334,7 +334,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
// We need this query, because the edit get a losefous event,
// when it shows the context menu or the insert symbol dialog
- if ( !HasFocus() && HasChildPathFocus( sal_True ) )
+ if ( !HasFocus() && HasChildPathFocus( true ) )
{
maLoseFocusTimer.SetTimeout( 30 );
maLoseFocusTimer.SetTimeoutHdl( LINK( this, TabBarEdit, ImplEndTimerHdl ) );
@@ -355,7 +355,7 @@ IMPL_LINK_NOARG(TabBarEdit, ImplEndTimerHdl)
// We need this query, because the edit get a losefous event,
// when it shows the context menu or the insert symbol dialog
- if ( HasChildPathFocus( sal_True ) )
+ if ( HasChildPathFocus( true ) )
maLoseFocusTimer.Start();
else
GetParent()->EndEditMode( sal_True );
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index 9c394116c310..a6965112c8e8 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -140,7 +140,7 @@ const Reference< XAccessibleContext >& ToolbarMenuEntry::GetAccessible( bool bCr
{
if( mpControl )
{
- mxAccContext = Reference< XAccessibleContext >( mpControl->GetAccessible( sal_True ), UNO_QUERY );
+ mxAccContext = Reference< XAccessibleContext >( mpControl->GetAccessible( true ), UNO_QUERY );
}
else
{
@@ -920,7 +920,7 @@ void ToolbarMenu::implHighlightEntry( int nHighlightEntry, bool bHighlight )
if( bHighlight && IsNativeControlSupported( CTRL_MENU_POPUP, PART_MENU_ITEM ) )
{
bDrawItemRect = false;
- if( sal_False == DrawNativeControl( CTRL_MENU_POPUP, PART_MENU_ITEM,
+ if( !DrawNativeControl( CTRL_MENU_POPUP, PART_MENU_ITEM,
aItemRect,
CTRL_STATE_SELECTED | ( pEntry->mbEnabled? CTRL_STATE_ENABLED: 0 ),
ImplControlValue(),
@@ -1308,7 +1308,7 @@ static void ImplPaintCheckBackground( Window* i_pWindow, const Rectangle& i_rRec
{
const StyleSettings& rSettings = i_pWindow->GetSettings().GetStyleSettings();
Color aColor( i_bHighlight ? rSettings.GetMenuHighlightTextColor() : rSettings.GetHighlightColor() );
- i_pWindow->DrawSelectionBackground( i_rRect, 0, i_bHighlight, sal_True, sal_False, 2, NULL, &aColor );
+ i_pWindow->DrawSelectionBackground( i_rRect, 0, i_bHighlight, true, false, 2, NULL, &aColor );
}
}
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 934dba08407a..c661b268189e 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -130,7 +130,7 @@ ValueSet::ValueSet( Window* pParent, const ResId& rResId, bool bDisableTransient
ValueSet::~ValueSet()
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>
- xComponent (GetAccessible(sal_False), ::com::sun::star::uno::UNO_QUERY);
+ xComponent (GetAccessible(false), ::com::sun::star::uno::UNO_QUERY);
if (xComponent.is())
xComponent->dispose ();
@@ -505,7 +505,7 @@ void ValueSet::Format()
// Init VirDev
maVirDev.SetSettings( GetSettings() );
maVirDev.SetBackground( GetBackground() );
- maVirDev.SetOutputSizePixel( aWinSize, sal_True );
+ maVirDev.SetOutputSizePixel( aWinSize, true );
// nothing is changed in case of too small items
if ( (mnItemWidth <= 0) ||
@@ -1126,7 +1126,7 @@ sal_uInt16 ValueSet::ImplGetVisibleItemCount() const
void ValueSet::ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue )
{
- ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( sal_False ) );
+ ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( false ) );
if( pAcc )
pAcc->FireAccessibleEvent( nEventId, rOldValue, rNewValue );
@@ -1136,7 +1136,7 @@ void ValueSet::ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::
bool ValueSet::ImplHasAccessibleListeners()
{
- ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( sal_False ) );
+ ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( false ) );
return( pAcc && pAcc->HasAccessibleListeners() );
}
@@ -1498,7 +1498,7 @@ void ValueSet::GetFocus()
Control::GetFocus();
// Tell the accessible object that we got the focus.
- ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( sal_False ) );
+ ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( false ) );
if( pAcc )
pAcc->GetFocus();
}
@@ -1515,7 +1515,7 @@ void ValueSet::LoseFocus()
Control::LoseFocus();
// Tell the accessible object that we lost the focus.
- ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( sal_False ) );
+ ValueSetAcc* pAcc = ValueSetAcc::getImplementation( GetAccessible( false ) );
if( pAcc )
pAcc->LoseFocus();
}