summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:56 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commit8dc5f89346fa0f6820d5fd0b1ad4092168967f12 (patch)
treef3742c90480393565c89ffdd0cb1cee639c65d0d
parent286dfc2a720ea8bd6b26c10126202fa25a112e0f (diff)
loplugin: defaultparams
Change-Id: I79a889c68e91712d2abdacc559c78813f730e623
-rw-r--r--vcl/generic/print/genprnpsp.cxx4
-rw-r--r--vcl/generic/print/prtsetup.cxx4
-rw-r--r--vcl/source/app/dbggui.cxx12
-rw-r--r--vcl/source/app/help.cxx2
-rw-r--r--vcl/source/app/svapp.cxx4
-rw-r--r--vcl/source/control/button.cxx28
-rw-r--r--vcl/source/control/combobox.cxx6
-rw-r--r--vcl/source/control/edit.cxx4
-rw-r--r--vcl/source/control/field2.cxx4
-rw-r--r--vcl/source/control/fixed.cxx18
-rw-r--r--vcl/source/control/group.cxx4
-rw-r--r--vcl/source/control/ilstbox.cxx28
-rw-r--r--vcl/source/control/lstbox.cxx2
-rw-r--r--vcl/source/control/morebtn.cxx2
-rw-r--r--vcl/source/control/prgsbar.cxx2
-rw-r--r--vcl/source/control/scrbar.cxx2
-rw-r--r--vcl/source/control/slider.cxx6
-rw-r--r--vcl/source/control/tabctrl.cxx10
-rw-r--r--vcl/source/edit/texteng.cxx4
-rw-r--r--vcl/source/edit/textview.cxx6
-rw-r--r--vcl/source/edit/xtextedt.cxx4
-rw-r--r--vcl/source/filter/graphicfilter.cxx2
-rw-r--r--vcl/source/filter/ixpm/xpmread.cxx2
-rw-r--r--vcl/source/filter/wmf/emfwr.cxx2
-rw-r--r--vcl/source/filter/wmf/enhwmf.cxx2
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx18
-rw-r--r--vcl/source/fontsubset/cff.cxx2
-rw-r--r--vcl/source/gdi/metaact.cxx32
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx8
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx4
-rw-r--r--vcl/source/gdi/pngwrite.cxx2
-rw-r--r--vcl/source/gdi/print2.cxx2
-rw-r--r--vcl/source/gdi/print3.cxx4
-rw-r--r--vcl/source/gdi/wall.cxx4
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx2
-rw-r--r--vcl/source/outdev/transparent.cxx2
-rw-r--r--vcl/source/window/accessibility.cxx2
-rw-r--r--vcl/source/window/brdwin.cxx4
-rw-r--r--vcl/source/window/dialog.cxx10
-rw-r--r--vcl/source/window/dlgctrl.cxx2
-rw-r--r--vcl/source/window/dockingarea.cxx2
-rw-r--r--vcl/source/window/dockmgr.cxx2
-rw-r--r--vcl/source/window/dockwin.cxx2
-rw-r--r--vcl/source/window/menu.cxx8
-rw-r--r--vcl/source/window/menubarwindow.cxx4
-rw-r--r--vcl/source/window/printdlg.cxx10
-rw-r--r--vcl/source/window/settings.cxx2
-rw-r--r--vcl/source/window/status.cxx2
-rw-r--r--vcl/source/window/tabpage.cxx6
-rw-r--r--vcl/source/window/taskpanelist.cxx4
-rw-r--r--vcl/source/window/toolbox.cxx12
-rw-r--r--vcl/source/window/toolbox2.cxx2
-rw-r--r--vcl/source/window/window.cxx6
-rw-r--r--vcl/source/window/window2.cxx3
-rw-r--r--vcl/unx/generic/printer/jobdata.cxx4
55 files changed, 165 insertions, 166 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index 1a18c80476b8..044206698d66 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -137,7 +137,7 @@ namespace
EndDialog( 1 );
}
else
- EndDialog(0);
+ EndDialog();
return 0;
}
@@ -639,7 +639,7 @@ bool PspSalInfoPrinter::SetData(
pValue = pKey->getValueCaseInsensitive( aPaper );
}
- if( ! ( pKey && pValue && aData.m_aContext.setValue( pKey, pValue, false ) == pValue ) )
+ if( ! ( pKey && pValue && aData.m_aContext.setValue( pKey, pValue ) == pValue ) )
return false;
}
diff --git a/vcl/generic/print/prtsetup.cxx b/vcl/generic/print/prtsetup.cxx
index 0a7ab60334c8..8e2799cca27f 100644
--- a/vcl/generic/print/prtsetup.cxx
+++ b/vcl/generic/print/prtsetup.cxx
@@ -47,7 +47,7 @@ void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDParser* pParser, con
{
if( rBox.GetEntryPos( static_cast<void const *>(pValue) ) == LISTBOX_ENTRY_NOTFOUND )
{
- nPos = rBox.InsertEntry( aOptionText, LISTBOX_APPEND );
+ nPos = rBox.InsertEntry( aOptionText );
rBox.SetEntryData( nPos, const_cast<PPDValue *>(pValue) );
}
}
@@ -154,7 +154,7 @@ IMPL_LINK( RTSDialog, ClickButton, Button*, pButton )
EndDialog( 1 );
}
else if( pButton == m_pCancelButton )
- EndDialog( 0 );
+ EndDialog();
return 0;
}
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx
index f696bd3cce5f..dbd122bad5ca 100644
--- a/vcl/source/app/dbggui.cxx
+++ b/vcl/source/app/dbggui.cxx
@@ -260,7 +260,7 @@ DbgDialog::DbgDialog() :
maRes->Show();
maRes->SetText("~Resourcen");
if ( pData->nTestFlags & DBG_TEST_RESOURCE )
- maRes->Check( true );
+ maRes->Check();
maRes->SetPosSizePixel( LogicToPixel( Point( 75, 95 ), aAppMap ),
aButtonSize );
}
@@ -269,7 +269,7 @@ DbgDialog::DbgDialog() :
maDialog->Show();
maDialog->SetText("~Dialog");
if ( pData->nTestFlags & DBG_TEST_DIALOG )
- maDialog->Check( true );
+ maDialog->Check();
maDialog->SetPosSizePixel( LogicToPixel( Point( 140, 95 ), aAppMap ),
aButtonSize );
}
@@ -278,7 +278,7 @@ DbgDialog::DbgDialog() :
maBoldAppFont->Show();
maBoldAppFont->SetText("~Bold AppFont");
if ( pData->nTestFlags & DBG_TEST_BOLDAPPFONT )
- maBoldAppFont->Check( true );
+ maBoldAppFont->Check();
maBoldAppFont->SetPosSizePixel( LogicToPixel( Point( 205, 95 ), aAppMap ),
aButtonSize );
maBoldAppFont->SaveValue();
@@ -587,14 +587,14 @@ void DbgDialogTest( vcl::Window* pWindow )
switch( pChild->GetType() )
{
case WINDOW_RADIOBUTTON:
- aWidth = static_cast<RadioButton*>(pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<RadioButton*>(pChild)->CalcMinimumSize().Width();
break;
case WINDOW_CHECKBOX:
case WINDOW_TRISTATEBOX:
- aWidth = static_cast<CheckBox*>(pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<CheckBox*>(pChild)->CalcMinimumSize().Width();
break;
case WINDOW_PUSHBUTTON:
- aWidth = static_cast<PushButton*>(pChild)->CalcMinimumSize(0).Width();
+ aWidth = static_cast<PushButton*>(pChild)->CalcMinimumSize().Width();
break;
default: break;
}
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index c41ff9faf38d..f8702df094db 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -278,7 +278,7 @@ void HelpTextWindow::ApplySettings(vcl::RenderContext& rRenderContext)
if (rRenderContext.IsNativeControlSupported(CTRL_TOOLTIP, PART_ENTIRE_CONTROL))
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index c7dff0b1952d..265d0b219c7b 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1332,7 +1332,7 @@ SystemWindowFlags Application::GetSystemWindowMode()
::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > Application::GetVCLToolkit()
{
::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > xT;
- UnoWrapperBase* pWrapper = Application::GetUnoWrapper( true );
+ UnoWrapperBase* pWrapper = Application::GetUnoWrapper();
if ( pWrapper )
xT = pWrapper->GetVCLToolkit();
return xT;
@@ -1357,7 +1357,7 @@ UnoWrapperBase* Application::GetUnoWrapper( bool bCreateIfNotExist )
#ifndef DISABLE_DYNLOADING
osl::Module aTkLib;
OUString aLibName(TK_DLL_NAME);
- aTkLib.loadRelative(&thisModule, aLibName, SAL_LOADMODULE_DEFAULT);
+ aTkLib.loadRelative(&thisModule, aLibName);
if (aTkLib.is())
{
FN_TkCreateUnoWrapper fnCreateWrapper = reinterpret_cast<FN_TkCreateUnoWrapper>(aTkLib.getFunctionSymbol("CreateUnoWrapper"));
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index f5dd84c6c4fe..dadb241fa25d 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -697,7 +697,7 @@ void PushButton::ImplInitSettings( bool bFont,
if ( IsNativeControlSupported( CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL ) ||
(GetStyle() & WB_FLATBUTTON) != 0 )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
@@ -709,7 +709,7 @@ void PushButton::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
}
}
@@ -1167,7 +1167,7 @@ void PushButton::ImplSetDefButton( bool bSet )
ImplGetButtonState() &= ~DrawButtonFlags::Default;
}
if( bSetPos )
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
@@ -1243,7 +1243,7 @@ void PushButton::Tracking( const TrackingEvent& rTEvt )
ImplGetButtonState() &= ~DrawButtonFlags::Pressed;
}
else
- Check( true );
+ Check();
}
}
else
@@ -1328,7 +1328,7 @@ void PushButton::KeyUp( const KeyEvent& rKEvt )
ImplGetButtonState() &= ~DrawButtonFlags::Pressed;
}
else
- Check( true );
+ Check();
Toggle();
}
@@ -1755,7 +1755,7 @@ void CancelButton::Click()
if ( pParent->IsDialog() )
{
if ( static_cast<Dialog*>(pParent)->IsInExecute() )
- static_cast<Dialog*>(pParent)->EndDialog( RET_CANCEL );
+ static_cast<Dialog*>(pParent)->EndDialog();
// prevent recursive calls
else if ( !static_cast<Dialog*>(pParent)->IsInClose() )
{
@@ -1862,7 +1862,7 @@ void RadioButton::ImplInitSettings( bool bFont,
if ( !IsControlBackground() &&
(pParent->IsChildTransparentModeEnabled() || IsNativeControlSupported( CTRL_RADIOBUTTON, PART_ENTIRE_CONTROL ) ) )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -1872,7 +1872,7 @@ void RadioButton::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -3000,7 +3000,7 @@ void CheckBox::ImplInitSettings( bool bFont,
if ( !IsControlBackground() &&
(pParent->IsChildTransparentModeEnabled() || IsNativeControlSupported( CTRL_CHECKBOX, PART_ENTIRE_CONTROL ) ) )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -3010,7 +3010,7 @@ void CheckBox::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -3028,7 +3028,7 @@ void CheckBox::ImplLoadRes( const ResId& rResId )
sal_uInt16 nChecked = ReadShortRes();
//anderer Wert als Default ?
if( nChecked )
- Check( true );
+ Check();
}
void CheckBox::ImplDrawCheckBoxState(vcl::RenderContext& rRenderContext)
@@ -3470,7 +3470,7 @@ void CheckBox::GetFocus()
aPos.Move(-1,-1);
aSize.Height() += 2;
aSize.Width() += 2;
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
else
@@ -3501,7 +3501,7 @@ void CheckBox::LoseFocus()
aPos.Move(1,1);
aSize.Height() -= 2;
aSize.Width() -= 2;
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
}
@@ -3859,7 +3859,7 @@ ImageRadioButton::ImageRadioButton( vcl::Window* pParent, WinBits nStyle ) :
TriStateBox::TriStateBox( vcl::Window* pParent, WinBits nStyle ) :
CheckBox( pParent, nStyle )
{
- EnableTriState( true );
+ EnableTriState();
}
DisclosureButton::DisclosureButton( vcl::Window* pParent, WinBits nStyle ) :
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index bc041ea0117f..e13bfdc3e5be 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -281,7 +281,7 @@ void ComboBox::ImplLoadRes( const ResId& rResId )
{
for( sal_Int32 i = 0; i < nNumber; i++ )
{
- InsertEntry( ReadStringRes(), LISTBOX_APPEND );
+ InsertEntry( ReadStringRes() );
}
}
}
@@ -385,12 +385,12 @@ void ComboBox::Impl::ImplAutocompleteHandler( Edit* pEdit )
if (!m_isMatchCase)
{
// Try match case insensitive from current position
- nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText, nStart, bForward, true );
+ nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText, nStart, bForward );
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
// Try match case insensitive, but from start
nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText,
bForward ? 0 : (m_pImplLB->GetEntryList()->GetEntryCount()-1),
- bForward, true );
+ bForward );
}
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 39f5bf0c683d..b4e56f47fa86 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2294,7 +2294,7 @@ void Edit::StateChanged( StateChangedType nType )
{
if (!mpSubEdit)
{
- ImplShowCursor(true);
+ ImplShowCursor();
Invalidate();
}
}
@@ -2333,7 +2333,7 @@ void Edit::DataChanged( const DataChangedEvent& rDCEvt )
{
if ( !mpSubEdit )
{
- ImplShowCursor( true );
+ ImplShowCursor();
Invalidate();
}
}
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index d35a4e769067..dbda25e86123 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2497,7 +2497,7 @@ TimeField::TimeField( vcl::Window* pParent, WinBits nWinStyle ) :
maLast( GetMax() )
{
SetField( this );
- SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false, false ) );
+ SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false ) );
Reformat();
}
@@ -2634,7 +2634,7 @@ TimeBox::TimeBox( vcl::Window* pParent, WinBits nWinStyle ) :
ComboBox( pParent, nWinStyle )
{
SetField( this );
- SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false, false ) );
+ SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false ) );
Reformat();
}
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index bdbff17f22da..990f1a6cf2d3 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -210,7 +210,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -218,7 +218,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -621,7 +621,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -629,7 +629,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -707,7 +707,7 @@ void FixedLine::DataChanged( const DataChangedEvent& rDCEvt )
Size FixedLine::GetOptimalSize() const
{
- return CalcWindowSize( FixedText::CalcMinimumTextSize ( this, 0x7fffffff ) );
+ return CalcWindowSize( FixedText::CalcMinimumTextSize ( this ) );
}
void FixedBitmap::ImplInit( vcl::Window* pParent, WinBits nStyle )
@@ -753,7 +753,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -761,7 +761,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -923,7 +923,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent && pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -931,7 +931,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index 1c2ca0ca57f7..18906a58efc4 100644
--- a/vcl/source/control/group.cxx
+++ b/vcl/source/control/group.cxx
@@ -67,7 +67,7 @@ void GroupBox::ImplInitSettings( bool bFont,
!(pParent->GetStyle() & WB_CLIPCHILDREN) ) &&
!IsControlBackground() )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -75,7 +75,7 @@ void GroupBox::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 78145cf8e8dc..59051a153413 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -1149,7 +1149,7 @@ bool ImplListBoxWindow::SelectEntries( sal_Int32 nSelect, LB_EVENT_TYPE eLET, bo
if( bFocusChanged )
{
- long nHeightDiff = mpEntryList->GetAddedHeight( nSelect, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( nSelect, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(),
mpEntryList->GetEntryHeight( nSelect ) );
@@ -1189,7 +1189,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
mbTrackingSelect = false;
if ( mnTrackingSaveSelection != LISTBOX_ENTRY_NOTFOUND )
{
- long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(),
mpEntryList->GetEntryHeight( mnCurrentPos ) );
@@ -1322,7 +1322,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
}
else
{
- long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(), mpEntryList->GetEntryHeight( mnCurrentPos ) );
maFocusRect.SetSize( aSz );
@@ -1365,7 +1365,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( mnCurrentPos )
{
@@ -1392,12 +1392,12 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
// search first selectable below the current position
- nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos + 1, true );
+ nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos + 1 );
}
if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect >= GetLastVisibleEntry() ) )
@@ -1421,7 +1421,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( mnCurrentPos )
{
@@ -1432,7 +1432,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
}
// find first selectable starting from mnTop looking forward
- nSelect = mpEntryList->FindFirstSelectable( mnTop, true );
+ nSelect = mpEntryList->FindFirstSelectable( mnTop );
}
bDone = true;
}
@@ -1450,7 +1450,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
@@ -1484,7 +1484,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if ( mnCurrentPos )
{
- nSelect = mpEntryList->FindFirstSelectable( mpEntryList->GetEntryCount() ? 0 : LISTBOX_ENTRY_NOTFOUND, true );
+ nSelect = mpEntryList->FindFirstSelectable( mpEntryList->GetEntryCount() ? 0 : LISTBOX_ENTRY_NOTFOUND );
if( mnTop != 0 )
SetTopEntry( 0 );
@@ -1505,7 +1505,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
@@ -1893,7 +1893,7 @@ void ImplListBoxWindow::ImplDoPaint(vcl::RenderContext& rRenderContext, const Re
nY += pEntry->mnHeight;
}
- long nHeightDiff = mpEntryList->GetAddedHeight(mnCurrentPos, mnTop, 0);
+ long nHeightDiff = mpEntryList->GetAddedHeight(mnCurrentPos, mnTop);
maFocusRect.SetPos(Point(0, nHeightDiff));
Size aSz(maFocusRect.GetWidth(), mpEntryList->GetEntryHeight(mnCurrentPos));
maFocusRect.SetSize(aSz);
@@ -1944,7 +1944,7 @@ void ImplListBoxWindow::GetFocus()
sal_Int32 nPos = mnCurrentPos;
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
nPos = 0;
- long nHeightDiff = mpEntryList->GetAddedHeight( nPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( nPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(), mpEntryList->GetEntryHeight( nPos ) );
maFocusRect.SetSize( aSz );
@@ -1975,7 +1975,7 @@ void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop )
if ( nTop != mnTop )
{
ImplClearLayoutData();
- long nDiff = mpEntryList->GetAddedHeight( mnTop, nTop, 0 );
+ long nDiff = mpEntryList->GetAddedHeight( mnTop, nTop );
Update();
ImplHideFocusRect();
mnTop = nTop;
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 315e405b7a7a..ba085d718425 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -199,7 +199,7 @@ void ListBox::ImplLoadRes( const ResId& rResId )
for( sal_Int32 i = 0; i < nNumber; i++ )
{
- sal_Int32 nPos = InsertEntry( ReadStringRes(), LISTBOX_APPEND );
+ sal_Int32 nPos = InsertEntry( ReadStringRes() );
sal_IntPtr nId = ReadLongRes();
if( nId )
diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx
index 5e7e104e13a9..2ae1e52bc087 100644
--- a/vcl/source/control/morebtn.cxx
+++ b/vcl/source/control/morebtn.cxx
@@ -47,7 +47,7 @@ void MoreButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
SetSymbolAlign(SymbolAlign::RIGHT);
SetImageAlign(ImageAlign::Right); //Resoves: fdo#31849 ensure button remains vertically centered
- SetSmallSymbol(true);
+ SetSmallSymbol();
if ( ! ( nStyle & ( WB_RIGHT | WB_LEFT ) ) )
{
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index f069b4341d78..2e1dce50bea0 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -80,7 +80,7 @@ void ProgressBar::ImplInitSettings( bool bFont,
{
if( (GetStyle() & WB_BORDER) )
SetBorderStyle( WindowBorderStyle::REMOVEBORDER );
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetPaintTransparent( true );
SetBackground();
SetParentClipMode( ParentClipMode::NoClip );
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index b786ddd9621a..8a4345fe399f 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1195,7 +1195,7 @@ void ScrollBar::StateChanged( StateChangedType nType )
else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
- ImplCalc( true );
+ ImplCalc();
}
else if ( nType == StateChangedType::UpdateMode )
{
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 02fa450540d5..c1c9a34d0f14 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -98,7 +98,7 @@ void Slider::ImplInitSettings()
vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -106,7 +106,7 @@ void Slider::ImplInitSettings()
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -901,7 +901,7 @@ void Slider::StateChanged( StateChangedType nType )
else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
- ImplCalc( true );
+ ImplCalc();
}
else if ( nType == StateChangedType::UpdateMode )
{
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index d8053c40b55b..2cda79ca6a34 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -112,7 +112,7 @@ void TabControl::ImplInit( vcl::Window* pParent, WinBits nStyle )
// if the tabcontrol is drawn (ie filled) by a native widget, make sure all contols will have transparent background
// otherwise they will paint with a wrong background
if( IsNativeControlSupported(CTRL_TAB_PANE, PART_ENTIRE_CONTROL) )
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
if (pParent && pParent->IsDialog())
pParent->AddChildEventListener( LINK( this, TabControl, ImplWindowEventListener ) );
@@ -144,7 +144,7 @@ void TabControl::ImplInitSettings( bool bFont,
{
// set transparent mode for NWF tabcontrols to have
// the background always cleared properly
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -153,7 +153,7 @@ void TabControl::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -1059,7 +1059,7 @@ void TabControl::KeyInput( const KeyEvent& rKEvt )
void TabControl::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect)
{
if (!(GetStyle() & WB_NOBORDER))
- ImplPaint(rRenderContext, rRect, false);
+ ImplPaint(rRenderContext, rRect);
}
void TabControl::ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bLayout)
@@ -1231,7 +1231,7 @@ void TabControl::ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle&
if (bLayout || !aClipRgn.IsEmpty())
{
ImplDrawItem(rRenderContext, pItem, aCurRect, bLayout,
- pItem == pFirstTab, pItem == pLastTab, false);
+ pItem == pFirstTab, pItem == pLastTab);
}
}
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 69af62728932..dc09eb3c89ee 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -656,7 +656,7 @@ bool TextEngine::IsInputSequenceCheckingRequired( sal_Unicode c, const TextSelec
TextPaM TextEngine::ImpInsertText( const TextSelection& rCurSel, sal_Unicode c, bool bOverwrite )
{
- return ImpInsertText( c, rCurSel, bOverwrite, false );
+ return ImpInsertText( c, rCurSel, bOverwrite );
}
TextPaM TextEngine::ImpInsertText( sal_Unicode c, const TextSelection& rCurSel, bool bOverwrite, bool bIsUserInput )
@@ -3092,7 +3092,7 @@ long TextEngine::ImpGetOutputOffset( sal_uLong nPara, TextLine* pLine, sal_uInt1
nX = ImpGetXPos( nPara, pLine, nIndex, nIndex == nPortionStart );
if ( nIndex2 != nIndex )
{
- long nX2 = ImpGetXPos( nPara, pLine, nIndex2, false );
+ long nX2 = ImpGetXPos( nPara, pLine, nIndex2 );
if ( ( !IsRightToLeft() && ( nX2 < nX ) ) ||
( IsRightToLeft() && ( nX2 > nX ) ) )
{
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index f680f23a5e9d..6c650201e28d 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -880,7 +880,7 @@ void TextView::MouseButtonDown( const MouseEvent& rMouseEvent )
}
ImpSetSelection( aNewSel );
ShowSelection();
- ShowCursor( true, true );
+ ShowCursor();
}
}
else if ( rMouseEvent.GetClicks() == 3 )
@@ -894,7 +894,7 @@ void TextView::MouseButtonDown( const MouseEvent& rMouseEvent )
aNewSel.GetEnd().GetIndex() = mpImpl->mpTextEngine->mpDoc->GetNodes()[ mpImpl->maSelection.GetEnd().GetPara() ]->GetText().getLength();
ImpSetSelection( aNewSel );
ShowSelection();
- ShowCursor( true, true );
+ ShowCursor();
}
}
}
@@ -1175,7 +1175,7 @@ void TextView::Paste( uno::Reference< datatransfer::clipboard::XClipboard >& rxC
bool bWasTruncated = false;
if( mpImpl->mpTextEngine->GetMaxTextLen() != 0 )
bWasTruncated = ImplTruncateNewText( aText );
- InsertText( aText, false );
+ InsertText( aText );
mpImpl->mpTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
if( bWasTruncated )
diff --git a/vcl/source/edit/xtextedt.cxx b/vcl/source/edit/xtextedt.cxx
index de773e27e1ed..222cbe4ff00a 100644
--- a/vcl/source/edit/xtextedt.cxx
+++ b/vcl/source/edit/xtextedt.cxx
@@ -307,7 +307,7 @@ sal_uInt16 ExtTextView::Replace( const util::SearchOptions& rSearchOptions, bool
TextSelection aSearchSel( aSel );
- bool bFound = pTextEngine->Search( aSel, rSearchOptions, true );
+ bool bFound = pTextEngine->Search( aSel, rSearchOptions );
if ( bFound )
pTextEngine->UndoActionStart();
while ( bFound )
@@ -317,7 +317,7 @@ sal_uInt16 ExtTextView::Replace( const util::SearchOptions& rSearchOptions, bool
TextPaM aNewStart = pTextEngine->ImpInsertText( aSel, rSearchOptions.replaceString );
aSel = aSearchSel;
aSel.GetStart() = aNewStart;
- bFound = pTextEngine->Search( aSel, rSearchOptions, true );
+ bFound = pTextEngine->Search( aSel, rSearchOptions );
}
if ( nFound )
{
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 18997c169b1a..5bf303e7b2fa 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -266,7 +266,7 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
{
SvLockBytes* pLockBytes = rStream.GetLockBytes();
if ( pLockBytes )
- pLockBytes->SetSynchronMode( true );
+ pLockBytes->SetSynchronMode();
rStream.Seek( STREAM_SEEK_TO_END );
nStreamLen = rStream.Tell() - nStreamPos;
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index 6d7646c827f3..a421b754248b 100644
--- a/vcl/source/filter/ixpm/xpmread.cxx
+++ b/vcl/source/filter/ixpm/xpmread.cxx
@@ -342,7 +342,7 @@ bool XPMReader::ImplGetColSub( sal_uInt8* pDest )
pRGBTable[ i ].name[ mnParaSize ] == 0 )
{
if ( ImplCompare ( reinterpret_cast<unsigned char const *>(pRGBTable[ i ].name),
- mpPara, mnParaSize, XPMCASENONSENSITIVE ) )
+ mpPara, mnParaSize ) )
{
bColStatus = true;
*pDest++ = 0;
diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx
index 8b445597774a..16b3d60ff7a5 100644
--- a/vcl/source/filter/wmf/emfwr.cxx
+++ b/vcl/source/filter/wmf/emfwr.cxx
@@ -1262,7 +1262,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
const MetaAction* pSubstAct = aSubstitute.GetAction( i );
if( pSubstAct->GetType() == MetaActionType::BMPSCALE )
{
- maVDev->Push( PushFlags::ALL );
+ maVDev->Push();
ImplBeginRecord( WIN_EMR_SAVEDC );
ImplEndRecord();
diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx
index 81b8b7b6c7b2..ac4caa0ada1b 100644
--- a/vcl/source/filter/wmf/enhwmf.cxx
+++ b/vcl/source/filter/wmf/enhwmf.cxx
@@ -1549,7 +1549,7 @@ bool EnhWMFReader::ReadEnhWMF()
{
pOut->Push();
pOut->SelectObject( nIndex );
- pOut->DrawPolyPolygon( aPolyPoly, false );
+ pOut->DrawPolyPolygon( aPolyPoly );
pOut->Pop();
}
}
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index f63ebac3c30e..d4bdaa86cb8b 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -97,16 +97,16 @@ basegfx::B2DPolyPolygon WinMtfClipPath::getClipPath() const
void WinMtfPathObj::AddPoint( const Point& rPoint )
{
if ( bClosed )
- Insert( Polygon(), POLYPOLY_APPEND );
+ Insert( Polygon() );
Polygon& rPoly = ((tools::PolyPolygon&)*this)[ Count() - 1 ];
- rPoly.Insert( rPoly.GetSize(), rPoint, POLY_NORMAL );
+ rPoly.Insert( rPoly.GetSize(), rPoint );
bClosed = false;
}
void WinMtfPathObj::AddPolyLine( const Polygon& rPolyLine )
{
if ( bClosed )
- Insert( Polygon(), POLYPOLY_APPEND );
+ Insert( Polygon() );
Polygon& rPoly = ((tools::PolyPolygon&)*this)[ Count() - 1 ];
rPoly.Insert( rPoly.GetSize(), rPolyLine );
bClosed = false;
@@ -114,7 +114,7 @@ void WinMtfPathObj::AddPolyLine( const Polygon& rPolyLine )
void WinMtfPathObj::AddPolygon( const Polygon& rPoly )
{
- Insert( rPoly, POLYPOLY_APPEND );
+ Insert( rPoly );
bClosed = true;
}
@@ -122,7 +122,7 @@ void WinMtfPathObj::AddPolyPolygon( const tools::PolyPolygon& rPolyPoly )
{
sal_uInt16 i, nCount = rPolyPoly.Count();
for ( i = 0; i < nCount; i++ )
- Insert( rPolyPoly[ i ], POLYPOLY_APPEND );
+ Insert( rPolyPoly[ i ] );
bClosed = true;
}
@@ -135,7 +135,7 @@ void WinMtfPathObj::ClosePath()
{
Point aFirst( rPoly[ 0 ] );
if ( aFirst != rPoly[ rPoly.GetSize() - 1 ] )
- rPoly.Insert( rPoly.GetSize(), aFirst, POLY_NORMAL );
+ rPoly.Insert( rPoly.GetSize(), aFirst );
}
}
bClosed = true;
@@ -263,7 +263,7 @@ WinMtf::WinMtf( WinMtfOutput* pWinMtfOutput, SvStream& rStreamWMF, FilterConfigI
{
SvLockBytes *pLB = pWMF->GetLockBytes();
if ( pLB )
- pLB->SetSynchronMode( true );
+ pLB->SetSynchronMode();
nStartPos = pWMF->Tell();
@@ -1022,7 +1022,7 @@ void WinMtfOutput::MoveTo( const Point& rPoint, bool bRecordPath )
// fdo#57353 create new subpath for subsequent moves
if ( aPathObj.Count() )
if ( aPathObj[ aPathObj.Count() - 1 ].GetSize() )
- aPathObj.Insert( Polygon(), POLYPOLY_APPEND );
+ aPathObj.Insert( Polygon() );
aPathObj.AddPoint( aDest );
}
maActPos = aDest;
@@ -2094,7 +2094,7 @@ void WinMtfOutput::Pop()
void WinMtfOutput::AddFromGDIMetaFile( GDIMetaFile& rGDIMetaFile )
{
- rGDIMetaFile.Play( *mpGDIMetaFile, 0xFFFFFFFF );
+ rGDIMetaFile.Play( *mpGDIMetaFile );
}
void WinMtfOutput::PassEMFPlusHeaderInfo()
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index 8c3cfd4cf04a..a4cbf53d5d5a 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -2019,7 +2019,7 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
if( mpCffLocal->mfBlueScale) {
pOut += sprintf( pOut, "/BlueScale ");
- pOut += dbl2str( pOut, mpCffLocal->mfBlueScale, 6);
+ pOut += dbl2str( pOut, mpCffLocal->mfBlueScale);
pOut += sprintf( pOut, " def\n");
}
if( mpCffLocal->mfBlueShift) { // default BlueShift==7
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 596ab10f1745..0888653bfd85 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -308,14 +308,14 @@ void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
WritePair( rOStm, maPt );
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
}
void MetaPixelAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
ReadPair( rIStm, maPt );
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm);
}
MetaPointAction::MetaPointAction() :
@@ -1984,7 +1984,7 @@ void MetaMaskScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
WriteDIB(maBmp, rOStm, false, true);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
WritePair( rOStm, maDstPt );
WritePair( rOStm, maDstSz );
WritePair( rOStm, maSrcPt );
@@ -1996,7 +1996,7 @@ void MetaMaskScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
ReadDIB(maBmp, rIStm, true);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
ReadPair( rIStm, maDstPt );
ReadPair( rIStm, maDstSz );
ReadPair( rIStm, maSrcPt );
@@ -2451,14 +2451,14 @@ void MetaLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
rOStm.WriteBool( mbSet );
}
void MetaLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
rIStm.ReadCharAsBool( mbSet );
}
@@ -2495,14 +2495,14 @@ void MetaFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
rOStm.WriteBool( mbSet );
}
void MetaFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
rIStm.ReadCharAsBool( mbSet );
}
@@ -2534,13 +2534,13 @@ void MetaTextColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
}
void MetaTextColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
}
MetaTextFillColorAction::MetaTextFillColorAction() :
@@ -2576,14 +2576,14 @@ void MetaTextFillColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
rOStm.WriteBool( mbSet );
}
void MetaTextFillColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
rIStm.ReadCharAsBool( mbSet );
}
@@ -2620,14 +2620,14 @@ void MetaTextLineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
rOStm.WriteBool( mbSet );
}
void MetaTextLineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
rIStm.ReadCharAsBool( mbSet );
}
@@ -2664,14 +2664,14 @@ void MetaOverlineColorAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
MetaAction::Write(rOStm, pData);
VersionCompat aCompat(rOStm, StreamMode::WRITE, 1);
- maColor.Write( rOStm, true );
+ maColor.Write( rOStm );
rOStm.WriteBool( mbSet );
}
void MetaOverlineColorAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
VersionCompat aCompat(rIStm, StreamMode::READ);
- maColor.Read( rIStm, true );
+ maColor.Read( rIStm );
rIStm.ReadCharAsBool( mbSet );
}
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index cd1109189aa0..41775a584e50 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1608,7 +1608,7 @@ void PDFWriterImpl::PDFPage::appendMappedLength( sal_Int32 nLength, OStringBuffe
if( pOutLength )
*pOutLength = ((nLength < 0 ) ? -nValue : nValue);
- appendFixedInt( nValue, rBuffer, 1 );
+ appendFixedInt( nValue, rBuffer );
}
void PDFWriterImpl::PDFPage::appendMappedLength( double fLength, OStringBuffer& rBuffer, bool bVertical, sal_Int32* pOutLength, sal_Int32 nPrecision ) const
@@ -5994,9 +5994,9 @@ bool PDFWriterImpl::emitSignature()
appendLiteralStringEncrypt( m_aCreationDateString, m_nSignatureObject, aLine );
aLine.append( " /ByteRange [ 0 ");
- aLine.append( m_nSignatureContentOffset - 1, 10 );
+ aLine.append( m_nSignatureContentOffset - 1 );
aLine.append( " " );
- aLine.append( m_nSignatureContentOffset + MAX_SIGNATURE_CONTENT_LENGTH + 1, 10 );
+ aLine.append( m_nSignatureContentOffset + MAX_SIGNATURE_CONTENT_LENGTH + 1 );
aLine.append( " " );
m_nSignatureLastByteRangeNoOffset = nOffset + aLine.getLength();
@@ -6806,7 +6806,7 @@ bool PDFWriterImpl::finalizeSignature()
sal_uInt64 nWritten = 0;
CHECK_RETURN( (osl::File::E_None == m_aFile.setPos(osl_Pos_Absolut, m_nSignatureLastByteRangeNoOffset) ) );
OStringBuffer aByteRangeNo( 256 );
- aByteRangeNo.append( nLastByteRangeNo, 10);
+ aByteRangeNo.append( nLastByteRangeNo );
aByteRangeNo.append( " ]" );
if (m_aFile.write(aByteRangeNo.getStr(), aByteRangeNo.getLength(), nWritten) != osl::File::E_None)
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 9c4150f8f57a..cf734cc95a07 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -459,7 +459,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
xVDev->EnableMapMode( false );
aPaint = xVDev->GetBitmap( aPoint, aDstSizePixel );
- xVDev->EnableMapMode( true );
+ xVDev->EnableMapMode();
// create mask bitmap
xVDev->SetLineColor( COL_BLACK );
@@ -472,7 +472,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
aTmpMtf.WindStart();
xVDev->EnableMapMode( false );
aMask = xVDev->GetBitmap( aPoint, aDstSizePixel );
- xVDev->EnableMapMode( true );
+ xVDev->EnableMapMode();
// create alpha mask from gradient
xVDev->SetDrawMode( DrawModeFlags::GrayGradient );
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index 898a69730ec3..d9336ce85a92 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -454,7 +454,7 @@ void PNGWriterImpl::ImplWriteIDAT()
{
for (nY = 1; nY < mnHeight; nY += 2)
{
- mpZCodec.Write(aOStm, mpDeflateInBuf, ImplGetFilter (nY, 0, 1));
+ mpZCodec.Write(aOStm, mpDeflateInBuf, ImplGetFilter (nY, 0));
}
}
}
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index d35e5b300d1e..c07d3ebb857c 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -1198,7 +1198,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// the current aCCList element
// (aCurr)
if( aCCList_MemberMap[nActionNum] == &(*aCurr) )
- aPaintVDev->EnableOutput(true);
+ aPaintVDev->EnableOutput();
// but process every action
const MetaActionType nType( pCurrAct->GetType() );
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index a8acbe8a449d..2b8b8ad0355b 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1315,7 +1315,7 @@ void PrinterController::printFilteredPage( int i_nPage )
GDIMetaFile aCleanedFile;
DrawModeFlags nRestoreDrawMode = removeTransparencies( aPageFile, aCleanedFile );
- mpImplData->mxPrinter->EnableOutput( true );
+ mpImplData->mxPrinter->EnableOutput();
// actually print the page
mpImplData->mxPrinter->ImplStartPage();
@@ -1346,7 +1346,7 @@ void PrinterController::abortJob()
setLastPage( true );
mpImplData->mpProgress.disposeAndClear();
GDIMetaFile aMtf;
- getPageFile( 0, aMtf, false );
+ getPageFile( 0, aMtf );
}
void PrinterController::setLastPage( bool i_bLastPage )
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index e462f2d37de5..7fa5f23cccec 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -131,7 +131,7 @@ SvStream& ReadImplWallpaper( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
// version 3 (new color format)
if( aCompat.GetVersion() >= 3 )
{
- rImplWallpaper.maColor.Read( rIStm, true );
+ rImplWallpaper.maColor.Read( rIStm );
}
}
@@ -163,7 +163,7 @@ SvStream& WriteImplWallpaper( SvStream& rOStm, const ImplWallpaper& rImplWallpap
WriteDIBBitmapEx(*rImplWallpaper.mpBitmap, rOStm);
// version 3 (new color format)
- ( (Color&) rImplWallpaper.maColor ).Write( rOStm, true );
+ ( (Color&) rImplWallpaper.maColor ).Write( rOStm );
return rOStm;
}
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 3ed6bdd1d637..628409a65c03 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -103,7 +103,7 @@ static void addPreamble(OString& rShaderSource, const OString& rPreamble)
return;
OString aVersionStr("#version");
- int nVersionStrStartPos = rShaderSource.indexOf(aVersionStr, 0);
+ int nVersionStrStartPos = rShaderSource.indexOf(aVersionStr);
if (nVersionStrStartPos == -1)
{
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx
index 07ff0678effe..a47b93cece47 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -198,7 +198,7 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
Bitmap aBandBmp(aPaint);
aBandBmp.Crop(*aRectIter);
- DrawBitmap(aMapPt, aMapSz, Point(), aBandBmp.GetSizePixel(), aBandBmp, MetaActionType::BMPSCALEPART);
+ DrawBitmap(aMapPt, aMapSz, Point(), aBandBmp.GetSizePixel(), aBandBmp);
}
mbMap = bOldMap;
diff --git a/vcl/source/window/accessibility.cxx b/vcl/source/window/accessibility.cxx
index 39befdabf728..5b79b92e82cd 100644
--- a/vcl/source/window/accessibility.cxx
+++ b/vcl/source/window/accessibility.cxx
@@ -146,7 +146,7 @@ namespace vcl {
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > Window::CreateAccessible()
{
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc( GetComponentInterface( true ), ::com::sun::star::uno::UNO_QUERY );
+ ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > xAcc( GetComponentInterface(), ::com::sun::star::uno::UNO_QUERY );
return xAcc;
}
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 75523eff59a8..cdc45bc068fe 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -54,7 +54,7 @@ static void ImplGetPinImage( DrawButtonFlags nStyle, bool bPinIn, Image& rImage
Color aMaskColor( 0x00, 0x00, 0xFF );
pSVData->maCtrlData.mpPinImgList->InsertFromHorizontalBitmap
( ResId( SV_RESID_BITMAP_PIN, *pResMgr ), 4,
- &aMaskColor, NULL, NULL, 0);
+ &aMaskColor, NULL, NULL );
}
}
@@ -1344,7 +1344,7 @@ bool ImplStdBorderWindowView::Tracking( const TrackingEvent& rTEvt )
// no move (only resize) if position did not change
if( aOldPos != aNewRect.TopLeft() )
pBorderWindow->setPosSizePixel( aNewRect.Left(), aNewRect.Top(),
- aNewRect.GetWidth(), aNewRect.GetHeight(), PosSizeFlags::PosSize );
+ aNewRect.GetWidth(), aNewRect.GetHeight() );
else
pBorderWindow->setPosSizePixel( aNewRect.Left(), aNewRect.Top(),
aNewRect.GetWidth(), aNewRect.GetHeight(), PosSizeFlags::Size );
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 5f3acda65a3c..62e3fbf978e7 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -443,7 +443,7 @@ void Dialog::ApplySettings(vcl::RenderContext& rRenderContext)
{
// NWF background
mpWindowImpl->mnNativeBackground = PART_BACKGROUND_DIALOG;
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
}
else
{
@@ -461,7 +461,7 @@ void Dialog::ImplInitSettings()
else if( IsNativeControlSupported(CTRL_WINDOW_BACKGROUND, PART_BACKGROUND_DIALOG))
{
mpWindowImpl->mnNativeBackground = PART_BACKGROUND_DIALOG;
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
}
// fallback to settings color
else
@@ -763,7 +763,7 @@ bool Dialog::Close()
if ( IsInExecute() )
{
- EndDialog( RET_CANCEL );
+ EndDialog();
mbInClose = false;
return true;
}
@@ -830,7 +830,7 @@ bool Dialog::ImplStartExecuteModal()
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel );
if ( pSVData->maWinData.mpCaptureWin )
pSVData->maWinData.mpCaptureWin->ReleaseMouse();
- EnableInput( true, true );
+ EnableInput( true );
if ( GetParent() )
{
@@ -998,7 +998,7 @@ void Dialog::EndAllDialogs( vcl::Window* pParent )
pTempModDialog = pModDialog->mpPrevExecuteDlg;
if(!pParent || pParent->IsWindowOrChild(pModDialog,true))
{
- pModDialog->EndDialog( RET_CANCEL );
+ pModDialog->EndDialog();
pModDialog->PostUserEvent( Link<>() );
}
pModDialog = pTempModDialog;
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 3039e78a2efe..cf8ac9991ef7 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -564,7 +564,7 @@ namespace
bool nextInGroup(RadioButton *pSourceWindow, bool bBackward)
{
- std::vector<VclPtr<RadioButton> > aGroup(pSourceWindow->GetRadioButtonGroup(true));
+ std::vector<VclPtr<RadioButton> > aGroup(pSourceWindow->GetRadioButtonGroup());
if (aGroup.size() == 1) //only one button in group
return false;
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 4cb8b006e245..41330fb1326e 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -164,7 +164,7 @@ void DockingAreaWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangl
{
const StyleSettings rSetting = rRenderContext.GetSettings().GetStyleSettings();
- EnableNativeWidget(true); // only required because the toolkit currently switches this flag off
+ EnableNativeWidget(); // only required because the toolkit currently switches this flag off
if (rRenderContext.IsNativeControlSupported(CTRL_TOOLBAR, PART_ENTIRE_CONTROL))
{
ToolbarValue aControlValue;
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index d23b08de6de1..be1017590491 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -834,7 +834,7 @@ ImplDockingWindowWrapper::~ImplDockingWindowWrapper()
if ( IsFloatingMode() )
{
GetWindow()->Show( false, ShowFlags::NoFocusChange );
- SetFloatingMode( false );
+ SetFloatingMode();
}
}
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 953da106a8b0..4e91deb85609 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -477,7 +477,7 @@ void DockingWindow::dispose()
if ( IsFloatingMode() )
{
Show( false, ShowFlags::NoFocusChange );
- SetFloatingMode( false );
+ SetFloatingMode();
}
delete mpImplData;
mpImplData = NULL;
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 543f259f6cd9..69d713599b19 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -283,7 +283,7 @@ void Menu::ImplSelect()
if ( pData->nBits & MenuItemBits::RADIOCHECK )
{
if ( !bChecked )
- CheckItem( nSelectedId, true );
+ CheckItem( nSelectedId );
}
else
CheckItem( nSelectedId, !bChecked );
@@ -608,7 +608,7 @@ void ImplCopyItem( Menu* pThis, const Menu& rMenu, sal_uInt16 nPos, sal_uInt16 n
pThis->InsertItem( nId, pData->aImage, pData->nBits, pData->sIdent, nNewPos );
if ( rMenu.IsItemChecked( nId ) )
- pThis->CheckItem( nId, true );
+ pThis->CheckItem( nId );
if ( !rMenu.IsItemEnabled( nId ) )
pThis->EnableItem( nId, false );
pThis->SetHelpId( nId, pData->aHelpId );
@@ -2288,7 +2288,7 @@ bool Menu::HasValidEntries( bool bCheckPopups )
if ( pItem->bEnabled && ( pItem->eType != MenuItemType::SEPARATOR ) )
{
if ( bCheckPopups && pItem->pSubMenu )
- bValidEntries = pItem->pSubMenu->HasValidEntries( true );
+ bValidEntries = pItem->pSubMenu->HasValidEntries();
else
bValidEntries = true;
}
@@ -3082,7 +3082,7 @@ sal_uInt16 PopupMenu::ImplExecute( vcl::Window* pW, const Rectangle& rRect, Floa
SalMenu* pMenu = ImplGetSalMenu();
if( pMenu && bRealExecute && pMenu->ShowNativePopupMenu( pWin, aRect, nPopupModeFlags | FloatWinPopupFlags::GrabFocus ) )
{
- pWin->StopExecute(0);
+ pWin->StopExecute();
pWin->doShutdown();
pWindow->doLazyDelete();
pWindow = NULL;
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 718ffc000e02..2fcc536d09df 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -1059,7 +1059,7 @@ void MenuBarWindow::ApplySettings(vcl::RenderContext& rRenderContext)
rRenderContext.SetBackground(aWallpaper);
SetPaintTransparent(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
}
else if (rRenderContext.IsNativeControlSupported(CTRL_MENUBAR, PART_ENTIRE_CONTROL))
{
@@ -1071,7 +1071,7 @@ void MenuBarWindow::ApplySettings(vcl::RenderContext& rRenderContext)
aWallpaper.SetStyle(WallpaperStyle::ApplicationGradient);
rRenderContext.SetBackground(aWallpaper);
SetPaintTransparent(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
}
rRenderContext.SetTextColor(rStyleSettings.GetMenuBarTextColor());
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 381489f8b5e8..05db2cf5bf87 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -229,7 +229,7 @@ void PrintDialog::PrintPreviewWindow::setPreview( const GDIMetaFile& i_rNewPrevi
maReplacementString = i_rReplacement;
mbGreyscale = i_bGreyscale;
maPageVDev->SetReferenceDevice( i_nDPIX, i_nDPIY );
- maPageVDev->EnableOutput( true );
+ maPageVDev->EnableOutput();
// use correct measurements
const LocaleDataWrapper& rLocWrap( GetSettings().GetLocaleDataWrapper() );
@@ -444,7 +444,7 @@ void PrintDialog::NUpTabPage::showAdvancedControls( bool i_bShow )
void PrintDialog::NUpTabPage::initFromMultiPageSetup( const vcl::PrinterController::MultiPageSetup& i_rMPS )
{
mpNupOrderWin->Show();
- mpPagesBtn->Check( true );
+ mpPagesBtn->Check();
mpBrochureBtn->Show( false );
// setup field units for metric fields
@@ -548,7 +548,7 @@ void PrintDialog::OutputOptPage::readFromSettings()
OUString( "CollateSingleJobs" ) );
if ( aValue.equalsIgnoreAsciiCase("true") )
{
- mpCollateSingleJobsBox->Check( true );
+ mpCollateSingleJobsBox->Check();
}
else
{
@@ -1530,7 +1530,7 @@ IMPL_LINK( PrintDialog, SelectHdl, ListBox*, pBox )
maPController->resetPrinterOptions( maOptionsPage.mpToFileBox->IsChecked() );
// update text fields
updatePrinterText();
- preparePreview( true, false );
+ preparePreview( true );
}
else if( pBox == maNUpPage.mpNupOrientationBox || pBox == maNUpPage.mpNupOrderBox )
{
@@ -1635,7 +1635,7 @@ IMPL_LINK( PrintDialog, ClickHdl, Button*, pButton )
maPController->setupPrinter( this );
// tdf#63905 don't use cache: page size may change
- preparePreview( true, false );
+ preparePreview( true );
}
checkControlDependencies();
}
diff --git a/vcl/source/window/settings.cxx b/vcl/source/window/settings.cxx
index 63586e3ee70e..d1ccb21529ca 100644
--- a/vcl/source/window/settings.cxx
+++ b/vcl/source/window/settings.cxx
@@ -84,7 +84,7 @@ void Window::UpdateSettings( const AllSettings& rSettings, bool bChild )
if ( mpWindowImpl->mpBorderWindow )
{
- mpWindowImpl->mpBorderWindow->UpdateSettings( rSettings, false );
+ mpWindowImpl->mpBorderWindow->UpdateSettings( rSettings );
if ( (mpWindowImpl->mpBorderWindow->GetType() == WINDOW_BORDERWINDOW) &&
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow )
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->UpdateSettings( rSettings, true );
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index bc1e553f2421..ca48fcd74c02 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -206,7 +206,7 @@ void StatusBar::ApplySettings(vcl::RenderContext& rRenderContext)
rRenderContext.IsNativeControlSupported(CTRL_WINDOW_BACKGROUND, PART_BACKGROUND_WINDOW))
{
ImplGetWindowImpl()->mnNativeBackground = PART_BACKGROUND_WINDOW;
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
}
}
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index d4ca13d0b4bb..e5c4c6c4d9f2 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -43,7 +43,7 @@ void TabPage::ImplInit( vcl::Window* pParent, WinBits nStyle )
// if the tabpage is drawn (ie filled) by a native widget, make sure all contols will have transparent background
// otherwise they will paint with a wrong background
if( IsNativeControlSupported(CTRL_TAB_BODY, PART_ENTIRE_CONTROL) && GetParent() && (GetParent()->GetType() == WINDOW_TABCONTROL) )
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
}
void TabPage::ImplInitSettings()
@@ -51,7 +51,7 @@ void TabPage::ImplInitSettings()
vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -59,7 +59,7 @@ void TabPage::ImplInitSettings()
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index cf2a0cb51520..c9fcb88b968a 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -186,7 +186,7 @@ bool TaskPaneList::HandleKeyEvent(const KeyEvent& rKeyEvent)
vcl::Window *pNextWin = NULL;
if( bSplitterOnly )
- pNextWin = FindNextSplitter( *p, true );
+ pNextWin = FindNextSplitter( *p );
else
pNextWin = FindNextFloat( *p, bForward );
@@ -218,7 +218,7 @@ bool TaskPaneList::HandleKeyEvent(const KeyEvent& rKeyEvent)
{
vcl::Window *pWin;
if( bSplitterOnly )
- pWin = FindNextSplitter( NULL, true );
+ pWin = FindNextSplitter( NULL );
else
pWin = FindNextFloat( NULL, bForward );
if( pWin )
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 09847f88a28a..89d378d3b98a 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1341,7 +1341,7 @@ IMPL_LINK( ImplTBDragMgr, SelectHdl, Accelerator*, pAccel )
if ( pAccel->GetCurItemId() == KEY_ESCAPE )
EndDragging( false );
else
- EndDragging( true );
+ EndDragging();
return (long) true;
}
@@ -1451,7 +1451,7 @@ void ToolBox::ApplySettings(vcl::RenderContext& rRenderContext)
aColor = GetControlBackground();
SetBackground( aColor );
SetPaintTransparent(false);
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
}
else
{
@@ -1474,7 +1474,7 @@ void ToolBox::ApplySettings(vcl::RenderContext& rRenderContext)
rRenderContext.SetBackground(aColor);
SetPaintTransparent(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
}
}
}
@@ -1514,7 +1514,7 @@ void ToolBox::ImplInitSettings(bool bFont, bool bForeground, bool bBackground)
aColor = GetControlBackground();
SetBackground( aColor );
SetPaintTransparent(false);
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
}
else
{
@@ -1537,7 +1537,7 @@ void ToolBox::ImplInitSettings(bool bFont, bool bForeground, bool bBackground)
SetBackground(aColor);
SetPaintTransparent(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
}
}
}
@@ -5355,7 +5355,7 @@ void ToolBox::ChangeHighlight( sal_uInt16 nPos )
{
if ( nPos < GetItemCount() ) {
ImplGrabFocus( GetFocusFlags::NONE );
- ImplChangeHighlight ( ImplGetItem ( GetItemId ( (sal_uInt16) nPos ) ), false );
+ ImplChangeHighlight ( ImplGetItem ( GetItemId ( (sal_uInt16) nPos ) ) );
}
}
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 7bd7610b48bc..4e1e7b01663c 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1859,7 +1859,7 @@ IMPL_LINK( ToolBox, ImplCustomMenuListener, VclMenuEvent*, pEvent )
{
sal_uInt16 id = GetMenu()->GetItemId( pEvent->GetItemPos() );
if( id >= TOOLBOX_MENUITEM_START )
- TriggerItem( id - TOOLBOX_MENUITEM_START, false, false );
+ TriggerItem( id - TOOLBOX_MENUITEM_START, false );
}
return 0;
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index a7da050db0c7..f3caef5e2c37 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2323,7 +2323,7 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
else if ( mpWindowImpl->mbFrame )
{
mpWindowImpl->mbSuppressAccessibilityEvents = true;
- mpWindowImpl->mpFrame->Show( false, false );
+ mpWindowImpl->mpFrame->Show( false );
}
CompatStateChanged( StateChangedType::Visible );
@@ -2588,7 +2588,7 @@ void Window::Enable( bool bEnable, bool bChild )
mpWindowImpl->mpBorderWindow->Enable( bEnable, false );
if ( (mpWindowImpl->mpBorderWindow->GetType() == WINDOW_BORDERWINDOW) &&
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow )
- static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->Enable( bEnable, true );
+ static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->Enable( bEnable );
}
// #i56102# restore app focus win in case the
@@ -2650,7 +2650,7 @@ void Window::EnableInput( bool bEnable, bool bChild )
mpWindowImpl->mpBorderWindow->EnableInput( bEnable, false );
if ( (mpWindowImpl->mpBorderWindow->GetType() == WINDOW_BORDERWINDOW) &&
static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow )
- static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->EnableInput( bEnable, true );
+ static_cast<ImplBorderWindow*>(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->EnableInput( bEnable );
}
if ( (! bEnable && mpWindowImpl->meAlwaysInputMode != AlwaysInputEnabled) ||
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 7ba1c6aa0374..bba4ecd42a39 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1355,8 +1355,7 @@ void Window::SetSizePixel( const Size& rNewSize )
void Window::SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{
setPosSizePixel( rNewPos.X(), rNewPos.Y(),
- rNewSize.Width(), rNewSize.Height(),
- PosSizeFlags::PosSize );
+ rNewSize.Width(), rNewSize.Height());
}
void Window::SetOutputSizePixel( const Size& rNewSize )
diff --git a/vcl/unx/generic/printer/jobdata.cxx b/vcl/unx/generic/printer/jobdata.cxx
index bd385db1ce4a..85f587a3fe0d 100644
--- a/vcl/unx/generic/printer/jobdata.cxx
+++ b/vcl/unx/generic/printer/jobdata.cxx
@@ -108,7 +108,7 @@ bool JobData::setPaper( int i_nWidth, int i_nHeight )
const PPDKey* pKey = m_pParser->getKey( OUString( "PageSize" ) );
const PPDValue* pValue = pKey ? pKey->getValueCaseInsensitive( aPaper ) : NULL;
- bSuccess = pKey && pValue && m_aContext.setValue( pKey, pValue, false );
+ bSuccess = pKey && pValue && m_aContext.setValue( pKey, pValue );
}
return bSuccess;
}
@@ -121,7 +121,7 @@ bool JobData::setPaperBin( int i_nPaperBin )
const PPDKey* pKey = m_pParser->getKey( OUString( "InputSlot" ) );
const PPDValue* pValue = pKey ? pKey->getValue( i_nPaperBin ) : NULL;
- bSuccess = pKey && pValue && m_aContext.setValue( pKey, pValue, false );
+ bSuccess = pKey && pValue && m_aContext.setValue( pKey, pValue );
}
return bSuccess;
}