summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-03-12 08:38:25 +0000
committerRüdiger Timm <rt@openoffice.org>2008-03-12 08:38:25 +0000
commit0be1bcefe59e30e522ff38d21aed307a3bb34e12 (patch)
tree56a1a65d3fc5daf03c3bac2727d7383b56ef5048 /svx
parent72778c4966237b54c6d8c4482d32a12d8f7468ab (diff)
INTEGRATION: CWS impresstables2 (1.1.2); FILE ADDED
2008/01/21 15:46:53 cl 1.1.2.1: #i68103# added dialog for 'Insert Table' in impress/draw
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/newtabledlg.cxx83
1 files changed, 83 insertions, 0 deletions
diff --git a/svx/source/dialog/newtabledlg.cxx b/svx/source/dialog/newtabledlg.cxx
new file mode 100644
index 000000000000..492ae1fa9899
--- /dev/null
+++ b/svx/source/dialog/newtabledlg.cxx
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: newtabledlg.cxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: rt $ $Date: 2008-03-12 09:38:25 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_svx.hxx"
+
+#ifdef SVX_DLLIMPLEMENTATION
+#undef SVX_DLLIMPLEMENTATION
+#endif
+
+// include ---------------------------------------------------------------
+
+#include "svx/dialogs.hrc"
+#include "svx/dialmgr.hxx"
+#include "newtabledlg.hxx"
+#include "newtabledlg.hrc"
+
+SvxNewTableDialog::SvxNewTableDialog( Window* pParent )
+: ModalDialog( pParent, SVX_RES( RID_SVX_NEWTABLE_DLG ) )
+, maFtColumns( this, SVX_RES( FT_COLUMNS ) )
+, maNumColumns( this, SVX_RES( NF_COLUMNS ) )
+, maFtRows( this, SVX_RES( FT_ROWS ) )
+, maNumRows( this, SVX_RES( NF_ROWS ) )
+, maFlSep( this, SVX_RES( FL_SEP ) )
+, maHelpButton( this, SVX_RES( BTN_HELP ) )
+, maOkButton( this, SVX_RES( BTN_OK ) )
+, maCancelButton( this, SVX_RES( BTN_CANCEL ) )
+{
+ maNumRows.SetValue(2);
+ maNumColumns.SetValue(5);
+ FreeResource();
+}
+
+short SvxNewTableDialog::Execute(void)
+{
+ return ModalDialog::Execute();
+}
+
+void SvxNewTableDialog::Apply(void)
+{
+}
+
+sal_Int32 SvxNewTableDialog::getRows() const
+{
+ return sal::static_int_cast< sal_Int32 >( maNumRows.GetValue() );
+}
+
+sal_Int32 SvxNewTableDialog::getColumns() const
+{
+ return sal::static_int_cast< sal_Int32 >( maNumColumns.GetValue() );
+}