LibreOffice Module sfx2 (master) 1
recentdocsviewitem.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#ifndef INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
11#define INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
12
14
15namespace sfx2
16{
17 class RecentDocsView;
18}
19
21{
22public:
23 RecentDocsViewItem(sfx2::RecentDocsView& rView, const OUString& rURL, const OUString& rTitle,
24 std::u16string_view sThumbnailBase64, sal_uInt16 nId,
25 tools::Long nThumbnailSize, bool isReadOnly, bool isPinned);
26
33 virtual tools::Rectangle updateHighlight(bool bVisible, const Point& rPoint) override;
34
36 virtual OUString getHelpText() const override;
37
39 const ThumbnailItemAttributes *pAttrs) override;
40
41 virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
42
44 void OpenDocument();
45
46private:
48
51
52 OUString maURL;
53
54 bool m_isReadOnly = false;
55
56 OUString m_sHelpText;
57
60
62
64};
65
66#endif // INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BitmapEx m_aRemoveRecentBitmapHighlighted
virtual tools::Rectangle updateHighlight(bool bVisible, const Point &rPoint) override
Updates own highlight status based on the aPoint position.
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
RecentDocsViewItem(sfx2::RecentDocsView &rView, const OUString &rURL, const OUString &rTitle, std::u16string_view sThumbnailBase64, sal_uInt16 nId, tools::Long nThumbnailSize, bool isReadOnly, bool isPinned)
tools::Rectangle getRemoveIconArea() const
Return area where is the icon to remove document from the recent documents.
virtual OUString getHelpText() const override
Text to be used for the tooltip.
bool m_bRemoveIconHighlighted
Is the icon that the user can click to remove the document from the recent documents highlighted?
void OpenDocument()
Called when the user clicks a document - it will open it.
virtual void Paint(drawinglayer::processor2d::BaseProcessor2D *pProcessor, const ThumbnailItemAttributes *pAttrs) override
sfx2::RecentDocsView & mrParentView
long Long
sal_Int16 nId
bool bVisible