update emoji autocorrect entries from po-files
[LibreOffice.git] / include / sfx2 / recentdocsviewitem.hxx
blobee50a3c2df74c2b954708778d36ea8a2f5da7d30
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
11 #define INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
13 #include <sfx2/thumbnailview.hxx>
15 class RecentDocsViewItem : public ThumbnailViewItem
17 public:
18 RecentDocsViewItem(ThumbnailView &rView, const OUString &rURL,
19 const OUString &rTitle, const BitmapEx& rThumbnail, sal_uInt16 nId, long nThumbnailSize = 256);
20 virtual void setEditTitle (bool edit, bool bChangeFocus = true) SAL_OVERRIDE;
22 /** Updates own highlight status based on the aPoint position.
24 Calls the ancestor's updateHighlight, and then takes care of m_bRemoveIconHighlighted.
26 Returns rectangle that needs to be invalidated.
28 virtual Rectangle updateHighlight(bool bVisible, const Point& rPoint) SAL_OVERRIDE;
30 /// Text to be used for the tooltip.
31 virtual OUString getHelpText() const SAL_OVERRIDE;
33 virtual void Paint(drawinglayer::processor2d::BaseProcessor2D *pProcessor,
34 const ThumbnailItemAttributes *pAttrs) SAL_OVERRIDE;
36 virtual void MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE;
38 /// Called when the user clicks a document - it will open it.
39 void OpenDocument();
41 protected:
42 /// Return area where is the icon to remove document from the recent documents.
43 Rectangle getRemoveIconArea() const;
45 private:
46 OUString maURL;
48 OUString m_sHelpText;
50 /// Is the icon that the user can click to remove the document from the recent documents highlighted?
51 bool m_bRemoveIconHighlighted;
53 BitmapEx m_aRemoveRecentBitmap;
55 BitmapEx m_aRemoveRecentBitmapHighlighted;
58 #endif // INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */