Use o3tl::convert in Math
[LibreOffice.git] / sfx2 / inc / emojiviewitem.hxx
blob61a3306735bd4ba08694f780af368c82ee20b2cf
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 #pragma once
12 #include <sfx2/thumbnailviewitem.hxx>
14 class EmojiViewItem final : public ThumbnailViewItem
16 public:
17 EmojiViewItem(ThumbnailView& rView, sal_uInt16 nId);
19 virtual ~EmojiViewItem () override;
21 void setCategory (const OUString &rCategory) { msCategory = rCategory; }
23 const OUString& getCategory () const { return msCategory; }
25 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
26 const ThumbnailItemAttributes *pAttrs) override;
28 virtual void calculateItemsPosition (const tools::Long nThumbnailHeight,
29 const tools::Long nPadding, sal_uInt32 nMaxTextLength,
30 const ThumbnailItemAttributes *pAttrs) override;
31 private:
32 OUString msCategory;
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */