xref: /AOO41X/main/svx/source/sidebar/text/TextUnderlineControl.hxx (revision 5443dcac4da55ae8863c5c80e8907938642a7f1b)
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 #ifndef _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
23 #define _SVX_SIDEBAR_UNDERLINE_CONTROL_HXX_
24 
25 #include "svx/sidebar/PopupControl.hxx"
26 #include <sfx2/bindings.hxx>
27 #include <svtools/ctrlbox.hxx>
28 #include <svtools/ctrltool.hxx>
29 #include "TextPropertyPanel.hxx"
30 #include <vcl/fixed.hxx>
31 #include <vcl/button.hxx>
32 
33 #include <vcl/vclenum.hxx>
34 #include <svtools/valueset.hxx>
35 
36 namespace svx{ namespace sidebar {
37 
38 class TextUnderlineControl:public svx::sidebar::PopupControl
39 {
40 public:
41     TextUnderlineControl (
42         Window* pParent,
43         svx::sidebar::TextPropertyPanel& rPanel,
44         SfxBindings* pBindings);
45     void GetFocus();
46     void Rearrange(FontUnderline eLine);
47     ValueSet& GetValueSet();
48     Control& GetPB();
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 
99