1facb16e7SArmin Le Grand /************************************************************** 2facb16e7SArmin Le Grand * 3facb16e7SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one 4facb16e7SArmin Le Grand * or more contributor license agreements. See the NOTICE file 5facb16e7SArmin Le Grand * distributed with this work for additional information 6facb16e7SArmin Le Grand * regarding copyright ownership. The ASF licenses this file 7facb16e7SArmin Le Grand * to you under the Apache License, Version 2.0 (the 8facb16e7SArmin Le Grand * "License"); you may not use this file except in compliance 9facb16e7SArmin Le Grand * with the License. You may obtain a copy of the License at 10facb16e7SArmin Le Grand * 11facb16e7SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12facb16e7SArmin Le Grand * 13facb16e7SArmin Le Grand * Unless required by applicable law or agreed to in writing, 14facb16e7SArmin Le Grand * software distributed under the License is distributed on an 15facb16e7SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16facb16e7SArmin Le Grand * KIND, either express or implied. See the License for the 17facb16e7SArmin Le Grand * specific language governing permissions and limitations 18facb16e7SArmin Le Grand * under the License. 19facb16e7SArmin Le Grand * 20facb16e7SArmin Le Grand *************************************************************/ 21facb16e7SArmin Le Grand 22facb16e7SArmin Le Grand #ifndef SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 23facb16e7SArmin Le Grand #define SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 24facb16e7SArmin Le Grand 25*4e8031e0SArmin Le Grand #include <svx/sidebar/PopupControl.hxx> 26*4e8031e0SArmin Le Grand #include <vcl/button.hxx> 27*4e8031e0SArmin Le Grand #include <CellLineStyleValueSet.hxx> 28facb16e7SArmin Le Grand 29facb16e7SArmin Le Grand namespace sc { namespace sidebar { 30facb16e7SArmin Le Grand 31facb16e7SArmin Le Grand class CellAppearancePropertyPanel; 32facb16e7SArmin Le Grand 33facb16e7SArmin Le Grand class CellLineStyleControl : public svx::sidebar::PopupControl 34facb16e7SArmin Le Grand { 35facb16e7SArmin Le Grand private: 36facb16e7SArmin Le Grand CellAppearancePropertyPanel& mrCellAppearancePropertyPanel; 37facb16e7SArmin Le Grand PushButton maPushButtonMoreOptions; 38facb16e7SArmin Le Grand CellLineStyleValueSet maCellLineStyleValueSet; 39facb16e7SArmin Le Grand XubString* mpStr; 40facb16e7SArmin Le Grand 41facb16e7SArmin Le Grand /// bitfield 42facb16e7SArmin Le Grand bool mbVSfocus : 1; 43facb16e7SArmin Le Grand 44facb16e7SArmin Le Grand void Initialize(); 45facb16e7SArmin Le Grand void SetAllNoSel(); 46facb16e7SArmin Le Grand 47facb16e7SArmin Le Grand DECL_LINK(VSSelectHdl, void*); 48facb16e7SArmin Le Grand DECL_LINK(PBClickHdl, PushButton*); 49facb16e7SArmin Le Grand 50facb16e7SArmin Le Grand public: 51facb16e7SArmin Le Grand CellLineStyleControl(Window* pParent, CellAppearancePropertyPanel& rPanel); 52facb16e7SArmin Le Grand virtual ~CellLineStyleControl(void); 53facb16e7SArmin Le Grand 54facb16e7SArmin Le Grand void GetFocus(); 55facb16e7SArmin Le Grand void SetLineStyleSelect(sal_uInt16 out, sal_uInt16 in, sal_uInt16 dis); 56facb16e7SArmin Le Grand GetValueSet()57facb16e7SArmin Le Grand ValueSet& GetValueSet() 58facb16e7SArmin Le Grand { 59facb16e7SArmin Le Grand return maCellLineStyleValueSet; 60facb16e7SArmin Le Grand } 61facb16e7SArmin Le Grand GetPushButton()62facb16e7SArmin Le Grand Control& GetPushButton() 63facb16e7SArmin Le Grand { 64facb16e7SArmin Le Grand return maPushButtonMoreOptions; 65facb16e7SArmin Le Grand } 66facb16e7SArmin Le Grand }; 67facb16e7SArmin Le Grand 68facb16e7SArmin Le Grand } } // end of namespace svx::sidebar 69facb16e7SArmin Le Grand 70facb16e7SArmin Le Grand #endif // SC_SIDEBAR_CELL_LINE_STYLE_CONTROL_HXX 71facb16e7SArmin Le Grand 72facb16e7SArmin Le Grand // eof 73