1ff0525f2SOliver-Rainer Wittmann /**************************************************************
2*fb399032Smseidel  *
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*fb399032Smseidel  *
11ff0525f2SOliver-Rainer Wittmann  *   http://www.apache.org/licenses/LICENSE-2.0
12*fb399032Smseidel  *
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*fb399032Smseidel  *
20ff0525f2SOliver-Rainer Wittmann  *************************************************************/
21ff0525f2SOliver-Rainer Wittmann 
22*fb399032Smseidel 
23*fb399032Smseidel 
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*fb399032Smseidel 	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*fb399032Smseidel 	: public ::svx::sidebar::PopupControl
48ff0525f2SOliver-Rainer Wittmann {
49ff0525f2SOliver-Rainer Wittmann public:
50*fb399032Smseidel 	PageSizeControl(
51*fb399032Smseidel 		Window* pParent,
52*fb399032Smseidel 		PagePropertyPanel& rPanel,
53*fb399032Smseidel 		const Paper ePaper,
54*fb399032Smseidel 		const sal_Bool bLandscape,
55*fb399032Smseidel 		const FieldUnit eFUnit );
56*fb399032Smseidel 	~PageSizeControl(void);
57ff0525f2SOliver-Rainer Wittmann 
58ff0525f2SOliver-Rainer Wittmann private:
59*fb399032Smseidel 	::svx::sidebar::ValueSetWithTextControl* mpSizeValueSet;
60*fb399032Smseidel 	PushButton maMoreButton;
61*fb399032Smseidel 	// hidden metric field
62*fb399032Smseidel 	MetricField maWidthHeightField;
63ff0525f2SOliver-Rainer Wittmann 
64*fb399032Smseidel 	Paper mePaper;
65*fb399032Smseidel 	::std::vector< Paper > maPaperList;
66ff0525f2SOliver-Rainer Wittmann 
67*fb399032Smseidel 	PagePropertyPanel& mrPagePropPanel;
68ff0525f2SOliver-Rainer Wittmann 
69*fb399032Smseidel 	DECL_LINK(ImplSizeHdl, void*);
70*fb399032Smseidel 	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*fb399032Smseidel 
77*fb399032Smseidel /* vim: set noet sw=4 ts=4: */
78