/* -*- 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 #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::Button& rBtn) const; DECL_LINK(ActivatePageHdl, weld::Button&, 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: */