update dev300-m57
[ooovba.git] / sc / source / ui / inc / datafdlg.hxx
blob3e6d8e3c2f7c116dd764db7617728a7ef2c92e49
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile: datafdlg.hxx,v $
7 * $Revision: 1.00 $
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,
32 * MA 02111-1307 USA
34 ************************************************************************/
36 #ifndef SC_DATAFDLG_HXX
37 #define SC_DATAFDLG_HXX
40 #ifndef _SV_DIALOG_HXX //autogen
41 #include <vcl/dialog.hxx>
42 #endif
44 #ifndef _SV_BUTTON_HXX //autogen
45 #include <vcl/imagebtn.hxx>
46 #endif
48 #ifndef _SV_FIXED_HXX //autogen
49 #include <vcl/fixed.hxx>
50 #endif
53 #include "global.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
64 #define FIXED_LEFT 12
65 #define EDIT_LEFT 78
66 #define LINE_HEIGHT 30
68 //zhangyun
69 class ScDataFormDlg : public ModalDialog
71 private:
73 PushButton aBtnNew;
74 PushButton aBtnDelete;
75 PushButton aBtnRestore;
76 PushButton aBtnLast;
77 PushButton aBtnNext;
78 PushButton aBtnClose;
79 ScrollBar aSlider;
80 FixedText aFixedText;
81 //FixedText aFixedText1;
82 //Edit aEdit1;
84 ScTabViewShell* pTabViewShell;
85 ScDocument* pDoc;
86 sal_uInt16 aColLength;
87 SCROW aCurrentRow;
88 SCCOL nStartCol;
89 SCCOL nEndCol;
90 SCROW nStartRow;
91 SCROW nEndRow;
92 SCTAB nTab;
93 BOOL bNoSelection;
95 FixedText** pFixedTexts;
96 Edit** pEdits;
98 public:
99 ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShell);
100 ~ScDataFormDlg();
102 void FillCtrls(SCROW nCurrentRow);
103 private:
105 void SetButtonState();
107 // Handler:
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