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 SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 23 #define SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 24 25 #include <svx/sidebar/PopupControl.hxx> 26 #include <vcl/button.hxx> 27 #include <CellLineStyleValueSet.hxx> 28 29 namespace sc { namespace sidebar { 30 31 class CellAppearancePropertyPanel; 32 33 class CellLineStyleControl : public svx::sidebar::PopupControl 34 { 35 private: 36 CellAppearancePropertyPanel& mrCellAppearancePropertyPanel; 37 PushButton maPushButtonMoreOptions; 38 CellLineStyleValueSet maCellLineStyleValueSet; 39 XubString* mpStr; 40 41 /// bitfield 42 bool mbVSfocus : 1; 43 44 void Initialize(); 45 void SetAllNoSel(); 46 47 DECL_LINK(VSSelectHdl, void*); 48 DECL_LINK(PBClickHdl, PushButton*); 49 50 public: 51 CellLineStyleControl(Window* pParent, CellAppearancePropertyPanel& rPanel); 52 virtual ~CellLineStyleControl(void); 53 54 void GetFocus(); 55 void SetLineStyleSelect(sal_uInt16 out, sal_uInt16 in, sal_uInt16 dis); 56 57 ValueSet& GetValueSet() 58 { 59 return maCellLineStyleValueSet; 60 } 61 62 Control& GetPushButton() 63 { 64 return maPushButtonMoreOptions; 65 } 66 }; 67 68 } } // end of namespace svx::sidebar 69 70 #endif // SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 71 72 // eof 73