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 #ifndef _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
22 #define _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
23 
24 #include "svx/sidebar/PopupControl.hxx"
25 #include <sfx2/bindings.hxx>
26 #include <svtools/ctrlbox.hxx>
27 #include <svtools/ctrltool.hxx>
28 #include "TextPropertyPanel.hxx"
29 #include <vcl/fixed.hxx>
30 #include <svtools/button.hxx>
31 
32 #include <vcl/vclenum.hxx>
33 #include <svtools/valueset.hxx>
34 
35 namespace svx{ namespace sidebar {
36 
37 class TextUnderlineControl:public svx::sidebar::PopupControl
38 {
39 public:
40 	TextUnderlineControl(Window* pParent, svx::sidebar::TextPropertyPanel& rPanel);
41 	void GetFocus();
42 	void Rearrange(FontUnderline eLine);
43 	ValueSet& GetValueSet();
44 	Control& GetPB();
45 private:
46 	svx::sidebar::TextPropertyPanel&     mrTextPropertyPanel;
47 	SfxBindings*		mpBindings;
48 	ValueSet			maVSUnderline;
49 	SidebarCustomButton::HoverButton			maPBOptions;
50 
51 	Image				maIMGSingle;
52 	Image				maIMGDouble;
53 	Image				maIMGBold;
54 	Image				maIMGDot;
55 	Image				maIMGDotBold;
56 	Image				maIMGDash;
57 	Image				maIMGDashLong;
58 	Image				maIMGDashDot;
59 	Image				maIMGDashDotDot;
60 	Image				maIMGWave;
61 
62 	//add  for high contract
63 	Image				maIMGSingleH;
64 	Image				maIMGDoubleH;
65 	Image				maIMGBoldH;
66 	Image				maIMGDotH;
67 	Image				maIMGDotBoldH;
68 	Image				maIMGDashH;
69 	Image				maIMGDashLongH;
70 	Image				maIMGDashDotH;
71 	Image				maIMGDashDotDotH;
72 	Image				maIMGWaveH;
73 
74 	Image				maIMGSingleSel;
75 	Image				maIMGDoubleSel;
76 	Image				maIMGBoldSel;
77 	Image				maIMGDotSel;
78 	Image				maIMGDotBoldSel;
79 	Image				maIMGDashSel;
80 	Image				maIMGDashLongSel;
81 	Image				maIMGDashDotSel;
82 	Image				maIMGDashDotDotSel;
83 	Image				maIMGWaveSel;
84 
85 	void initial();
86 
87 	DECL_LINK( PBClickHdl, PushButton *);
88 	DECL_LINK(VSSelectHdl, void *);
89 };
90 }}
91 
92 
93 #endif
94 
95