From e4a8b60564cdc332b07f3e18a67416b3c5c48703 Mon Sep 17 00:00:00 2001 From: Akshay Deep Date: Mon, 28 Nov 2016 20:21:26 +0530 Subject: tdf#101870 - Template manager thumbnail view control needs a border Change-Id: If1773b99aa816b2b45fe16127ff09a646e3702ae Reviewed-on: https://gerrit.libreoffice.org/31324 Tested-by: Jenkins Reviewed-by: Akshay Deep (cherry picked from commit 9abc547ef28f3f6891030597fd304ca757b102da) Reviewed-on: https://gerrit.libreoffice.org/31450 --- sfx2/source/control/templatedefaultview.cxx | 2 +- sfx2/source/control/templatelocalview.cxx | 4 ++-- sfx2/source/control/templatesearchview.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/templatedefaultview.cxx b/sfx2/source/control/templatedefaultview.cxx index 9884e0628d40..219c533ff0eb 100644 --- a/sfx2/source/control/templatedefaultview.cxx +++ b/sfx2/source/control/templatedefaultview.cxx @@ -26,7 +26,7 @@ VCL_BUILDER_FACTORY(TemplateDefaultView) static const int gnItemPadding(5); //TODO:: Change padding to 10. It looks really crowded and occupied. TemplateDefaultView::TemplateDefaultView( Window* pParent) - : TemplateLocalView(pParent) + : TemplateLocalView(pParent, WB_TABSTOP) , mnTextHeight(30) { Rectangle aScreen = Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen()); diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index a37dab2b76b0..6603a3ca6266 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -88,8 +88,8 @@ bool ViewFilter_Application::operator () (const ThumbnailViewItem *pItem) return true; } -TemplateLocalView::TemplateLocalView ( vcl::Window* pParent) - : ThumbnailView(pParent), +TemplateLocalView::TemplateLocalView ( vcl::Window* pParent, WinBits nWinStyle) + : ThumbnailView(pParent, nWinStyle), mnCurRegionId(0), maSelectedItem(nullptr), mnThumbnailWidth(TEMPLATE_THUMBNAIL_MAX_WIDTH), diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx index e1db4e53c65f..8403143d34b8 100644 --- a/sfx2/source/control/templatesearchview.cxx +++ b/sfx2/source/control/templatesearchview.cxx @@ -24,7 +24,7 @@ #define MNI_DELETE 4 TemplateSearchView::TemplateSearchView (vcl::Window *pParent) - : ThumbnailView(pParent,WB_TABSTOP | WB_VSCROLL), + : ThumbnailView(pParent,WB_TABSTOP | WB_VSCROLL | WB_BORDER), maSelectedItem(nullptr), maPosition(0,0) { -- cgit