[Libreoffice-commits] core.git: include/sfx2 sfx2/source

Stephan Bergmann sbergman at redhat.com
Wed May 13 00:08:11 PDT 2015


 include/sfx2/recentdocsview.hxx        |    3 ---
 sfx2/source/control/recentdocsview.cxx |   19 ++++++++++++-------
 2 files changed, 12 insertions(+), 10 deletions(-)

New commits:
commit 69c32b13f348d658ae5c1352120ba22bc28b5870
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed May 13 09:07:45 2015 +0200

    loplugin:staticmethods
    
    Change-Id: Ic0557eabff8a323a4cbe7aa9845464d752c68685

diff --git a/include/sfx2/recentdocsview.hxx b/include/sfx2/recentdocsview.hxx
index 231c47f..2232406 100644
--- a/include/sfx2/recentdocsview.hxx
+++ b/include/sfx2/recentdocsview.hxx
@@ -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;
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 5848045..aad01fa 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;


More information about the Libreoffice-commits mailing list