summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-11-28 20:21:26 +0530
committerAkshay Deep <akshaydeepiitr@gmail.com>2016-11-28 20:44:18 +0000
commit9abc547ef28f3f6891030597fd304ca757b102da (patch)
tree9823188a910567da27e50e28d33ee29f3f4518fc
parentfd3db1cf77c86cd787f912b7bb2ba3ad894203f3 (diff)
tdf#101870 - Template manager thumbnail view control needs a border
Change-Id: If1773b99aa816b2b45fe16127ff09a646e3702ae Reviewed-on: https://gerrit.libreoffice.org/31324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
-rw-r--r--include/sfx2/templatelocalview.hxx2
-rw-r--r--sfx2/source/control/templatedefaultview.cxx2
-rw-r--r--sfx2/source/control/templatelocalview.cxx4
-rw-r--r--sfx2/source/control/templatesearchview.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 8a3bfaeac19d..d75d86bc8970 100644
--- a/include/sfx2/templatelocalview.hxx
+++ b/include/sfx2/templatelocalview.hxx
@@ -78,7 +78,7 @@ class SFX2_DLLPUBLIC TemplateLocalView : public ThumbnailView
public:
- TemplateLocalView ( vcl::Window* pParent );
+ TemplateLocalView ( vcl::Window* pParent, WinBits nWinStyle = WB_TABSTOP | WB_BORDER );
virtual ~TemplateLocalView () override;
virtual void dispose() override;
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)
{