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:
[legend]
Collaboration diagram for SvxHlinkDlgMarkWnd:
[legend]

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

SvxHyperlinkTabPageBasempParent
 
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 ( )
overridevirtual

Definition at line 84 of file hlmarkwn.cxx.

References ClearTree().

Member Function Documentation

◆ ClearTree()

void SvxHlinkDlgMarkWnd::ClearTree ( )
protected

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 ,
void   
)
protected

◆ DECL_LINK() [2/3]

SvxHlinkDlgMarkWnd::DECL_LINK ( ClickCloseHdl_Impl  ,
weld::Button ,
void   
)
protected

◆ DECL_LINK() [3/3]

SvxHlinkDlgMarkWnd::DECL_LINK ( DoubleClickApplyHdl_Impl  ,
weld::TreeView ,
bool   
)
protected

◆ ErrorChanged()

void SvxHlinkDlgMarkWnd::ErrorChanged ( )
private

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 
)
protected

◆ FindEntry()

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

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)
protected

◆ RefreshTree()

void SvxHlinkDlgMarkWnd::RefreshTree ( const OUString &  aStrURL)

◆ RestoreLastSelection()

void SvxHlinkDlgMarkWnd::RestoreLastSelection ( )
protected

◆ 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
private

Definition at line 35 of file hlmarkwn.hxx.

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

◆ mpParent

SvxHyperlinkTabPageBase* SvxHlinkDlgMarkWnd::mpParent
private

Definition at line 33 of file hlmarkwn.hxx.

◆ mxBtApply

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

Definition at line 37 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

◆ mxBtClose

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

Definition at line 38 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

◆ mxError

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

Definition at line 40 of file hlmarkwn.hxx.

Referenced by ErrorChanged().

◆ mxLbTree

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

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