1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile: datafdlg.hxx,v $
9 * last change: $Author: rt $ $Date: 2005/09/08 21:20:35 $
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 ************************************************************************/
36 #ifndef SC_DATAFDLG_HXX
37 #define SC_DATAFDLG_HXX
40 #ifndef _SV_DIALOG_HXX //autogen
41 #include <vcl/dialog.hxx>
44 #ifndef _SV_BUTTON_HXX //autogen
45 #include <vcl/imagebtn.hxx>
48 #ifndef _SV_FIXED_HXX //autogen
49 #include <vcl/fixed.hxx>
55 #include <tabvwsh.hxx>
56 #include <sfx2/bindings.hxx>
57 #include <sfx2/dispatch.hxx>
59 #define MAX_DATAFORM_COLS 256
60 #define MAX_DATAFORM_ROWS 32000
61 #define CTRL_HEIGHT 22
62 #define FIXED_WIDTH 60
63 #define EDIT_WIDTH 140
66 #define LINE_HEIGHT 30
69 class ScDataFormDlg
: public ModalDialog
74 PushButton aBtnDelete
;
75 PushButton aBtnRestore
;
81 //FixedText aFixedText1;
84 ScTabViewShell
* pTabViewShell
;
86 sal_uInt16 aColLength
;
95 FixedText
** pFixedTexts
;
99 ScDataFormDlg( Window
* pParent
, ScTabViewShell
* pTabViewShell
);
102 void FillCtrls(SCROW nCurrentRow
);
105 void SetButtonState();
108 DECL_LINK( Impl_NewHdl
, PushButton
* );
109 DECL_LINK( Impl_LastHdl
, PushButton
* );
110 DECL_LINK( Impl_NextHdl
, PushButton
* );
112 DECL_LINK( Impl_RestoreHdl
, PushButton
* );
113 DECL_LINK( Impl_DeleteHdl
, PushButton
* );
114 DECL_LINK( Impl_CloseHdl
, PushButton
* );
116 DECL_LINK( Impl_ScrollHdl
, ScrollBar
* );
117 DECL_LINK( Impl_DataModifyHdl
, Edit
* );
119 #endif // SC_DATAFDLG_HXX