Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
21 : #define INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTUNDERLINECONTROL_HXX
22 :
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>
29 :
30 : namespace svx{ namespace sidebar {
31 :
32 0 : class TextUnderlineControl:public svx::sidebar::PopupControl
33 : {
34 : public:
35 : TextUnderlineControl (
36 : vcl::Window* pParent,
37 : svx::sidebar::TextPropertyPanel& rPanel,
38 : SfxBindings* pBindings);
39 : void Rearrange(FontUnderline eLine);
40 :
41 : private:
42 : svx::sidebar::TextPropertyPanel& mrTextPropertyPanel;
43 : SfxBindings* mpBindings;
44 : ValueSet maVSUnderline;
45 : PushButton maPBOptions;
46 :
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;
57 :
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;
68 :
69 : void initial();
70 :
71 : DECL_LINK( PBClickHdl, PushButton *);
72 : DECL_LINK(VSSelectHdl, void *);
73 : };
74 : }}
75 :
76 :
77 : #endif
78 :
79 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|