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 _SW_SIDEBAR_PAGE_COLUMN_CONTROL_HXX_
23 #define _SW_SIDEBAR_PAGE_COLUMN_CONTROL_HXX_
24 
25 #include <svx/sidebar/PopupControl.hxx>
26 
27 #include <vcl/image.hxx>
28 #include <vcl/button.hxx>
29 
30 #include <vector>
31 
32 namespace svx { namespace sidebar {
33     class ValueSetWithTextControl;
34 } }
35 
36 namespace sw { namespace sidebar {
37 
38 class PagePropertyPanel;
39 
40 
41 class PageColumnControl
42     : public ::svx::sidebar::PopupControl
43 {
44 public:
45     PageColumnControl(
46         Window* pParent,
47         PagePropertyPanel& rPanel,
48         const sal_uInt16 nColumnType,
49         const bool bLandscape );
50 
51     ~PageColumnControl(void);
52 
53 private:
54     ::svx::sidebar::ValueSetWithTextControl* mpColumnValueSet;
55     PushButton maMoreButton;
56 
57     sal_uInt16 mnColumnType;
58 
59     PagePropertyPanel& mrPagePropPanel;
60 
61     DECL_LINK(ImplColumnHdl, void*);
62     DECL_LINK(MoreButtonClickHdl_Impl, void*);
63 };
64 
65 } } // end of namespace sw::sidebar
66 
67 #endif
68