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 
23 #ifndef RPTUI_PAGENUMBER_HXX
24 #define RPTUI_PAGENUMBER_HXX
25 
26 #ifndef _DIALOG_HXX //autogen
27 #include <vcl/dialog.hxx>
28 #endif
29 #ifndef _FIXED_HXX //autogen
30 #include <vcl/fixed.hxx>
31 #endif
32 #include <vcl/lstbox.hxx>
33 #include <vcl/field.hxx>
34 #ifndef _SV_BUTTON_HXX
35 #include <vcl/button.hxx>
36 #endif
37 #include <com/sun/star/report/XReportDefinition.hpp>
38 
39 
40 namespace rptui
41 {
42 class OReportController;
43 /*************************************************************************
44 |*
45 |* Groups and Sorting dialog
46 |*
47 \************************************************************************/
48 class OPageNumberDialog :	public ModalDialog
49 {
50 	FixedLine								m_aFormat;
51 	RadioButton								m_aPageN;
52 	RadioButton								m_aPageNofM;
53 
54 	FixedLine								m_aPosition;
55 	RadioButton								m_aTopPage;
56 	RadioButton								m_aBottomPage;
57 	FixedLine								m_aMisc;
58 	FixedText								m_aAlignment;
59 	ListBox									m_aAlignmentLst;
60 
61 	CheckBox								m_aShowNumberOnFirstPage;
62 	FixedLine								m_aFl1;
63 	OKButton								m_aPB_OK;
64 	CancelButton							m_aPB_CANCEL;
65 	HelpButton								m_aPB_Help;
66 
67 
68 	::rptui::OReportController*				m_pController;
69 	::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>
70 											m_xHoldAlive;
71 
72     OPageNumberDialog(const OPageNumberDialog&);
73     void operator =(const OPageNumberDialog&);
74 public:
75 	OPageNumberDialog( Window* pParent
76 						,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>& _xHoldAlive
77 						,::rptui::OReportController* _pController);
78 	virtual ~OPageNumberDialog();
79 	virtual short	Execute();
80 };
81 // =============================================================================
82 } // namespace rptui
83 // =============================================================================
84 #endif // RPTUI_PAGENUMBER_HXX
85