Line data Source code
1 : /*
2 : * This file is part of the LibreOffice project.
3 : *
4 : * This Source Code Form is subject to the terms of the Mozilla Public
5 : * License, v. 2.0. If a copy of the MPL was not distributed with this
6 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 : *
8 : * This file incorporates work covered by the following license notice:
9 : *
10 : * Licensed to the Apache Software Foundation (ASF) under one or more
11 : * contributor license agreements. See the NOTICE file distributed
12 : * with this work for additional information regarding copyright
13 : * ownership. The ASF licenses this file to you under the Apache
14 : * License, Version 2.0 (the "License"); you may not use this file
15 : * except in compliance with the License. You may obtain a copy of
16 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
17 : */
18 :
19 : #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
20 : #define INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
21 :
22 : #include "svx/sidebar/PopupControl.hxx"
23 : #include <sfx2/bindings.hxx>
24 : #include "TextPropertyPanel.hxx"
25 : #include <vcl/button.hxx>
26 : #include <vcl/vclenum.hxx>
27 : #include <svtools/valueset.hxx>
28 :
29 : namespace svx{ namespace sidebar {
30 :
31 0 : class TextUnderlineControl:public svx::sidebar::PopupControl
32 : {
33 : public:
34 : TextUnderlineControl (
35 : Window* pParent,
36 : svx::sidebar::TextPropertyPanel& rPanel,
37 : SfxBindings* pBindings);
38 : void Rearrange(FontUnderline eLine);
39 :
40 : private:
41 : svx::sidebar::TextPropertyPanel& mrTextPropertyPanel;
42 : SfxBindings* mpBindings;
43 : ValueSet maVSUnderline;
44 : PushButton maPBOptions;
45 :
46 : Image maIMGSingle;
47 : Image maIMGDouble;
48 : Image maIMGBold;
49 : Image maIMGDot;
50 : Image maIMGDotBold;
51 : Image maIMGDash;
52 : Image maIMGDashLong;
53 : Image maIMGDashDot;
54 : Image maIMGDashDotDot;
55 : Image maIMGWave;
56 :
57 : Image maIMGSingleSel;
58 : Image maIMGDoubleSel;
59 : Image maIMGBoldSel;
60 : Image maIMGDotSel;
61 : Image maIMGDotBoldSel;
62 : Image maIMGDashSel;
63 : Image maIMGDashLongSel;
64 : Image maIMGDashDotSel;
65 : Image maIMGDashDotDotSel;
66 : Image maIMGWaveSel;
67 :
68 : void initial();
69 :
70 : DECL_LINK( PBClickHdl, PushButton *);
71 : DECL_LINK(VSSelectHdl, void *);
72 : };
73 : }}
74 :
75 :
76 : #endif
77 :
|