1ff0525f2SOliver-Rainer Wittmann /**************************************************************
2*344957f7Smseidel  *
3ff0525f2SOliver-Rainer Wittmann  * Licensed to the Apache Software Foundation (ASF) under one
4ff0525f2SOliver-Rainer Wittmann  * or more contributor license agreements.  See the NOTICE file
5ff0525f2SOliver-Rainer Wittmann  * distributed with this work for additional information
6ff0525f2SOliver-Rainer Wittmann  * regarding copyright ownership.  The ASF licenses this file
7ff0525f2SOliver-Rainer Wittmann  * to you under the Apache License, Version 2.0 (the
8ff0525f2SOliver-Rainer Wittmann  * "License"); you may not use this file except in compliance
9ff0525f2SOliver-Rainer Wittmann  * with the License.  You may obtain a copy of the License at
10*344957f7Smseidel  *
11ff0525f2SOliver-Rainer Wittmann  *   http://www.apache.org/licenses/LICENSE-2.0
12*344957f7Smseidel  *
13ff0525f2SOliver-Rainer Wittmann  * Unless required by applicable law or agreed to in writing,
14ff0525f2SOliver-Rainer Wittmann  * software distributed under the License is distributed on an
15ff0525f2SOliver-Rainer Wittmann  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16ff0525f2SOliver-Rainer Wittmann  * KIND, either express or implied.  See the License for the
17ff0525f2SOliver-Rainer Wittmann  * specific language governing permissions and limitations
18ff0525f2SOliver-Rainer Wittmann  * under the License.
19*344957f7Smseidel  *
20ff0525f2SOliver-Rainer Wittmann  *************************************************************/
21ff0525f2SOliver-Rainer Wittmann 
22*344957f7Smseidel 
23*344957f7Smseidel 
24ff0525f2SOliver-Rainer Wittmann #ifndef _SW_SIDEBAR_PAGE_SIZE_CONTROL_HXX_
25ff0525f2SOliver-Rainer Wittmann #define _SW_SIDEBAR_PAGE_SIZE_CONTROL_HXX_
26ff0525f2SOliver-Rainer Wittmann 
27ff0525f2SOliver-Rainer Wittmann #include <svx/sidebar/PopupControl.hxx>
28ff0525f2SOliver-Rainer Wittmann 
29ff0525f2SOliver-Rainer Wittmann #include <i18npool/paper.hxx>
30ff0525f2SOliver-Rainer Wittmann 
31ff0525f2SOliver-Rainer Wittmann #include <vcl/button.hxx>
32f120fe41SAndre Fischer #include <vcl/field.hxx>
33f120fe41SAndre Fischer #include <svtools/unitconv.hxx>
34ff0525f2SOliver-Rainer Wittmann 
35ff0525f2SOliver-Rainer Wittmann #include <vector>
36ff0525f2SOliver-Rainer Wittmann 
37ff0525f2SOliver-Rainer Wittmann namespace svx { namespace sidebar {
38*344957f7Smseidel 	class ValueSetWithTextControl;
39ff0525f2SOliver-Rainer Wittmann } }
40ff0525f2SOliver-Rainer Wittmann 
41ff0525f2SOliver-Rainer Wittmann namespace sw { namespace sidebar {
42ff0525f2SOliver-Rainer Wittmann 
43ff0525f2SOliver-Rainer Wittmann class PagePropertyPanel;
44ff0525f2SOliver-Rainer Wittmann 
45ff0525f2SOliver-Rainer Wittmann 
46ff0525f2SOliver-Rainer Wittmann class PageSizeControl
47*344957f7Smseidel 	: public ::svx::sidebar::PopupControl
48ff0525f2SOliver-Rainer Wittmann {
49ff0525f2SOliver-Rainer Wittmann public:
50*344957f7Smseidel 	PageSizeControl(
51*344957f7Smseidel 		Window* pParent,
52*344957f7Smseidel 		PagePropertyPanel& rPanel,
53*344957f7Smseidel 		const Paper ePaper,
54*344957f7Smseidel 		const sal_Bool bLandscape,
55*344957f7Smseidel 		const FieldUnit eFUnit );
56*344957f7Smseidel 	~PageSizeControl(void);
57ff0525f2SOliver-Rainer Wittmann 
58ff0525f2SOliver-Rainer Wittmann private:
59*344957f7Smseidel 	::svx::sidebar::ValueSetWithTextControl* mpSizeValueSet;
60*344957f7Smseidel 	PushButton maMoreButton;
61*344957f7Smseidel 	// hidden metric field
62*344957f7Smseidel 	MetricField maWidthHeightField;
63ff0525f2SOliver-Rainer Wittmann 
64*344957f7Smseidel 	Paper mePaper;
65*344957f7Smseidel 	::std::vector< Paper > maPaperList;
66ff0525f2SOliver-Rainer Wittmann 
67*344957f7Smseidel 	PagePropertyPanel& mrPagePropPanel;
68ff0525f2SOliver-Rainer Wittmann 
69*344957f7Smseidel 	DECL_LINK(ImplSizeHdl, void*);
70*344957f7Smseidel 	DECL_LINK(MoreButtonClickHdl_Impl, void*);
71ff0525f2SOliver-Rainer Wittmann };
72ff0525f2SOliver-Rainer Wittmann 
73ff0525f2SOliver-Rainer Wittmann } } // end of namespace sw::sidebar
74ff0525f2SOliver-Rainer Wittmann 
75ff0525f2SOliver-Rainer Wittmann #endif
76*344957f7Smseidel 
77*344957f7Smseidel /* vim: set noet sw=4 ts=4: */
78