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

#include <hlmarkwn.hxx>

Inheritance diagram for SvxHlinkDlgMarkWnd:
Collaboration diagram for SvxHlinkDlgMarkWnd:

Public Member Functions

 SvxHlinkDlgMarkWnd (weld::Window *pParentDialog, SvxHyperlinkTabPageBase *pParentPage)
virtual ~SvxHlinkDlgMarkWnd () override
void MoveTo (const Point &rNewPos)
void RefreshTree (const OUString &aStrURL)
bool SelectEntry (std::u16string_view aStrMark)
sal_uInt16 SetError (sal_uInt16 nError)
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
virtual DialoggetDialog () override
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
const DialoggetConstDialog () const
virtual short run ()
void set_title (const OUString &rTitle)
OUString get_title () const
void set_help_id (const OUString &rHelpId)
OUString get_help_id () const
void response (int nResponse)
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE

Protected Member Functions

bool RefreshFromDoc (const OUString &aURL)
void RestoreLastSelection ()
std::unique_ptr< weld::TreeIterFindEntry (std::u16string_view aStrName)
void ClearTree ()
int FillTree (const css::uno::Reference< css::container::XNameAccess > &xLinks, const weld::TreeIter *pParentEntry=nullptr)
 DECL_LINK (ClickApplyHdl_Impl, weld::Button &, void)
 DECL_LINK (DoubleClickApplyHdl_Impl, weld::TreeView &, bool)
 DECL_LINK (ClickCloseHdl_Impl, weld::Button &, void)

Private Member Functions

void ErrorChanged ()

Private Attributes

sal_uInt16 mnError
std::unique_ptr< weld::ButtonmxBtApply
std::unique_ptr< weld::ButtonmxBtClose
std::unique_ptr< weld::TreeViewmxLbTree
std::unique_ptr< weld::LabelmxError

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
std::shared_ptr< weld::Dialogm_xDialog

Detailed Description

Definition at line 30 of file hlmarkwn.hxx.

Constructor & Destructor Documentation

◆ SvxHlinkDlgMarkWnd()

SvxHlinkDlgMarkWnd::SvxHlinkDlgMarkWnd ( weld::Window pParentDialog,
SvxHyperlinkTabPageBase pParentPage 

Definition at line 68 of file hlmarkwn.cxx.

References LINK, mpParent, mxBtApply, mxBtClose, and mxLbTree.

◆ ~SvxHlinkDlgMarkWnd()

SvxHlinkDlgMarkWnd::~SvxHlinkDlgMarkWnd ( )

Definition at line 84 of file hlmarkwn.cxx.

References ClearTree().

Member Function Documentation

◆ ClearTree()

void SvxHlinkDlgMarkWnd::ClearTree ( )

Definition at line 415 of file hlmarkwn.cxx.

References mxLbTree.

Referenced by RefreshTree(), SetError(), and ~SvxHlinkDlgMarkWnd().

◆ DECL_LINK() [1/3]

SvxHlinkDlgMarkWnd::DECL_LINK ( ClickApplyHdl_Impl  ,
weld::Button ,

◆ DECL_LINK() [2/3]

SvxHlinkDlgMarkWnd::DECL_LINK ( ClickCloseHdl_Impl  ,
weld::Button ,

◆ DECL_LINK() [3/3]

SvxHlinkDlgMarkWnd::DECL_LINK ( DoubleClickApplyHdl_Impl  ,
weld::TreeView ,

◆ ErrorChanged()

void SvxHlinkDlgMarkWnd::ErrorChanged ( )

Definition at line 89 of file hlmarkwn.cxx.

References CuiResId(), LERR_DOCNOTOPEN, LERR_NOENTRIES, mnError, mxError, and mxLbTree.

Referenced by RefreshTree(), and SetError().

◆ FillTree()

int SvxHlinkDlgMarkWnd::FillTree ( const css::uno::Reference< css::container::XNameAccess > &  xLinks,
const weld::TreeIter pParentEntry = nullptr 

◆ FindEntry()

std::unique_ptr< weld::TreeIter > SvxHlinkDlgMarkWnd::FindEntry ( std::u16string_view  aStrName)

Definition at line 432 of file hlmarkwn.cxx.

References mxLbTree.

Referenced by SelectEntry().

◆ MoveTo()

void SvxHlinkDlgMarkWnd::MoveTo ( const Point rNewPos)

Definition at line 127 of file hlmarkwn.cxx.

References weld::GenericDialogController::m_xDialog, Point::X(), and Point::Y().

◆ RefreshFromDoc()

bool SvxHlinkDlgMarkWnd::RefreshFromDoc ( const OUString &  aURL)

◆ RefreshTree()

void SvxHlinkDlgMarkWnd::RefreshTree ( const OUString &  aStrURL)

◆ RestoreLastSelection()

void SvxHlinkDlgMarkWnd::RestoreLastSelection ( )

◆ SelectEntry()

bool SvxHlinkDlgMarkWnd::SelectEntry ( std::u16string_view  aStrMark)

Definition at line 454 of file hlmarkwn.cxx.

References FindEntry(), and mxLbTree.

Referenced by RefreshTree(), and RestoreLastSelection().

◆ SetError()

sal_uInt16 SvxHlinkDlgMarkWnd::SetError ( sal_uInt16  nError)

Definition at line 113 of file hlmarkwn.cxx.

References ClearTree(), ErrorChanged(), LERR_NOERROR, and mnError.

Member Data Documentation

◆ mnError

sal_uInt16 SvxHlinkDlgMarkWnd::mnError

Definition at line 35 of file hlmarkwn.hxx.

Referenced by ErrorChanged(), RefreshFromDoc(), and SetError().

◆ mpParent

SvxHyperlinkTabPageBase* SvxHlinkDlgMarkWnd::mpParent

Definition at line 33 of file hlmarkwn.hxx.

◆ mxBtApply

std::unique_ptr<weld::Button> SvxHlinkDlgMarkWnd::mxBtApply

Definition at line 37 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

◆ mxBtClose

std::unique_ptr<weld::Button> SvxHlinkDlgMarkWnd::mxBtClose

Definition at line 38 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

◆ mxError

std::unique_ptr<weld::Label> SvxHlinkDlgMarkWnd::mxError

Definition at line 40 of file hlmarkwn.hxx.

Referenced by ErrorChanged().

◆ mxLbTree

std::unique_ptr<weld::TreeView> SvxHlinkDlgMarkWnd::mxLbTree

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