loplugin:constantparam in basctl

Change-Id: I07d22585e768335f61d70bf18807479a2675804a
This commit is contained in:
Noel Grandin
2016-03-08 16:38:38 +02:00
parent cc091b0343
commit 5c1c8f53d7
2 changed files with 9 additions and 15 deletions

View File

@@ -80,7 +80,7 @@ DialogWindow::DialogWindow(DialogWindowLayout* pParent, ScriptDocument const& rD
: Reference<frame::XModel>(), xDialogModel))
,pUndoMgr(new SfxUndoManager)
{
InitSettings( true, true, true );
InitSettings( true );
pEditor->GetModel().SetNotifyUndoActionHdl(
LINK(this, DialogWindow, NotifyUndoActionHdl)
@@ -1325,29 +1325,23 @@ void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
if( (rDCEvt.GetType()==DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
{
InitSettings( true, true, true );
InitSettings( true );
Invalidate();
}
else
BaseWindow::DataChanged( rDCEvt );
}
void DialogWindow::InitSettings(bool bFont, bool bForeground, bool bBackground)
void DialogWindow::InitSettings(bool bBackground)
{
// FIXME RenderContext
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if( bFont )
{
vcl::Font aFont;
aFont = rStyleSettings.GetFieldFont();
SetPointFont(*this, aFont);
}
vcl::Font aFont;
aFont = rStyleSettings.GetFieldFont();
SetPointFont(*this, aFont);
if( bForeground || bFont )
{
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
}
SetTextColor( rStyleSettings.GetFieldTextColor() );
SetTextFillColor();
if( bBackground )
SetBackground( rStyleSettings.GetFieldColor() );

View File

@@ -77,7 +77,7 @@ protected:
virtual void DoInit() override;
virtual void DoScroll( ScrollBar* pCurScrollBar ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
void InitSettings(bool bFont, bool bForeground, bool bBackground);
void InitSettings(bool bBackground);
public:
DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, css::uno::Reference<css::container::XNameContainer> const& xDialogModel);