From 69c32b13f348d658ae5c1352120ba22bc28b5870 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 13 May 2015 09:07:45 +0200 Subject: loplugin:staticmethods Change-Id: Ic0557eabff8a323a4cbe7aa9845464d752c68685 --- sfx2/source/control/recentdocsview.cxx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 5848045d9258..aad01fae4a27 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -38,6 +38,18 @@ using namespace com::sun::star::lang; using namespace com::sun::star::frame; using namespace com::sun::star::beans; +namespace { + +/// Set (larger) font for the Welcome message. +void SetMessageFont(vcl::RenderContext& rRenderContext) +{ + vcl::Font aFont(rRenderContext.GetFont()); + aFont.SetHeight(aFont.GetHeight() * 1.3); + rRenderContext.SetFont(aFont); +} + +} + RecentDocsView::RecentDocsView( vcl::Window* pParent ) : ThumbnailView(pParent) , mnFileTypes(TYPE_NONE) @@ -110,13 +122,6 @@ bool RecentDocsView::isAcceptedFile(const OUString &rURL) const (mnFileTypes & TYPE_OTHER && typeMatchesExtension(TYPE_OTHER, aExt)); } -void RecentDocsView::SetMessageFont(vcl::RenderContext& rRenderContext) -{ - vcl::Font aFont(rRenderContext.GetFont()); - aFont.SetHeight(aFont.GetHeight() * 1.3); - rRenderContext.SetFont(aFont); -} - BitmapEx RecentDocsView::getDefaultThumbnail(const OUString &rURL) { BitmapEx aImg; -- cgit