summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
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 /svx/source/sidebar
parente624c13cf1732f42d2da212b1b96aa9de7dd66cf (diff)
loplugin: defaultparams
Change-Id: I513643385dc0a04b68c5cf4a5f43aa0804e572e6
Diffstat (limited to 'svx/source/sidebar')
-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
6 files changed, 12 insertions, 12 deletions
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();