xref: /trunk/main/reportdesign/source/ui/inc/PageNumber.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef RPTUI_PAGENUMBER_HXX
28 #define RPTUI_PAGENUMBER_HXX
29 
30 #ifndef _DIALOG_HXX //autogen
31 #include <vcl/dialog.hxx>
32 #endif
33 #ifndef _FIXED_HXX //autogen
34 #include <vcl/fixed.hxx>
35 #endif
36 #include <vcl/lstbox.hxx>
37 #include <vcl/field.hxx>
38 #ifndef _SV_BUTTON_HXX
39 #include <vcl/button.hxx>
40 #endif
41 #include <com/sun/star/report/XReportDefinition.hpp>
42 
43 
44 namespace rptui
45 {
46 class OReportController;
47 /*************************************************************************
48 |*
49 |* Groups and Sorting dialog
50 |*
51 \************************************************************************/
52 class OPageNumberDialog :   public ModalDialog
53 {
54     FixedLine                               m_aFormat;
55     RadioButton                             m_aPageN;
56     RadioButton                             m_aPageNofM;
57 
58     FixedLine                               m_aPosition;
59     RadioButton                             m_aTopPage;
60     RadioButton                             m_aBottomPage;
61     FixedLine                               m_aMisc;
62     FixedText                               m_aAlignment;
63     ListBox                                 m_aAlignmentLst;
64 
65     CheckBox                                m_aShowNumberOnFirstPage;
66     FixedLine                               m_aFl1;
67     OKButton                                m_aPB_OK;
68     CancelButton                            m_aPB_CANCEL;
69     HelpButton                              m_aPB_Help;
70 
71 
72     ::rptui::OReportController*             m_pController;
73     ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>
74                                             m_xHoldAlive;
75 
76     OPageNumberDialog(const OPageNumberDialog&);
77     void operator =(const OPageNumberDialog&);
78 public:
79     OPageNumberDialog( Window* pParent
80                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>& _xHoldAlive
81                         ,::rptui::OReportController* _pController);
82     virtual ~OPageNumberDialog();
83     virtual short   Execute();
84 };
85 // =============================================================================
86 } // namespace rptui
87 // =============================================================================
88 #endif // RPTUI_PAGENUMBER_HXX
89