lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / sfx2 / charmapcontrol.hxx
blob4c0501c0abfd8b04ab1bce55977d2d13617d2188
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SFX2_INC_CHARMAPCONTROL_HXX
21 #define INCLUDED_SFX2_INC_CHARMAPCONTROL_HXX
23 #include <sal/config.h>
24 #include <sfx2/dllapi.h>
25 #include <sfx2/tbxctrl.hxx>
26 #include <sfx2/charwin.hxx>
27 #include <vcl/button.hxx>
28 #include <deque>
30 namespace com::sun::star::frame { class XFrame; }
32 class SfxCharmapCtrl final : public SfxPopupWindow
34 public:
35 explicit SfxCharmapCtrl(sal_uInt16 nId, vcl::Window* pParent,
36 const css::uno::Reference< css::frame::XFrame >& rFrame);
38 virtual ~SfxCharmapCtrl() override;
40 virtual void dispose() override;
42 virtual bool EventNotify( NotifyEvent& rNEvt ) override;
44 private:
45 VclPtr<SvxCharViewControl> m_pRecentCharView[16];
46 VclPtr<SvxCharViewControl> m_pFavCharView[16];
47 std::deque<OUString> maRecentCharList;
48 std::deque<OUString> maRecentCharFontList;
49 std::deque<OUString> maFavCharList;
50 std::deque<OUString> maFavCharFontList;
51 VclPtr<Button> maDlgBtn;
52 bool mbNeedsInit = true;
54 DECL_LINK(CharClickHdl, SvxCharViewControl*, void);
55 DECL_STATIC_LINK(SfxCharmapCtrl, FocusHdl, Control&, void);
56 DECL_LINK(OpenDlgHdl, Button*, void);
58 void getFavCharacterList();
59 void updateFavCharControl();
61 void getRecentCharacterList(); //gets both recent char and recent char font list
62 void updateRecentCharControl();
65 #endif
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */