1*c4eee24dSAndrew Rist /************************************************************** 2*c4eee24dSAndrew Rist * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10*c4eee24dSAndrew Rist * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19*c4eee24dSAndrew Rist * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_TABPAGE_INET_HYPERLINK_HXX 24cdf0e10cSrcweir #define _SVX_TABPAGE_INET_HYPERLINK_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <svx/hyperdlg.hxx> 27cdf0e10cSrcweir #include "cuihyperdlg.hxx" 28cdf0e10cSrcweir #include "hltpbase.hxx" 29cdf0e10cSrcweir 30cdf0e10cSrcweir /************************************************************************* 31cdf0e10cSrcweir |* 32cdf0e10cSrcweir |* Tabpage : Hyperlink - Internet 33cdf0e10cSrcweir |* 34cdf0e10cSrcweir \************************************************************************/ 35cdf0e10cSrcweir 36cdf0e10cSrcweir class SvxHyperlinkInternetTp : public SvxHyperlinkTabPageBase 37cdf0e10cSrcweir { 38cdf0e10cSrcweir private: 39cdf0e10cSrcweir FixedLine maGrpLinkTyp; 40cdf0e10cSrcweir RadioButton maRbtLinktypInternet; 41cdf0e10cSrcweir RadioButton maRbtLinktypFTP; 42cdf0e10cSrcweir RadioButton maRbtLinktypTelnet; 43cdf0e10cSrcweir FixedText maFtTarget; 44cdf0e10cSrcweir SvxHyperURLBox maCbbTarget; 45cdf0e10cSrcweir ImageButton maBtBrowse; 46cdf0e10cSrcweir FixedText maFtLogin; 47cdf0e10cSrcweir Edit maEdLogin; 48cdf0e10cSrcweir ImageButton maBtTarget; 49cdf0e10cSrcweir FixedText maFtPassword; 50cdf0e10cSrcweir Edit maEdPassword; 51cdf0e10cSrcweir CheckBox maCbAnonymous; 52cdf0e10cSrcweir 53cdf0e10cSrcweir String maStrOldUser; 54cdf0e10cSrcweir String maStrOldPassword; 55cdf0e10cSrcweir 56cdf0e10cSrcweir sal_Bool mbMarkWndOpen; 57cdf0e10cSrcweir 58cdf0e10cSrcweir String maStrStdDocURL; 59cdf0e10cSrcweir 60cdf0e10cSrcweir DECL_LINK (Click_SmartProtocol_Impl , void * ); // Radiobutton clicked: Type Internet, FTP or Telnet 61cdf0e10cSrcweir DECL_LINK (ClickAnonymousHdl_Impl , void * ); // Checkbox : Anonymer Benutzer 62cdf0e10cSrcweir DECL_LINK (ClickBrowseHdl_Impl , void * ); // Button : Browse 63cdf0e10cSrcweir DECL_LINK (ClickTargetHdl_Impl , void * ); // Button : Ziel 64cdf0e10cSrcweir DECL_LINK (ModifiedLoginHdl_Impl , void * ); // Contens of editfield "Login" modified 65cdf0e10cSrcweir DECL_LINK (LostFocusTargetHdl_Impl , void * ); // Combobox "Target" lost its focus 66cdf0e10cSrcweir DECL_LINK (ModifiedTargetHdl_Impl , void * ); // Contens of editfield "Target" modified 67cdf0e10cSrcweir 68cdf0e10cSrcweir DECL_LINK (TimeoutHdl_Impl , Timer * ); // Handler for timer -timeout 69cdf0e10cSrcweir 70cdf0e10cSrcweir 71cdf0e10cSrcweir void SetScheme( const String& aScheme ); 72cdf0e10cSrcweir void RemoveImproperProtocol(const String& aProperScheme); 73cdf0e10cSrcweir String GetSchemeFromButtons() const; 74cdf0e10cSrcweir INetProtocol GetSmartProtocolFromButtons() const; 75cdf0e10cSrcweir 76cdf0e10cSrcweir String CreateAbsoluteURL() const; 77cdf0e10cSrcweir 78cdf0e10cSrcweir void setAnonymousFTPUser(); 79cdf0e10cSrcweir void setFTPUser(const String& rUser, const String& rPassword); 80cdf0e10cSrcweir void RefreshMarkWindow(); 81cdf0e10cSrcweir 82cdf0e10cSrcweir protected: 83cdf0e10cSrcweir virtual void FillDlgFields ( String& aStrURL ); 84cdf0e10cSrcweir virtual void GetCurentItemData ( String& aStrURL, String& aStrName, 85cdf0e10cSrcweir String& aStrIntName, String& aStrFrame, 86cdf0e10cSrcweir SvxLinkInsertMode& eMode ); ShouldOpenMarkWnd()87cdf0e10cSrcweir virtual sal_Bool ShouldOpenMarkWnd () {return ( mbMarkWndOpen && maRbtLinktypInternet.IsChecked() );} SetMarkWndShouldOpen(sal_Bool bOpen)88cdf0e10cSrcweir virtual void SetMarkWndShouldOpen (sal_Bool bOpen) {mbMarkWndOpen=bOpen;} 89cdf0e10cSrcweir 90cdf0e10cSrcweir public: 91cdf0e10cSrcweir SvxHyperlinkInternetTp ( Window *pParent, const SfxItemSet& rItemSet); 92cdf0e10cSrcweir ~SvxHyperlinkInternetTp (); 93cdf0e10cSrcweir 94cdf0e10cSrcweir static IconChoicePage* Create( Window* pWindow, const SfxItemSet& rItemSet ); 95cdf0e10cSrcweir 96cdf0e10cSrcweir virtual void SetMarkStr ( String& aStrMark ); 97cdf0e10cSrcweir virtual void SetOnlineMode( sal_Bool bEnable ); 98cdf0e10cSrcweir 99cdf0e10cSrcweir virtual void SetInitFocus(); 100cdf0e10cSrcweir }; 101cdf0e10cSrcweir 102cdf0e10cSrcweir 103cdf0e10cSrcweir #endif // _SVX_TABPAGE_INET_HYPERLINK_HXX 104