summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{