fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svx / fontworkgallery.hxx
blob3dec29f1563e17277be000665c54493cfd4d9522
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 _SVX_FONTWORK_GALLERY_DIALOG_HXX
22 #define _SVX_FONTWORK_GALLERY_DIALOG_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 class Window;
40 class SdrTextObj;
41 class SdrObject;
42 class SdrModel;
44 class SfxBindings;
45 class SfxStatusForwarder;
47 //------------------------------------------------------------------------
49 namespace svx
52 class SVX_DLLPUBLIC FontWorkShapeTypeControl : public SfxToolBoxControl
54 using SfxToolBoxControl::Select;
56 public:
57 SFX_DECL_TOOLBOX_CONTROL();
58 FontWorkShapeTypeControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
59 ~FontWorkShapeTypeControl();
61 virtual void Select( sal_Bool bMod1 = sal_False );
62 virtual SfxPopupWindowType GetPopupWindowType() const;
63 virtual SfxPopupWindow* CreatePopupWindow();
66 //------------------------------------------------------------------------
68 class FontworkCharacterSpacingDialog : public ModalDialog
70 FixedText maFLScale;
71 MetricField maMtrScale;
72 OKButton maOKButton;
73 CancelButton maCancelButton;
74 HelpButton maHelpButton;
76 public:
77 FontworkCharacterSpacingDialog( Window* pParent, sal_Int32 nScale );
78 ~FontworkCharacterSpacingDialog();
80 sal_Int32 getScale() const;
84 class SVX_DLLPUBLIC FontWorkGalleryDialog : public ModalDialog
86 FixedLine maFLFavorites;
87 ValueSet maCtlFavorites;
88 OKButton maOKButton;
89 CancelButton maCancelButton;
90 HelpButton maHelpButton;
92 sal_uInt16 mnThemeId;
94 SdrView* mpSdrView;
95 FmFormModel* mpModel;
97 String maStrClickToAddText;
99 DECL_LINK( DoubleClickFavoriteHdl, void * );
100 DECL_LINK( ClickOKHdl, void * );
101 DECL_LINK( ClickTextDirectionHdl, ImageButton * );
103 SdrObject** mppSdrObject;
104 SdrModel* mpDestModel;
106 void initFavorites(sal_uInt16 nThemeId);
107 void insertSelectedFontwork();
108 void fillFavorites(sal_uInt16 nThemeId);
110 std::vector< BitmapEx> maFavoritesHorizontal;
112 public:
113 FontWorkGalleryDialog( SdrView* pView, Window* pParent, sal_uInt16 nSID );
114 ~FontWorkGalleryDialog();
116 // SJ: if the SdrObject** is set, the SdrObject is not inserted into the page when executing the dialog
117 void SetSdrObjectRef( SdrObject**, SdrModel* pModel );
122 #endif
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */