1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hlinettp.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_TABPAGE_INET_HYPERLINK_HXX
31 #define _SVX_TABPAGE_INET_HYPERLINK_HXX
33 #include <hyperdlg.hxx>
34 #include "cuihyperdlg.hxx"
35 #include "hltpbase.hxx"
37 /*************************************************************************
39 |* Tabpage : Hyperlink - Internet
41 \************************************************************************/
43 class SvxHyperlinkInternetTp
: public SvxHyperlinkTabPageBase
46 FixedLine maGrpLinkTyp
;
47 RadioButton maRbtLinktypInternet
;
48 RadioButton maRbtLinktypFTP
;
49 RadioButton maRbtLinktypTelnet
;
51 SvxHyperURLBox maCbbTarget
;
54 FixedText maFtPassword
;
56 CheckBox maCbAnonymous
;
57 ImageButton maBtBrowse
;
58 ImageButton maBtTarget
;
61 String maStrOldPassword
;
65 String maStrStdDocURL
;
67 DECL_LINK (Click_SmartProtocol_Impl
, void * ); // Radiobutton clicked: Type Internet, FTP or Telnet
68 DECL_LINK (ClickAnonymousHdl_Impl
, void * ); // Checkbox : Anonymer Benutzer
69 DECL_LINK (ClickBrowseHdl_Impl
, void * ); // Button : Browse
70 DECL_LINK (ClickTargetHdl_Impl
, void * ); // Button : Ziel
71 DECL_LINK (ModifiedLoginHdl_Impl
, void * ); // Contens of editfield "Login" modified
72 DECL_LINK (LostFocusTargetHdl_Impl
, void * ); // Combobox "Target" lost its focus
73 DECL_LINK (ModifiedTargetHdl_Impl
, void * ); // Contens of editfield "Target" modified
75 DECL_LINK (TimeoutHdl_Impl
, Timer
* ); // Handler for timer -timeout
78 void SetScheme( const String
& aScheme
);
79 void RemoveImproperProtocol(const String
& aProperScheme
);
80 String
GetSchemeFromButtons() const;
81 INetProtocol
GetSmartProtocolFromButtons() const;
83 String
CreateAbsoluteURL() const;
85 void setAnonymousFTPUser();
86 void setFTPUser(const String
& rUser
, const String
& rPassword
);
87 void RefreshMarkWindow();
90 virtual void FillDlgFields ( String
& aStrURL
);
91 virtual void GetCurentItemData ( String
& aStrURL
, String
& aStrName
,
92 String
& aStrIntName
, String
& aStrFrame
,
93 SvxLinkInsertMode
& eMode
);
94 virtual BOOL
ShouldOpenMarkWnd () {return ( mbMarkWndOpen
&& maRbtLinktypInternet
.IsChecked() );}
95 virtual void SetMarkWndShouldOpen (BOOL bOpen
) {mbMarkWndOpen
=bOpen
;}
98 SvxHyperlinkInternetTp ( Window
*pParent
, const SfxItemSet
& rItemSet
);
99 ~SvxHyperlinkInternetTp ();
101 static IconChoicePage
* Create( Window
* pWindow
, const SfxItemSet
& rItemSet
);
103 virtual void SetMarkStr ( String
& aStrMark
);
104 virtual void SetOnlineMode( BOOL bEnable
);
106 virtual void SetInitFocus();
110 #endif // _SVX_TABPAGE_INET_HYPERLINK_HXX