LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SvxHyperlinkInternetTp Class Reference

#include <hlinettp.hxx>

Inheritance diagram for SvxHyperlinkInternetTp:
[legend]
Collaboration diagram for SvxHyperlinkInternetTp:
[legend]

Public Member Functions

 SvxHyperlinkInternetTp (weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
 
virtual ~SvxHyperlinkInternetTp () override
 
virtual void SetMarkStr (const OUString &aStrMark) override
 
virtual void SetInitFocus () override
 
- Public Member Functions inherited from SvxHyperlinkTabPageBase
 SvxHyperlinkTabPageBase (weld::Container *pParent, SvxHpLinkDlg *pDlg, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pItemSet)
 
virtual ~SvxHyperlinkTabPageBase () override
 
void SetDocumentFrame (const css::uno::Reference< css::frame::XFrame > &rxDocumentFrame)
 
virtual void DoApply ()
 
virtual void SetInitFocus ()
 
virtual void SetMarkStr (const OUString &aStrMark)
 
virtual void Reset (const SfxItemSet &) override
 
virtual bool FillItemSet (SfxItemSet *) override
 
virtual void ActivatePage (const SfxItemSet &rItemSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
bool IsMarkWndVisible () const
 
void MoveToExtraWnd (Point aNewPos)
 
virtual bool QueryClose () override
 
- Public Member Functions inherited from IconChoicePage
virtual ~IconChoicePage ()
 
OUString GetHelpId () const
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)=0
 
virtual void Reset (const SfxItemSet &)=0
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
virtual bool QueryClose ()
 

Static Public Member Functions

static std::unique_ptr< IconChoicePageCreate (weld::Container *pWindow, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
 

Protected Member Functions

virtual void FillDlgFields (const OUString &rStrURL) override
 
virtual void GetCurrentItemData (OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode) override
 
virtual bool ShouldOpenMarkWnd () override
 
virtual void SetMarkWndShouldOpen (bool bOpen) override
 
- Protected Member Functions inherited from SvxHyperlinkTabPageBase
void InitStdControls ()
 
void FillStandardDlgFields (const SvxHyperlinkItem *pHyperlinkItem)
 
virtual void FillDlgFields (const OUString &rStrURL)=0
 
virtual void GetCurrentItemData (OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode)=0
 
void GetDataFromCommonFields (OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode)
 
 DECL_LINK (ClickScriptHdl_Impl, weld::Button &, void)
 Button : Script. More...
 
void DisableClose (bool _bDisable)
 
virtual bool ShouldOpenMarkWnd ()
 
virtual void SetMarkWndShouldOpen (bool bOpen)
 
void ShowMarkWnd ()
 
void HideMarkWnd ()
 
SfxDispatcherGetDispatcher () const
 
HyperDialogEvent GetMacroEvents () const
 
SvxMacroTableDtorGetMacroTable ()
 
- Protected Member Functions inherited from IconChoicePage
 IconChoicePage (weld::Container *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pItemSet)
 

Private Member Functions

 DECL_LINK (Click_SmartProtocol_Impl, weld::Toggleable &, void)
 Radiobutton toggled: Type HTTP or FTP. More...
 
 DECL_LINK (ClickAnonymousHdl_Impl, weld::Toggleable &, void)
 Checkbox : Anonymous User. More...
 
 DECL_LINK (ModifiedLoginHdl_Impl, weld::Entry &, void)
 Contents of editfield "Login" modified. More...
 
 DECL_LINK (LostFocusTargetHdl_Impl, weld::Widget &, void)
 Combobox "Target" lost its focus. More...
 
 DECL_LINK (ModifiedTargetHdl_Impl, weld::ComboBox &, void)
 Contents of editfield "Target" modified. More...
 
 DECL_LINK (TimeoutHdl_Impl, Timer *, void)
 Handler for timer -timeout. More...
 
void SetScheme (std::u16string_view rScheme)
 
void RemoveImproperProtocol (std::u16string_view rProperScheme)
 
OUString GetSchemeFromButtons () const
 
INetProtocol GetSmartProtocolFromButtons () const
 
OUString CreateAbsoluteURL () const
 
void setAnonymousFTPUser ()
 
void setFTPUser (const OUString &rUser, const OUString &rPassword)
 
void RefreshMarkWindow ()
 

Private Attributes

OUString maStrOldUser
 
OUString maStrOldPassword
 
bool m_bMarkWndOpen
 
std::unique_ptr< weld::RadioButtonm_xRbtLinktypInternet
 
std::unique_ptr< weld::RadioButtonm_xRbtLinktypFTP
 
std::unique_ptr< SvxHyperURLBoxm_xCbbTarget
 
std::unique_ptr< weld::Labelm_xFtTarget
 
std::unique_ptr< weld::Labelm_xFtLogin
 
std::unique_ptr< weld::Entrym_xEdLogin
 
std::unique_ptr< weld::Labelm_xFtPassword
 
std::unique_ptr< weld::Entrym_xEdPassword
 
std::unique_ptr< weld::CheckButtonm_xCbAnonymous
 

Additional Inherited Members

- Static Protected Member Functions inherited from SvxHyperlinkTabPageBase
static OUString GetSchemeFromURL (const OUString &rStrURL)
 
- Protected Attributes inherited from SvxHyperlinkTabPageBase
SvxHpLinkDlgmpDialog
 
bool mbStdControlsInit
 
OUString maStrInitURL
 
Timer maTimer
 
TopLevelWindowLocker maBusy
 
std::shared_ptr< SvxHlinkDlgMarkWndmxMarkWnd
 
- Protected Attributes inherited from IconChoicePage
std::unique_ptr< weld::BuilderxBuilder
 
std::unique_ptr< weld::ContainerxContainer
 

Detailed Description

Definition at line 34 of file hlinettp.hxx.

Constructor & Destructor Documentation

◆ SvxHyperlinkInternetTp()

SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( weld::Container pParent,
SvxHpLinkDlg pDlg,
const SfxItemSet pItemSet 
)

◆ ~SvxHyperlinkInternetTp()

SvxHyperlinkInternetTp::~SvxHyperlinkInternetTp ( )
overridevirtual

Definition at line 80 of file hlinettp.cxx.

Member Function Documentation

◆ Create()

std::unique_ptr< IconChoicePage > SvxHyperlinkInternetTp::Create ( weld::Container pWindow,
SvxHpLinkDlg pDlg,
const SfxItemSet pItemSet 
)
static

Definition at line 179 of file hlinettp.cxx.

Referenced by SvxHpLinkDlg::SvxHpLinkDlg().

◆ CreateAbsoluteURL()

OUString SvxHyperlinkInternetTp::CreateAbsoluteURL ( ) const
private

◆ DECL_LINK() [1/6]

SvxHyperlinkInternetTp::DECL_LINK ( Click_SmartProtocol_Impl  ,
weld::Toggleable ,
void   
)
private

Radiobutton toggled: Type HTTP or FTP.

◆ DECL_LINK() [2/6]

SvxHyperlinkInternetTp::DECL_LINK ( ClickAnonymousHdl_Impl  ,
weld::Toggleable ,
void   
)
private

Checkbox : Anonymous User.

◆ DECL_LINK() [3/6]

SvxHyperlinkInternetTp::DECL_LINK ( LostFocusTargetHdl_Impl  ,
weld::Widget ,
void   
)
private

Combobox "Target" lost its focus.

◆ DECL_LINK() [4/6]

SvxHyperlinkInternetTp::DECL_LINK ( ModifiedLoginHdl_Impl  ,
weld::Entry ,
void   
)
private

Contents of editfield "Login" modified.

◆ DECL_LINK() [5/6]

SvxHyperlinkInternetTp::DECL_LINK ( ModifiedTargetHdl_Impl  ,
weld::ComboBox ,
void   
)
private

Contents of editfield "Target" modified.

◆ DECL_LINK() [6/6]

SvxHyperlinkInternetTp::DECL_LINK ( TimeoutHdl_Impl  ,
Timer ,
void   
)
private

Handler for timer -timeout.

◆ FillDlgFields()

void SvxHyperlinkInternetTp::FillDlgFields ( const OUString &  rStrURL)
overrideprotectedvirtual

◆ GetCurrentItemData()

void SvxHyperlinkInternetTp::GetCurrentItemData ( OUString &  rStrURL,
OUString &  aStrName,
OUString &  aStrIntName,
OUString &  aStrFrame,
SvxLinkInsertMode eMode 
)
overrideprotectedvirtual

◆ GetSchemeFromButtons()

OUString SvxHyperlinkInternetTp::GetSchemeFromButtons ( ) const
private

Definition at line 290 of file hlinettp.cxx.

References INET_FTP_SCHEME, INET_HTTP_SCHEME, and m_xRbtLinktypFTP.

◆ GetSmartProtocolFromButtons()

INetProtocol SvxHyperlinkInternetTp::GetSmartProtocolFromButtons ( ) const
private

Definition at line 297 of file hlinettp.cxx.

References m_xRbtLinktypFTP.

Referenced by CreateAbsoluteURL(), and SetScheme().

◆ RefreshMarkWindow()

void SvxHyperlinkInternetTp::RefreshMarkWindow ( )
private

◆ RemoveImproperProtocol()

void SvxHyperlinkInternetTp::RemoveImproperProtocol ( std::u16string_view  rProperScheme)
private

Definition at line 276 of file hlinettp.cxx.

References SvxHyperlinkTabPageBase::GetSchemeFromURL(), and m_xCbbTarget.

Referenced by SetScheme().

◆ setAnonymousFTPUser()

void SvxHyperlinkInternetTp::setAnonymousFTPUser ( )
private

◆ setFTPUser()

void SvxHyperlinkInternetTp::setFTPUser ( const OUString &  rUser,
const OUString &  rPassword 
)
private

Definition at line 130 of file hlinettp.cxx.

References m_xCbAnonymous, m_xEdLogin, m_xEdPassword, m_xFtLogin, and m_xFtPassword.

Referenced by FillDlgFields().

◆ SetInitFocus()

void SvxHyperlinkInternetTp::SetInitFocus ( )
overridevirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 189 of file hlinettp.cxx.

References m_xCbbTarget.

◆ SetMarkStr()

void SvxHyperlinkInternetTp::SetMarkStr ( const OUString &  aStrMark)
overridevirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 374 of file hlinettp.cxx.

References m_xCbbTarget, and nPos.

◆ SetMarkWndShouldOpen()

virtual void SvxHyperlinkInternetTp::SetMarkWndShouldOpen ( bool  bOpen)
inlineoverrideprotectedvirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 78 of file hlinettp.hxx.

References m_bMarkWndOpen.

◆ SetScheme()

void SvxHyperlinkInternetTp::SetScheme ( std::u16string_view  rScheme)
private

◆ ShouldOpenMarkWnd()

virtual bool SvxHyperlinkInternetTp::ShouldOpenMarkWnd ( )
inlineoverrideprotectedvirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 77 of file hlinettp.hxx.

References m_bMarkWndOpen, and m_xRbtLinktypInternet.

Member Data Documentation

◆ m_bMarkWndOpen

bool SvxHyperlinkInternetTp::m_bMarkWndOpen
private

Definition at line 40 of file hlinettp.hxx.

Referenced by SetMarkWndShouldOpen(), SetScheme(), and ShouldOpenMarkWnd().

◆ m_xCbAnonymous

std::unique_ptr<weld::CheckButton> SvxHyperlinkInternetTp::m_xCbAnonymous
private

Definition at line 50 of file hlinettp.hxx.

Referenced by setAnonymousFTPUser(), setFTPUser(), SetScheme(), and SvxHyperlinkInternetTp().

◆ m_xCbbTarget

std::unique_ptr<SvxHyperURLBox> SvxHyperlinkInternetTp::m_xCbbTarget
private

◆ m_xEdLogin

std::unique_ptr<weld::Entry> SvxHyperlinkInternetTp::m_xEdLogin
private

◆ m_xEdPassword

std::unique_ptr<weld::Entry> SvxHyperlinkInternetTp::m_xEdPassword
private

Definition at line 49 of file hlinettp.hxx.

Referenced by CreateAbsoluteURL(), setAnonymousFTPUser(), setFTPUser(), and SetScheme().

◆ m_xFtLogin

std::unique_ptr<weld::Label> SvxHyperlinkInternetTp::m_xFtLogin
private

Definition at line 46 of file hlinettp.hxx.

Referenced by setAnonymousFTPUser(), setFTPUser(), and SetScheme().

◆ m_xFtPassword

std::unique_ptr<weld::Label> SvxHyperlinkInternetTp::m_xFtPassword
private

Definition at line 48 of file hlinettp.hxx.

Referenced by setAnonymousFTPUser(), setFTPUser(), and SetScheme().

◆ m_xFtTarget

std::unique_ptr<weld::Label> SvxHyperlinkInternetTp::m_xFtTarget
private

Definition at line 45 of file hlinettp.hxx.

Referenced by SvxHyperlinkInternetTp().

◆ m_xRbtLinktypFTP

std::unique_ptr<weld::RadioButton> SvxHyperlinkInternetTp::m_xRbtLinktypFTP
private

◆ m_xRbtLinktypInternet

std::unique_ptr<weld::RadioButton> SvxHyperlinkInternetTp::m_xRbtLinktypInternet
private

◆ maStrOldPassword

OUString SvxHyperlinkInternetTp::maStrOldPassword
private

Definition at line 38 of file hlinettp.hxx.

◆ maStrOldUser

OUString SvxHyperlinkInternetTp::maStrOldUser
private

Definition at line 37 of file hlinettp.hxx.


The documentation for this class was generated from the following files: