diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-04-05 00:36:09 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-04-11 09:24:54 +0000 |
commit | 2e6ed7e0a0f7395d548cbbff71cb72ba32d10309 (patch) | |
tree | 6b5331cae25cc9854930ac80e9a417890deccec2 /include | |
parent | b8cd2221bc0376c63b5d9d09fd1fa232b765e229 (diff) |
tdf#89095 Start Center: bigger thumbnails for templates
ThumbnailDefaultView is now able to dynamically update the size of the thumbnail in its item.
Removed padding for thumbnails.
Change-Id: Ibc267c848a844098a59525c76e234f4f9c4d0ed1
Reviewed-on: https://gerrit.libreoffice.org/23816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/templateabstractview.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx index 2ff5a26c596b..81d0a96f4e80 100644 --- a/include/sfx2/templateabstractview.hxx +++ b/include/sfx2/templateabstractview.hxx @@ -104,6 +104,11 @@ public: void setOpenTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink); + void updateThumbnailDimensions(long itemMaxSize); + + long getThumbnailWidth() const { return mnThumbnailWidth;} + long getThumbnailHeight() const {return mnThumbnailHeight;} + static BitmapEx scaleImg (const BitmapEx &rImg, long width, long height); static BitmapEx getDefaultThumbnail( const OUString& rPath ); @@ -123,6 +128,9 @@ protected: sal_uInt16 mnCurRegionId; OUString maCurRegionName; + long mnThumbnailWidth; + long mnThumbnailHeight; + VclPtr<PushButton> maAllButton; VclPtr<FixedText> maFTName; |