summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-12-12 11:33:41 +0000
committerOcke Janssen <oj@openoffice.org>2000-12-12 11:33:41 +0000
commit05eb4f872f3f9384c6392350a0c1218caa15c8a5 (patch)
tree8318e3d8460f0cc56d1d1d8ba7fb2943e27e8354 /dbaccess
parent181679897ce20867c06cf8a86aaef2d819868f44 (diff)
#80933# new dialogs for size and other attribs
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/dlgattr.cxx171
-rw-r--r--dbaccess/source/ui/dlg/dlgattr.src249
-rw-r--r--dbaccess/source/ui/dlg/dlgsize.cxx154
-rw-r--r--dbaccess/source/ui/dlg/dlgsize.hrc73
-rw-r--r--dbaccess/source/ui/dlg/dlgsize.src306
-rw-r--r--dbaccess/source/ui/inc/dlgattr.hrc71
-rw-r--r--dbaccess/source/ui/inc/dlgattr.hxx102
-rw-r--r--dbaccess/source/ui/inc/dlgsize.hxx111
8 files changed, 1237 insertions, 0 deletions
diff --git a/dbaccess/source/ui/dlg/dlgattr.cxx b/dbaccess/source/ui/dlg/dlgattr.cxx
new file mode 100644
index 000000000000..d160e7c7cebf
--- /dev/null
+++ b/dbaccess/source/ui/dlg/dlgattr.cxx
@@ -0,0 +1,171 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgattr.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:33:09 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+
+#ifdef MAC
+#ifdef ITEMID_NUMBERINFO
+#undef ITEMID_NUMBERINFO
+#endif
+#endif
+
+#define ITEMID_NUMBERINFO 0
+
+#ifndef DBAUI_SBATTRDLG_HXX
+#include "dlgattr.hxx"
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _SVX_NUMINF_HXX //autogen
+#include <svx/numinf.hxx>
+#endif
+
+#ifndef _SVX_CHARDLG_HXX //autogen
+#include <svx/chardlg.hxx>
+#endif
+
+#ifndef _SVX_NUMFMT_HXX //autogen
+#include <svx/numfmt.hxx>
+#endif
+#ifndef _SVX_NUMINF_HXX
+#include <svx/numinf.hxx>
+#endif
+
+#ifndef _SVX_ALIGN_HXX //autogen
+#include <svx/align.hxx>
+#endif
+
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+
+#ifndef _DBAUI_MODULE_DBU_HXX_
+#include "moduledbu.hxx"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+#ifndef _SFXITEMSET_HXX
+#include <svtools/itemset.hxx>
+#endif
+#define _ZFORLIST_DECLARE_TABLE
+#ifndef _ZFORLIST_HXX
+#include <svtools/zforlist.hxx>
+#endif
+
+using namespace dbaui;
+
+//==================================================================
+SbaSbAttrDlg::SbaSbAttrDlg(Window* pParent, const SfxItemSet* pCellAttrs, SvNumberFormatter* pFormatter, USHORT nFlags, BOOL bRow)
+ : SfxTabDialog(pParent, ModuleRes( DLG_ATTR ), pCellAttrs )
+ ,aTitle(ResId(ST_ROW))
+{
+ pNumberInfoItem = new SvxNumberInfoItem( pFormatter );
+
+ if (bRow)
+ SetText(aTitle);
+ if( nFlags & TP_ATTR_CHAR )
+ AddTabPage( RID_SVXPAGE_CHAR_STD,String(ResId(TP_ATTR_CHAR)),SvxCharStdPage::Create, 0 );
+ if( nFlags & TP_ATTR_NUMBER )
+ AddTabPage( RID_SVXPAGE_NUMBERFORMAT,String(ResId(TP_ATTR_NUMBER)),SvxNumberFormatTabPage::Create, 0 );
+ if( nFlags & TP_ATTR_ALIGN )
+ AddTabPage( RID_SVXPAGE_ALIGNMENT,String(ResId(TP_ATTR_ALIGN)),SvxAlignmentTabPage::Create, 0 );
+ FreeResource();
+}
+
+// -----------------------------------------------------------------------
+SbaSbAttrDlg::~SbaSbAttrDlg()
+{
+ delete pNumberInfoItem;
+}
+
+// -----------------------------------------------------------------------
+void SbaSbAttrDlg::PageCreated( sal_uInt16 nPageId, SfxTabPage& rTabPage )
+{
+ switch ( nPageId )
+ {
+ case RID_SVXPAGE_NUMBERFORMAT:
+ {
+ ((SvxNumberFormatTabPage&)rTabPage).
+ SetNumberFormatList( *pNumberInfoItem );
+ }
+ break;
+
+ case RID_SVXPAGE_CHAR_STD:
+ {
+ // ((SvxCharStdPage&)rTabPage).SetFontList(SBA_MOD_EXT()->FontListItem());
+ }
+ break;
+
+ case RID_SVXPAGE_ALIGNMENT:
+ {
+ ((SvxAlignmentTabPage&)rTabPage).SetFlags(WBA_NO_ORIENTATION|WBA_NO_LINEBREAK|WBA_NO_GRIDLINES|WBA_NO_VERTICAL|WBA_NO_LEFTINDENT);
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+
diff --git a/dbaccess/source/ui/dlg/dlgattr.src b/dbaccess/source/ui/dlg/dlgattr.src
new file mode 100644
index 000000000000..900660515fd0
--- /dev/null
+++ b/dbaccess/source/ui/dlg/dlgattr.src
@@ -0,0 +1,249 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgattr.src,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:33:20 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _SVX_DIALOGS_HRC
+#include <svx/dialogs.hrc>
+#endif
+#ifndef _DBA_DBACCESS_HELPID_HRC_
+#include "dbaccess_helpid.hrc"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+#ifndef DBAUI_SBATTRDLG_HRC
+#include "dlgattr.hrc"
+#endif
+ //================================================
+ // Der Attributdialog:
+TabDialog DLG_ATTR
+{
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Text = "Feldformatierung" ;
+ Text [ ENGLISH ] = "Column Format" ;
+ Text [ norwegian ] = "Column Format" ;
+ Text [ italian ] = "Formattazione di campo" ;
+ Text [ portuguese_brazilian ] = "Formato da Coluna" ;
+ Text [ portuguese ] = "Formato do campo" ;
+ Text [ finnish ] = "Sarakkeen muoto" ;
+ Text [ danish ] = "Feltformatering" ;
+ Text [ french ] = "Formatage de champ" ;
+ Text [ swedish ] = "Fltformatering" ;
+ Text [ dutch ] = "Veldopmaak" ;
+ Text [ spanish ] = "Formato de campo" ;
+ Text [ english_us ] = "Field Format" ;
+ TabControl 1
+ {
+ OutputSize = TRUE ;
+ };
+ OKButton 1
+ {
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE;
+ };
+ CancelButton 1
+ {
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton 1
+ {
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ TabStop = TRUE ;
+ };
+ PushButton 1
+ {
+ TabStop = TRUE ;
+ Size = MAP_APPFONT ( 40 , 12 ) ;
+ Text = "~Zurck" ;
+ Text [ ENGLISH ] = "Undo" ;
+ Text [ norwegian ] = "Undo" ;
+ Text [ italian ] = "Indietro" ;
+ Text [ portuguese_brazilian ] = "Desfazer" ;
+ Text [ portuguese ] = "~Anterior" ;
+ Text [ finnish ] = "Kumoa" ;
+ Text [ danish ] = "Tilbage" ;
+ Text [ french ] = "Prcdent" ;
+ Text [ swedish ] = "Tillbaka" ;
+ Text [ dutch ] = "~Ongedaan" ;
+ Text [ spanish ] = "~Regresar" ;
+ Text [ english_us ] = "Back" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wstecz";
+ Text[ japanese ] = "߂";
+ Text[ chinese_traditional ] = "^";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ڷ";
+ Text[ turkish ] = "Geri";
+ };
+ String TP_ATTR_CHAR
+ {
+ /* ### ACHTUNG: Neuer Text in Resource? Schrift : Zeichen */
+ Text = "Schrift" ;
+ Text [ ENGLISH ] = "Character" ;
+ Text [ norwegian ] = "Character" ;
+ Text [ italian ] = "Carattere" ;
+ Text [ portuguese_brazilian ] = "Caractere" ;
+ Text [ portuguese ] = "Tipo de letra" ;
+ Text [ finnish ] = "Merkki" ;
+ Text [ danish ] = "Skrifttype" ;
+ Text [ french ] = "Police" ;
+ Text [ swedish ] = "Teckensnitt" ;
+ Text [ dutch ] = "Lettertype" ;
+ Text [ spanish ] = "Fuente" ;
+ Text [ english_us ] = "Font" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Czcionka";
+ Text[ japanese ] = "̫";
+ Text[ chinese_traditional ] = "r";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "۲";
+ Text[ turkish ] = "Yaztipi";
+ };
+ String TP_ATTR_NUMBER
+ {
+ Text = "Format" ;
+ Text [ ENGLISH ] = "Number" ;
+ Text [ norwegian ] = "Number" ;
+ Text [ italian ] = "Formato" ;
+ Text [ portuguese_brazilian ] = "Nmero" ;
+ Text [ portuguese ] = "Formato" ;
+ Text [ finnish ] = "Numero" ;
+ Text [ danish ] = "Format" ;
+ Text [ french ] = "Format" ;
+ Text [ swedish ] = "Format" ;
+ Text [ dutch ] = "Formaat" ;
+ Text [ spanish ] = "Formato" ;
+ Text [ english_us ] = "Numbers" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = "";
+ Text[ polish ] = "Format";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "榡";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Format";
+ };
+ String TP_ATTR_ALIGN
+ {
+ Text = "Ausrichtung" ;
+ Text [ ENGLISH ] = "Align" ;
+ Text [ norwegian ] = "Align" ;
+ Text [ italian ] = "Allineamento" ;
+ Text [ portuguese_brazilian ] = "Alinhar" ;
+ Text [ portuguese ] = "Alinhar" ;
+ Text [ finnish ] = "Tasaa" ;
+ Text [ danish ] = "Justering" ;
+ Text [ french ] = "Alignement" ;
+ Text [ swedish ] = "Justering" ;
+ Text [ dutch ] = "Uitlijning" ;
+ Text [ spanish ] = "Alineacin" ;
+ Text [ english_us ] = "Alignment" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wyrwnanie";
+ Text[ japanese ] = "zu";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Hizalama";
+ };
+ String ST_ROW
+ {
+ Text = "Tabellenformatierung" ;
+ Text [ ENGLISH ] = "Table format" ;
+ Text [ english_us ] = "Table Format" ;
+ Text [ italian ] = "Formattazione tabella" ;
+ Text [ spanish ] = "Formateado de tabla" ;
+ Text [ french ] = "Formatage de table" ;
+ Text [ dutch ] = "Tabelopmaak" ;
+ Text [ swedish ] = "Tabellformatering" ;
+ Text [ danish ] = "Tabelformatering" ;
+ Text [ portuguese_brazilian ] = "Tabellenformatierung" ;
+ Text [ portuguese ] = "Formato da tabela" ;
+ Text[ chinese_simplified ] = "ʽ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Formatowanie tabeli";
+ Text[ japanese ] = "ðق̏ݒ";
+ Text[ chinese_traditional ] = "榡";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "̺ ";
+ Text[ turkish ] = "Tablo format";
+ };
+ Text[ chinese_simplified ] = "ֶθʽ";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Formatowanie pola";
+ Text[ japanese ] = "̨ނ̏ݒ";
+ Text[ chinese_traditional ] = "榡";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = "ʵ ";
+ Text[ turkish ] = "Alan format";
+};
diff --git a/dbaccess/source/ui/dlg/dlgsize.cxx b/dbaccess/source/ui/dlg/dlgsize.cxx
new file mode 100644
index 000000000000..3c0bab737e97
--- /dev/null
+++ b/dbaccess/source/ui/dlg/dlgsize.cxx
@@ -0,0 +1,154 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgsize.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:33:26 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef DBAUI_DLGSIZE_HRC
+#include "dlgsize.hrc"
+#endif
+#ifndef _DBAUI_DLGSIZE_HXX
+#include "dlgsize.hxx"
+#endif
+#ifndef _DBAUI_MODULE_DBU_HXX_
+#include "moduledbu.hxx"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+
+//.........................................................................
+namespace dbaui
+{
+//.........................................................................
+
+
+#define DEF_ROW_HEIGHT 45
+#define DEF_COL_WIDTH 227
+
+//==================================================================
+DlgSize::DlgSize(Window * pParent, sal_Int32 nVal, sal_Bool bRow)
+ :ModalDialog( pParent, ModuleRes(bRow ? DLG_ROWHEIGHT : DLG_COLWIDTH))
+ ,aFT_VALUE(this, ResId( FT_VALUE))
+ ,aMF_VALUE(this, ResId( MF_VALUE))
+ ,aCB_STANDARD(this, ResId(CB_STANDARD))
+ ,aPB_OK(this, ResId(PB_OK))
+ ,aPB_CANCEL(this, ResId(PB_CANCEL))
+ ,aPB_HELP(this, ResId(PB_HELP))
+ ,m_nPrevValue(nVal)
+ ,m_nStandard(bRow ? DEF_ROW_HEIGHT : DEF_COL_WIDTH)
+{
+ aCB_STANDARD.SetClickHdl(LINK(this,DlgSize,CbClickHdl));
+
+ aMF_VALUE.EnableEmptyFieldValue(sal_True);
+ sal_Bool bDefault = -1 == nVal;
+ aCB_STANDARD.Check(bDefault);
+ if (bDefault)
+ {
+ SetValue(m_nStandard);
+ m_nPrevValue = m_nStandard;
+ }
+ LINK(this,DlgSize,CbClickHdl).Call(&aCB_STANDARD);
+
+ FreeResource();
+}
+
+//------------------------------------------------------------------------------
+DlgSize::~DlgSize()
+{
+}
+
+//------------------------------------------------------------------------------
+void DlgSize::SetValue( sal_Int32 nVal )
+{
+ aMF_VALUE.SetValue(nVal, FUNIT_CM );
+}
+
+//------------------------------------------------------------------------------
+sal_Int32 DlgSize::GetValue()
+{
+ if (aCB_STANDARD.IsChecked())
+ return -1;
+ return (sal_Int32)aMF_VALUE.GetValue( FUNIT_CM );
+}
+
+//------------------------------------------------------------------------------
+IMPL_LINK( DlgSize, CbClickHdl, Button *, pButton )
+{
+
+ if( pButton == &aCB_STANDARD )
+ {
+ aMF_VALUE.Enable(!aCB_STANDARD.IsChecked());
+ if (aCB_STANDARD.IsChecked())
+ {
+ m_nPrevValue = aMF_VALUE.GetValue(FUNIT_CM);
+ // don't use getValue as this will use aCB_STANDARD.to determine if we're standard
+ aMF_VALUE.SetEmptyFieldValue();
+ }
+ else
+ {
+ SetValue( m_nPrevValue );
+ }
+ }
+ return 0;
+}
+// -----------------------------------------------------------------------------
+//.........................................................................
+} // namespace dbaui
+//.........................................................................
+
+
diff --git a/dbaccess/source/ui/dlg/dlgsize.hrc b/dbaccess/source/ui/dlg/dlgsize.hrc
new file mode 100644
index 000000000000..eee6194fdc09
--- /dev/null
+++ b/dbaccess/source/ui/dlg/dlgsize.hrc
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgsize.hrc,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:33:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef DBAUI_DLGSIZE_HRC
+#define DBAUI_DLGSIZE_HRC
+
+#define FT_VALUE 1
+#define MF_VALUE 1
+#define CB_STANDARD 2
+#define PB_OK 1
+#define PB_CANCEL 1
+#define PB_HELP 1
+
+#endif //DBAUI_DLGSIZE_HRC
+
diff --git a/dbaccess/source/ui/dlg/dlgsize.src b/dbaccess/source/ui/dlg/dlgsize.src
new file mode 100644
index 000000000000..c51979c6dd37
--- /dev/null
+++ b/dbaccess/source/ui/dlg/dlgsize.src
@@ -0,0 +1,306 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgsize.src,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:33:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+ //---------------------------------------------------------------------------
+ //
+ // (c) Copyright 1996 - 2000 by Star Division GmbH, Hamburg, Germany
+ //
+ // Ersterstellung:
+ // JN
+ //
+ // Letzte Aenderung:
+ // $Author: oj $ $Date: 2000-12-12 12:33:33 $ $Revision: 1.1 $
+ //
+ //---------------------------------------------------------------------------
+
+#ifndef DBAUI_DLGSIZE_HRC
+#include "dlgsize.hrc"
+#endif
+#ifndef _DBA_DBACCESS_HELPID_HRC_
+#include "dbaccess_helpid.hrc"
+#endif
+#ifndef _DBU_RESOURCE_HRC_
+#include "dbu_resource.hrc"
+#endif
+
+ModalDialog DLG_ROWHEIGHT
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ HelpId = HID_DLG_ROWHEIGHT ;
+ Size = MAP_APPFONT ( 159 , 59 ) ;
+ Text = "Zeilenhhe" ;
+ Text [ ENGLISH ] = "Row height" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ FixedText FT_VALUE
+ {
+ Pos = MAP_APPFONT ( 6 , 8 ) ;
+ Size = MAP_APPFONT ( 23 , 10 ) ;
+ Text = "H~he" ;
+ Text [ ENGLISH ] = "Height" ;
+ Text [ english_us ] = "Height" ;
+ Text [ italian ] = "Alte~zza" ;
+ Text [ spanish ] = "~Altura" ;
+ Text [ french ] = "Hauteur" ;
+ Text [ dutch ] = "H~oogte" ;
+ Text [ swedish ] = "Hjd" ;
+ Text [ danish ] = "Hjde" ;
+ Text [ portuguese_brazilian ] = "Hhe" ;
+ Text [ portuguese ] = "~Altura" ;
+ Text[ chinese_simplified ] = "߶";
+ Text[ russian ] = "";
+ Text[ polish ] = "Wysoko";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "";
+ Text[ turkish ] = "Ykseklik";
+ };
+ MetricField MF_VALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 36 , 6 ) ;
+ Size = MAP_APPFONT ( 63 , 12 ) ;
+ TabStop = TRUE ;
+ Spin = TRUE ;
+ Minimum = 10 ;
+ Maximum = 1600 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ };
+ CheckBox CB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 36 , 25 ) ;
+ Size = MAP_APPFONT ( 62 , 12 ) ;
+ TabStop = TRUE ;
+ Text = "~Automatisch" ;
+ Text [ ENGLISH ] = "~automatically" ;
+ Text[ english_us ] = "~Automatic";
+ Text[ portuguese ] = "~Automtico";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "~Automatisch";
+ Text[ french ] = "~Automatique";
+ Text[ spanish ] = "~Automtico";
+ Text[ italian ] = "~Automatico";
+ Text[ danish ] = "Automatisk";
+ Text[ swedish ] = "~Automatiskt";
+ Text[ polish ] = "Automatycznie";
+ Text[ portuguese_brazilian ] = "~Standardwert";
+ Text[ japanese ] = "(~A)";
+ Text[ korean ] = "ڵ(~A)";
+ Text[ chinese_simplified ] = "Զ(~A)";
+ Text[ chinese_traditional ] = "۰(~A)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Otomatik";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 105 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 105 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 105 , 42 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ english_us ] = "Row Height" ;
+ Text [ italian ] = "Altezza riga" ;
+ Text [ spanish ] = "Altura de fila" ;
+ Text [ french ] = "Hauteur de ligne" ;
+ Text [ dutch ] = "Regelhoogte" ;
+ Text [ swedish ] = "Radhjd" ;
+ Text [ danish ] = "Rkkehjde" ;
+ Text [ portuguese ] = "Altura da linha" ;
+ Text [ portuguese_brazilian ] = "Zeilenhhe" ;
+ Text[ chinese_simplified ] = "и";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Wysoko wierszy";
+ Text[ japanese ] = "s̍";
+ Text[ chinese_traditional ] = "氪";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ";
+ Text[ turkish ] = "Satr ykseklii";
+};
+ModalDialog DLG_COLWIDTH
+{
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ HelpId = HID_DLG_COLWIDTH ;
+ Size = MAP_APPFONT ( 159 , 59 ) ;
+ Text = "Spaltenbreite" ;
+ Text [ ENGLISH ] = "Column width" ;
+ Moveable = TRUE ;
+ Closeable = TRUE ;
+ FixedText FT_VALUE
+ {
+ Pos = MAP_APPFONT ( 6 , 8 ) ;
+ Size = MAP_APPFONT ( 23 , 10 ) ;
+ Text = "~Breite" ;
+ Text [ ENGLISH ] = "Width" ;
+ Text [ english_us ] = "Width" ;
+ Text [ italian ] = "~Larghezza" ;
+ Text [ spanish ] = "An~cho" ;
+ Text [ french ] = "Largeur" ;
+ Text [ dutch ] = "~Breedte" ;
+ Text [ swedish ] = "Bredd" ;
+ Text [ danish ] = "Bredde" ;
+ Text [ portuguese_brazilian ] = "Breite" ;
+ Text [ portuguese ] = "~Largura" ;
+ Text[ chinese_simplified ] = "";
+ Text[ russian ] = "";
+ Text[ polish ] = "Szeroko";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "e";
+ Text[ arabic ] = "";
+ Text[ greek ] = "";
+ Text[ korean ] = "ʺ";
+ Text[ turkish ] = "Genilik";
+ };
+ MetricField MF_VALUE
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 36 , 6 ) ;
+ Size = MAP_APPFONT ( 63 , 12 ) ;
+ TabStop = TRUE ;
+ Spin = TRUE ;
+ Minimum = 10 ;
+ Maximum = 20000 ;
+ DecimalDigits = 2 ;
+ Unit = FUNIT_CM ;
+ Repeat = TRUE ;
+ };
+ CheckBox CB_STANDARD
+ {
+ Pos = MAP_APPFONT ( 36 , 25 ) ;
+ Size = MAP_APPFONT ( 62 , 12 ) ;
+ Text = "~Automatisch" ;
+ Text [ ENGLISH ] = "~automatically" ;
+ TabStop = TRUE ;
+ Text[ english_us ] = "~Automatic";
+ Text[ portuguese ] = "~Automtico";
+ Text[ russian ] = "";
+ Text[ greek ] = "";
+ Text[ dutch ] = "~Automatisch";
+ Text[ french ] = "~Automatique";
+ Text[ spanish ] = "~Automtico";
+ Text[ italian ] = "~Automatico";
+ Text[ danish ] = "Automatisk";
+ Text[ swedish ] = "~Automatiskt";
+ Text[ polish ] = "Automatycznie";
+ Text[ portuguese_brazilian ] = "~Standardwert";
+ Text[ japanese ] = "(~A)";
+ Text[ korean ] = "ڵ(~A)";
+ Text[ chinese_simplified ] = "Զ(~A)";
+ Text[ chinese_traditional ] = "۰(~A)";
+ Text[ arabic ] = "";
+ Text[ turkish ] = "Otomatik";
+ };
+ OKButton PB_OK
+ {
+ Pos = MAP_APPFONT ( 105 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ DefButton = TRUE ;
+ };
+ CancelButton PB_CANCEL
+ {
+ Pos = MAP_APPFONT ( 105 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ HelpButton PB_HELP
+ {
+ Pos = MAP_APPFONT ( 105 , 42 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ TabStop = TRUE ;
+ };
+ Text [ english_us ] = "Column Width" ;
+ Text [ italian ] = "Larghezza colonna" ;
+ Text [ spanish ] = "Ancho de columna" ;
+ Text [ french ] = "Largeur de colonne" ;
+ Text [ dutch ] = "Kolombreedte" ;
+ Text [ swedish ] = "Kolumnbredd" ;
+ Text [ danish ] = "Kolonnebredde" ;
+ Text [ portuguese_brazilian ] = "Spaltenbreite" ;
+ Text [ portuguese ] = "Largura das colunas" ;
+ Text[ chinese_simplified ] = "п";
+ Text[ russian ] = " ";
+ Text[ polish ] = "Szeoko kolumn";
+ Text[ japanese ] = "";
+ Text[ chinese_traditional ] = "e";
+ Text[ arabic ] = " ";
+ Text[ greek ] = " ";
+ Text[ korean ] = " ʺ";
+ Text[ turkish ] = "Stun genilii";
+};
diff --git a/dbaccess/source/ui/inc/dlgattr.hrc b/dbaccess/source/ui/inc/dlgattr.hrc
new file mode 100644
index 000000000000..56954d59ab2c
--- /dev/null
+++ b/dbaccess/source/ui/inc/dlgattr.hrc
@@ -0,0 +1,71 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgattr.hrc,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:31:00 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifndef DBAUI_SBATTRDLG_HRC
+#define DBAUI_SBATTRDLG_HRC
+
+#define TP_ATTR_CHAR 1
+#define TP_ATTR_NUMBER 2
+#define TP_ATTR_ALIGN 4
+#define ST_ROW 5
+
+#endif//DBAUI_SBATTRDLG_HRC
+
diff --git a/dbaccess/source/ui/inc/dlgattr.hxx b/dbaccess/source/ui/inc/dlgattr.hxx
new file mode 100644
index 000000000000..ed3478bb4191
--- /dev/null
+++ b/dbaccess/source/ui/inc/dlgattr.hxx
@@ -0,0 +1,102 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgattr.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:31:14 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef DBAUI_SBATTRDLG_HXX
+#define DBAUI_SBATTRDLG_HXX
+
+
+#ifndef DBAUI_SBATTRDLG_HRC
+#include "dlgattr.hrc"
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+
+
+class SvxNumberInfoItem;
+class SfxItemSet;
+class SvNumberFormatter;
+//.........................................................................
+namespace dbaui
+{
+//.........................................................................
+
+ class SbaSbAttrDlg : public SfxTabDialog
+ {
+ String aTitle;
+ SvxNumberInfoItem* pNumberInfoItem;
+
+ public:
+ SbaSbAttrDlg( Window * pParent, const SfxItemSet*, SvNumberFormatter*, USHORT nFlags = TP_ATTR_CHAR , BOOL bRow = FALSE);
+ ~SbaSbAttrDlg();
+
+ virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage );
+ };
+//.........................................................................
+} // namespace dbaui
+//.........................................................................
+
+#endif//DBAUI_SBATTRDLG_HXX
+
diff --git a/dbaccess/source/ui/inc/dlgsize.hxx b/dbaccess/source/ui/inc/dlgsize.hxx
new file mode 100644
index 000000000000..2d43cf71dbc8
--- /dev/null
+++ b/dbaccess/source/ui/inc/dlgsize.hxx
@@ -0,0 +1,111 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgsize.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: oj $ $Date: 2000-12-12 12:31:06 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _DBAUI_DLGSIZE_HXX
+#define _DBAUI_DLGSIZE_HXX
+
+#ifndef _DIALOG_HXX //autogen
+#include <vcl/dialog.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+//.........................................................................
+namespace dbaui
+{
+//.........................................................................
+
+ class DlgSize : public ModalDialog
+ {
+ private:
+ sal_Int32 m_nPrevValue, m_nStandard;
+ void SetValue( sal_Int32 nVal );
+
+ protected:
+ DECL_LINK( CbClickHdl, Button * );
+
+ FixedText aFT_VALUE;
+ MetricField aMF_VALUE;
+ CheckBox aCB_STANDARD;
+ OKButton aPB_OK;
+ CancelButton aPB_CANCEL;
+ HelpButton aPB_HELP;
+
+ public:
+ DlgSize(Window * pParent, sal_Int32 nVal, BOOL bRow);
+ ~DlgSize();
+ sal_Int32 GetValue();
+ };
+//.........................................................................
+} // namespace dbaui
+//.........................................................................
+
+#endif // _DBAUI_DLGSIZE_HXX
+