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 OString &rDialogId, bool bMobile=false)
virtual DialoggetDialog () override
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
virtual short run ()
void set_title (const OUString &rTitle)
OUString get_title () const
void set_help_id (const OString &rHelpId)
OString 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 ( weld::Window pParentDialog,
SvxHyperlinkTabPageBase pParentPage 

Definition at line 68 of file hlmarkwn.cxx.

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

SvxHlinkDlgMarkWnd::~SvxHlinkDlgMarkWnd ( )

Definition at line 84 of file hlmarkwn.cxx.

References ClearTree().

Member Function Documentation

void SvxHlinkDlgMarkWnd::ClearTree ( )

Definition at line 415 of file hlmarkwn.cxx.

References mxLbTree.

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

SvxHlinkDlgMarkWnd::DECL_LINK ( ClickApplyHdl_Impl  ,
weld::Button ,
SvxHlinkDlgMarkWnd::DECL_LINK ( DoubleClickApplyHdl_Impl  ,
weld::TreeView ,
SvxHlinkDlgMarkWnd::DECL_LINK ( ClickCloseHdl_Impl  ,
weld::Button ,
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().

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

Definition at line 286 of file hlmarkwn.cxx.

References VCLUnoHelper::GetBitmap(), Graphic::GetXGraphic(), i, mxLbTree, pData, sId, weld::toId(), u, and xTarget.

Referenced by RefreshFromDoc().

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

Definition at line 432 of file hlmarkwn.cxx.

References mxLbTree.

Referenced by SelectEntry().

void SvxHlinkDlgMarkWnd::MoveTo ( const Point rNewPos)

Definition at line 127 of file hlmarkwn.cxx.

References weld::GenericDialogController::m_xDialog.

bool SvxHlinkDlgMarkWnd::RefreshFromDoc ( const OUString &  aURL)
void SvxHlinkDlgMarkWnd::RefreshTree ( const OUString &  aStrURL)
void SvxHlinkDlgMarkWnd::RestoreLastSelection ( )

Definition at line 166 of file hlmarkwn.cxx.

References SvtViewOptions::Exists(), SvtViewOptions::GetUserItem(), mxLbTree, and SelectEntry().

Referenced by RefreshTree().

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

Definition at line 454 of file hlmarkwn.cxx.

References FindEntry(), and mxLbTree.

Referenced by RefreshTree(), and RestoreLastSelection().

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

sal_uInt16 SvxHlinkDlgMarkWnd::mnError

Definition at line 35 of file hlmarkwn.hxx.

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

SvxHyperlinkTabPageBase* SvxHlinkDlgMarkWnd::mpParent

Definition at line 33 of file hlmarkwn.hxx.

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

Definition at line 37 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

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

Definition at line 38 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

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

Definition at line 40 of file hlmarkwn.hxx.

Referenced by ErrorChanged().

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

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