Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SVX_OPTINET_HXX
29 : : #define _SVX_OPTINET_HXX
30 : :
31 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
32 : : #include <vcl/lstbox.hxx>
33 : : #include <vcl/group.hxx>
34 : : #include <vcl/field.hxx>
35 : : #include <svtools/stdctrl.hxx>
36 : : #include <svtools/svtabbx.hxx>
37 : : #include <sfx2/tabdlg.hxx>
38 : : #include <unotools/configitem.hxx>
39 : :
40 : : #ifdef _SVX_OPTINET2_CXX
41 : : #include <svtools/headbar.hxx>
42 : : #else
43 : : class HeaderBar;
44 : : #endif
45 : : #include <readonlyimage.hxx>
46 : :
47 : : namespace svx {
48 : : class SecurityOptionsDialog;
49 : : }
50 : :
51 : : namespace lang = ::com::sun::star::lang;
52 : : namespace uno = ::com::sun::star::uno;
53 : :
54 : : // class SvxNoSpaceEdit --------------------------------------------------
55 : :
56 [ # # ]: 0 : class SvxNoSpaceEdit : public Edit
57 : : {
58 : : private:
59 : : sal_Bool bOnlyNumeric;
60 : :
61 : : public:
62 : 0 : SvxNoSpaceEdit(Window* pParent, ResId rResId, sal_Bool bNum = sal_False ) :
63 : 0 : Edit( pParent, rResId ), bOnlyNumeric( bNum ) {}
64 : :
65 : : virtual void KeyInput( const KeyEvent& rKEvent );
66 : : virtual void Modify();
67 : : };
68 : :
69 : : // class SvxProxyTabPage -------------------------------------------------
70 : :
71 : : class SvxProxyTabPage : public SfxTabPage
72 : : {
73 : : private:
74 : : FixedLine aOptionGB;
75 : :
76 : : FixedText aProxyModeFT;
77 : : ListBox aProxyModeLB;
78 : :
79 : : FixedText aHttpProxyFT;
80 : : SvxNoSpaceEdit aHttpProxyED;
81 : : FixedText aHttpPortFT;
82 : : SvxNoSpaceEdit aHttpPortED;
83 : :
84 : : FixedText aHttpsProxyFT;
85 : : SvxNoSpaceEdit aHttpsProxyED;
86 : : FixedText aHttpsPortFT;
87 : : SvxNoSpaceEdit aHttpsPortED;
88 : :
89 : :
90 : : FixedText aFtpProxyFT;
91 : : SvxNoSpaceEdit aFtpProxyED;
92 : : FixedText aFtpPortFT;
93 : : SvxNoSpaceEdit aFtpPortED;
94 : :
95 : : FixedText aNoProxyForFT;
96 : : Edit aNoProxyForED;
97 : : FixedText aNoProxyDescFT;
98 : :
99 : : String sFromBrowser;
100 : :
101 : : const rtl::OUString aProxyModePN;
102 : : const rtl::OUString aHttpProxyPN;
103 : : const rtl::OUString aHttpPortPN;
104 : : const rtl::OUString aHttpsProxyPN;
105 : : const rtl::OUString aHttpsPortPN;
106 : : const rtl::OUString aFtpProxyPN;
107 : : const rtl::OUString aFtpPortPN;
108 : : const rtl::OUString aNoProxyDescPN;
109 : :
110 : : uno::Reference< uno::XInterface > m_xConfigurationUpdateAccess;
111 : :
112 : : #ifdef _SVX_OPTINET2_CXX
113 : : void ArrangeControls_Impl();
114 : : void EnableControls_Impl(sal_Bool bEnable);
115 : : void ReadConfigData_Impl();
116 : : void ReadConfigDefaults_Impl();
117 : : void RestoreConfigDefaults_Impl();
118 : :
119 : : DECL_LINK( ProxyHdl_Impl, ListBox * );
120 : : DECL_LINK( LoseFocusHdl_Impl, Edit * );
121 : : #endif
122 : :
123 : : SvxProxyTabPage( Window* pParent, const SfxItemSet& rSet );
124 : : virtual ~SvxProxyTabPage();
125 : :
126 : : public:
127 : : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
128 : : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
129 : : virtual void Reset( const SfxItemSet& rSet );
130 : : };
131 : :
132 : : // #98647# class SvxScriptExecListBox ------------------------------------
133 [ # # ]: 0 : class SvxScriptExecListBox : public ListBox
134 : : { // for adding tooltips to ListBox
135 : : public:
136 : : SvxScriptExecListBox( Window* pParent, WinBits nStyle = WB_BORDER )
137 : : :ListBox(pParent, nStyle) {}
138 : : SvxScriptExecListBox( Window* pParent, const ResId& rResId )
139 : : :ListBox(pParent, rResId) {}
140 : :
141 : : protected:
142 : : virtual void RequestHelp( const HelpEvent& rHEvt );
143 : : };
144 : :
145 : : // class SvxSecurityTabPage ---------------------------------------------
146 : :
147 : : class SvtSecurityOptions;
148 : :
149 : : class CertPathDialog;
150 : :
151 : : class SvxSecurityTabPage : public SfxTabPage
152 : : {
153 : : using TabPage::ActivatePage;
154 : : using TabPage::DeactivatePage;
155 : :
156 : : private:
157 : : FixedLine maSecurityOptionsFL;
158 : : FixedInfo maSecurityOptionsFI;
159 : : PushButton maSecurityOptionsPB;
160 : :
161 : : FixedLine maPasswordsFL;
162 : : CheckBox maSavePasswordsCB;
163 : : PushButton maShowConnectionsPB;
164 : : CheckBox maMasterPasswordCB;
165 : : FixedInfo maMasterPasswordFI;
166 : : PushButton maMasterPasswordPB;
167 : :
168 : : FixedLine maMacroSecFL;
169 : : FixedInfo maMacroSecFI;
170 : : PushButton maMacroSecPB;
171 : :
172 : : FixedLine m_aCertPathFL;
173 : : FixedInfo m_aCertPathFI;
174 : : PushButton m_aCertPathPB;
175 : :
176 : : SvtSecurityOptions* mpSecOptions;
177 : : svx::SecurityOptionsDialog* mpSecOptDlg;
178 : :
179 : : CertPathDialog* mpCertPathDlg;
180 : :
181 : : String msPasswordStoringDeactivateStr;
182 : :
183 : : DECL_LINK(SecurityOptionsHdl, void *);
184 : : DECL_LINK(SavePasswordHdl, void* );
185 : : DECL_LINK(MasterPasswordHdl, void *);
186 : : DECL_LINK(MasterPasswordCBHdl, void* );
187 : : DECL_LINK(ShowPasswordsHdl, void *);
188 : : DECL_LINK(MacroSecPBHdl, void* );
189 : : DECL_LINK(CertPathPBHdl, void* );
190 : :
191 : : void InitControls();
192 : :
193 : : SvxSecurityTabPage( Window* pParent, const SfxItemSet& rSet );
194 : : virtual ~SvxSecurityTabPage();
195 : :
196 : : protected:
197 : : virtual void ActivatePage( const SfxItemSet& rSet );
198 : : virtual int DeactivatePage( SfxItemSet* pSet = 0 );
199 : :
200 : : public:
201 : : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
202 : : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
203 : : virtual void Reset( const SfxItemSet& rSet );
204 : : };
205 : :
206 : : class MozPluginTabPage : public SfxTabPage
207 : : {
208 : : FixedLine aMSWordGB;
209 : : CheckBox aWBasicCodeCB;
210 : :
211 : : sal_Bool isInstalled(void);
212 : : sal_Bool installPlugin(void);
213 : : sal_Bool uninstallPlugin(void);
214 : :
215 : : MozPluginTabPage( Window* pParent, const SfxItemSet& rSet );
216 : : virtual ~MozPluginTabPage();
217 : :
218 : : public:
219 : :
220 : : static SfxTabPage* Create( Window* pParent,
221 : : const SfxItemSet& rAttrSet );
222 : :
223 : : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
224 : : virtual void Reset( const SfxItemSet& rSet );
225 : :
226 : : };
227 : :
228 : : struct SvxEMailTabPage_Impl;
229 : : class SvxEMailTabPage : public SfxTabPage
230 : : {
231 : : FixedLine aMailFL;
232 : : ReadOnlyImage aMailerURLFI;
233 : : FixedText aMailerURLFT;
234 : : Edit aMailerURLED;
235 : : PushButton aMailerURLPB;
236 : :
237 : : String m_sDefaultFilterName;
238 : :
239 : : SvxEMailTabPage_Impl* pImpl;
240 : :
241 : : DECL_LINK( FileDialogHdl_Impl, PushButton* ) ;
242 : :
243 : : public:
244 : : SvxEMailTabPage( Window* pParent, const SfxItemSet& rSet );
245 : : ~SvxEMailTabPage();
246 : :
247 : : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
248 : :
249 : : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
250 : : virtual void Reset( const SfxItemSet& rSet );
251 : : };
252 : :
253 : : #endif // #ifndef _SVX_OPTINET_HXX
254 : :
255 : :
256 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|