1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
25 #define _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
26 
27 #include "svx/sidebar/PopupControl.hxx"
28 #include <sfx2/bindings.hxx>
29 #include <svtools/ctrlbox.hxx>
30 #include <svtools/ctrltool.hxx>
31 #include "TextPropertyPanel.hxx"
32 #include <vcl/fixed.hxx>
33 #include <vcl/button.hxx>
34 
35 #include <vcl/vclenum.hxx>
36 #include <svtools/valueset.hxx>
37 
38 namespace svx{ namespace sidebar {
39 
40 class TextUnderlineControl:public svx::sidebar::PopupControl
41 {
42 public:
43 	TextUnderlineControl (
44 		Window* pParent,
45 		svx::sidebar::TextPropertyPanel& rPanel,
46 		SfxBindings* pBindings);
47 	void Rearrange(FontUnderline eLine);
48 
49 private:
50 	svx::sidebar::TextPropertyPanel& mrTextPropertyPanel;
51 	SfxBindings*		mpBindings;
52 	ValueSet			maVSUnderline;
53 	PushButton			maPBOptions;
54 
55 	Image				maIMGSingle;
56 	Image				maIMGDouble;
57 	Image				maIMGBold;
58 	Image				maIMGDot;
59 	Image				maIMGDotBold;
60 	Image				maIMGDash;
61 	Image				maIMGDashLong;
62 	Image				maIMGDashDot;
63 	Image				maIMGDashDotDot;
64 	Image				maIMGWave;
65 
66 	//add for high contract
67 	Image				maIMGSingleH;
68 	Image				maIMGDoubleH;
69 	Image				maIMGBoldH;
70 	Image				maIMGDotH;
71 	Image				maIMGDotBoldH;
72 	Image				maIMGDashH;
73 	Image				maIMGDashLongH;
74 	Image				maIMGDashDotH;
75 	Image				maIMGDashDotDotH;
76 	Image				maIMGWaveH;
77 
78 	Image				maIMGSingleSel;
79 	Image				maIMGDoubleSel;
80 	Image				maIMGBoldSel;
81 	Image				maIMGDotSel;
82 	Image				maIMGDotBoldSel;
83 	Image				maIMGDashSel;
84 	Image				maIMGDashLongSel;
85 	Image				maIMGDashDotSel;
86 	Image				maIMGDashDotDotSel;
87 	Image				maIMGWaveSel;
88 
89 	void initial();
90 
91 	DECL_LINK( PBClickHdl, PushButton *);
92 	DECL_LINK(VSSelectHdl, void *);
93 };
94 }}
95 
96 
97 #endif
98