xref: /trunk/main/sw/source/ui/inc/changedb.hxx (revision 24cebcdc)
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 
24 #ifndef _CHANGEDB_HXX
25 #define _CHANGEDB_HXX
26 
27 
28 #ifndef _BITMAP_HXX //autogen
29 #include <vcl/bitmap.hxx>
30 #endif
31 #ifndef _BUTTON_HXX //autogen
32 #include <vcl/button.hxx>
33 #endif
34 #ifndef _FIXED_HXX //autogen
35 #include <vcl/fixed.hxx>
36 #endif
37 #include <svtools/stdctrl.hxx>
38 #include <svtools/svtreebx.hxx>
39 #include <svx/stddlg.hxx>
40 #include "dbtree.hxx"
41 #include <vcl/fixed.hxx>
42 
43 class SwFldMgr;
44 class SwView;
45 class SwWrtShell;
46 struct SwDBData;
47 
48 /*--------------------------------------------------------------------
49 	Description: Exchange database
50  --------------------------------------------------------------------*/
51 
52 class SwChangeDBDlg: public SvxStandardDialog
53 {
54 	FixedLine		aDBListFL;
55 	FixedText		aUsedDBFT;
56 	FixedText		aAvailDBFT;
57 	SvTreeListBox	aUsedDBTLB;
58 	SwDBTreeList	aAvailDBTLB;
59 	PushButton		aAddDBPB;
60 	FixedInfo		aDescFT;
61 	FixedText		aDocDBTextFT;
62 	FixedText		aDocDBNameFT;
63 	OKButton		aOKBT;
64 	CancelButton	aCancelBT;
65 	HelpButton		aHelpBT;
66 	FixedLine		aApplDBFL;
67 //	PushButton		aChangeBT;
68 
69 	ImageList		aImageList;
70 	ImageList		aImageListHC;
71 
72 	SwWrtShell		*pSh;
73 	SwFldMgr		*pMgr;
74 
75 	DECL_LINK(TreeSelectHdl, SvTreeListBox* pBox = 0);
76 	DECL_LINK(ButtonHdl, Button* pBtn);
77 	DECL_LINK(AddDBHdl, PushButton*);
78 
79 	virtual void	Apply();
80 	void			UpdateFlds();
81 	void			FillDBPopup();
82 	SvLBoxEntry*	Insert(const String& rDBName);
83 	void			ShowDBName(const SwDBData& rDBData);
84 
85 public:
86 	SwChangeDBDlg(SwView& rVw);
87 	~SwChangeDBDlg();
88 };
89 
90 #endif
91