update dev300-m58
[ooovba.git] / sw / source / ui / fldui / flddb.hxx
blobb973ec5cd7c44bba49f7586c058bbb73f9c3fb41
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: flddb.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SWFLDDB_HXX
31 #define _SWFLDDB_HXX
33 #include <vcl/fixed.hxx>
34 #include <vcl/lstbox.hxx>
35 #ifndef _SV_BUTTON_HXX //autogen
36 #include <vcl/button.hxx>
37 #endif
38 #include <vcl/group.hxx>
40 #include "condedit.hxx"
41 #include "dbtree.hxx"
42 #include "numfmtlb.hxx"
44 #include "fldpage.hxx"
46 /*--------------------------------------------------------------------
47 Beschreibung:
48 --------------------------------------------------------------------*/
50 class SwFldDBPage : public SwFldPage
52 FixedText aTypeFT;
53 ListBox aTypeLB;
54 FixedText aSelectionFT;
55 SwDBTreeList aDatabaseTLB;
57 FixedText aAddDBFT;
58 PushButton aAddDBPB;
60 FixedText aConditionFT;
61 ConditionEdit aConditionED;
62 FixedText aValueFT;
63 Edit aValueED;
64 RadioButton aDBFormatRB;
65 RadioButton aNewFormatRB;
66 NumFormatListBox aNumFormatLB;
67 ListBox aFormatLB;
68 FixedLine aFormatFL;
69 FixedLine aFormatVertFL;
71 String sOldDBName;
72 String sOldTableName;
73 String sOldColumnName;
74 ULONG nOldFormat;
75 USHORT nOldSubType;
76 Link aOldNumSelectHdl;
78 DECL_LINK( TypeHdl, ListBox* );
79 DECL_LINK( NumSelectHdl, NumFormatListBox* pLB = 0);
80 DECL_LINK( TreeSelectHdl, SvTreeListBox* pBox );
81 DECL_LINK( ModifyHdl, Edit *pED = 0 );
82 DECL_LINK( AddDBHdl, PushButton* );
84 void CheckInsert();
86 using SwFldPage::SetWrtShell;
88 protected:
89 virtual USHORT GetGroup();
91 public:
92 SwFldDBPage(Window* pParent, const SfxItemSet& rSet);
94 ~SwFldDBPage();
96 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet);
98 virtual BOOL FillItemSet( SfxItemSet& rSet );
99 virtual void Reset( const SfxItemSet& rSet );
101 virtual void FillUserData();
102 void ActivateMailMergeAddress();
104 void SetWrtShell(SwWrtShell& rSh);
108 #endif