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
22*8e9b0a85Smseidel
23*8e9b0a85Smseidel
24facb16e7SArmin Le Grand #include "precompiled_sc.hxx"
25facb16e7SArmin Le Grand
26facb16e7SArmin Le Grand #include "CellLineStylePopup.hxx"
27facb16e7SArmin Le Grand #include "CellLineStyleControl.hxx"
28facb16e7SArmin Le Grand
29facb16e7SArmin Le Grand namespace sc { namespace sidebar {
30facb16e7SArmin Le Grand
CellLineStylePopup(Window * pParent,const::boost::function<svx::sidebar::PopupControl * (svx::sidebar::PopupContainer *)> & rControlCreator)31facb16e7SArmin Le Grand CellLineStylePopup::CellLineStylePopup (
32facb16e7SArmin Le Grand Window* pParent,
33facb16e7SArmin Le Grand const ::boost::function<svx::sidebar::PopupControl*(svx::sidebar::PopupContainer*)>& rControlCreator)
34facb16e7SArmin Le Grand : Popup(pParent, rControlCreator, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CellLineStyle")))
35facb16e7SArmin Le Grand {
36facb16e7SArmin Le Grand }
37facb16e7SArmin Le Grand
~CellLineStylePopup(void)38facb16e7SArmin Le Grand CellLineStylePopup::~CellLineStylePopup (void)
39facb16e7SArmin Le Grand {
40facb16e7SArmin Le Grand }
41facb16e7SArmin Le Grand
SetLineStyleSelect(sal_uInt16 out,sal_uInt16 in,sal_uInt16 dis)42facb16e7SArmin Le Grand void CellLineStylePopup::SetLineStyleSelect(sal_uInt16 out, sal_uInt16 in, sal_uInt16 dis)
43facb16e7SArmin Le Grand {
44facb16e7SArmin Le Grand ProvideContainerAndControl();
45facb16e7SArmin Le Grand
46facb16e7SArmin Le Grand CellLineStyleControl* pControl = dynamic_cast< CellLineStyleControl* >(mpControl.get());
47facb16e7SArmin Le Grand
48facb16e7SArmin Le Grand if(pControl)
49facb16e7SArmin Le Grand {
50facb16e7SArmin Le Grand pControl->SetLineStyleSelect(out, in, dis);
51facb16e7SArmin Le Grand }
52facb16e7SArmin Le Grand }
53facb16e7SArmin Le Grand
54facb16e7SArmin Le Grand } } // end of namespace sc::sidebar
55facb16e7SArmin Le Grand
56*8e9b0a85Smseidel /* vim: set noet sw=4 ts=4: */
57