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 _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
20 : #define _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
21 :
22 : #include "svx/sidebar/PopupControl.hxx"
23 : #include <sfx2/bindings.hxx>
24 : #include <svtools/ctrlbox.hxx>
25 : #include <svtools/ctrltool.hxx>
26 : #include "TextPropertyPanel.hxx"
27 : #include <vcl/fixed.hxx>
28 : #include <vcl/button.hxx>
29 :
30 : #include <vcl/vclenum.hxx>
31 : #include <svtools/valueset.hxx>
32 :
33 : namespace svx{ namespace sidebar {
34 :
35 0 : class TextUnderlineControl:public svx::sidebar::PopupControl
36 : {
37 : public:
38 : TextUnderlineControl (
39 : Window* pParent,
40 : svx::sidebar::TextPropertyPanel& rPanel,
41 : SfxBindings* pBindings);
42 : void Rearrange(FontUnderline eLine);
43 :
44 : private:
45 : svx::sidebar::TextPropertyPanel& mrTextPropertyPanel;
46 : SfxBindings* mpBindings;
47 : ValueSet maVSUnderline;
48 : PushButton maPBOptions;
49 :
50 : Image maIMGSingle;
51 : Image maIMGDouble;
52 : Image maIMGBold;
53 : Image maIMGDot;
54 : Image maIMGDotBold;
55 : Image maIMGDash;
56 : Image maIMGDashLong;
57 : Image maIMGDashDot;
58 : Image maIMGDashDotDot;
59 : Image maIMGWave;
60 :
61 : Image maIMGSingleSel;
62 : Image maIMGDoubleSel;
63 : Image maIMGBoldSel;
64 : Image maIMGDotSel;
65 : Image maIMGDotBoldSel;
66 : Image maIMGDashSel;
67 : Image maIMGDashLongSel;
68 : Image maIMGDashDotSel;
69 : Image maIMGDashDotDotSel;
70 : Image maIMGWaveSel;
71 :
72 : void initial();
73 :
74 : DECL_LINK( PBClickHdl, PushButton *);
75 : DECL_LINK(VSSelectHdl, void *);
76 : };
77 : }}
78 :
79 :
80 : #endif
81 :
|