xref: /trunk/main/cui/source/options/webconninfo.hxx (revision c4eee24d)
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 _SVX_WEBCONNINFO_HXX
24 #define _SVX_WEBCONNINFO_HXX
25 
26 #include <vcl/button.hxx>
27 #include <vcl/dialog.hxx>
28 #include <vcl/fixed.hxx>
29 #include <svtools/stdctrl.hxx>
30 #include <svx/simptabl.hxx>
31 
32 //........................................................................
33 namespace svx
34 {
35 //........................................................................
36 
37     class PasswordTable : public SvxSimpleTable
38     {
39     public:
40         PasswordTable( Window* pParent, const ResId& rResId );
41 
42         void InsertHeaderItem( sal_uInt16 nColumn, const String& rText, HeaderBarItemBits nBits );
43         void ResetTabs();
44         void Resort( bool bForced );
45     };
46 
47     //====================================================================
48     //= class WebConnectionIfoDialog
49     //====================================================================
50     class WebConnectionInfoDialog : public ModalDialog
51     {
52     private:
53         FixedInfo           m_aNeverShownFI;
54         PasswordTable       m_aPasswordsLB;
55         PushButton          m_aRemoveBtn;
56         PushButton          m_aRemoveAllBtn;
57         PushButton          m_aChangeBtn;
58         FixedLine           m_aButtonsFL;
59         CancelButton        m_aCloseBtn;
60         HelpButton          m_aHelpBtn;
61         sal_Int32           m_nPos;
62 
63     DECL_LINK( HeaderBarClickedHdl, SvxSimpleTable* );
64     DECL_LINK( RemovePasswordHdl, PushButton* );
65     DECL_LINK( RemoveAllPasswordsHdl, PushButton* );
66     DECL_LINK( ChangePasswordHdl, PushButton* );
67     DECL_LINK( EntrySelectedHdl, void* );
68 
69     void FillPasswordList();
70 
71     public:
72         WebConnectionInfoDialog( Window* pParent );
73         ~WebConnectionInfoDialog();
74     };
75 
76 //........................................................................
77 }   // namespace svx
78 //........................................................................
79 
80 #endif // #ifndef _SVX_WEBCONNINFO_HXX
81 
82