xref: /aoo42x/main/cui/source/dialogs/newtabledlg.cxx (revision 108891ce)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
23 #include "precompiled_cui.hxx"
24 
25 // include ---------------------------------------------------------------
26 
27 #include "cuires.hrc"
28 #include "dialmgr.hxx"
29 #include "newtabledlg.hxx"
30 #include "newtabledlg.hrc"
31 
SvxNewTableDialog(Window * pParent)32 SvxNewTableDialog::SvxNewTableDialog( Window* pParent )
33 : ModalDialog( pParent, CUI_RES( RID_SVX_NEWTABLE_DLG ) )
34 , maFtColumns( this, CUI_RES( FT_COLUMNS ) )
35 , maNumColumns( this, CUI_RES( NF_COLUMNS ) )
36 , maFtRows( this, CUI_RES( FT_ROWS ) )
37 , maNumRows( this, CUI_RES( NF_ROWS ) )
38 , maFlSep( this, CUI_RES( FL_SEP ) )
39 , maHelpButton( this, CUI_RES( BTN_HELP ) )
40 , maOkButton( this, CUI_RES( BTN_OK ) )
41 , maCancelButton( this, CUI_RES( BTN_CANCEL ) )
42 {
43 	maNumRows.SetValue(2);
44 	maNumColumns.SetValue(5);
45 	FreeResource();
46 }
47 
Execute(void)48 short SvxNewTableDialog::Execute(void)
49 {
50 	return ModalDialog::Execute();
51 }
52 
Apply(void)53 void SvxNewTableDialog::Apply(void)
54 {
55 }
56 
getRows() const57 sal_Int32 SvxNewTableDialog::getRows() const
58 {
59 	return sal::static_int_cast< sal_Int32 >( maNumRows.GetValue() );
60 }
61 
getColumns() const62 sal_Int32 SvxNewTableDialog::getColumns() const
63 {
64 	return sal::static_int_cast< sal_Int32 >( maNumColumns.GetValue() );
65 }
66 
67 /* vim: set noet sw=4 ts=4: */
68