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 Rearrange(FontUnderline eLine); 46 47 private: 48 svx::sidebar::TextPropertyPanel& mrTextPropertyPanel; 49 SfxBindings* mpBindings; 50 ValueSet maVSUnderline; 51 PushButton maPBOptions; 52 53 Image maIMGSingle; 54 Image maIMGDouble; 55 Image maIMGBold; 56 Image maIMGDot; 57 Image maIMGDotBold; 58 Image maIMGDash; 59 Image maIMGDashLong; 60 Image maIMGDashDot; 61 Image maIMGDashDotDot; 62 Image maIMGWave; 63 64 //add for high contract 65 Image maIMGSingleH; 66 Image maIMGDoubleH; 67 Image maIMGBoldH; 68 Image maIMGDotH; 69 Image maIMGDotBoldH; 70 Image maIMGDashH; 71 Image maIMGDashLongH; 72 Image maIMGDashDotH; 73 Image maIMGDashDotDotH; 74 Image maIMGWaveH; 75 76 Image maIMGSingleSel; 77 Image maIMGDoubleSel; 78 Image maIMGBoldSel; 79 Image maIMGDotSel; 80 Image maIMGDotBoldSel; 81 Image maIMGDashSel; 82 Image maIMGDashLongSel; 83 Image maIMGDashDotSel; 84 Image maIMGDashDotDotSel; 85 Image maIMGWaveSel; 86 87 void initial(); 88 89 DECL_LINK( PBClickHdl, PushButton *); 90 DECL_LINK(VSSelectHdl, void *); 91 }; 92 }} 93 94 95 #endif 96 97