diff options
Diffstat (limited to 'sfx2/source/control/thumbnailview.cxx')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index d2196eb48535..a1c08980161a 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -505,6 +505,9 @@ void ThumbnailView::MouseButtonDown( const MouseEvent& rMEvt ) deselectItems( ); pItem->setSelection(true); + bool bClickOnTitle = pItem->getTextArea().IsInside(rMEvt.GetPosPixel()); + pItem->setEditTitle(bClickOnTitle); + if (!pItem->isHighlighted()) DrawItem(pItem); @@ -881,6 +884,7 @@ void ThumbnailView::deselectItems() { if (mItemList[i]->isSelected()) { + mItemList[i]->setEditTitle(false); mItemList[i]->setSelection(false); maItemStateHdl.Call(mItemList[i]); @@ -965,6 +969,11 @@ void ThumbnailView::sortItems (const boost::function<bool (const ThumbnailViewIt Invalidate(); } +void ThumbnailView::renameItem(ThumbnailViewItem*, rtl::OUString) +{ + // Do nothing by default +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |