lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / sfx2 / emojiviewitem.hxx
blob65fd8005a7f7aab9c61c276668efeec97c256693
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_SOURCE_INC_EMOJIVIEWITEM_HXX
11 #define INCLUDED_SFX2_SOURCE_INC_EMOJIVIEWITEM_HXX
13 #include <sfx2/thumbnailviewitem.hxx>
15 class EmojiViewItem final : public ThumbnailViewItem
17 public:
18 EmojiViewItem (ThumbnailViewBase &rView, sal_uInt16 nId);
20 virtual ~EmojiViewItem () override;
22 void setCategory (const OUString &rCategory) { msCategory = rCategory; }
24 const OUString& getCategory () const { return msCategory; }
26 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
27 const ThumbnailItemAttributes *pAttrs) override;
29 virtual void calculateItemsPosition (const long nThumbnailHeight,
30 const long nPadding, sal_uInt32 nMaxTextLength,
31 const ThumbnailItemAttributes *pAttrs) override;
32 private:
33 OUString msCategory;
36 #endif // INCLUDED_SFX2_SOURCE_INC_EMOJIVIEWITEM_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */