diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2013-08-11 18:29:58 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-08-13 18:35:03 +0200 |
commit | 85e4d35f1926b8568dfcbe9571ebdc9879fa52b4 (patch) | |
tree | 9309a169e3754458fcc6115d8fdabcfe5a73a36a /include | |
parent | 2ace414bd8350a682ad6d482413e50bfa05893f5 (diff) |
startcenter: Improve thumbnails in RecentDocsView
Change-Id: Ib33e20996267f3e178079174fde014aa28638fcf
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/recentdocsview.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sfx2/recentdocsview.hxx b/include/sfx2/recentdocsview.hxx index f2184e409d7c..dd5ce9e67e24 100644 --- a/include/sfx2/recentdocsview.hxx +++ b/include/sfx2/recentdocsview.hxx @@ -24,6 +24,17 @@ struct LoadRecentFile ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch; }; +enum APPLICATION_FILTER +{ + FILTER_NONE, + FILTER_WRITER, + FILTER_CALC, + FILTER_IMPRESS, + FILTER_DRAW, + FILTER_DATABASE, + FILTER_MATH, +}; + class SFX2_DLLPUBLIC RecentDocsView : protected ::comphelper::OBaseMutex, public ThumbnailView { @@ -39,6 +50,9 @@ public: void SetThumbnailSize(long thumbnailSize); long GetThumbnailSize() const; + static bool isFilteredExtension(APPLICATION_FILTER filter, const OUString &rExt); + static BitmapEx getDefaultThumbnail(const OUString &rURL); + DECL_STATIC_LINK( RecentDocsView, ExecuteHdl_Impl, LoadRecentFile* ); protected: |