diff options
author | Robert Roth <robert.roth.off@gmail.com> | 2013-01-26 03:12:50 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-28 10:11:27 +0000 |
commit | f99e540897103b6af3bb6b6c5a36e0a77f35b706 (patch) | |
tree | b1f1daf280d06895198edfec78eefedfcfcc0a86 /cui/source/dialogs | |
parent | b2891c46565fa9e86099bd08c48e1dd1e2e7c48c (diff) |
New table dialog from impress and draw converted to Glade UI
Change-Id: Iedd44ae171a25d9d6599e4f44698d7458c486be6
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/newtabledlg.cxx | 20 | ||||
-rw-r--r-- | cui/source/dialogs/newtabledlg.hrc | 26 | ||||
-rw-r--r-- | cui/source/dialogs/newtabledlg.src | 95 |
3 files changed, 5 insertions, 136 deletions
diff --git a/cui/source/dialogs/newtabledlg.cxx b/cui/source/dialogs/newtabledlg.cxx index 63272c63a8fd..d9a1844e1d8c 100644 --- a/cui/source/dialogs/newtabledlg.cxx +++ b/cui/source/dialogs/newtabledlg.cxx @@ -20,22 +20,12 @@ #include "cuires.hrc" #include "dialmgr.hxx" #include "newtabledlg.hxx" -#include "newtabledlg.hrc" SvxNewTableDialog::SvxNewTableDialog( Window* pParent ) -: ModalDialog( pParent, CUI_RES( RID_SVX_NEWTABLE_DLG ) ) -, maFtColumns( this, CUI_RES( FT_COLUMNS ) ) -, maNumColumns( this, CUI_RES( NF_COLUMNS ) ) -, maFtRows( this, CUI_RES( FT_ROWS ) ) -, maNumRows( this, CUI_RES( NF_ROWS ) ) -, maFlSep( this, CUI_RES( FL_SEP ) ) -, maHelpButton( this, CUI_RES( BTN_HELP ) ) -, maOkButton( this, CUI_RES( BTN_OK ) ) -, maCancelButton( this, CUI_RES( BTN_CANCEL ) ) +: ModalDialog( pParent, "NewTableDialog", "cui/ui/newtabledialog.ui" ) { - maNumRows.SetValue(2); - maNumColumns.SetValue(5); - FreeResource(); + get(mpNumRows, "rows"); + get(mpNumColumns, "columns"); } short SvxNewTableDialog::Execute(void) @@ -49,12 +39,12 @@ void SvxNewTableDialog::Apply(void) sal_Int32 SvxNewTableDialog::getRows() const { - return sal::static_int_cast< sal_Int32 >( maNumRows.GetValue() ); + return sal::static_int_cast< sal_Int32 >( mpNumRows->GetValue() ); } sal_Int32 SvxNewTableDialog::getColumns() const { - return sal::static_int_cast< sal_Int32 >( maNumColumns.GetValue() ); + return sal::static_int_cast< sal_Int32 >( mpNumColumns->GetValue() ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/newtabledlg.hrc b/cui/source/dialogs/newtabledlg.hrc deleted file mode 100644 index 3def9e7f73cc..000000000000 --- a/cui/source/dialogs/newtabledlg.hrc +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#define FT_COLUMNS 1 -#define NF_COLUMNS 2 -#define FT_ROWS 3 -#define NF_ROWS 4 -#define FL_SEP 5 -#define BTN_HELP 6 -#define BTN_OK 7 -#define BTN_CANCEL 8 diff --git a/cui/source/dialogs/newtabledlg.src b/cui/source/dialogs/newtabledlg.src deleted file mode 100644 index 19ae6bd1b970..000000000000 --- a/cui/source/dialogs/newtabledlg.src +++ /dev/null @@ -1,95 +0,0 @@ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include "newtabledlg.hrc" -#include "cuires.hrc" - -ModalDialog RID_SVX_NEWTABLE_DLG -{ - HelpID = "cui:ModalDialog:RID_SVX_NEWTABLE_DLG"; - OutputSize = TRUE; - SVLook = TRUE ; - Moveable = TRUE ; - Size = MAP_APPFONT ( 181 , 6+15+15+15+14+6 ) ; - Text [ en-US ] = "Insert Table" ; - - FixedText FT_COLUMNS - { - Pos = MAP_APPFONT ( 6 , 8 ) ; - Size = MAP_APPFONT ( 60 , 8 ) ; - Text [ en-US ] = "Number of columns:" ; - }; - NumericField NF_COLUMNS - { - HelpID = "cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_COLUMNS"; - Border = TRUE ; - Pos = MAP_APPFONT ( 80 , 6 ) ; - Size = MAP_APPFONT ( 40 , 12 ) ; - TabStop = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 1 ; - Maximum = 75 ; - SpinSize = 1 ; - StrictFormat = TRUE ; - }; - FixedText FT_ROWS - { - Pos = MAP_APPFONT ( 6 , 8+15 ) ; - Size = MAP_APPFONT ( 60 , 8 ) ; - Text [ en-US ] = "Number of rows:" ; - }; - NumericField NF_ROWS - { - HelpID = "cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_ROWS"; - Border = TRUE ; - Pos = MAP_APPFONT ( 80 , 6+15 ) ; - Size = MAP_APPFONT ( 40 , 12 ) ; - TabStop = TRUE ; - Repeat = TRUE ; - Spin = TRUE ; - Minimum = 1 ; - Maximum = 75 ; - SpinSize = 1 ; - StrictFormat = TRUE ; - }; - FixedLine FL_SEP - { - Pos = MAP_APPFONT ( 0 , 6+15+15 ) ; - Size = MAP_APPFONT ( 181 , 12 ) ; - }; - HelpButton BTN_HELP - { - Pos = MAP_APPFONT ( 6 , 6+15+15+15 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - }; - OKButton BTN_OK - { - Pos = MAP_APPFONT ( 69 , 6+15+15+15 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - DefButton = TRUE ; - }; - CancelButton BTN_CANCEL - { - Pos = MAP_APPFONT ( 125 , 6+15+15+15 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - TabStop = TRUE ; - }; -}; |