update credits
[LibreOffice.git] / cui / source / inc / hlinettp.hxx
blob8fef54dcfc256d31e6083b8f98b9e09dc02d30b8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_TABPAGE_INET_HYPERLINK_HXX
20 #define _SVX_TABPAGE_INET_HYPERLINK_HXX
22 #include <svx/hyperdlg.hxx>
23 #include "cuihyperdlg.hxx"
24 #include "hltpbase.hxx"
26 /*************************************************************************
28 |* Tabpage : Hyperlink - Internet
30 \************************************************************************/
32 class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase
34 private:
35 FixedLine maGrpLinkTyp;
36 RadioButton maRbtLinktypInternet;
37 RadioButton maRbtLinktypFTP;
38 FixedText maFtTarget;
39 SvxHyperURLBox maCbbTarget;
40 ImageButton maBtBrowse;
41 FixedText maFtLogin;
42 Edit maEdLogin;
43 ImageButton maBtTarget;
44 FixedText maFtPassword;
45 Edit maEdPassword;
46 CheckBox maCbAnonymous;
48 String maStrOldUser;
49 String maStrOldPassword;
51 sal_Bool mbMarkWndOpen;
53 DECL_LINK (Click_SmartProtocol_Impl , void * ); ///< Radiobutton clicked: Type HTTP or FTP
54 DECL_LINK (ClickAnonymousHdl_Impl , void * ); ///< Checkbox : Anonymous User
55 DECL_LINK (ClickBrowseHdl_Impl , void * ); ///< Button : Browse
56 DECL_LINK (ClickTargetHdl_Impl , void * ); ///< Button : Target
57 DECL_LINK (ModifiedLoginHdl_Impl , void * ); ///< Contens of editfield "Login" modified
58 DECL_LINK (LostFocusTargetHdl_Impl , void * ); ///< Combobox "Target" lost its focus
59 DECL_LINK (ModifiedTargetHdl_Impl , void * ); ///< Contens of editfield "Target" modified
61 DECL_LINK(TimeoutHdl_Impl , void *); ///< Handler for timer -timeout
64 void SetScheme( const String& aScheme );
65 void RemoveImproperProtocol(const String& aProperScheme);
66 String GetSchemeFromButtons() const;
67 INetProtocol GetSmartProtocolFromButtons() const;
69 String CreateAbsoluteURL() const;
71 void setAnonymousFTPUser();
72 void setFTPUser(const String& rUser, const String& rPassword);
73 void RefreshMarkWindow();
75 protected:
76 virtual void FillDlgFields ( String& aStrURL );
77 virtual void GetCurentItemData ( String& aStrURL, String& aStrName,
78 String& aStrIntName, String& aStrFrame,
79 SvxLinkInsertMode& eMode );
80 virtual sal_Bool ShouldOpenMarkWnd () {return ( mbMarkWndOpen && maRbtLinktypInternet.IsChecked() );}
81 virtual void SetMarkWndShouldOpen (sal_Bool bOpen) {mbMarkWndOpen=bOpen;}
83 public:
84 SvxHyperlinkInternetTp ( Window *pParent, const SfxItemSet& rItemSet);
85 ~SvxHyperlinkInternetTp ();
87 static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet );
89 virtual void SetMarkStr ( String& aStrMark );
90 virtual void SetOnlineMode( sal_Bool bEnable );
92 virtual void SetInitFocus();
96 #endif // _SVX_TABPAGE_INET_HYPERLINK_HXX
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */