summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:40 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commit3553a5d3a899954c4db09e264d8faf07e817e564 (patch)
tree15f5d78ebe53ed498536c2d518a4cc2ad195c072
parente624c13cf1732f42d2da212b1b96aa9de7dd66cf (diff)
loplugin: defaultparams
Change-Id: I513643385dc0a04b68c5cf4a5f43aa0804e572e6
-rw-r--r--svx/source/accessibility/AccessibleFrameSelector.cxx2
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx2
-rw-r--r--svx/source/accessibility/svxpixelctlaccessiblecontext.cxx2
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx4
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx2
-rw-r--r--svx/source/dialog/_bmpmask.cxx18
-rw-r--r--svx/source/dialog/_contdlg.cxx18
-rw-r--r--svx/source/dialog/charmap.cxx4
-rw-r--r--svx/source/dialog/checklbx.cxx2
-rw-r--r--svx/source/dialog/contimp.hxx2
-rw-r--r--svx/source/dialog/contwnd.cxx2
-rw-r--r--svx/source/dialog/dialcontrol.cxx2
-rw-r--r--svx/source/dialog/dlgctrl.cxx2
-rw-r--r--svx/source/dialog/docrecovery.cxx6
-rw-r--r--svx/source/dialog/fntctrl.cxx2
-rw-r--r--svx/source/dialog/fontlb.cxx2
-rw-r--r--svx/source/dialog/fontwork.cxx2
-rw-r--r--svx/source/dialog/frmsel.cxx2
-rw-r--r--svx/source/dialog/graphctl.cxx8
-rw-r--r--svx/source/dialog/hdft.cxx6
-rw-r--r--svx/source/dialog/imapdlg.cxx24
-rw-r--r--svx/source/dialog/imapwnd.cxx30
-rw-r--r--svx/source/dialog/srchdlg.cxx5
-rw-r--r--svx/source/dialog/svxruler.cxx4
-rw-r--r--svx/source/engine3d/dragmt3d.cxx2
-rw-r--r--svx/source/engine3d/view3d.cxx4
-rw-r--r--svx/source/fmcomp/fmgridif.cxx4
-rw-r--r--svx/source/fmcomp/gridcell.cxx12
-rw-r--r--svx/source/fmcomp/gridctrl.cxx18
-rw-r--r--svx/source/form/datanavi.cxx16
-rw-r--r--svx/source/form/filtnav.cxx6
-rw-r--r--svx/source/form/fmmodel.cxx4
-rw-r--r--svx/source/form/fmobj.cxx4
-rw-r--r--svx/source/form/fmpgeimp.cxx2
-rw-r--r--svx/source/form/fmshell.cxx2
-rw-r--r--svx/source/form/fmshimp.cxx4
-rw-r--r--svx/source/form/fmundo.cxx4
-rw-r--r--svx/source/form/fmview.cxx10
-rw-r--r--svx/source/form/navigatortree.cxx18
-rw-r--r--svx/source/form/navigatortreemodel.cxx8
-rw-r--r--svx/source/gallery2/galbrws2.cxx26
-rw-r--r--svx/source/gallery2/galexpl.cxx2
-rw-r--r--svx/source/items/chrtitem.cxx2
-rw-r--r--svx/source/sdr/contact/viewcontactofgraphic.cxx6
-rw-r--r--svx/source/sdr/overlay/overlaymanagerbuffered.cxx2
-rw-r--r--svx/source/sidebar/line/LineWidthValueSet.cxx2
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.cxx6
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx8
-rw-r--r--svx/source/sidebar/text/TextUnderlineControl.cxx2
-rw-r--r--svx/source/sidebar/tools/PopupControl.cxx2
-rw-r--r--svx/source/sidebar/tools/ValueSetWithTextControl.cxx4
-rw-r--r--svx/source/stbctrls/selctrl.cxx2
-rw-r--r--svx/source/svdraw/sdrundomanager.cxx8
-rw-r--r--svx/source/svdraw/svdattr.cxx2
-rw-r--r--svx/source/svdraw/svddrgmt.cxx24
-rw-r--r--svx/source/svdraw/svddrgv.cxx8
-rw-r--r--svx/source/svdraw/svdedtv1.cxx4
-rw-r--r--svx/source/svdraw/svdedxv.cxx6
-rw-r--r--svx/source/svdraw/svdmodel.cxx6
-rw-r--r--svx/source/svdraw/svdoashp.cxx4
-rw-r--r--svx/source/svdraw/svdocapt.cxx4
-rw-r--r--svx/source/svdraw/svdocirc.cxx6
-rw-r--r--svx/source/svdraw/svdoedge.cxx8
-rw-r--r--svx/source/svdraw/svdoole2.cxx6
-rw-r--r--svx/source/svdraw/svdotext.cxx2
-rw-r--r--svx/source/svdraw/svdouno.cxx2
-rw-r--r--svx/source/svdraw/svdoutl.cxx2
-rw-r--r--svx/source/svdraw/svdpage.cxx16
-rw-r--r--svx/source/svdraw/svdpagv.cxx2
-rw-r--r--svx/source/svdraw/svdundo.cxx24
-rw-r--r--svx/source/svdraw/svdview.cxx8
-rw-r--r--svx/source/svdraw/svdxcgv.cxx5
-rw-r--r--svx/source/table/accessiblecell.cxx2
-rw-r--r--svx/source/table/svdotable.cxx4
-rw-r--r--svx/source/table/tablecontroller.cxx4
-rw-r--r--svx/source/table/tablertfexporter.cxx2
-rw-r--r--svx/source/table/viewcontactoftableobj.cxx8
-rw-r--r--svx/source/tbxctrls/colrctrl.cxx2
-rw-r--r--svx/source/tbxctrls/extrusioncontrols.cxx6
-rw-r--r--svx/source/tbxctrls/itemwin.cxx4
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx8
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx2
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx4
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx2
-rw-r--r--svx/source/unodraw/unomtabl.cxx2
-rw-r--r--svx/source/unodraw/unopage.cxx4
-rw-r--r--svx/source/unodraw/unoshap2.cxx2
-rw-r--r--svx/source/unodraw/unoshape.cxx2
-rw-r--r--svx/source/xml/xmlgrhlp.cxx4
-rw-r--r--svx/source/xoutdev/xtabdash.cxx2
90 files changed, 272 insertions, 274 deletions
diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx
index c40dfb50ce12..2667be3860cb 100644
--- a/svx/source/accessibility/AccessibleFrameSelector.cxx
+++ b/svx/source/accessibility/AccessibleFrameSelector.cxx
@@ -128,7 +128,7 @@ Reference< XAccessible > AccFrameSelector::getAccessibleParent( )
IsValid();
Reference< XAccessible > xRet;
if(meBorder == FRAMEBORDER_NONE)
- xRet = mpFrameSel->GetParent()->GetAccessible( true );
+ xRet = mpFrameSel->GetParent()->GetAccessible();
else
xRet = mpFrameSel->CreateAccessible();
return xRet;
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index 773e536c2a98..eb4cdfb516e2 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -267,7 +267,7 @@ bool AccessibleShape::SetState (sal_Int16 aState)
// Offer FOCUSED state to edit engine and detect whether the state
// changes.
bool bIsFocused = mpText->HaveFocus ();
- mpText->SetFocus (true);
+ mpText->SetFocus();
bStateHasChanged = (bIsFocused != mpText->HaveFocus ());
}
else
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
index 70dab3584cde..e5253d91bcc3 100644
--- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
@@ -96,7 +96,7 @@ uno::Reference< XAccessible > SvxPixelCtlAccessible::getAccessibleParent( )
::osl::MutexGuard aGuard( m_aMutex );
vcl::Window *pTabPage = getNonLayoutParent(&mrPixelCtl);
assert(pTabPage && WINDOW_TABPAGE == pTabPage->GetType());
- return pTabPage->GetAccessible( true );
+ return pTabPage->GetAccessible();
}
sal_Int32 SvxPixelCtlAccessible::getAccessibleIndexInParent( )
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index 71916865b8ba..f53e959cf21d 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1130,7 +1130,7 @@ bool EnhancedCustomShape2d::GetHandlePosition( const sal_uInt32 nIndex, Point& r
{
if ( aHandle.nFlags & HandleFlags::POLAR )
{
- Point aReferencePoint( GetPoint( aHandle.aPolar, true, false ) );
+ Point aReferencePoint( GetPoint( aHandle.aPolar, true ) );
double fAngle;
double fRadius;
@@ -1159,7 +1159,7 @@ bool EnhancedCustomShape2d::GetHandlePosition( const sal_uInt32 nIndex, Point& r
aHandle.aPosition.Second = aFirst;
}
}
- rReturnPosition = GetPoint( aHandle.aPosition, true, false );
+ rReturnPosition = GetPoint( aHandle.aPosition, true );
}
const GeoStat aGeoStat( static_cast<SdrObjCustomShape*>(pCustomShapeObj)->GetGeoStat() );
if ( aGeoStat.nShearAngle )
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index 7e033863237f..cfb6fd67909b 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -262,7 +262,7 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F
ScopedVclPtrInstance< VirtualDevice > pVirDev( 1 );
pVirDev->SetMapMode( MAP_100TH_MM );
pVirDev->SetFont( aFont );
- pVirDev->EnableRTL( true );
+ pVirDev->EnableRTL();
if ( aParagraphIter->nFrameDirection == FRMDIR_HORI_RIGHT_TOP )
pVirDev->SetLayoutMode( TEXT_LAYOUT_BIDI_RTL );
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index 83bb285511d8..0b5915922774 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -226,7 +226,7 @@ IMPL_LINK( MaskData, CbxHdl, CheckBox*, pCbx )
pSet->SelectItem( 1 );
pSet->Select();
- pMask->m_pTbxPipette->CheckItem( pMask->m_pTbxPipette->GetItemId(0), true );
+ pMask->m_pTbxPipette->CheckItem( pMask->m_pTbxPipette->GetItemId(0) );
PipetteHdl(pMask->m_pTbxPipette);
}
@@ -433,7 +433,7 @@ SvxBmpMask::SvxBmpMask(SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window*
m_pLbColorTrans->Disable();
m_pQSet1->SetStyle( m_pQSet1->GetStyle() | WB_DOUBLEBORDER | WB_ITEMBORDER );
- m_pQSet1->SetColCount( 1 );
+ m_pQSet1->SetColCount();
m_pQSet1->SetLineCount( 1 );
OUString sColorPalette (BMP_RESID( RID_SVXDLG_BMPMASK_STR_PALETTE));
OUString sColorPaletteN;
@@ -443,7 +443,7 @@ SvxBmpMask::SvxBmpMask(SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window*
m_pQSet1->SelectItem( 1 );
m_pQSet2->SetStyle( m_pQSet2->GetStyle() | WB_DOUBLEBORDER | WB_ITEMBORDER );
- m_pQSet2->SetColCount( 1 );
+ m_pQSet2->SetColCount();
m_pQSet2->SetLineCount( 1 );
sColorPaletteN = sColorPalette;
sColorPaletteN += " 2";
@@ -451,7 +451,7 @@ SvxBmpMask::SvxBmpMask(SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window*
m_pQSet2->SelectItem( 0 );
m_pQSet3->SetStyle( m_pQSet3->GetStyle() | WB_DOUBLEBORDER | WB_ITEMBORDER );
- m_pQSet3->SetColCount( 1 );
+ m_pQSet3->SetColCount();
m_pQSet3->SetLineCount( 1 );
sColorPaletteN = sColorPalette;
sColorPaletteN += " 3";
@@ -459,7 +459,7 @@ SvxBmpMask::SvxBmpMask(SfxBindings *pBindinx, SfxChildWindow *pCW, vcl::Window*
m_pQSet3->SelectItem( 0 );
m_pQSet4->SetStyle( m_pQSet4->GetStyle() | WB_DOUBLEBORDER | WB_ITEMBORDER );
- m_pQSet4->SetColCount( 1 );
+ m_pQSet4->SetColCount();
m_pQSet4->SetLineCount( 1 );
sColorPaletteN = sColorPalette;
sColorPaletteN += " 4";
@@ -575,25 +575,25 @@ void SvxBmpMask::PipetteClicked()
{
if( m_pQSet1->GetSelectItemId() == 1 )
{
- m_pCbx1->Check( true );
+ m_pCbx1->Check();
pData->CbxHdl(m_pCbx1);
m_pQSet1->SetItemColor( 1, aPipetteColor );
}
else if( m_pQSet2->GetSelectItemId() == 1 )
{
- m_pCbx2->Check( true );
+ m_pCbx2->Check();
pData->CbxHdl(m_pCbx2);
m_pQSet2->SetItemColor( 1, aPipetteColor );
}
else if( m_pQSet3->GetSelectItemId() == 1 )
{
- m_pCbx3->Check( true );
+ m_pCbx3->Check();
pData->CbxHdl(m_pCbx3);
m_pQSet3->SetItemColor( 1, aPipetteColor );
}
else if( m_pQSet4->GetSelectItemId() == 1 )
{
- m_pCbx4->Check( true );
+ m_pCbx4->Check();
pData->CbxHdl(m_pCbx4);
m_pQSet4->SetItemColor( 1, aPipetteColor );
}
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 3426ea395879..bd442227a72b 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -196,7 +196,7 @@ bool SvxContourDlg::IsGraphicChanged() const
tools::PolyPolygon SvxContourDlg::GetPolyPolygon()
{
- return pSuperClass->GetPolyPolygon( true );
+ return pSuperClass->GetPolyPolygon(true);
}
const void* SvxContourDlg::GetEditingObject() const
@@ -372,7 +372,7 @@ void SvxSuperContourDlg::SetPolyPolygon( const tools::PolyPolygon& rPolyPoly )
}
m_pContourWnd->SetPolyPolygon( aPolyPoly );
- m_pContourWnd->GetSdrModel()->SetChanged( true );
+ m_pContourWnd->GetSdrModel()->SetChanged();
}
tools::PolyPolygon SvxSuperContourDlg::GetPolyPolygon( bool bRescaleToGraphic )
@@ -459,22 +459,22 @@ IMPL_LINK_TYPED( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx, void )
}
else if (nId == mnSelectId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
m_pContourWnd->SetEditMode( true );
}
else if (nId == mnRectId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
m_pContourWnd->SetObjKind( OBJ_RECT );
}
else if (nId == mnCircleId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
m_pContourWnd->SetObjKind( OBJ_CIRC );
}
else if (nId == mnPolyId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
m_pContourWnd->SetObjKind( OBJ_POLY );
}
else if (nId == mnPolyEditId)
@@ -650,12 +650,12 @@ IMPL_LINK( SvxSuperContourDlg, StateHdl, ContourWindow*, pWnd )
break;
}
- m_pTbx1->CheckItem( nId, true );
+ m_pTbx1->CheckItem( nId );
}
else
{
m_pTbx1->CheckItem(mnPolyEditId, false);
- m_pTbx1->CheckItem(mnPolyMoveId, true);
+ m_pTbx1->CheckItem(mnPolyMoveId);
m_pTbx1->CheckItem(mnPolyInsertId, false);
pWnd->SetPolyEditMode( 0 );
}
@@ -737,7 +737,7 @@ IMPL_LINK( SvxSuperContourDlg, PipetteClickHdl, ContourWindow*, pWnd )
IMPL_LINK( SvxSuperContourDlg, WorkplaceClickHdl, ContourWindow*, pWnd )
{
m_pTbx1->CheckItem(mnWorkSpaceId, false);
- m_pTbx1->CheckItem(mnSelectId, true);
+ m_pTbx1->CheckItem(mnSelectId);
pWnd->SetWorkplaceMode( false );
return 0L;
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 7aadf2fc12cf..1786b7156579 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -78,7 +78,7 @@ void SvxShowCharSet::init()
SetStyle(GetStyle() | WB_CLIPCHILDREN);
aVscrollSB->SetScrollHdl( LINK( this, SvxShowCharSet, VscrollHdl ) );
- aVscrollSB->EnableDrag( true );
+ aVscrollSB->EnableDrag();
// other settings like aVscroll depend on selected font => see RecalculateFont
bDrag = false;
@@ -104,7 +104,7 @@ void SvxShowCharSet::GetFocus()
void SvxShowCharSet::LoseFocus()
{
Control::LoseFocus();
- SelectIndex( nSelectedIndex, false );
+ SelectIndex( nSelectedIndex );
}
diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx
index 9d131ea7d812..95dcb74030db 100644
--- a/svx/source/dialog/checklbx.cxx
+++ b/svx/source/dialog/checklbx.cxx
@@ -197,7 +197,7 @@ void SvxCheckListBox::MouseButtonDown( const MouseEvent& rMEvt )
if (pItem && pItem->GetType() == SV_ITEM_ID_LBOXBUTTON)
{
SvTreeListBox::MouseButtonDown( rMEvt );
- Select( pEntry, true );
+ Select( pEntry );
return;
}
else
diff --git a/svx/source/dialog/contimp.hxx b/svx/source/dialog/contimp.hxx
index d06e136e8ea1..c80fc346f23c 100644
--- a/svx/source/dialog/contimp.hxx
+++ b/svx/source/dialog/contimp.hxx
@@ -108,7 +108,7 @@ public:
bool IsGraphicChanged() const { return nGrfChanged > 0UL; }
void SetPolyPolygon( const tools::PolyPolygon& rPolyPoly );
- tools::PolyPolygon GetPolyPolygon( bool bRescaleToGraphic = true );
+ tools::PolyPolygon GetPolyPolygon( bool bRescaleToGraphic );
void SetEditingObject( void* pObj ) { pCheckObj = pObj; }
const void* GetEditingObject() const { return pCheckObj; }
diff --git a/svx/source/dialog/contwnd.cxx b/svx/source/dialog/contwnd.cxx
index 742e7c1dfb21..61c3ed3902b2 100644
--- a/svx/source/dialog/contwnd.cxx
+++ b/svx/source/dialog/contwnd.cxx
@@ -115,7 +115,7 @@ void ContourWindow::InitSdrModel()
aSet.Put( XFillColorItem( "", TRANSCOL ) );
aSet.Put( XFillTransparenceItem( 50 ) );
pView->SetAttributes( aSet );
- pView->SetFrameDragSingles( true );
+ pView->SetFrameDragSingles();
}
void ContourWindow::SdrObjCreated( const SdrObject& )
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index c8459b01d378..5a2304bea73f 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -164,7 +164,7 @@ void DialControlBmp::DrawBackground()
SetFillColor();
Erase();
- EnableRTL( true ); // draw 3D effect in correct direction
+ EnableRTL(); // draw 3D effect in correct direction
sal_uInt8 nDiff = mbEnabled ? 0x18 : 0x10;
Color aColor;
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 9e270376a437..e9e00080893c 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1445,7 +1445,7 @@ namespace
if(rBitmapEx.GetSizePixel().Width() >= rSize.Width() && rBitmapEx.GetSizePixel().Height() >= rSize.Height())
{
- rBitmapEx.Scale(rSize, BmpScaleFlag::Default);
+ rBitmapEx.Scale(rSize);
pVirtualDevice->DrawBitmapEx(Point(0, 0), rBitmapEx);
}
else
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index 9ca770c83ce2..4e1d2f77839f 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -453,7 +453,7 @@ void SAL_CALL RecoveryCore::statusChanged(const css::frame::FeatureStateEvent& a
if (sURL.isEmpty())
sURL = aNew.TemplateURL;
INetURLObject aURL(sURL);
- aNew.StandardImage = SvFileInformationManager::GetFileImage(aURL, false);
+ aNew.StandardImage = SvFileInformationManager::GetFileImage(aURL);
/* set the right UI state for this item to NOT_RECOVERED_YET ... because nDocState shows the state of
the last emergency save operation before and is interessting for the used recovery core service only ...
@@ -1209,7 +1209,7 @@ IMPL_LINK_NOARG(RecoveryDialog, CancelButtonHdl)
if (m_eRecoveryState == RecoveryDialog::E_RECOVERY_HANDLED)
{
- EndDialog(DLG_RET_CANCEL);
+ EndDialog();
return DLG_RET_CANCEL;
}
@@ -1349,7 +1349,7 @@ IMPL_LINK_NOARG(BrokenRecoveryDialog, OkButtonHdl)
IMPL_LINK_NOARG(BrokenRecoveryDialog, CancelButtonHdl)
{
- EndDialog(DLG_RET_CANCEL);
+ EndDialog();
return 0;
}
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 2fce458c0a13..161d94987716 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -867,7 +867,7 @@ void SvxFontPrevWindow::AutoCorrectFontColor()
static bool GetWhich (const SfxItemSet& rSet, sal_uInt16 nSlot, sal_uInt16& rWhich)
{
- rWhich = rSet.GetPool()->GetWhich(nSlot, true);
+ rWhich = rSet.GetPool()->GetWhich(nSlot);
return rSet.GetItemState(rWhich) >= SfxItemState::DEFAULT;
}
diff --git a/svx/source/dialog/fontlb.cxx b/svx/source/dialog/fontlb.cxx
index 60845d963156..c5bfb6d95f72 100644
--- a/svx/source/dialog/fontlb.cxx
+++ b/svx/source/dialog/fontlb.cxx
@@ -119,7 +119,7 @@ void SvxFontListBox::SelectEntryPos( sal_uLong nPos, bool bSelect )
void SvxFontListBox::SetNoSelection()
{
- SelectAll( false, true );
+ SelectAll( false );
}
sal_uLong SvxFontListBox::GetSelectEntryPos() const
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 8c64e41078dc..80e04ddc3759 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -375,7 +375,7 @@ void SvxFontWorkDialog::SetStyle_Impl(const XFormTextStyleItem* pItem)
m_pTbxStyle->CheckItem(nStyleSlantXId, false);
m_pTbxStyle->CheckItem(nStyleSlantYId, false);
- m_pTbxStyle->CheckItem(nStyleOffId, true);
+ m_pTbxStyle->CheckItem(nStyleOffId);
}
else
{
diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx
index 9c5b38207532..825c3ca44739 100644
--- a/svx/source/dialog/frmsel.cxx
+++ b/svx/source/dialog/frmsel.cxx
@@ -1095,7 +1095,7 @@ void FrameSelector::MouseButtonDown( const MouseEvent& rMEvt )
{
bNewSelected = true;
//mxImpl->SelectBorder( **aIt, true );
- SelectBorder((**aIt).GetType(), true);
+ SelectBorder((**aIt).GetType());
}
}
else
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx
index 17dcc15269cf..d58550425be2 100644
--- a/svx/source/dialog/graphctl.cxx
+++ b/svx/source/dialog/graphctl.cxx
@@ -150,9 +150,9 @@ void GraphCtrl::InitSdrModel()
pView->SetWorkArea( Rectangle( Point(), aGraphSize ) );
pView->EnableExtendedMouseEventDispatcher( true );
pView->ShowSdrPage(pView->GetModel()->GetPage(0));
- pView->SetFrameDragSingles( true );
+ pView->SetFrameDragSingles();
pView->SetMarkedPointsSmooth( SDRPATHSMOOTH_SYMMETRIC );
- pView->SetEditMode( true );
+ pView->SetEditMode();
// #i72889# set neeeded flags
pView->SetPagePaintingAllowed(false);
@@ -379,7 +379,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt )
{
// mark last object
pView->UnmarkAllObj();
- pView->MarkNextObj(false);
+ pView->MarkNextObj();
bProc = true;
}
@@ -511,7 +511,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt )
// switch snapping off
if(!bWasNoSnap)
- ((SdrDragStat&)rDragStat).SetNoSnap(true);
+ ((SdrDragStat&)rDragStat).SetNoSnap();
if(bWasSnapEnabled)
pView->SetSnapEnabled(false);
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index 06639f4b029b..03d3e31eb6e0 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -452,9 +452,9 @@ void SvxHFPage::Reset( const SfxItemSet* rSet )
if ( !pSetItem )
{
m_pTurnOnBox->Check( false );
- m_pHeightDynBtn->Check( true );
- m_pCntSharedBox->Check( true );
- m_pCntSharedFirstBox->Check( true );
+ m_pHeightDynBtn->Check();
+ m_pCntSharedBox->Check();
+ m_pCntSharedFirstBox->Check();
}
TurnOnHdl(0);
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index 772f9708fc44..1c26ad1c2cff 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -188,7 +188,7 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window
aMiscOptions.AddListenerLink( LINK( this, SvxIMapDlg, MiscHdl ) );
m_pTbxIMapDlg1->SetSelectHdl( LINK( this, SvxIMapDlg, TbxClickHdl ) );
- m_pTbxIMapDlg1->CheckItem( mnSelectId, true );
+ m_pTbxIMapDlg1->CheckItem( mnSelectId );
TbxClickHdl( m_pTbxIMapDlg1 );
SetMinOutputSizePixel( aLastSize = GetOutputSizePixel() );
@@ -356,7 +356,7 @@ IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
DoSave();
else if(nNewItemId == mnSelectId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
pIMapWnd->SetEditMode( true );
if( pTbx->IsKeyEvent() )
{
@@ -368,7 +368,7 @@ IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
}
else if(nNewItemId == mnRectId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
pIMapWnd->SetObjKind( OBJ_RECT );
if( pTbx->IsKeyEvent() && ((pTbx->GetKeyModifier() & KEY_MOD1) != 0) )
{
@@ -378,7 +378,7 @@ IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
}
else if(nNewItemId == mnCircleId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
pIMapWnd->SetObjKind( OBJ_CIRC );
if( pTbx->IsKeyEvent() && ((pTbx->GetKeyModifier() & KEY_MOD1) != 0) )
{
@@ -388,7 +388,7 @@ IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
}
else if(nNewItemId == mnPolyId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
pIMapWnd->SetObjKind( OBJ_POLY );
if( pTbx->IsKeyEvent() && ((pTbx->GetKeyModifier() & KEY_MOD1) != 0) )
{
@@ -398,7 +398,7 @@ IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
}
else if(nNewItemId == mnFreePolyId)
{
- pTbx->CheckItem( nNewItemId, true );
+ pTbx->CheckItem( nNewItemId );
pIMapWnd->SetObjKind( OBJ_FREEFILL );
if( pTbx->IsKeyEvent() && ((pTbx->GetKeyModifier() & KEY_MOD1) != 0) )
{
@@ -593,10 +593,10 @@ IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow*, pWnd )
}
else
{
- m_pTbxIMapDlg1->EnableItem( mnActiveId, true );
+ m_pTbxIMapDlg1->EnableItem( mnActiveId );
m_pTbxIMapDlg1->CheckItem( mnActiveId, !rInfo.bActivated );
- m_pTbxIMapDlg1->EnableItem( mnMacroId, true );
- m_pTbxIMapDlg1->EnableItem( mnPropertyId, true );
+ m_pTbxIMapDlg1->EnableItem( mnMacroId );
+ m_pTbxIMapDlg1->EnableItem( mnPropertyId );
m_pFtURL->Enable();
m_pURLBox->Enable();
@@ -712,7 +712,7 @@ IMPL_LINK_NOARG_TYPED(SvxIMapDlg, UpdateHdl, Idle *, void)
SetEditingObject( pOwnData->pUpdateEditingObject );
// After changes => default selection
- m_pTbxIMapDlg1->CheckItem( mnSelectId, true );
+ m_pTbxIMapDlg1->CheckItem( mnSelectId );
pIMapWnd->SetEditMode( true );
}
@@ -761,12 +761,12 @@ IMPL_LINK( SvxIMapDlg, StateHdl, IMapWindow*, pWnd )
break;
}
- m_pTbxIMapDlg1->CheckItem( nId, true );
+ m_pTbxIMapDlg1->CheckItem( nId );
}
else
{
m_pTbxIMapDlg1->CheckItem( mnPolyEditId, false );
- m_pTbxIMapDlg1->CheckItem( mnPolyMoveId, true );
+ m_pTbxIMapDlg1->CheckItem( mnPolyMoveId );
m_pTbxIMapDlg1->CheckItem( mnPolyInsertId, false );
pWnd->SetPolyEditMode( 0 );
}
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index aff8085fd907..f7572b6d07f2 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -140,7 +140,7 @@ bool IMapWindow::ReplaceActualIMapInfo( const NotifyInfo& rNewInfo )
pIMapObj->SetURL( rNewInfo.aMarkURL );
pIMapObj->SetAltText( rNewInfo.aMarkAltText );
pIMapObj->SetTarget( rNewInfo.aMarkTarget );
- pModel->SetChanged( true );
+ pModel->SetChanged();
UpdateInfo( false );
bRet = true;
@@ -295,7 +295,7 @@ void IMapWindow::InitSdrModel()
aSet.Put( XFillColorItem( "", TRANSCOL ) );
aSet.Put( XFillTransparenceItem( 50 ) );
pView->SetAttributes( aSet );
- pView->SetFrameDragSingles( true );
+ pView->SetFrameDragSingles();
}
void IMapWindow::SdrObjCreated( const SdrObject& rObj )
@@ -500,18 +500,18 @@ void IMapWindow::Command(const CommandEvent& rCEvt)
{
SdrObject* pSdrObj = GetSelectedSdrObject();
- aMenu.EnableItem( MN_URL, true );
- aMenu.EnableItem( MN_ACTIVATE, true );
- aMenu.EnableItem( MN_MACRO, true );
+ aMenu.EnableItem( MN_URL );
+ aMenu.EnableItem( MN_ACTIVATE );
+ aMenu.EnableItem( MN_MACRO );
aMenu.CheckItem( MN_ACTIVATE, GetIMapObj( pSdrObj )->IsActive() );
}
- aMenu.EnableItem( MN_POSITION, true );
- aMenu.EnableItem( MN_FRAME_TO_TOP, true );
- aMenu.EnableItem( MN_MOREFRONT, true );
- aMenu.EnableItem( MN_MOREBACK, true );
- aMenu.EnableItem( MN_FRAME_TO_BOTTOM, true );
- aMenu.EnableItem( MN_DELETE1, true );
+ aMenu.EnableItem( MN_POSITION );
+ aMenu.EnableItem( MN_FRAME_TO_TOP );
+ aMenu.EnableItem( MN_MOREFRONT );
+ aMenu.EnableItem( MN_MOREBACK );
+ aMenu.EnableItem( MN_FRAME_TO_BOTTOM );
+ aMenu.EnableItem( MN_DELETE1 );
}
aMenu.SetSelectHdl( LINK( this, IMapWindow, MenuSelectHdl ) );
@@ -542,7 +542,7 @@ sal_Int8 IMapWindow::ExecuteDrop( const ExecuteDropEvent& rEvt )
pIMapObj->SetURL( aBookMark.GetURL() );
pIMapObj->SetAltText( aBookMark.GetDescription() );
- pModel->SetChanged( true );
+ pModel->SetChanged();
pView->UnmarkAll();
pView->MarkObj( pSdrObj, pView->GetSdrPageView() );
UpdateInfo( true );
@@ -606,7 +606,7 @@ void IMapWindow::SetCurrentObjState( bool bActive )
aSet.Put( XLineColorItem( "", Color( COL_BLACK ) ) );
}
- pView->SetAttributes( aSet, false );
+ pView->SetAttributes( aSet );
}
}
@@ -666,7 +666,7 @@ void IMapWindow::DoMacroAssign()
{
const SfxItemSet* pOutSet = pMacroDlg->GetOutputItemSet();
pIMapObj->SetMacroTable( static_cast<const SvxMacroItem& >(pOutSet->Get( SID_ATTR_MACROITEM )).GetMacroTable() );
- pModel->SetChanged( true );
+ pModel->SetChanged();
UpdateInfo( false );
}
}
@@ -702,7 +702,7 @@ void IMapWindow::DoPropertyDialog()
pIMapObj->SetDesc( aDlg->GetDesc() );
pIMapObj->SetTarget( aDlg->GetTarget() );
pIMapObj->SetName( aDlg->GetName() );
- pModel->SetChanged( true );
+ pModel->SetChanged();
UpdateInfo( true );
}
}
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 124d545b62b0..de7672f1ee79 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -928,8 +928,7 @@ void SvxSearchDialog::Init_Impl( bool bSearchPattern )
m_pSearchTmplLB->Clear();
m_pReplaceTmplLB->Clear();
SfxStyleSheetBasePool* pStylePool = pShell->GetStyleSheetPool();
- pStylePool->SetSearchMask( pSearchItem->GetFamily(),
- SFXSTYLEBIT_ALL );
+ pStylePool->SetSearchMask( pSearchItem->GetFamily() );
SfxStyleSheetBase* pBase = pStylePool->First();
while ( pBase )
@@ -1559,7 +1558,7 @@ void SvxSearchDialog::TemplatesChanged_Impl( SfxStyleSheetBasePool& rPool )
OUString aOldRepl( m_pReplaceTmplLB->GetSelectEntry() );
m_pSearchTmplLB->Clear();
m_pReplaceTmplLB->Clear();
- rPool.SetSearchMask( pSearchItem->GetFamily(), SFXSTYLEBIT_ALL );
+ rPool.SetSearchMask( pSearchItem->GetFamily() );
m_pSearchTmplLB->SetUpdateMode( false );
m_pReplaceTmplLB->SetUpdateMode( false );
SfxStyleSheetBase* pBase = rPool.First();
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 39550b7217bf..2a2104ea1b83 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -327,7 +327,7 @@ SvxRuler::SvxRuler(
mxRulerImpl->nControlerItems=i;
if( (nFlags & SvxRulerSupportFlags::SET_NULLOFFSET) == SvxRulerSupportFlags::SET_NULLOFFSET )
- SetExtraType(RULER_EXTRA_NULLOFFSET, 0);
+ SetExtraType(RULER_EXTRA_NULLOFFSET);
rBindings.LeaveRegistrations();
@@ -1420,7 +1420,7 @@ void ModifyTabs_Impl( sal_uInt16 nCount, // Number of Tabs
void SvxRuler::DragMargin1()
{
/* Dragging the left edge of frame */
- long aDragPosition = GetCorrectedDragPos( !TAB_FLAG || !NEG_FLAG, true );
+ long aDragPosition = GetCorrectedDragPos( !TAB_FLAG || !NEG_FLAG );
aDragPosition = MakePositionSticky(aDragPosition, GetRightFrameMargin(), false);
diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx
index 7e090c3fc941..53028b382895 100644
--- a/svx/source/engine3d/dragmt3d.cxx
+++ b/svx/source/engine3d/dragmt3d.cxx
@@ -355,7 +355,7 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
}
long nSnap = 0;
- if(!getSdrDragView().IsRotateAllowed(false))
+ if(!getSdrDragView().IsRotateAllowed())
nSnap = 90;
if(nSnap != 0)
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index 5c1e3959ba4e..32417339cd74 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -670,7 +670,7 @@ void E3dView::ImpChangeSomeAttributesFor3DConversion(SdrObject* pObj)
// add undo now
if( GetModel()->IsUndoEnabled() )
- AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pObj, false, false));
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pObj, false));
}
pObj->SetMergedItem(SvxColorItem(RGB_Color(COL_GRAY), EE_CHAR_COLOR));
@@ -693,7 +693,7 @@ void E3dView::ImpChangeSomeAttributesFor3DConversion2(SdrObject* pObj)
&& eFillStyle != drawing::FillStyle_NONE)
{
if(pObj->GetPage() && GetModel()->IsUndoEnabled() )
- AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pObj, false, false));
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*pObj, false));
pObj->SetMergedItem(XLineStyleItem(drawing::LineStyle_NONE));
pObj->SetMergedItem(XLineWidthItem(0L));
}
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 5a50175ff100..dbd9c3850177 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -2007,7 +2007,7 @@ Reference< XAccessibleContext > FmXGridPeer::CreateAccessibleContext()
vcl::Window* pGrid = GetWindow();
if ( pGrid )
{
- Reference< XAccessible > xAcc( pGrid->GetAccessible( true ) );
+ Reference< XAccessible > xAcc( pGrid->GetAccessible() );
if ( xAcc.is() )
xContext = xAcc->getAccessibleContext();
// TODO: this has a slight conceptual problem:
@@ -2279,7 +2279,7 @@ void FmXGridPeer::selectionChanged(const EventObject& evt) throw( RuntimeExcepti
// if this does not ?hold?catch?, the selectionChanged is cleared by the Control itself
if ( i < nColCount )
{
- pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + 1, true);
+ pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + 1);
// SelectColumnPos has led to an implicit ActivateCell again
if (pGrid->IsEditing())
pGrid->DeactivateCell();
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 82082319c7d0..a5596d1e8e61 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -2438,7 +2438,7 @@ void DbComboBox::SetList(const Any& rItems)
const OUString* pStrings = aTest.getConstArray();
sal_Int32 nItems = aTest.getLength();
for (sal_Int32 i = 0; i < nItems; ++i, ++pStrings )
- pField->InsertEntry(*pStrings, LISTBOX_APPEND);
+ pField->InsertEntry(*pStrings);
// tell the grid control that this controller is invalid and has to be re-initialized
invalidatedController();
@@ -2561,7 +2561,7 @@ void DbListBox::SetList(const Any& rItems)
if (nItems)
{
for (sal_Int32 i = 0; i < nItems; ++i, ++pStrings )
- pField->InsertEntry(*pStrings, LISTBOX_APPEND);
+ pField->InsertEntry(*pStrings);
m_rColumn.getModel()->getPropertyValue(FM_PROP_VALUE_SEQ) >>= m_aValueList;
m_bBound = m_aValueList.getLength() > 0;
@@ -2726,13 +2726,13 @@ void DbFilterField::SetList(const Any& rItems, bool bComboBox)
{
ComboBox* pField = static_cast<ComboBox*>(m_pWindow.get());
for (sal_Int32 i = 0; i < nItems; ++i, ++pStrings )
- pField->InsertEntry(*pStrings, LISTBOX_APPEND);
+ pField->InsertEntry(*pStrings);
}
else
{
ListBox* pField = static_cast<ListBox*>(m_pWindow.get());
for (sal_Int32 i = 0; i < nItems; ++i, ++pStrings )
- pField->InsertEntry(*pStrings, LISTBOX_APPEND);
+ pField->InsertEntry(*pStrings);
m_rColumn.getModel()->getPropertyValue(FM_PROP_VALUE_SEQ) >>= m_aValueList;
m_bBound = m_aValueList.getLength() > 0;
@@ -2971,7 +2971,7 @@ void DbFilterField::SetText(const OUString& rText)
{
Sequence<sal_Int16> aPosSeq = ::comphelper::findValue(m_aValueList, m_aText, true);
if (aPosSeq.getLength())
- static_cast<ListBox*>(m_pWindow.get())->SelectEntryPos(aPosSeq.getConstArray()[0], true);
+ static_cast<ListBox*>(m_pWindow.get())->SelectEntryPos(aPosSeq.getConstArray()[0]);
else
static_cast<ListBox*>(m_pWindow.get())->SetNoSelection();
} break;
@@ -3096,7 +3096,7 @@ void DbFilterField::Update()
// filling the entries for the combobox
for (::std::vector< OUString >::const_iterator iter = aStringList.begin();
iter != aStringList.end(); ++iter)
- static_cast<ComboBox*>(m_pWindow.get())->InsertEntry(*iter, LISTBOX_APPEND);
+ static_cast<ComboBox*>(m_pWindow.get())->InsertEntry(*iter);
}
}
}
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 18fb327295aa..1fc19e5676c6 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -1305,7 +1305,7 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt)
m_xEmptyRow = NULL;
if ((GetCurRow() == GetRowCount() - 1) && (GetCurRow() > 0))
GoToRowColumnId(GetCurRow() - 1, GetCurColumnId());
- RowRemoved(GetRowCount(), 1, true);
+ RowRemoved(GetRowCount(), 1);
}
}
@@ -1852,9 +1852,9 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, bool
// the cache was updated and no rowcount yet
if (nDelta < nLimit && (nDelta > 0
|| (bCacheAligned && m_nTotalCount < 0)) )
- SeekCursor(nNewTopRow + nLinesOnScreen - 1, false);
+ SeekCursor(nNewTopRow + nLinesOnScreen - 1);
else if (nDelta < 0 && std::abs(nDelta) < nLimit)
- SeekCursor(nNewTopRow, false);
+ SeekCursor(nNewTopRow);
else if (nDelta != 0 || bUpdateCursor)
SeekCursor(nNewTopRow, true);
@@ -2125,7 +2125,7 @@ void DbGridControl::CursorMoved()
// cursor movement due to deletion or insertion of rows
if (m_pDataCursor && m_nCurrentPos != GetCurRow())
{
- DeactivateCell(true);
+ DeactivateCell();
SetCurrent(GetCurRow());
}
@@ -2164,7 +2164,7 @@ void DbGridControl::setDisplaySynchron(bool bSync)
{
m_bSynchDisplay = bSync;
if (m_bSynchDisplay)
- AdjustDataSource(false);
+ AdjustDataSource();
}
}
@@ -2730,7 +2730,7 @@ void DbGridControl::DataSourcePropertyChanged(const PropertyChangeEvent& evt) th
// one is about to be cleaned, too, the second one is obsolete now.
if (m_xCurrentRow->IsNew() && nRecordCount == (GetRowCount() - 2))
{
- RowRemoved(GetRowCount() - 1, 1, true);
+ RowRemoved(GetRowCount() - 1, 1);
InvalidateStatusCell(m_nCurrentPos);
m_aBar->InvalidateAll(m_nCurrentPos);
}
@@ -2812,7 +2812,7 @@ void DbGridControl::Command(const CommandEvent& rEvt)
{
long nRow = FirstSelectedRow( );
- ::Rectangle aRowRect( GetRowRectPixel( nRow, true ) );
+ ::Rectangle aRowRect( GetRowRectPixel( nRow ) );
executeRowContextMenu( nRow, aRowRect.LeftCenter() );
// handled
@@ -3023,7 +3023,7 @@ void DbGridControl::Undo()
if (m_nCurrentPos == GetRowCount() - 2)
{ // maybe we already removed it (in resetCurrentRow, called if the above moveToInsertRow
// caused our data source form to be reset - which should be the usual case ....)
- RowRemoved(GetRowCount() - 1, 1, true);
+ RowRemoved(GetRowCount() - 1, 1);
m_aBar->InvalidateAll(m_nCurrentPos);
}
@@ -3050,7 +3050,7 @@ void DbGridControl::resetCurrentRow()
{
if (m_nCurrentPos == GetRowCount() - 2)
{
- RowRemoved(GetRowCount() - 1, 1, true);
+ RowRemoved(GetRowCount() - 1, 1);
m_aBar->InvalidateAll(m_nCurrentPos);
}
}
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 9762b5820ac1..d0b2bf7e6dbf 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -490,7 +490,7 @@ namespace svxform
xSubmissions->insert( makeAny( xNewSubmission ) );
Reference< XPropertySet > xNewPropSet( xNewSubmission, UNO_QUERY );
SvTreeListEntry* pEntry = AddEntry( xNewPropSet );
- m_pItemList->Select( pEntry, true );
+ m_pItemList->Select( pEntry );
bIsDocModified = true;
}
catch ( Exception& )
@@ -617,7 +617,7 @@ namespace svxform
{
SvTreeListEntry* pNewEntry = AddEntry( pNode, bIsElement );
m_pItemList->MakeVisible( pNewEntry );
- m_pItemList->Select( pNewEntry, true );
+ m_pItemList->Select( pNewEntry );
bIsDocModified = true;
}
else
@@ -643,7 +643,7 @@ namespace svxform
if ( RET_OK == nReturn )
{
SvTreeListEntry* pNewEntry = AddEntry( xNewBinding );
- m_pItemList->Select( pNewEntry, true );
+ m_pItemList->Select( pNewEntry );
bIsDocModified = true;
}
else
@@ -2663,19 +2663,19 @@ namespace svxform
{
if ( ( m_xTempBinding->getPropertyValue( PN_REQUIRED_EXPR ) >>= sTemp )
&& !sTemp.isEmpty() )
- m_pRequiredCB->Check( true );
+ m_pRequiredCB->Check();
if ( ( m_xTempBinding->getPropertyValue( PN_RELEVANT_EXPR ) >>= sTemp )
&& !sTemp.isEmpty() )
- m_pRelevantCB->Check( true );
+ m_pRelevantCB->Check();
if ( ( m_xTempBinding->getPropertyValue( PN_CONSTRAINT_EXPR ) >>= sTemp )
&& !sTemp.isEmpty() )
- m_pConstraintCB->Check( true );
+ m_pConstraintCB->Check();
if ( ( m_xTempBinding->getPropertyValue( PN_READONLY_EXPR ) >>= sTemp )
&& !sTemp.isEmpty() )
- m_pReadonlyCB->Check( true );
+ m_pReadonlyCB->Check();
if ( ( m_xTempBinding->getPropertyValue( PN_CALCULATE_EXPR ) >>= sTemp )
&& !sTemp.isEmpty() )
- m_pCalculateCB->Check( true );
+ m_pCalculateCB->Check();
}
catch (const Exception&)
{
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index f601b247af90..debf553e0539 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -1181,7 +1181,7 @@ void FmFilterNavigator::UpdateContent(const Reference< XIndexAccess > & xControl
{
if (!IsExpanded(pEntry))
Expand(pEntry);
- Select(pEntry, true);
+ Select(pEntry);
}
}
}
@@ -1395,7 +1395,7 @@ sal_Int8 FmFilterNavigator::ExecuteDrop( const ExecuteDropEvent& rEvt )
FmFilterItems* pTargetItems = getTargetItems(pDropTarget);
SelectAll(false);
SvTreeListEntry* pEntry = FindEntry(pTargetItems);
- Select(pEntry, true);
+ Select(pEntry);
SetCurEntry(pEntry);
insertFilterItem(m_aControlExchange->getDraggedEntries(),pTargetItems,DND_ACTION_COPY == rEvt.mnAction);
@@ -1630,7 +1630,7 @@ void FmFilterNavigator::Command( const CommandEvent& rEvt )
if (!IsSelected(pClicked))
{
SelectAll(false);
- Select(pClicked, true);
+ Select(pClicked);
SetCurEntry(pClicked);
}
}
diff --git a/svx/source/form/fmmodel.cxx b/svx/source/form/fmmodel.cxx
index 89784a65ba4d..0fff0a493447 100644
--- a/svx/source/form/fmmodel.cxx
+++ b/svx/source/form/fmmodel.cxx
@@ -176,7 +176,7 @@ void FmFormModel::implSetOpenInDesignMode( bool _bOpenDesignMode, bool _bForce )
m_bOpenInDesignMode = _bOpenDesignMode;
if ( m_pObjShell )
- m_pObjShell->SetModified( true );
+ m_pObjShell->SetModified();
}
// no matter if we really did it or not - from now on, it does not count as defaulted anymore
m_pImpl->bOpenInDesignIsDefaulted = false;
@@ -213,7 +213,7 @@ void FmFormModel::SetAutoControlFocus( bool _bAutoControlFocus )
if( _bAutoControlFocus != m_bAutoControlFocus )
{
m_bAutoControlFocus = _bAutoControlFocus;
- m_pObjShell->SetModified( true );
+ m_pObjShell->SetModified();
}
}
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx
index d94d227b78cb..759d753907d0 100644
--- a/svx/source/form/fmobj.cxx
+++ b/svx/source/form/fmobj.cxx
@@ -189,7 +189,7 @@ void FmFormObj::SetPage(SdrPage* _pNewPage)
return;
}
- Reference< css::form::XForms > xNewPageForms = pNewFormPage->GetForms( true );
+ Reference< css::form::XForms > xNewPageForms = pNewFormPage->GetForms();
Reference< XIndexContainer > xNewParent;
Sequence< ScriptEventDescriptor> aNewEvents;
@@ -372,7 +372,7 @@ FmFormObj* FmFormObj::Clone() const
void FmFormObj::NbcReformatText()
{
- impl_checkRefDevice_nothrow( false );
+ impl_checkRefDevice_nothrow();
SdrUnoObj::NbcReformatText();
}
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx
index f700bd1c23ae..7ced0b5c38e2 100644
--- a/svx/source/form/fmpgeimp.cxx
+++ b/svx/source/form/fmpgeimp.cxx
@@ -672,7 +672,7 @@ void FmFormPageImpl::formModelAssigned( const FmFormObj& _object )
try
{
- lcl_removeFormObject_throw( _object, xControlShapeMap, false );
+ lcl_removeFormObject_throw( _object, xControlShapeMap );
lcl_insertFormObject_throw( _object, xControlShapeMap );
}
catch( const Exception& )
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index fc286cab2aa7..2dfc518f077c 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -1458,7 +1458,7 @@ void FmFormShell::SetDesignMode( bool _bDesignMode )
pModel->GetUndoEnv().Lock();
// dann die eigentliche Umschaltung
- if ( m_bDesignMode || PrepareClose( true ) )
+ if ( m_bDesignMode || PrepareClose() )
impl_setDesignMode(!m_bDesignMode );
// und mein Undo-Environment wieder an
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 5d0d4b5775d4..6866e3a28f80 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -799,7 +799,7 @@ void SAL_CALL FmXFormShell::propertyChange(const PropertyChangeEvent& evt) throw
comphelper::SolarMutex& rSolarSafety = Application::GetSolarMutex();
if (rSolarSafety.tryToAcquire())
{
- m_pShell->GetViewShell()->GetViewFrame()->GetBindings().Invalidate(SID_FM_RECORD_TOTAL, true, false);
+ m_pShell->GetViewShell()->GetViewFrame()->GetBindings().Invalidate(SID_FM_RECORD_TOTAL, true);
m_pShell->GetViewShell()->GetViewFrame()->GetBindings().Update(SID_FM_RECORD_TOTAL);
rSolarSafety.release();
}
@@ -2789,7 +2789,7 @@ void FmXFormShell::SetDesignMode(bool bDesign)
m_aMarkTimer.Stop();
SuspendPropertyTracking aSuspend( *this );
- pFormView->GetImpl()->saveMarkList( true );
+ pFormView->GetImpl()->saveMarkList();
}
if (bDesign && m_xExternalViewController.is())
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index 02b559add9c6..35d4538fb380 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -744,7 +744,7 @@ void FmXUndoEnvironment::implSetModified()
{
if ( !IsLocked() && rModel.GetObjectShell() )
{
- rModel.GetObjectShell()->SetModified( true );
+ rModel.GetObjectShell()->SetModified();
}
}
@@ -972,7 +972,7 @@ FmUndoPropertyAction::FmUndoPropertyAction(FmFormModel& rNewMod, const PropertyC
,aOldValue(evt.OldValue)
{
if (rNewMod.GetObjectShell())
- rNewMod.GetObjectShell()->SetModified(true);
+ rNewMod.GetObjectShell()->SetModified();
if(static_STR_UNDO_PROPERTY.isEmpty())
static_STR_UNDO_PROPERTY = SVX_RESSTR(RID_STR_UNDO_PROPERTY);
}
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index 26a0c09f8411..a175699c05b3 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -244,9 +244,9 @@ void FmFormView::ChangeDesignMode(bool bDesign)
// --- 2. simulate a deactivation (the shell will handle some things there ...?)
if ( pFormShell && pFormShell->GetImpl() )
- pFormShell->GetImpl()->viewDeactivated( *this, true );
+ pFormShell->GetImpl()->viewDeactivated( *this );
else
- pImpl->Deactivate( true );
+ pImpl->Deactivate();
// --- 3. activate all controls, if we're switching to alive mode
if ( !bDesign )
@@ -338,7 +338,7 @@ SdrPageView* FmFormView::ShowSdrPage(SdrPage* pPage)
pFormShellImpl->UpdateForms( true );
// damit der Formular-Navigator auf den Seitenwechsel reagieren kann
- pFormShell->GetViewShell()->GetViewFrame()->GetBindings().Invalidate(SID_FM_FMEXPLORER_CONTROL, true, false);
+ pFormShell->GetViewShell()->GetViewFrame()->GetBindings().Invalidate(SID_FM_FMEXPLORER_CONTROL, true);
pFormShellImpl->SetSelection(GetMarkedObjectList());
}
@@ -362,9 +362,9 @@ void FmFormView::HideSdrPage()
// --- 2. tell the shell the view is (going to be) deactivated
if ( pFormShell && pFormShell->GetImpl() )
- pFormShell->GetImpl()->viewDeactivated( *this, true );
+ pFormShell->GetImpl()->viewDeactivated( *this );
else
- pImpl->Deactivate( true );
+ pImpl->Deactivate();
// --- 3. base class behavior
E3dView::HideSdrPage();
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx
index dbc3b2e6dcae..7eeb6e59c8e8 100644
--- a/svx/source/form/navigatortree.cxx
+++ b/svx/source/form/navigatortree.cxx
@@ -323,7 +323,7 @@ namespace svxform
if ( !IsSelected(ptClickedOn) )
{
SelectAll(false);
- Select(ptClickedOn, true);
+ Select(ptClickedOn);
SetCurEntry(ptClickedOn);
}
}
@@ -641,7 +641,7 @@ namespace svxform
for( size_t i = 0; i < nChildCount; i++ )
{
FmEntryData* pChildData = pChildList->at( i );
- Insert( pChildData, TREELIST_APPEND );
+ Insert( pChildData );
}
return pNewEntry;
@@ -1006,7 +1006,7 @@ namespace svxform
}
SvTreeListEntry* pToSelect = FindEntry(pNewControlData);
- Select(pToSelect, true);
+ Select(pToSelect);
if (i == 0)
SetCurEntry(pToSelect);
}
@@ -1422,7 +1422,7 @@ namespace svxform
// switch to EditMode
SvTreeListEntry* pNewEntry = FindEntry( pNewFormControlData );
- Select( pNewEntry, true );
+ Select( pNewEntry );
EditEntry( pNewEntry );
}
@@ -1934,7 +1934,7 @@ namespace svxform
FmEntryDataArray::iterator it = arredToSelect.find(pCurEntryData);
if ( it != arredToSelect.end() )
{
- Select(pLoop, true);
+ Select(pLoop);
MakeVisible(pLoop);
SetCursor(pLoop, true);
}
@@ -1978,7 +1978,7 @@ namespace svxform
SvTreeListEntry* pSelectionLoop = *it;
// When form selection, mark all controls of form
if (IsFormEntry(pSelectionLoop) && (pSelectionLoop != m_pRootEntry))
- MarkViewObj(static_cast<FmFormData*>(pSelectionLoop->GetUserData()), true, false);
+ MarkViewObj(static_cast<FmFormData*>(pSelectionLoop->GetUserData()), true);
// When control selection, mark Control-SdrObjects
else if (IsFormComponentEntry(pSelectionLoop))
@@ -2005,7 +2005,7 @@ namespace svxform
// if PropertyBrowser is open, i have to adopt it according to my selection
// (Not as MarkList of view : if a form is selected, all belonging controls are selected in the view
// but of course i want to see the form-properties
- ShowSelectionProperties(false);
+ ShowSelectionProperties();
// reset flag at view
pFormShell->GetImpl()->EnableTrackProperties(true);
@@ -2088,7 +2088,7 @@ namespace svxform
if ( xControlModel.is() && aObjects.find(xControlModel) != aObjects.end() && bMark != pFormView->IsObjMarked( pSdrObject ) )
{
// unfortunately, the writer doesn't like marking an already-marked object, again, so reset the mark first
- pFormView->MarkObj( pSdrObject, pPageView, !bMark, false );
+ pFormView->MarkObj( pSdrObject, pPageView, !bMark );
}
} // while ( aIter.IsMore() )
if ( bMark )
@@ -2155,7 +2155,7 @@ namespace svxform
// mark the object
if ( bMark != pFormView->IsObjMarked( pSdrObject ) )
// unfortunately, the writer doesn't like marking an already-marked object, again, so reset the mark first
- pFormView->MarkObj( pSdrObject, pPageView, !bMark, false );
+ pFormView->MarkObj( pSdrObject, pPageView, !bMark );
if ( !bMarkHandles || !bMark )
continue;
diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx
index 9bfa52b43962..b0c2071c16fd 100644
--- a/svx/source/form/navigatortreemodel.cxx
+++ b/svx/source/form/navigatortreemodel.cxx
@@ -141,7 +141,7 @@ namespace svxform
// delete EntryData
Reference< XFormComponent > xReplaced;
evt.ReplacedElement >>= xReplaced;
- FmEntryData* pEntryData = m_pNavModel->FindData(xReplaced, m_pNavModel->GetRootList(), true);
+ FmEntryData* pEntryData = m_pNavModel->FindData(xReplaced, m_pNavModel->GetRootList());
if (pEntryData)
{
if (pEntryData->ISA(FmControlData))
@@ -171,7 +171,7 @@ namespace svxform
// delete EntryData
- FmEntryData* pEntryData = m_pNavModel->FindData( _rxElement, m_pNavModel->GetRootList(), true );
+ FmEntryData* pEntryData = m_pNavModel->FindData( _rxElement, m_pNavModel->GetRootList() );
if (pEntryData)
m_pNavModel->Remove(pEntryData);
@@ -623,7 +623,7 @@ namespace svxform
const Reference< XFormComponent > & xNew
)
{
- FmEntryData* pData = FindData(xOld, GetRootList(), true);
+ FmEntryData* pData = FindData(xOld, GetRootList());
assert(pData && pData->ISA(FmControlData)); //NavigatorTreeModel::ReplaceFormComponent : invalid argument
if (!pData || !pData->ISA(FmControlData))
return;
@@ -752,7 +752,7 @@ namespace svxform
try
{
Reference< XFormComponent > xFormComponent( pFormObject->GetUnoControlModel(), UNO_QUERY_THROW );
- FmEntryData* pEntryData = FindData( xFormComponent, GetRootList(), true );
+ FmEntryData* pEntryData = FindData( xFormComponent, GetRootList() );
if ( pEntryData )
Remove( pEntryData );
}
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index e3fc97d1acf7..8830f65981f1 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -261,9 +261,9 @@ void GalleryThemePopup::ExecutePopup( vcl::Window *pWindow, const ::Point &aPos
else
{
maPopupMenu.EnableItem( MN_DELETE, !mbPreview );
- maPopupMenu.EnableItem( MN_TITLE, true );
- maPopupMenu.EnableItem( MN_COPYCLIPBOARD, true );
- maPopupMenu.EnableItem( MN_PASTECLIPBOARD, true );
+ maPopupMenu.EnableItem( MN_TITLE );
+ maPopupMenu.EnableItem( MN_COPYCLIPBOARD );
+ maPopupMenu.EnableItem( MN_PASTECLIPBOARD );
}
#ifdef GALLERY_USE_CLIPBOARD
@@ -329,7 +329,7 @@ void GalleryThemePopup::ExecutePopup( vcl::Window *pWindow, const ::Point &aPos
maPopupMenu.EnableItem( MN_BACKGROUND, false );
else
{
- maPopupMenu.EnableItem( MN_BACKGROUND, true );
+ maPopupMenu.EnableItem( MN_BACKGROUND );
maPopupMenu.SetPopupMenu( MN_BACKGROUND, &maBackgroundPopup );
maBackgroundPopup.SetSelectHdl( LINK( this, GalleryThemePopup, BackgroundMenuSelectHdl ) );
}
@@ -768,9 +768,9 @@ void GalleryBrowser2::SelectTheme( const OUString& rThemeName )
Resize();
ImplUpdateViews( 1 );
- maViewBox->EnableItem( TBX_ID_ICON, true );
- maViewBox->EnableItem( TBX_ID_LIST, true );
- maViewBox->CheckItem( ( GALLERYBROWSERMODE_ICON == GetMode() ) ? TBX_ID_ICON : TBX_ID_LIST, true );
+ maViewBox->EnableItem( TBX_ID_ICON );
+ maViewBox->EnableItem( TBX_ID_LIST );
+ maViewBox->CheckItem( ( GALLERYBROWSERMODE_ICON == GetMode() ) ? TBX_ID_ICON : TBX_ID_LIST );
if(maInfoBar->GetText().isEmpty())
mpIconView->SetAccessibleRelationLabeledBy(mpIconView);
@@ -797,10 +797,10 @@ void GalleryBrowser2::SetMode( GalleryBrowserMode eMode )
mpIconView->Show();
- maViewBox->EnableItem( TBX_ID_ICON, true );
- maViewBox->EnableItem( TBX_ID_LIST, true );
+ maViewBox->EnableItem( TBX_ID_ICON );
+ maViewBox->EnableItem( TBX_ID_LIST );
- maViewBox->CheckItem( TBX_ID_ICON, true );
+ maViewBox->CheckItem( TBX_ID_ICON );
maViewBox->CheckItem( TBX_ID_LIST, false );
}
break;
@@ -815,11 +815,11 @@ void GalleryBrowser2::SetMode( GalleryBrowserMode eMode )
mpListView->Show();
- maViewBox->EnableItem( TBX_ID_ICON, true );
- maViewBox->EnableItem( TBX_ID_LIST, true );
+ maViewBox->EnableItem( TBX_ID_ICON );
+ maViewBox->EnableItem( TBX_ID_LIST );
maViewBox->CheckItem( TBX_ID_ICON, false );
- maViewBox->CheckItem( TBX_ID_LIST, true );
+ maViewBox->CheckItem( TBX_ID_LIST );
}
break;
diff --git a/svx/source/gallery2/galexpl.cxx b/svx/source/gallery2/galexpl.cxx
index c19985c2227e..de551660565d 100644
--- a/svx/source/gallery2/galexpl.cxx
+++ b/svx/source/gallery2/galexpl.cxx
@@ -220,7 +220,7 @@ bool GalleryExplorer::GetSdrObj( const OUString& rThemeName, sal_uIntPtr nSdrMod
if( nActPos++ == nSdrModelPos )
{
if( pModel )
- bRet = bRet || pTheme->GetModel( i, *pModel, false );
+ bRet = bRet || pTheme->GetModel( i, *pModel );
if( pThumb )
bRet = bRet || pTheme->GetThumb( i, *pThumb );
diff --git a/svx/source/items/chrtitem.cxx b/svx/source/items/chrtitem.cxx
index 7b1fb27dfb89..2a83482644a5 100644
--- a/svx/source/items/chrtitem.cxx
+++ b/svx/source/items/chrtitem.cxx
@@ -210,7 +210,7 @@ SvxDoubleItem::SvxDoubleItem(const SvxDoubleItem& rItem) :
OUString SvxDoubleItem::GetValueText() const
{
- return rtl::math::doubleToUString( fVal, rtl_math_StringFormat_E, 4, '.', false );
+ return rtl::math::doubleToUString( fVal, rtl_math_StringFormat_E, 4, '.' );
}
diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx
index d59308a9b3c3..0319a0553375 100644
--- a/svx/source/sdr/contact/viewcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx
@@ -131,7 +131,7 @@ namespace sdr
aSmallerMatrix = basegfx::tools::createShearXRotateTranslateB2DHomMatrix(fShearX, fRotate, aTranslate)
* aSmallerMatrix;
- const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject(false);
+ const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject();
const GraphicAttr aLocalGrafInfo;
const drawinglayer::primitive2d::Primitive2DReference xReferenceB(new drawinglayer::primitive2d::SdrGrafPrimitive2D(
aSmallerMatrix,
@@ -367,7 +367,7 @@ namespace sdr
aObjectRange.getMinX(), aObjectRange.getMinY()));
// get the current, unchanged graphic object from SdrGrafObj
- const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject(false);
+ const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject();
if(visualisationUsesPresObj())
{
@@ -420,7 +420,7 @@ namespace sdr
return false;
// draft when swapped out
- const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject(false);
+ const GraphicObject& rGraphicObject = GetGrafObject().GetGraphicObject();
static bool bAllowReplacements(true);
if(rGraphicObject.IsSwappedOut() && bAllowReplacements)
diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
index a1dc695d8395..25109df16e89 100644
--- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
+++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
@@ -303,7 +303,7 @@ namespace sdr
// paint overlay content for remembered region, use
// method from base class directly
- mpOutputBufferDevice->EnableMapMode(true);
+ mpOutputBufferDevice->EnableMapMode();
OverlayManager::ImpDrawMembers(aBufferRememberedRangeLogic, *mpOutputBufferDevice.get());
mpOutputBufferDevice->EnableMapMode(false);
diff --git a/svx/source/sidebar/line/LineWidthValueSet.cxx b/svx/source/sidebar/line/LineWidthValueSet.cxx
index be41e3338c3d..b8354fc6dca9 100644
--- a/svx/source/sidebar/line/LineWidthValueSet.cxx
+++ b/svx/source/sidebar/line/LineWidthValueSet.cxx
@@ -31,7 +31,7 @@ LineWidthValueSet::LineWidthValueSet (
bCusEnable(false)
{
strUnit = new OUString[9];
- SetColCount( 1 );
+ SetColCount();
SetLineCount( 9);
}
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index 6555b924d465..eb44e60cae7e 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -448,13 +448,13 @@ void ParaPropertyPanel::StateChangedIndentImpl( sal_uInt16 /*nSID*/, SfxItemStat
const sal_uInt16 nIdIncrIndent = mpTbxIndent_IncDec->GetItemId(UNO_INCREMENTINDENT);
const sal_uInt16 nIdDecrIndent = mpTbxIndent_IncDec->GetItemId(UNO_DECREMENTINDENT);
- mpTbxIndent_IncDec->EnableItem(nIdHangingIndent, true);
+ mpTbxIndent_IncDec->EnableItem(nIdHangingIndent);
if ( maContext.GetCombinedContext_DI() != CombinedEnumContext(Application_WriterVariants, Context_Text)
&& maContext.GetCombinedContext_DI() != CombinedEnumContext(Application_WriterVariants, Context_Default)
&& maContext.GetCombinedContext_DI() != CombinedEnumContext(Application_WriterVariants, Context_Table) )
{
- mpTbxIndent_IncDec->EnableItem(nIdIncrIndent, true);
- mpTbxIndent_IncDec->EnableItem(nIdDecrIndent, true);
+ mpTbxIndent_IncDec->EnableItem(nIdIncrIndent);
+ mpTbxIndent_IncDec->EnableItem(nIdDecrIndent);
}
}
else if( eState == SfxItemState::DISABLED )
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 53d87883a06b..a4a40a5b6b77 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -1216,10 +1216,10 @@ void PosSizePropertyPanel::UpdateUIScale()
// The content of the position and size boxes is only updated when item changes are notified.
// Request such notifications without changing the actual item values.
- GetBindings()->Invalidate(SID_ATTR_TRANSFORM_POS_X, true, false);
- GetBindings()->Invalidate(SID_ATTR_TRANSFORM_POS_Y, true, false);
- GetBindings()->Invalidate(SID_ATTR_TRANSFORM_WIDTH, true, false);
- GetBindings()->Invalidate(SID_ATTR_TRANSFORM_HEIGHT, true, false);
+ GetBindings()->Invalidate(SID_ATTR_TRANSFORM_POS_X, true);
+ GetBindings()->Invalidate(SID_ATTR_TRANSFORM_POS_Y, true);
+ GetBindings()->Invalidate(SID_ATTR_TRANSFORM_WIDTH, true);
+ GetBindings()->Invalidate(SID_ATTR_TRANSFORM_HEIGHT, true);
}
}
diff --git a/svx/source/sidebar/text/TextUnderlineControl.cxx b/svx/source/sidebar/text/TextUnderlineControl.cxx
index da7bbf870b22..fc7362f53f39 100644
--- a/svx/source/sidebar/text/TextUnderlineControl.cxx
+++ b/svx/source/sidebar/text/TextUnderlineControl.cxx
@@ -125,7 +125,7 @@ void TextUnderlineControl::initial()
maVSUnderline->InsertItem(10, maIMGWave, SVX_RESSTR(STR_WAVE));
maVSUnderline->SetItemData(10, reinterpret_cast<void*>(UNDERLINE_WAVE));
- maVSUnderline->SetColCount( 1 );
+ maVSUnderline->SetColCount();
aLink = LINK( this, TextUnderlineControl, VSSelectHdl ) ;
maVSUnderline->SetSelectHdl(aLink);
diff --git a/svx/source/sidebar/tools/PopupControl.cxx b/svx/source/sidebar/tools/PopupControl.cxx
index 68b8bfa4ad5f..93e696a3a621 100644
--- a/svx/source/sidebar/tools/PopupControl.cxx
+++ b/svx/source/sidebar/tools/PopupControl.cxx
@@ -29,7 +29,7 @@ PopupControl::PopupControl (
const ResId& rResId)
: Control( pParent,rResId)
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetControlBackground();
SetBackground(Theme::GetWallpaper(Theme::Paint_DropDownBackground));
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
index 80bceaeda362..f0bc51373f62 100644
--- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
@@ -38,7 +38,7 @@ ValueSetWithTextControl::ValueSetWithTextControl(
, meControlType( eControlType )
, maItems()
{
- SetColCount( 1 );
+ SetColCount();
}
void ValueSetWithTextControl::AddItem(
@@ -147,7 +147,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt )
{
const Rectangle aRect = rUDEvt.GetRect();
vcl::RenderContext* pDev = rUDEvt.GetRenderContext();
- pDev->Push( PushFlags::ALL );
+ pDev->Push();
const sal_uInt16 nItemId = rUDEvt.GetItemId();
const long nRectHeight = aRect.GetHeight();
diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx
index c44f45625bb9..49bc531d8c6b 100644
--- a/svx/source/stbctrls/selctrl.cxx
+++ b/svx/source/stbctrls/selctrl.cxx
@@ -67,7 +67,7 @@ static sal_uInt16 state_to_id( sal_uInt16 nState )
SelectionTypePopup::SelectionTypePopup( sal_uInt16 nCurrent )
: PopupMenu( ResId( RID_SVXMENU_SELECTION, DIALOG_MGR() ) )
{
- CheckItem( state_to_id( nCurrent ), true );
+ CheckItem( state_to_id( nCurrent ) );
}
SvxSelectionModeControl::SvxSelectionModeControl( sal_uInt16 _nSlotId,
diff --git a/svx/source/svdraw/sdrundomanager.cxx b/svx/source/svdraw/sdrundomanager.cxx
index adec049b539f..1487ddb89d94 100644
--- a/svx/source/svdraw/sdrundomanager.cxx
+++ b/svx/source/svdraw/sdrundomanager.cxx
@@ -40,7 +40,7 @@ bool SdrUndoManager::Undo()
bool bRetval(false);
// we are in text edit mode
- if(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0))
+ if(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction())
{
// there is an undo action for text edit, trigger it
bRetval = EditUndoManager::Undo();
@@ -85,7 +85,7 @@ void SdrUndoManager::Clear()
{
if(isTextEditActive())
{
- while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0))
+ while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction())
{
RemoveLastUndoAction();
}
@@ -107,14 +107,14 @@ void SdrUndoManager::SetEndTextEditHdl(const Link<>& rLink)
if(isTextEditActive())
{
// text edit start, remember last non-textedit action for later cleanup
- mpLastUndoActionBeforeTextEdit = GetUndoActionCount() ? GetUndoAction(0) : 0;
+ mpLastUndoActionBeforeTextEdit = GetUndoActionCount() ? GetUndoAction() : 0;
}
else
{
// text edit ends, pop all textedit actions up to the remembered non-textedit action from the start
// to set back the UndoManager to the state before text edit started. If that action is already gone
// (due to being removed from the undo stack in the meantime), all need to be removed anyways
- while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction(0))
+ while(GetUndoActionCount() && mpLastUndoActionBeforeTextEdit != GetUndoAction())
{
RemoveLastUndoAction();
}
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 2b2269268745..69fc2b55f121 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -315,7 +315,7 @@ SdrItemPool::SdrItemPool(
pBoxInfoItem->SetTable( true );
pBoxInfoItem->SetDist( true); // always show margin field
- pBoxInfoItem->SetValid( SvxBoxInfoItemValidFlags::DISABLE, true ); // some lines may have DontCare state only in tables
+ pBoxInfoItem->SetValid( SvxBoxInfoItemValidFlags::DISABLE ); // some lines may have DontCare state only in tables
mppLocalPoolDefaults[ SDRATTR_TABLE_BORDER_INNER - SDRATTR_START ] = pBoxInfoItem;
mppLocalPoolDefaults[ SDRATTR_TABLE_BORDER_TLBR - SDRATTR_START ] = new SvxLineItem( SDRATTR_TABLE_BORDER_TLBR );
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index aa445ded01f0..77dd08107358 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -1068,8 +1068,8 @@ void SdrDragMovHdl::MoveSdrDrag(const Point& rNoSnapPnt)
if (getSdrDragView().IsMirrorAllowed(true,true))
{ // limited
- if (!getSdrDragView().IsMirrorAllowed(false,false)) nSA=4500;
- if (!getSdrDragView().IsMirrorAllowed(true,false)) nSA=9000;
+ if (!getSdrDragView().IsMirrorAllowed(false)) nSA=4500;
+ if (!getSdrDragView().IsMirrorAllowed(true)) nSA=9000;
}
if (getSdrDragView().IsOrtho() && nSA!=9000)
@@ -1970,7 +1970,7 @@ void SdrDragResize::MoveSdrDrag(const Point& rNoSnapPnt)
bool bXNeg=nXMul<0; if (bXNeg) nXMul=-nXMul;
bool bYNeg=nYMul<0; if (bYNeg) nYMul=-nYMul;
- bool bOrtho=getSdrDragView().IsOrtho() || !getSdrDragView().IsResizeAllowed(false);
+ bool bOrtho=getSdrDragView().IsOrtho() || !getSdrDragView().IsResizeAllowed();
if (!DragStat().IsHorFixed() && !DragStat().IsVerFixed())
{
@@ -2176,7 +2176,7 @@ void SdrDragRotate::MoveSdrDrag(const Point& rPnt_)
if (getSdrDragView().IsAngleSnapEnabled())
nSA=getSdrDragView().GetSnapAngle();
- if (!getSdrDragView().IsRotateAllowed(false))
+ if (!getSdrDragView().IsRotateAllowed())
nSA=9000;
if (nSA!=0)
@@ -2581,10 +2581,10 @@ bool SdrDragMirror::BeginSdrDrag()
bool b45=b90 || (std::abs(aDif.X()) == std::abs(aDif.Y()));
nAngle=NormAngle360(GetAngle(aDif));
- if (!getSdrDragView().IsMirrorAllowed(false,false) && !b45)
+ if (!getSdrDragView().IsMirrorAllowed(false) && !b45)
return false; // free choice of axis angle not allowed
- if (!getSdrDragView().IsMirrorAllowed(true,false) && !b90)
+ if (!getSdrDragView().IsMirrorAllowed() && !b90)
return false; // 45 degrees not allowed either
bSide0=ImpCheckSide(DragStat().GetStart());
@@ -2960,10 +2960,10 @@ void SdrDragCrook::createSdrDragEntries()
bool SdrDragCrook::BeginSdrDrag()
{
- bContortionAllowed=getSdrDragView().IsCrookAllowed(false);
+ bContortionAllowed=getSdrDragView().IsCrookAllowed();
bNoContortionAllowed=getSdrDragView().IsCrookAllowed(true);
- bResizeAllowed=getSdrDragView().IsResizeAllowed(false);
- bRotateAllowed=getSdrDragView().IsRotateAllowed(false);
+ bResizeAllowed=getSdrDragView().IsResizeAllowed();
+ bRotateAllowed=getSdrDragView().IsRotateAllowed();
if (bContortionAllowed || bNoContortionAllowed)
{
@@ -3353,7 +3353,7 @@ void SdrDragCrook::applyCurrentTransformationToSdrObject(SdrObject& rTarget)
if (bDoCrook)
{
const Rectangle aLocalMarkRect(getSdrDragView().GetMarkedObjRect());
- const bool bLocalRotate(!bContortion && eMode == SDRCROOK_ROTATE && getSdrDragView().IsRotateAllowed(false));
+ const bool bLocalRotate(!bContortion && eMode == SDRCROOK_ROTATE && getSdrDragView().IsRotateAllowed());
SdrEditView::ImpCrookObj(&rTarget,aCenter,aRad,eMode,bVertical,!bContortion,bLocalRotate,aLocalMarkRect);
}
@@ -3498,7 +3498,7 @@ void SdrDragDistort::createSdrDragEntries()
bool SdrDragDistort::BeginSdrDrag()
{
- bContortionAllowed=getSdrDragView().IsDistortAllowed(false);
+ bContortionAllowed=getSdrDragView().IsDistortAllowed();
bNoContortionAllowed=getSdrDragView().IsDistortAllowed(true);
if (bContortionAllowed || bNoContortionAllowed)
@@ -3728,7 +3728,7 @@ bool SdrDragCrop::EndSdrDrag(bool /*bCopy*/)
// Take ortho into account.
bool bXNeg=nXMul<0; if (bXNeg) nXMul=-nXMul;
bool bYNeg=nYMul<0; if (bYNeg) nYMul=-nYMul;
- bool bOrtho=getSdrDragView().IsOrtho() || !getSdrDragView().IsResizeAllowed(false);
+ bool bOrtho=getSdrDragView().IsOrtho() || !getSdrDragView().IsResizeAllowed();
if (!DragStat().IsHorFixed() && !DragStat().IsVerFixed())
{
diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx
index b9b0b76fce45..0bae03467517 100644
--- a/svx/source/svdraw/svddrgv.cxx
+++ b/svx/source/svdraw/svddrgv.cxx
@@ -111,7 +111,7 @@ void SdrDragView::EndAction()
{
if (mpCurrentSdrDragMethod)
{
- EndDragObj(false);
+ EndDragObj();
}
SdrExchangeView::EndAction();
}
@@ -294,7 +294,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
{
if (meDragMode==SDRDRAG_SHEAR || meDragMode==SDRDRAG_DISTORT)
{
- if (!IsDistortAllowed(true) && !IsDistortAllowed(false)) return false;
+ if (!IsDistortAllowed(true) && !IsDistortAllowed()) return false;
mpCurrentSdrDragMethod = new SdrDragDistort(*this);
}
else
@@ -393,7 +393,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
}
else
{
- if (!IsCrookAllowed(true) && !IsCrookAllowed(false)) return false;
+ if (!IsCrookAllowed(true) && !IsCrookAllowed()) return false;
mpCurrentSdrDragMethod = new SdrDragCrook(*this);
}
} break;
@@ -705,7 +705,7 @@ bool SdrDragView::EndInsObjPoint(SdrCreateCmd eCmd)
{
sal_uInt32 nNextPnt(mnInsPointNum);
Point aPnt(aDragStat.GetNow());
- bool bOk=EndDragObj(false);
+ bool bOk=EndDragObj();
if (bOk && eCmd!=SDRCREATE_FORCEEND)
{
// Ret=True means: Action is over.
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx
index 83f8a66cd2cc..fca61f6534a8 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -590,7 +590,7 @@ void SdrEditView::CrookMarkedObj(const Point& rRef, const Point& rRad, SdrCrookM
Rectangle aMarkRect(GetMarkedObjRect());
const bool bUndo = IsUndoEnabled();
- bool bRotate=bNoContortion && eMode==SDRCROOK_ROTATE && IsRotateAllowed(false);
+ bool bRotate=bNoContortion && eMode==SDRCROOK_ROTATE && IsRotateAllowed();
if( bUndo )
{
@@ -1045,7 +1045,7 @@ void SdrEditView::SetAttrToMarked(const SfxItemSet& rAttr, bool bReplaceAll)
// uses its second parameter (bInvalidAsDefault) to
// remove all such items to set them to default.
SfxItemSet aAttr(*rAttr.GetPool(), rAttr.GetRanges());
- aAttr.Put(rAttr, true);
+ aAttr.Put(rAttr);
// #i38135#
bool bResetAnimationTimer(false);
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 88d46504cca4..2a4c97e1d72f 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -1200,7 +1200,7 @@ bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin)
if( pMod )
{
if( pTextEditOutliner && pTextEditOutliner->IsModified() )
- pMod->SetChanged( true );
+ pMod->SetChanged();
}
if (pWin!=NULL && pWin!=pTextEditWin) SetTextEditWin(pWin);
@@ -1593,7 +1593,7 @@ bool SdrObjEditView::SetAttributes(const SfxItemSet& rSet, bool bReplaceAll)
ImpTakeDescriptionStr(STR_EditSetAttributes,aStr);
BegUndo(aStr);
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*mxTextEditObj.get()));
- AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*mxTextEditObj.get(),false,false));
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoAttrObject(*mxTextEditObj.get(),false));
EndUndo();
}
@@ -2059,7 +2059,7 @@ void SdrObjEditView::ApplyFormatPaintBrushToText( SfxItemSet& rFormatSet, SdrTex
for(sal_Int32 nPara = 0; nPara < nParaCount; nPara++)
{
if( !bNoCharacterFormats )
- rOutliner.RemoveCharAttribs( nPara, /* remove all */0 );
+ rOutliner.RemoveCharAttribs( nPara );
SfxItemSet aSet(rOutliner.GetParaAttribs(nPara));
aSet.Put(CreatePaintSet( GetFormatRangeImpl(true), *aSet.GetPool(), rFormatSet, aSet, bNoCharacterFormats, bNoParagraphFormats ) );
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index e8a1dc35300b..8baffe4db637 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1418,7 +1418,7 @@ void SdrModel::InsertPage(SdrPage* pPage, sal_uInt16 nPos)
if (nPos>nCount) nPos=nCount;
maPages.insert(maPages.begin()+nPos,pPage);
PageListChanged();
- pPage->SetInserted(true);
+ pPage->SetInserted();
pPage->SetPageNum(nPos);
pPage->SetModel(this);
if (nPos<nCount) bPagNumsDirty=true;
@@ -1469,7 +1469,7 @@ void SdrModel::InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos)
if (nPos>nCount) nPos=nCount;
maMaPag.insert(maMaPag.begin()+nPos,pPage);
MasterPageListChanged();
- pPage->SetInserted(true);
+ pPage->SetInserted();
pPage->SetPageNum(nPos);
pPage->SetModel(this);
if (nPos<nCount) {
@@ -1694,7 +1694,7 @@ void SdrModel::Merge(SdrModel& rSourceModel,
// inconsistent until all are in.
maMaPag.insert(maMaPag.begin()+nDstMasterPageAnz, pPg);
MasterPageListChanged();
- pPg->SetInserted(true);
+ pPg->SetInserted();
pPg->SetModel(this);
bMPgNumsDirty=true;
if (bUndo) AddUndo(GetSdrUndoFactory().CreateUndoNewPage(*pPg));
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index b78776b7bb75..22d699be4d55 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -1815,7 +1815,7 @@ void SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded()
{
sal_uInt16 nPointCount=aPoly.GetSize();
for (sal_uInt16 i=0; i<nPointCount; i++)
- ShearPoint(aPoly[i],maRect.Center(), fTan, false );
+ ShearPoint(aPoly[i],maRect.Center(), fTan );
}
if ( aGeo.nRotationAngle )
aPoly.Rotate( maRect.Center(), aGeo.nRotationAngle / 10 );
@@ -1948,7 +1948,7 @@ bool SdrObjCustomShape::beginSpecialDrag(SdrDragStat& rDrag) const
if(pHdl && HDL_CUSTOMSHAPE1 == pHdl->GetKind())
{
rDrag.SetEndDragChangesAttributes(true);
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
}
else
{
diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx
index 342f392c8f80..35a69caa712f 100644
--- a/svx/source/svdraw/svdocapt.cxx
+++ b/svx/source/svdraw/svdocapt.cxx
@@ -322,14 +322,14 @@ bool SdrCaptionObj::beginSpecialDrag(SdrDragStat& rDrag) const
}
else
{
- rDrag.SetOrtho8Possible(true);
+ rDrag.SetOrtho8Possible();
if(!pHdl)
{
if (bMovProt)
return false;
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
rDrag.SetActionRect(maRect);
Point aHit(rDrag.GetStart());
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index 1468008781d2..8c75b1656a7a 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -486,7 +486,7 @@ bool SdrCircObj::beginSpecialDrag(SdrDragStat& rDrag) const
{
if(1 == rDrag.GetHdl()->GetPointNum() || 2 == rDrag.GetHdl()->GetPointNum())
{
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
}
return true;
@@ -587,7 +587,7 @@ OUString SdrCircObj::getSpecialDragComment(const SdrDragStat& rDrag) const
nAngle = pU->nEnd;
}
- aBuf.append(GetAngleStr(nAngle,false));
+ aBuf.append(GetAngleStr(nAngle));
aBuf.append(')');
}
@@ -605,7 +605,7 @@ OUString SdrCircObj::getSpecialDragComment(const SdrDragStat& rDrag) const
ImpTakeDescriptionStr(STR_DragCircAngle, aStr);
OUStringBuffer aBuf(aStr);
aBuf.appendAscii(" (");
- aBuf.append(GetAngleStr(nAngle,false));
+ aBuf.append(GetAngleStr(nAngle));
aBuf.append(')');
return aBuf.makeStringAndClear();
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index d3f670abf20c..102fa0317beb 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -1747,10 +1747,10 @@ SdrHdl* SdrEdgeObj::GetHdl(sal_uInt32 nHdlNum) const
if (nPointCount!=0) {
if (nHdlNum==0) {
pHdl=new ImpEdgeHdl((*pEdgeTrack)[0],HDL_POLY);
- if (aCon1.pObj!=NULL && aCon1.bBestVertex) pHdl->Set1PixMore(true);
+ if (aCon1.pObj!=NULL && aCon1.bBestVertex) pHdl->Set1PixMore();
} else if (nHdlNum==1) {
pHdl=new ImpEdgeHdl((*pEdgeTrack)[sal_uInt16(nPointCount-1)],HDL_POLY);
- if (aCon2.pObj!=NULL && aCon2.bBestVertex) pHdl->Set1PixMore(true);
+ if (aCon2.pObj!=NULL && aCon2.bBestVertex) pHdl->Set1PixMore();
} else {
SdrEdgeKind eKind=static_cast<const SdrEdgeKindItem&>(GetObjectItem(SDRATTR_EDGEKIND)).GetValue();
if (eKind==SDREDGE_ORTHOLINES || eKind==SDREDGE_BEZIER) {
@@ -1832,7 +1832,7 @@ bool SdrEdgeObj::beginSpecialDrag(SdrDragStat& rDrag) const
if(rDrag.GetHdl()->GetPointNum() < 2)
{
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
}
return true;
@@ -2022,7 +2022,7 @@ basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(SdrDragMethod& rDragMeth
bool SdrEdgeObj::BegCreate(SdrDragStat& rDragStat)
{
- rDragStat.SetNoSnap(true);
+ rDragStat.SetNoSnap();
pEdgeTrack->SetPointCount(2);
(*pEdgeTrack)[0]=rDragStat.GetStart();
(*pEdgeTrack)[1]=rDragStat.GetNow();
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index b0988d8e3c23..83f24b352a29 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -706,7 +706,7 @@ public:
mpObjectLink(NULL),
mpModifyListener(NULL)
{
- mxObjRef.Lock(true);
+ mxObjRef.Lock();
}
SdrOle2ObjImpl( bool bFrame, const svt::EmbeddedObjectRef& rObjRef ) :
@@ -724,7 +724,7 @@ public:
mpObjectLink(NULL),
mpModifyListener(NULL)
{
- mxObjRef.Lock(true);
+ mxObjRef.Lock();
}
~SdrOle2ObjImpl()
@@ -1103,7 +1103,7 @@ void SdrOle2Obj::Connect_Impl()
{
mpImpl->mxObjRef.AssignToContainer( &rContainer, mpImpl->aPersistName );
mpImpl->mbConnected = true;
- mpImpl->mxObjRef.Lock( true );
+ mpImpl->mxObjRef.Lock();
}
}
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 2c92aadc6f23..0972b531fd52 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1225,7 +1225,7 @@ void SdrTextObj::ImpInitDrawOutliner( SdrOutliner& rOutl ) const
nOutlinerMode = OUTLINERMODE_TEXTOBJECT;
rOutl.Init( nOutlinerMode );
- rOutl.SetGlobalCharStretching(100,100);
+ rOutl.SetGlobalCharStretching(100);
EEControlBits nStat=rOutl.GetControlWord();
nStat &= ~EEControlBits(EEControlBits::STRETCHING|EEControlBits::AUTOPAGESIZE);
rOutl.SetControlWord(nStat);
diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx
index 744fcdec32e6..e7ce02ae2997 100644
--- a/svx/source/svdraw/svdouno.cxx
+++ b/svx/source/svdraw/svdouno.cxx
@@ -525,7 +525,7 @@ void SdrUnoObj::SetUnoControlModel( const uno::Reference< awt::XControlModel >&
{
// flushViewObjectContacts() removes all existing VOCs for the local DrawHierarchy. This
// is always allowed since they will be re-created on demand (and with the changed model)
- GetViewContact().flushViewObjectContacts(true);
+ GetViewContact().flushViewObjectContacts();
}
}
diff --git a/svx/source/svdraw/svdoutl.cxx b/svx/source/svdraw/svdoutl.cxx
index e657a273b9a9..a55926ca3e81 100644
--- a/svx/source/svdraw/svdoutl.cxx
+++ b/svx/source/svdraw/svdoutl.cxx
@@ -49,7 +49,7 @@ void SdrOutliner::SetTextObj( const SdrTextObj* pObj )
nOutlinerMode2 = OUTLINERMODE_TEXTOBJECT;
Init( nOutlinerMode2 );
- SetGlobalCharStretching(100,100);
+ SetGlobalCharStretching(100);
EEControlBits nStat = GetControlWord();
nStat &= ~EEControlBits( EEControlBits::STRETCHING | EEControlBits::AUTOPAGESIZE );
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 168894803dc2..911dfd594cf4 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -230,7 +230,7 @@ void SdrObjList::Clear()
// flushViewObjectContacts() is done since SdrObject::Free is not guaranteed
// to delete the object and thus refresh visualisations
- pObj->GetViewContact().flushViewObjectContacts(true);
+ pObj->GetViewContact().flushViewObjectContacts();
bObjectsRemoved = true;
@@ -413,7 +413,7 @@ SdrObject* SdrObjList::NbcRemoveObject(size_t nObjNum)
DBG_ASSERT(pObj!=NULL,"Could not find object to remove.");
if (pObj!=NULL) {
// flushViewObjectContacts() clears the VOC's and those invalidate
- pObj->GetViewContact().flushViewObjectContacts(true);
+ pObj->GetViewContact().flushViewObjectContacts();
DBG_ASSERT(pObj->IsInserted(),"ZObjekt does not have the status Inserted.");
pObj->SetInserted(false); // Ruft u.a. den UserCall
@@ -445,7 +445,7 @@ SdrObject* SdrObjList::RemoveObject(size_t nObjNum)
if(pObj)
{
// flushViewObjectContacts() clears the VOC's and those invalidate
- pObj->GetViewContact().flushViewObjectContacts(true);
+ pObj->GetViewContact().flushViewObjectContacts();
DBG_ASSERT(pObj->IsInserted(),"ZObjekt does not have the status Inserted.");
if (pModel!=NULL) {
@@ -496,7 +496,7 @@ SdrObject* SdrObjList::NbcReplaceObject(SdrObject* pNewObj, size_t nObjNum)
ReplaceObjectInContainer(*pNewObj,nObjNum);
// flushViewObjectContacts() clears the VOC's and those invalidate
- pObj->GetViewContact().flushViewObjectContacts(true);
+ pObj->GetViewContact().flushViewObjectContacts();
pNewObj->SetOrdNum(nObjNum);
pNewObj->SetObjList(this);
@@ -543,7 +543,7 @@ SdrObject* SdrObjList::ReplaceObject(SdrObject* pNewObj, size_t nObjNum)
ReplaceObjectInContainer(*pNewObj,nObjNum);
// flushViewObjectContacts() clears the VOC's and those invalidate
- pObj->GetViewContact().flushViewObjectContacts(true);
+ pObj->GetViewContact().flushViewObjectContacts();
pNewObj->SetOrdNum(nObjNum);
pNewObj->SetObjList(this);
@@ -1102,7 +1102,7 @@ void ImpPageChange(SdrPage& rSdrPage)
if(rSdrPage.GetModel())
{
- rSdrPage.GetModel()->SetChanged(true);
+ rSdrPage.GetModel()->SetChanged();
SdrHint aHint(HINT_PAGEORDERCHG);
aHint.SetPage(&rSdrPage);
rSdrPage.GetModel()->Broadcast(aHint);
@@ -1615,7 +1615,7 @@ void SdrPage::TRG_ClearMasterPage()
SetChanged();
// the flushViewObjectContacts() will do needed invalidates by deleting the involved VOCs
- mpMasterPageDescriptor->GetUsedPage().GetViewContact().flushViewObjectContacts(true);
+ mpMasterPageDescriptor->GetUsedPage().GetViewContact().flushViewObjectContacts();
delete mpMasterPageDescriptor;
mpMasterPageDescriptor = 0L;
@@ -1754,7 +1754,7 @@ Color SdrPage::GetPageBackgroundColor( SdrPageView* pView, bool bScreenDisplay )
Color SdrPage::GetPageBackgroundColor() const
// #i75566# GetBackgroundColor -> GetPageBackgroundColor
{
- return GetPageBackgroundColor( NULL, true );
+ return GetPageBackgroundColor( NULL );
}
/** this method returns true if the object from the ViewObjectContact should
diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx
index 9c74d433e1c9..bb28b3a3167b 100644
--- a/svx/source/svdraw/svdpagv.cxx
+++ b/svx/source/svdraw/svdpagv.cxx
@@ -209,7 +209,7 @@ void SdrPageView::RemovePaintWindowFromPageView(SdrPaintWindow& rPaintWindow)
const SdrPageWindow* pCandidate = FindPatchedPageWindow( _rDevice );
if ( pCandidate )
- xReturn = pCandidate->GetControlContainer( true );
+ xReturn = pCandidate->GetControlContainer();
return xReturn;
}
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index df216c8d8f95..b7ca97d167fd 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -151,9 +151,9 @@ bool SdrUndoGroup::CanSdrRepeat(SdrView& rView) const
{
case SDRREPFUNC_OBJ_NONE : return false;
case SDRREPFUNC_OBJ_DELETE : return rView.AreObjectsMarked();
- case SDRREPFUNC_OBJ_COMBINE_POLYPOLY: return rView.IsCombinePossible(false);
+ case SDRREPFUNC_OBJ_COMBINE_POLYPOLY: return rView.IsCombinePossible();
case SDRREPFUNC_OBJ_COMBINE_ONEPOLY : return rView.IsCombinePossible(true);
- case SDRREPFUNC_OBJ_DISMANTLE_POLYS : return rView.IsDismantlePossible(false);
+ case SDRREPFUNC_OBJ_DISMANTLE_POLYS : return rView.IsDismantlePossible();
case SDRREPFUNC_OBJ_DISMANTLE_LINES : return rView.IsDismantlePossible(true);
case SDRREPFUNC_OBJ_CONVERTTOPOLY : return rView.IsConvertToPolyObjPossible(false);
case SDRREPFUNC_OBJ_CONVERTTOPATH : return rView.IsConvertToPathObjPossible(false);
@@ -177,8 +177,8 @@ void SdrUndoGroup::SdrRepeat(SdrView& rView)
case SDRREPFUNC_OBJ_NONE : break;
case SDRREPFUNC_OBJ_DELETE : rView.DeleteMarked(); break;
case SDRREPFUNC_OBJ_COMBINE_POLYPOLY: rView.CombineMarkedObjects(false); break;
- case SDRREPFUNC_OBJ_COMBINE_ONEPOLY : rView.CombineMarkedObjects(true); break;
- case SDRREPFUNC_OBJ_DISMANTLE_POLYS : rView.DismantleMarkedObjects(false); break;
+ case SDRREPFUNC_OBJ_COMBINE_ONEPOLY : rView.CombineMarkedObjects(); break;
+ case SDRREPFUNC_OBJ_DISMANTLE_POLYS : rView.DismantleMarkedObjects(); break;
case SDRREPFUNC_OBJ_DISMANTLE_LINES : rView.DismantleMarkedObjects(true); break;
case SDRREPFUNC_OBJ_CONVERTTOPOLY : rView.ConvertMarkedToPolyObj(false); break;
case SDRREPFUNC_OBJ_CONVERTTOPATH : rView.ConvertMarkedToPathObj(false); break;
@@ -1519,14 +1519,14 @@ void SdrUndoDelPage::Redo()
OUString SdrUndoDelPage::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0);
return aStr;
}
OUString SdrUndoDelPage::GetSdrRepeatComment(SdrView& /*rView*/) const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoDelPage,aStr,0);
return aStr;
}
@@ -1558,7 +1558,7 @@ void SdrUndoNewPage::Redo()
OUString SdrUndoNewPage::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoNewPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoNewPage,aStr,0);
return aStr;
}
@@ -1567,14 +1567,14 @@ OUString SdrUndoNewPage::GetComment() const
OUString SdrUndoCopyPage::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0);
return aStr;
}
OUString SdrUndoCopyPage::GetSdrRepeatComment(SdrView& /*rView*/) const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoCopPage,aStr,0);
return aStr;
}
@@ -1603,7 +1603,7 @@ void SdrUndoSetPageNum::Redo()
OUString SdrUndoSetPageNum::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoMovPage,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoMovPage,aStr,0);
return aStr;
}
@@ -1646,7 +1646,7 @@ void SdrUndoPageRemoveMasterPage::Redo()
OUString SdrUndoPageRemoveMasterPage::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoDelPageMasterDscr,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoDelPageMasterDscr,aStr,0);
return aStr;
}
@@ -1690,7 +1690,7 @@ void SdrUndoPageChangeMasterPage::Redo()
OUString SdrUndoPageChangeMasterPage::GetComment() const
{
OUString aStr;
- ImpTakeDescriptionStr(STR_UndoChgPageMasterDscr,aStr,0,false);
+ ImpTakeDescriptionStr(STR_UndoChgPageMasterDscr,aStr,0);
return aStr;
}
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 33d22cf6323e..ae95ec16a086 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -1092,7 +1092,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
} break;
case SDRDRAG_SHEAR: case SDRDRAG_DISTORT: {
if (bCorner) {
- if (!IsDistortAllowed(true) && !IsDistortAllowed(false)) return Pointer(PointerStyle::NotAllowed);
+ if (!IsDistortAllowed(true) && !IsDistortAllowed()) return Pointer(PointerStyle::NotAllowed);
else return Pointer(PointerStyle::RefHand);
}
if (bVertex && !IsShearAllowed()) return Pointer(PointerStyle::NotAllowed);
@@ -1115,8 +1115,8 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
}
bool bNo=false;
if (!IsMirrorAllowed(true,true)) bNo=true; // any mirroring is forbidden
- if (!IsMirrorAllowed(false,false) && !b45) bNo=true; // mirroring freely is forbidden
- if (!IsMirrorAllowed(true,false) && !b90) bNo=true; // mirroring horizontally/vertically is allowed
+ if (!IsMirrorAllowed(false) && !b45) bNo=true; // mirroring freely is forbidden
+ if (!IsMirrorAllowed(true) && !b90) bNo=true; // mirroring horizontally/vertically is allowed
if (bNo) return Pointer(PointerStyle::NotAllowed);
if (b90) {
return Pointer(PointerStyle::Mirror);
@@ -1143,7 +1143,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
case SDRDRAG_CROOK: {
if (bCorner || bVertex || bMov) {
- if (!IsCrookAllowed(true) && !IsCrookAllowed(false)) return Pointer(PointerStyle::NotAllowed);
+ if (!IsCrookAllowed(true) && !IsCrookAllowed()) return Pointer(PointerStyle::NotAllowed);
return Pointer(PointerStyle::Crook);
}
}
diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx
index aeb085bd6f17..cdaca963d4bc 100644
--- a/svx/source/svdraw/svdxcgv.cxx
+++ b/svx/source/svdraw/svdxcgv.cxx
@@ -515,8 +515,7 @@ BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const
// common tooling
aBmp = convertPrimitive2DSequenceToBitmapEx(
xPrimitives,
- aRange,
- 500000);
+ aRange);
}
}
}
@@ -598,7 +597,7 @@ Graphic SdrExchangeView::GetAllMarkedGraphic() const
if( ( 1 == GetMarkedObjectCount() ) && GetSdrMarkByIndex( 0 ) )
aRet = SdrExchangeView::GetObjGraphic( pMod, GetMarkedObjectByIndex( 0 ) );
else
- aRet = GetMarkedObjMetaFile(false);
+ aRet = GetMarkedObjMetaFile();
}
return aRet;
diff --git a/svx/source/table/accessiblecell.cxx b/svx/source/table/accessiblecell.cxx
index a1437b3a58ae..e4ddd18e20ed 100644
--- a/svx/source/table/accessiblecell.cxx
+++ b/svx/source/table/accessiblecell.cxx
@@ -104,7 +104,7 @@ bool AccessibleCell::SetState (sal_Int16 aState)
// Offer FOCUSED state to edit engine and detect whether the state
// changes.
bool bIsFocused = mpText->HaveFocus ();
- mpText->SetFocus (true);
+ mpText->SetFocus();
bStateHasChanged = (bIsFocused != mpText->HaveFocus ());
}
else
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index a3235a2fb418..edf53c8ea555 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -2275,7 +2275,7 @@ bool SdrTableObj::beginSpecialDrag(SdrDragStat& rDrag) const
case HDL_USER:
{
rDrag.SetEndDragChangesAttributes(false);
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
break;
}
@@ -2324,7 +2324,7 @@ bool SdrTableObj::applySpecialDrag(SdrDragStat& rDrag)
case HDL_USER:
{
rDrag.SetEndDragChangesAttributes(false);
- rDrag.SetNoSnap(true);
+ rDrag.SetNoSnap();
const TableEdgeHdl* pEdgeHdl = dynamic_cast< const TableEdgeHdl* >( pHdl );
if( pEdgeHdl )
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 6efe83306d89..4a02a44058ae 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -2521,7 +2521,7 @@ void SvxTableController::SetAttrToSelectedCells(const SfxItemSet& rAttr, bool bR
getSelectedCells( aStart, aEnd );
SfxItemSet aAttr(*rAttr.GetPool(), rAttr.GetRanges());
- aAttr.Put(rAttr, true);
+ aAttr.Put(rAttr);
const bool bFrame = (rAttr.GetItemState( SDRATTR_TABLE_BORDER ) == SfxItemState::SET) || (rAttr.GetItemState( SDRATTR_TABLE_BORDER_INNER ) == SfxItemState::SET);
@@ -2728,7 +2728,7 @@ bool SvxTableController::ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNo
getSelectedCells( aStart, aEnd );
SfxItemSet aAttr(*rFormatSet.GetPool(), rFormatSet.GetRanges());
- aAttr.Put(rFormatSet, true);
+ aAttr.Put(rFormatSet);
const bool bFrame = (rFormatSet.GetItemState( SDRATTR_TABLE_BORDER ) == SfxItemState::SET) || (rFormatSet.GetItemState( SDRATTR_TABLE_BORDER_INNER ) == SfxItemState::SET);
diff --git a/svx/source/table/tablertfexporter.cxx b/svx/source/table/tablertfexporter.cxx
index 582cf9b6bcdf..eb81993be8ee 100644
--- a/svx/source/table/tablertfexporter.cxx
+++ b/svx/source/table/tablertfexporter.cxx
@@ -189,7 +189,7 @@ void SdrTableRtfExporter::WriteCell( sal_Int32 nCol, sal_Int32 nRow )
SdrOutliner& rOutliner = mrObj.ImpGetDrawOutliner();
rOutliner.SetText(*pParaObj);
- aContent = rOutliner.GetEditEngine().GetText( LINEEND_LF );
+ aContent = rOutliner.GetEditEngine().GetText();
rOutliner.Clear();
diff --git a/svx/source/table/viewcontactoftableobj.cxx b/svx/source/table/viewcontactoftableobj.cxx
index 48169aacbe8d..63d206bb0327 100644
--- a/svx/source/table/viewcontactoftableobj.cxx
+++ b/svx/source/table/viewcontactoftableobj.cxx
@@ -325,8 +325,8 @@ namespace drawinglayer
fExtendIE * fTwipsToMM,
fExtendOS * fTwipsToMM,
fExtendOE * fTwipsToMM,
- getLeftLine().GetColorOut(true).getBColor(),
- getLeftLine().GetColorIn(true).getBColor(),
+ getLeftLine().GetColorOut().getBColor(),
+ getLeftLine().GetColorIn().getBColor(),
getLeftLine().GetColorGap().getBColor(),
getLeftLine().HasGapColor(),
getLeftLine().GetBorderLineStyle()));
@@ -387,8 +387,8 @@ namespace drawinglayer
fExtendOE * fTwipsToMM,
fExtendIS * fTwipsToMM,
fExtendIE * fTwipsToMM,
- getRightLine().GetColorOut(true).getBColor(),
- getRightLine().GetColorIn(true).getBColor(),
+ getRightLine().GetColorOut().getBColor(),
+ getRightLine().GetColorIn().getBColor(),
getRightLine().GetColorGap().getBColor(),
getRightLine().HasGapColor(),
getRightLine().GetBorderLineStyle()));
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx
index 4c6217c865f6..dfced96d64db 100644
--- a/svx/source/tbxctrls/colrctrl.cxx
+++ b/svx/source/tbxctrls/colrctrl.cxx
@@ -325,7 +325,7 @@ void SvxColorDockingWindow::SetSize()
aColorSet->SetLineCount( nLines );
else
{
- aColorSet->SetLineCount( 0 ); // sonst wird LineHeight ignoriert
+ aColorSet->SetLineCount(); // sonst wird LineHeight ignoriert
aColorSet->SetItemHeight( aItemSize.Height() );
}
diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx
index 98b4a02c182c..0582dc24cf31 100644
--- a/svx/source/tbxctrls/extrusioncontrols.cxx
+++ b/svx/source/tbxctrls/extrusioncontrols.cxx
@@ -182,7 +182,7 @@ void ExtrusionDirectionWindow::statusChanged(
{
sal_Int32 nValue = 0;
if( Event.State >>= nValue )
- implSetDirection( nValue, true );
+ implSetDirection( nValue );
}
}
else if( Event.FeatureURL.Main.equals( msExtrusionProjection ) )
@@ -195,7 +195,7 @@ void ExtrusionDirectionWindow::statusChanged(
{
sal_Int32 nValue = 0;
if( Event.State >>= nValue )
- implSetProjection( nValue, true );
+ implSetProjection( nValue );
}
}
}
@@ -225,7 +225,7 @@ IMPL_LINK( ExtrusionDirectionWindow, SelectHdl, void *, pControl )
aArgs[0].Value <<= (sal_Int32)nProjection;
mrController.dispatchCommand( msExtrusionProjection, aArgs );
- implSetProjection( nProjection, true );
+ implSetProjection( nProjection );
}
}
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index 0b575c292cf7..e82be830bedd 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -266,7 +266,7 @@ SvxMetricField::SvxMetricField(
SetFirst( 0 );
eDlgUnit = SfxModule::GetModuleFieldUnit( mxFrame );
- SetFieldUnit( *this, eDlgUnit, false );
+ SetFieldUnit( *this, eDlgUnit );
Show();
}
@@ -334,7 +334,7 @@ void SvxMetricField::RefreshDlgUnit()
if ( eDlgUnit != eTmpUnit )
{
eDlgUnit = eTmpUnit;
- SetFieldUnit( *this, eDlgUnit, false );
+ SetFieldUnit( *this, eDlgUnit );
}
}
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index a83a22c67f56..bc0912ff1c12 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -433,7 +433,7 @@ void SvxStyleBox_Impl::Select()
if ( pPool )
{
- pPool->SetSearchMask( eStyleFamily, SFXSTYLEBIT_ALL );
+ pPool->SetSearchMask( eStyleFamily );
pStyle = pPool->First();
while ( pStyle && OUString( pStyle->GetName() ) != aSearchEntry )
@@ -629,7 +629,7 @@ void SvxStyleBox_Impl::SetupEntry(vcl::RenderContext& rRenderContext, vcl::Windo
if ( pPool )
{
- pPool->SetSearchMask( eStyleFamily, SFXSTYLEBIT_ALL );
+ pPool->SetSearchMask( eStyleFamily );
pStyle = pPool->First();
while (pStyle && pStyle->GetName() != rStyleName)
@@ -1294,7 +1294,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand,
{
mpPaletteListBox->InsertEntry( *it );
}
- mpPaletteListBox->SelectEntryPos(mrPaletteManager.GetPalette(), true);
+ mpPaletteListBox->SelectEntryPos(mrPaletteManager.GetPalette());
mpButtonAutoColor->SetClickHdl( LINK( this, SvxColorWindow_Impl, AutoColorClickHdl ) );
mpButtonPicker->SetClickHdl( LINK( this, SvxColorWindow_Impl, OpenPickerClickHdl ) );
@@ -1749,7 +1749,7 @@ IMPL_LINK_NOARG(SvxFrameWindow_Impl, SelectHdl)
aBorderInner.SetValid( SvxBoxInfoItemValidFlags::RIGHT, 0 != (nValidFlags&FRM_VALID_RIGHT ));
aBorderInner.SetValid( SvxBoxInfoItemValidFlags::HORI, 0 != (nValidFlags&FRM_VALID_HINNER ));
aBorderInner.SetValid( SvxBoxInfoItemValidFlags::VERT, 0 != (nValidFlags&FRM_VALID_VINNER));
- aBorderInner.SetValid( SvxBoxInfoItemValidFlags::DISTANCE, true );
+ aBorderInner.SetValid( SvxBoxInfoItemValidFlags::DISTANCE );
aBorderInner.SetValid( SvxBoxInfoItemValidFlags::DISABLE, false );
if ( IsInPopupMode() )
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index 09a6cbf31dd5..2cca8bd290d9 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -352,7 +352,7 @@ throw ( uno::RuntimeException, std::exception )
m_pBox->Enable();
frame::status::FontHeight aFontHeight;
if ( rEvent.State >>= aFontHeight )
- m_pBox->statusChanged_Impl( long( 10. * aFontHeight.Height ), false );
+ m_pBox->statusChanged_Impl( long( 10. * aFontHeight.Height ) );
else
m_pBox->statusChanged_Impl( long( -1 ), true );
}
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 7e7463615ff3..074c3a940930 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -499,9 +499,9 @@ IMPL_LINK_NOARG(FindTextToolbarController, EditModifyHdl)
if (!m_pFindTextFieldControl->GetText().isEmpty())
{
if ( !pToolBox->IsItemEnabled(m_nDownSearchId) )
- pToolBox->EnableItem(m_nDownSearchId, true);
+ pToolBox->EnableItem(m_nDownSearchId);
if ( !pToolBox->IsItemEnabled(m_nUpSearchId) )
- pToolBox->EnableItem(m_nUpSearchId, true);
+ pToolBox->EnableItem(m_nUpSearchId);
}
else
{
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
index 58f8a1faddad..701171279d37 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
@@ -57,7 +57,7 @@ void ChineseTranslation_UnoDialog::impl_DeleteDialog()
if( m_pDialog )
{
if(m_pDialog->IsInExecute())
- m_pDialog->EndDialog(RET_CANCEL);
+ m_pDialog->EndDialog();
m_pDialog.disposeAndClear();
}
}
diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx
index 67c3998bde6f..4cb4d9520acb 100644
--- a/svx/source/unodraw/unomtabl.cxx
+++ b/svx/source/unodraw/unomtabl.cxx
@@ -292,7 +292,7 @@ static bool getByNameFromPool( const OUString& rSearchName, SfxItemPool* pPool,
if( pItem && pItem->GetName() == rSearchName )
{
- pItem->QueryValue( rAny, 0 );
+ pItem->QueryValue( rAny );
return true;
}
}
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index ba10d1b88d05..ca5f8674e167 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -75,7 +75,7 @@ SvxDrawPage::SvxDrawPage( SdrPage* pInPage ) throw()
// create (hidden) view
mpView = new SdrView( mpModel );
- mpView->SetDesignMode(true);
+ mpView->SetDesignMode();
}
SvxDrawPage::~SvxDrawPage() throw()
@@ -892,7 +892,7 @@ void SvxDrawPage::ChangeModel( SdrModel* pNewModel )
{
delete mpView;
mpView = new SdrView( mpModel );
- mpView->SetDesignMode(true);
+ mpView->SetDesignMode();
}
}
}
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 3bb8ff0273fe..ef13bf94dc61 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -270,7 +270,7 @@ void SAL_CALL SvxShapeGroup::remove( const uno::Reference< drawing::XShape >& xS
{
if(SAL_MAX_SIZE != pView->TryToFindMarkedObject(pSdrShape))
{
- pView->MarkObj(pSdrShape, pView->GetSdrPageView(), true, false);
+ pView->MarkObj(pSdrShape, pView->GetSdrPageView(), true);
}
}
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 85e0b784c0c4..bea3c9c49d7f 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2242,7 +2242,7 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl
if( pNode )
{
pEdgeObj->ConnectToNode( pProperty->nWID == OWN_ATTR_EDGE_START_OBJ, pNode );
- pEdgeObj->setGluePointIndex( pProperty->nWID == OWN_ATTR_EDGE_START_OBJ, -1 );
+ pEdgeObj->setGluePointIndex( pProperty->nWID == OWN_ATTR_EDGE_START_OBJ );
return true;
}
}
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index 31565b640a12..74573fb5eeab 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -299,7 +299,7 @@ const GraphicObject& SvXMLGraphicOutputStream::GetGraphicObject()
{
SvLockBytes* pLockBytes = mpOStm->GetLockBytes();
if ( pLockBytes )
- pLockBytes->SetSynchronMode( true );
+ pLockBytes->SetSynchronMode();
mpOStm->Seek( STREAM_SEEK_TO_END );
nStreamLen = mpOStm->Tell();
@@ -788,7 +788,7 @@ OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL( const OUString& r
OUString aUserData;
OUString aRequestedFileName;
- sal_Int32 nUser = rURL.indexOf( '?', 0 );
+ sal_Int32 nUser = rURL.indexOf( '?' );
if ( nUser >= 0 )
{
aURL = rURL.copy( 0, nUser );
diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx
index 0fea3a6ec2c6..97635e33420b 100644
--- a/svx/source/xoutdev/xtabdash.cxx
+++ b/svx/source/xoutdev/xtabdash.cxx
@@ -176,7 +176,7 @@ Bitmap XDashList::ImpCreateBitmapForXDash(const XDash* pDash)
if(1 != nFactor)
{
- aRetval.Scale(Size((rSize.Width() * 5) / 2, rSize.Height()), BmpScaleFlag::Default);
+ aRetval.Scale(Size((rSize.Width() * 5) / 2, rSize.Height()));
}
return aRetval;