diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-13 09:07:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-13 09:07:45 +0200 |
commit | 69c32b13f348d658ae5c1352120ba22bc28b5870 (patch) | |
tree | f6ebc29c875ebf6dacbb1f0d9b3dcee62e82919a /sfx2 | |
parent | 5b76c5023faf345814a7dd874d2b7cfd3dd05096 (diff) |
loplugin:staticmethods
Change-Id: Ic0557eabff8a323a4cbe7aa9845464d752c68685
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
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; |