Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / fontworkgallery.hxx
blob5699f1791cfcc7d640b9a50735e71961af994094
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 .
21 #ifndef INCLUDED_SVX_FONTWORKGALLERY_HXX
22 #define INCLUDED_SVX_FONTWORKGALLERY_HXX
24 #include <svx/svxdllapi.h>
26 #include <vcl/fixed.hxx>
27 #include <vcl/button.hxx>
28 #include <vcl/dialog.hxx>
29 #include <vcl/field.hxx>
31 #include <svtools/valueset.hxx>
33 #include <sfx2/tbxctrl.hxx>
35 #include <vector>
37 class FmFormModel;
38 class SdrView;
39 namespace vcl { class Window; }
40 class SdrTextObj;
41 class SdrObject;
42 class SdrModel;
44 class SfxBindings;
47 namespace svx
50 class SAL_WARN_UNUSED FontworkCharacterSpacingDialog : public ModalDialog
52 VclPtr<MetricField> m_pMtrScale;
54 public:
55 FontworkCharacterSpacingDialog( vcl::Window* pParent, sal_Int32 nScale );
56 virtual ~FontworkCharacterSpacingDialog() override;
57 virtual void dispose() override;
59 sal_Int32 getScale() const;
62 class SAL_WARN_UNUSED SVX_DLLPUBLIC FontWorkGalleryDialog : public ModalDialog
64 VclPtr<ValueSet> mpCtlFavorites;
65 VclPtr<OKButton> mpOKButton;
67 sal_uInt16 mnThemeId;
69 SdrView* mpSdrView;
71 DECL_LINK( DoubleClickFavoriteHdl, ValueSet*, void );
72 DECL_LINK( ClickOKHdl, Button*, void );
74 SdrObject** mppSdrObject;
75 SdrModel* mpDestModel;
77 void initFavorites(sal_uInt16 nThemeId);
78 void insertSelectedFontwork();
79 void fillFavorites(sal_uInt16 nThemeId);
81 std::vector< BitmapEx> maFavoritesHorizontal;
83 public:
84 FontWorkGalleryDialog( SdrView* pView, vcl::Window* pParent );
85 virtual ~FontWorkGalleryDialog() override;
86 virtual void dispose() override;
88 // SJ: if the SdrObject** is set, the SdrObject is not inserted into the page when executing the dialog
89 void SetSdrObjectRef( SdrObject**, SdrModel* pModel );
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */