LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxHyperlinkDocTp Class Referencefinal

#include <hldoctp.hxx>

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

Public Member Functions

 SvxHyperlinkDocTp (weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pItemSet)
 
virtual ~SvxHyperlinkDocTp () 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)
 

Private Types

enum class  EPathType {
  Invalid ,
  ExistsFile
}
 

Private Member Functions

 DECL_LINK (ClickFileopenHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ClickTargetHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ModifiedPathHdl_Impl, weld::ComboBox &, void)
 Contents of combobox "Path" modified. More...
 
 DECL_LINK (ModifiedTargetHdl_Impl, weld::Entry &, void)
 Contents of editfield "Target" modified. More...
 
 DECL_LINK (LostFocusPathHdl_Impl, weld::Widget &, void)
 Combobox "path" lost its focus. More...
 
 DECL_LINK (TimeoutHdl_Impl, Timer *, void)
 Handler for timer -timeout. More...
 
void FillDlgFields (const OUString &rStrURL) override
 
void GetCurrentItemData (OUString &rStrURL, OUString &aStrName, OUString &aStrIntName, OUString &aStrFrame, SvxLinkInsertMode &eMode) override
 
virtual bool ShouldOpenMarkWnd () override
 
virtual void SetMarkWndShouldOpen (bool bOpen) override
 
OUString GetCurrentURL () const
 

Static Private Member Functions

static EPathType GetPathType (std::u16string_view rStrPath)
 

Private Attributes

std::unique_ptr< SvxHyperURLBoxm_xCbbPath
 
std::unique_ptr< weld::Buttonm_xBtFileopen
 
std::unique_ptr< weld::Entrym_xEdTarget
 
std::unique_ptr< weld::Labelm_xFtFullURL
 
std::unique_ptr< weld::Buttonm_xBtBrowse
 
OUString maStrURL
 
bool m_bMarkWndOpen
 

Additional Inherited Members

- 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)
 
- 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 28 of file hldoctp.hxx.

Member Enumeration Documentation

◆ EPathType

enum class SvxHyperlinkDocTp::EPathType
strongprivate
Enumerator
Invalid 
ExistsFile 

Definition at line 51 of file hldoctp.hxx.

Constructor & Destructor Documentation

◆ SvxHyperlinkDocTp()

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

◆ ~SvxHyperlinkDocTp()

SvxHyperlinkDocTp::~SvxHyperlinkDocTp ( )
overridevirtual

Definition at line 65 of file hldoctp.cxx.

Member Function Documentation

◆ Create()

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

Definition at line 148 of file hldoctp.cxx.

Referenced by SvxHpLinkDlg::SvxHpLinkDlg().

◆ DECL_LINK() [1/6]

SvxHyperlinkDocTp::DECL_LINK ( ClickFileopenHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/6]

SvxHyperlinkDocTp::DECL_LINK ( ClickTargetHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/6]

SvxHyperlinkDocTp::DECL_LINK ( LostFocusPathHdl_Impl  ,
weld::Widget ,
void   
)
private

Combobox "path" lost its focus.

◆ DECL_LINK() [4/6]

SvxHyperlinkDocTp::DECL_LINK ( ModifiedPathHdl_Impl  ,
weld::ComboBox ,
void   
)
private

Contents of combobox "Path" modified.

◆ DECL_LINK() [5/6]

SvxHyperlinkDocTp::DECL_LINK ( ModifiedTargetHdl_Impl  ,
weld::Entry ,
void   
)
private

Contents of editfield "Target" modified.

◆ DECL_LINK() [6/6]

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

Handler for timer -timeout.

◆ FillDlgFields()

void SvxHyperlinkDocTp::FillDlgFields ( const OUString &  rStrURL)
overrideprivatevirtual

Implements SvxHyperlinkTabPageBase.

Definition at line 74 of file hldoctp.cxx.

References m_xCbbPath, m_xEdTarget, nPos, and sHash.

◆ GetCurrentItemData()

void SvxHyperlinkDocTp::GetCurrentItemData ( OUString &  rStrURL,
OUString &  aStrName,
OUString &  aStrIntName,
OUString &  aStrFrame,
SvxLinkInsertMode eMode 
)
overrideprivatevirtual

◆ GetCurrentURL()

OUString SvxHyperlinkDocTp::GetCurrentURL ( ) const
private

Definition at line 94 of file hldoctp.cxx.

References aURL, INetURLObject::decode(), m_xCbbPath, m_xEdTarget, sHash, and INetURLObject::ToIUri.

Referenced by GetCurrentItemData().

◆ GetPathType()

SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( std::u16string_view  rStrPath)
staticprivate

Definition at line 307 of file hldoctp.cxx.

References aURL, ExistsFile, and Invalid.

◆ SetInitFocus()

void SvxHyperlinkDocTp::SetInitFocus ( )
overridevirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 158 of file hldoctp.cxx.

References m_xCbbPath.

◆ SetMarkStr()

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

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 295 of file hldoctp.cxx.

References m_xEdTarget.

◆ SetMarkWndShouldOpen()

virtual void SvxHyperlinkDocTp::SetMarkWndShouldOpen ( bool  bOpen)
inlineoverrideprivatevirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 59 of file hldoctp.hxx.

References m_bMarkWndOpen.

◆ ShouldOpenMarkWnd()

virtual bool SvxHyperlinkDocTp::ShouldOpenMarkWnd ( )
inlineoverrideprivatevirtual

Reimplemented from SvxHyperlinkTabPageBase.

Definition at line 58 of file hldoctp.hxx.

References m_bMarkWndOpen.

Member Data Documentation

◆ m_bMarkWndOpen

bool SvxHyperlinkDocTp::m_bMarkWndOpen
private

Definition at line 39 of file hldoctp.hxx.

Referenced by SetMarkWndShouldOpen(), and ShouldOpenMarkWnd().

◆ m_xBtBrowse

std::unique_ptr<weld::Button> SvxHyperlinkDocTp::m_xBtBrowse
private

Definition at line 35 of file hldoctp.hxx.

Referenced by SvxHyperlinkDocTp().

◆ m_xBtFileopen

std::unique_ptr<weld::Button> SvxHyperlinkDocTp::m_xBtFileopen
private

Definition at line 32 of file hldoctp.hxx.

Referenced by SvxHyperlinkDocTp().

◆ m_xCbbPath

std::unique_ptr<SvxHyperURLBox> SvxHyperlinkDocTp::m_xCbbPath
private

Definition at line 31 of file hldoctp.hxx.

Referenced by FillDlgFields(), GetCurrentURL(), SetInitFocus(), and SvxHyperlinkDocTp().

◆ m_xEdTarget

std::unique_ptr<weld::Entry> SvxHyperlinkDocTp::m_xEdTarget
private

Definition at line 33 of file hldoctp.hxx.

Referenced by FillDlgFields(), GetCurrentURL(), SetMarkStr(), and SvxHyperlinkDocTp().

◆ m_xFtFullURL

std::unique_ptr<weld::Label> SvxHyperlinkDocTp::m_xFtFullURL
private

Definition at line 34 of file hldoctp.hxx.

◆ maStrURL

OUString SvxHyperlinkDocTp::maStrURL
private

Definition at line 37 of file hldoctp.hxx.


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