1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: flddb.hxx,v $
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 ************************************************************************/
33 #include <vcl/fixed.hxx>
34 #include <vcl/lstbox.hxx>
35 #ifndef _SV_BUTTON_HXX //autogen
36 #include <vcl/button.hxx>
38 #include <vcl/group.hxx>
40 #include "condedit.hxx"
42 #include "numfmtlb.hxx"
44 #include "fldpage.hxx"
46 /*--------------------------------------------------------------------
48 --------------------------------------------------------------------*/
50 class SwFldDBPage
: public SwFldPage
54 FixedText aSelectionFT
;
55 SwDBTreeList aDatabaseTLB
;
60 FixedText aConditionFT
;
61 ConditionEdit aConditionED
;
64 RadioButton aDBFormatRB
;
65 RadioButton aNewFormatRB
;
66 NumFormatListBox aNumFormatLB
;
69 FixedLine aFormatVertFL
;
73 String sOldColumnName
;
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
* );
86 using SwFldPage::SetWrtShell
;
89 virtual USHORT
GetGroup();
92 SwFldDBPage(Window
* pParent
, const SfxItemSet
& rSet
);
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
);