From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- sfx2/inc/emojicontrol.hxx | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 sfx2/inc/emojicontrol.hxx (limited to 'sfx2/inc/emojicontrol.hxx') diff --git a/sfx2/inc/emojicontrol.hxx b/sfx2/inc/emojicontrol.hxx new file mode 100644 index 000000000..50b70dc57 --- /dev/null +++ b/sfx2/inc/emojicontrol.hxx @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include +#include +#include + +namespace com::sun::star::frame +{ +class XFrame; +} + +class EmojiPopup; +class EmojiView; +class ThumbnailViewItem; +enum class FILTER_CATEGORY; + +class SfxEmojiControl final : public WeldToolbarPopup + +{ +public: + explicit SfxEmojiControl(const EmojiPopup* pControl, weld::Widget* pParent); + virtual ~SfxEmojiControl() override; + + virtual void GrabFocus() override; + +private: + static void ConvertLabelToUnicode(weld::ToggleButton& rBtn); + + FILTER_CATEGORY getFilter(const weld::Toggleable& rBtn) const; + + DECL_LINK(ActivatePageHdl, weld::Toggleable&, void); + DECL_STATIC_LINK(SfxEmojiControl, InsertHdl, ThumbnailViewItem*, void); + + std::unique_ptr mxPeopleBtn; + std::unique_ptr mxNatureBtn; + std::unique_ptr mxFoodBtn; + std::unique_ptr mxActivityBtn; + std::unique_ptr mxTravelBtn; + std::unique_ptr mxObjectsBtn; + std::unique_ptr mxSymbolsBtn; + std::unique_ptr mxFlagsBtn; + std::unique_ptr mxUnicode9Btn; + std::unique_ptr mxEmojiView; + std::unique_ptr mxEmojiWeld; +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3