summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templateabstractview.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-22 16:33:20 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-22 17:11:09 +0100
commit7a25aa2821ccf7318ce4a13efe171763989009d5 (patch)
tree2d4a6d2474fabebc70a63280f6992fe8101bef7a /sfx2/source/control/templateabstractview.cxx
parenta4b4942ff6d79394a3120cd1c55eb21a10769a30 (diff)
fdo#61390: Fixed the tabstop in the TemplateView.
Change-Id: I887b11646efb9a839da11cd3e20cdf7e532caf3e
Diffstat (limited to 'sfx2/source/control/templateabstractview.cxx')
-rw-r--r--sfx2/source/control/templateabstractview.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx
index 737f087a0018..b6cd6468fe93 100644
--- a/sfx2/source/control/templateabstractview.cxx
+++ b/sfx2/source/control/templateabstractview.cxx
@@ -115,7 +115,7 @@ bool ViewFilter_Keyword::operator ()(const ThumbnailViewItem *pItem)
TemplateAbstractView::TemplateAbstractView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren)
: ThumbnailView(pParent,nWinStyle,bDisableTransientChildren),
- mpItemView(new TemplateView(this)),
+ mpItemView(new TemplateView(pParent)),
mbFilteredResults(false),
meFilterOption(FILTER_APP_WRITER)
{
@@ -124,7 +124,7 @@ TemplateAbstractView::TemplateAbstractView (Window *pParent, WinBits nWinStyle,
TemplateAbstractView::TemplateAbstractView(Window *pParent, const ResId &rResId, bool bDisableTransientChildren)
: ThumbnailView(pParent,rResId,bDisableTransientChildren),
- mpItemView(new TemplateView(this)),
+ mpItemView(new TemplateView(pParent)),
mbFilteredResults(false),
meFilterOption(FILTER_APP_WRITER)
{
@@ -186,8 +186,14 @@ void TemplateAbstractView::filterTemplatesByApp (const FILTER_APPLICATION &eApp)
void TemplateAbstractView::showOverlay (bool bVisible)
{
+ Show(!bVisible);
mpItemView->Show(bVisible);
+ mpItemView->SetPosSizePixel(GetPosPixel(), GetSizePixel());
+ mpItemView->SetStyle(GetStyle());
+
+ mpItemView->GrabFocus();
+
// Clear items is the overlay is closed.
if (!bVisible)
{