summaryrefslogtreecommitdiff
path: root/sfx2/source/control/recentdocsview.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-16 10:09:58 +0200
committerNoel Grandin <noel@peralex.com>2014-09-18 08:54:37 +0200
commit60e78fbb806bb45e635ba1de45ceffe187938ac0 (patch)
tree17ff5aaa57f4d23e177f1fe423def1691139a4a8 /sfx2/source/control/recentdocsview.cxx
parent9c818268767d6a1c1bc731ae30c45883bab987e7 (diff)
fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
Diffstat (limited to 'sfx2/source/control/recentdocsview.cxx')
-rw-r--r--sfx2/source/control/recentdocsview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index f88cfbbbb96f..05bb985b3298 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -119,7 +119,7 @@ bool RecentDocsView::isAcceptedFile(const OUString &rURL) const
void RecentDocsView::SetMessageFont()
{
- Font aFont(GetFont());
+ vcl::Font aFont(GetFont());
aFont.SetHeight(aFont.GetHeight()*1.3);
SetFont(aFont);
}
@@ -204,7 +204,7 @@ void RecentDocsView::Reload()
// Set preferred width
if (mFilteredItemList.empty())
{
- Font aOldFont(GetFont());
+ vcl::Font aOldFont(GetFont());
SetMessageFont();
set_width_request(std::max(GetTextWidth(maWelcomeLine1), GetTextWidth(maWelcomeLine2)));
SetFont(aOldFont);
@@ -261,7 +261,7 @@ void RecentDocsView::Paint( const Rectangle &aRect )
if ( mItemList.size() == 0 )
{
// No recent files to be shown yet. Show a welcome screen.
- Font aOldFont(GetFont());
+ vcl::Font aOldFont(GetFont());
SetMessageFont();
long nTextHeight = GetTextHeight();
@@ -299,7 +299,7 @@ void RecentDocsView::LoseFocus()
void RecentDocsView::Clear()
{
- Font aOldFont(GetFont());
+ vcl::Font aOldFont(GetFont());
SetMessageFont();
set_width_request(std::max(GetTextWidth(maWelcomeLine1), GetTextWidth(maWelcomeLine2)));
SetFont(aOldFont);