Kaydet (Commit) 69c32b13 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods

Change-Id: Ic0557eabff8a323a4cbe7aa9845464d752c68685
üst 5b76c502
......@@ -72,9 +72,6 @@ protected:
bool isAcceptedFile(const OUString &rURL) const;
/// Set (larger) font for the Welcome message.
void SetMessageFont(vcl::RenderContext& rRenderContext);
long mnItemMaxSize;
long mnTextHeight;
long mnItemPadding;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment