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