Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / svx / source / sidebar / text / TextUnderlineControl.hxx
blob4ff4366e314011e5b40bb57839b2e2dcf8a9c007
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_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
21 #define INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
23 #include "svx/sidebar/PopupControl.hxx"
24 #include <sfx2/bindings.hxx>
25 #include "TextPropertyPanel.hxx"
26 #include <vcl/button.hxx>
27 #include <vcl/vclenum.hxx>
28 #include <svtools/valueset.hxx>
30 namespace svx{ namespace sidebar {
32 class TextUnderlineControl:public svx::sidebar::PopupControl
34 public:
35 TextUnderlineControl (
36 Window* pParent,
37 svx::sidebar::TextPropertyPanel& rPanel,
38 SfxBindings* pBindings);
39 void Rearrange(FontUnderline eLine);
41 private:
42 svx::sidebar::TextPropertyPanel& mrTextPropertyPanel;
43 SfxBindings* mpBindings;
44 ValueSet maVSUnderline;
45 PushButton maPBOptions;
47 Image maIMGSingle;
48 Image maIMGDouble;
49 Image maIMGBold;
50 Image maIMGDot;
51 Image maIMGDotBold;
52 Image maIMGDash;
53 Image maIMGDashLong;
54 Image maIMGDashDot;
55 Image maIMGDashDotDot;
56 Image maIMGWave;
58 Image maIMGSingleSel;
59 Image maIMGDoubleSel;
60 Image maIMGBoldSel;
61 Image maIMGDotSel;
62 Image maIMGDotBoldSel;
63 Image maIMGDashSel;
64 Image maIMGDashLongSel;
65 Image maIMGDashDotSel;
66 Image maIMGDashDotDotSel;
67 Image maIMGWaveSel;
69 void initial();
71 DECL_LINK( PBClickHdl, PushButton *);
72 DECL_LINK(VSSelectHdl, void *);
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */