xref: /aoo4110/main/sw/source/ui/inc/changedb.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _CHANGEDB_HXX
24 #define _CHANGEDB_HXX
25 
26 
27 #ifndef _BITMAP_HXX //autogen
28 #include <vcl/bitmap.hxx>
29 #endif
30 #ifndef _BUTTON_HXX //autogen
31 #include <vcl/button.hxx>
32 #endif
33 #ifndef _FIXED_HXX //autogen
34 #include <vcl/fixed.hxx>
35 #endif
36 #include <svtools/stdctrl.hxx>
37 #include <svtools/svtreebx.hxx>
38 #include <svx/stddlg.hxx>
39 #include "dbtree.hxx"
40 #include <vcl/fixed.hxx>
41 
42 class SwFldMgr;
43 class SwView;
44 class SwWrtShell;
45 struct SwDBData;
46 
47 /*--------------------------------------------------------------------
48 	 Beschreibung: Datenbank an Feldern austauschen
49  --------------------------------------------------------------------*/
50 
51 class SwChangeDBDlg: public SvxStandardDialog
52 {
53     FixedLine       aDBListFL;
54 	FixedText		aUsedDBFT;
55 	FixedText		aAvailDBFT;
56 	SvTreeListBox	aUsedDBTLB;
57 	SwDBTreeList	aAvailDBTLB;
58     PushButton      aAddDBPB;
59 	FixedInfo		aDescFT;
60 	FixedText		aDocDBTextFT;
61 	FixedText		aDocDBNameFT;
62 	OKButton  		aOKBT;
63 	CancelButton 	aCancelBT;
64 	HelpButton 		aHelpBT;
65 //	PushButton		aChangeBT;
66 
67     ImageList       aImageList;
68     ImageList       aImageListHC;
69 
70     SwWrtShell      *pSh;
71 	SwFldMgr		*pMgr;
72 
73 	DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0);
74 	DECL_LINK(ButtonHdl, Button* pBtn);
75     DECL_LINK(AddDBHdl, PushButton*);
76 
77 	virtual void 	Apply();
78 	void			UpdateFlds();
79 	void			FillDBPopup();
80 	SvLBoxEntry*	Insert(const String& rDBName);
81 	void			ShowDBName(const SwDBData& rDBData);
82 
83 public:
84 	SwChangeDBDlg(SwView& rVw);
85 	~SwChangeDBDlg();
86 };
87 
88 #endif
89