15d39f272SZheng Fan /**************************************************************
25d39f272SZheng Fan  *
35d39f272SZheng Fan  * Licensed to the Apache Software Foundation (ASF) under one
45d39f272SZheng Fan  * or more contributor license agreements.  See the NOTICE file
55d39f272SZheng Fan  * distributed with this work for additional information
65d39f272SZheng Fan  * regarding copyright ownership.  The ASF licenses this file
75d39f272SZheng Fan  * to you under the Apache License, Version 2.0 (the
85d39f272SZheng Fan  * "License"); you may not use this file except in compliance
95d39f272SZheng Fan  * with the License.  You may obtain a copy of the License at
105d39f272SZheng Fan  *
115d39f272SZheng Fan  *   http://www.apache.org/licenses/LICENSE-2.0
125d39f272SZheng Fan  *
135d39f272SZheng Fan  * Unless required by applicable law or agreed to in writing,
145d39f272SZheng Fan  * software distributed under the License is distributed on an
155d39f272SZheng Fan  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
165d39f272SZheng Fan  * KIND, either express or implied.  See the License for the
175d39f272SZheng Fan  * specific language governing permissions and limitations
185d39f272SZheng Fan  * under the License.
195d39f272SZheng Fan  *
205d39f272SZheng Fan  *************************************************************/
215d39f272SZheng Fan 
22facb16e7SArmin Le Grand #ifndef SC_SIDEBAR_CELL_LINE_STYLE_VALUE_SET_HXX
23facb16e7SArmin Le Grand #define SC_SIDEBAR_CELL_LINE_STYLE_VALUE_SET_HXX
245d39f272SZheng Fan 
25facb16e7SArmin Le Grand #include <svtools/valueset.hxx>
26facb16e7SArmin Le Grand #include <vcl/image.hxx>
27*4e8031e0SArmin Le Grand 
28*4e8031e0SArmin Le Grand namespace sc { namespace sidebar {
295d39f272SZheng Fan 
30facb16e7SArmin Le Grand class CellLineStyleValueSet : public ValueSet
315d39f272SZheng Fan {
32facb16e7SArmin Le Grand private:
33facb16e7SArmin Le Grand     VirtualDevice*  pVDev;
34facb16e7SArmin Le Grand     sal_uInt16      nSelItem;
35facb16e7SArmin Le Grand     XubString*      strUnit;
36facb16e7SArmin Le Grand     Image           imgCus;
37facb16e7SArmin Le Grand     bool            bCusEnable;
385d39f272SZheng Fan public:
39facb16e7SArmin Le Grand     CellLineStyleValueSet( Window* pParent, const ResId& rResId);
40facb16e7SArmin Le Grand     virtual ~CellLineStyleValueSet();
41facb16e7SArmin Le Grand 
42facb16e7SArmin Le Grand     void SetUnit(XubString* str);
43facb16e7SArmin Le Grand     void SetSelItem(sal_uInt16 nSel);
44facb16e7SArmin Le Grand     sal_uInt16 GetSelItem();
45facb16e7SArmin Le Grand     void SetImage(Image img);
46facb16e7SArmin Le Grand     void SetCusEnable(bool bEnable);
47facb16e7SArmin Le Grand     virtual void UserDraw( const UserDrawEvent& rUDEvt );
485d39f272SZheng Fan };
495d39f272SZheng Fan 
505d39f272SZheng Fan } } // end of namespace svx::sidebar
515d39f272SZheng Fan 
52facb16e7SArmin Le Grand #endif // SC_SIDEBAR_CELL_LINE_STYLE_VALUE_SET_HXX
53facb16e7SArmin Le Grand 
54facb16e7SArmin Le Grand // eof
55