summaryrefslogtreecommitdiff
path: root/include/sfx2/thumbnailview.hxx
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-07 13:30:10 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-06-08 12:35:16 +0000
commit06eba148481b9eeeff3ea30ea73f2ea3765bd92f (patch)
tree28ad7858c69ef9bb4c428f7c6ce9addd9f77314a /include/sfx2/thumbnailview.hxx
parentd1b6149415a07e8de86d955df2f5d9693b3b8408 (diff)
Disable multiselection in Impress Template Selection
Added possibility to select single item in ThumbnailView. Then, used it in Template Selection dialog. Change-Id: I39b2ea83479ae1536285d4037fb1d24455a52ddc Reviewed-on: https://gerrit.libreoffice.org/25998 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2/thumbnailview.hxx')
-rw-r--r--include/sfx2/thumbnailview.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx
index 4af3061bb28b..721503ec6a99 100644
--- a/include/sfx2/thumbnailview.hxx
+++ b/include/sfx2/thumbnailview.hxx
@@ -226,6 +226,8 @@ public:
void ShowTooltips( bool bShowTooltips );
+ void SetMultiSelectionEnabled( bool bIsMultiSelectionEnabled = true );
+
void filterItems (const std::function<bool (const ThumbnailViewItem*) > &func);
void setItemStateHdl (const Link<const ThumbnailViewItem*,void> &aLink) { maItemStateHdl = aLink; }
@@ -312,6 +314,7 @@ protected:
bool mbIsTransientChildrenDisabled : 1;
bool mbHasVisibleItems : 1;
bool mbShowTooltips : 1;
+ bool mbIsMultiSelectionEnabled: 1;
Color maFillColor; ///< Background color of the thumbnail view widget.
Color maTextColor; ///< Text color.
Color maHighlightColor; ///< Color of the highlight (background) of the hovered item.