LibreOffice Module cui (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | 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 (const OUString &aStrMark)
 
sal_uInt16 SetError (sal_uInt16 nError)
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
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 (const OUString &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 &, void)
 
 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
 

Friends

class SvxHlmarkTreeLBox
 

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 31 of file hlmarkwn.hxx.

Constructor & Destructor Documentation

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

Definition at line 60 of file hlmarkwn.cxx.

References LINK, mxBtApply, mxBtClose, and mxLbTree.

SvxHlinkDlgMarkWnd::~SvxHlinkDlgMarkWnd ( )
overridevirtual

Definition at line 76 of file hlmarkwn.cxx.

References ClearTree().

Member Function Documentation

void SvxHlinkDlgMarkWnd::ClearTree ( )
protected

Definition at line 364 of file hlmarkwn.cxx.

References mxLbTree.

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

SvxHlinkDlgMarkWnd::DECL_LINK ( ClickApplyHdl_Impl  ,
weld::Button ,
void   
)
protected
SvxHlinkDlgMarkWnd::DECL_LINK ( DoubleClickApplyHdl_Impl  ,
weld::TreeView ,
void   
)
protected
SvxHlinkDlgMarkWnd::DECL_LINK ( ClickCloseHdl_Impl  ,
weld::Button ,
void   
)
protected
void SvxHlinkDlgMarkWnd::ErrorChanged ( )
private

Definition at line 81 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 
)
protected

Definition at line 280 of file hlmarkwn.cxx.

References VCLUnoHelper::GetBitmap(), Graphic::GetXGraphic(), i, mxLbTree, and sId.

Referenced by RefreshFromDoc().

std::unique_ptr< weld::TreeIter > SvxHlinkDlgMarkWnd::FindEntry ( const OUString &  aStrName)
protected

Definition at line 381 of file hlmarkwn.cxx.

References TargetData::aUStrLinkname, and mxLbTree.

Referenced by SelectEntry().

void SvxHlinkDlgMarkWnd::MoveTo ( const Point rNewPos)

Definition at line 119 of file hlmarkwn.cxx.

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

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

Definition at line 403 of file hlmarkwn.cxx.

References FindEntry(), and mxLbTree.

Referenced by RefreshTree(), and RestoreLastSelection().

sal_uInt16 SvxHlinkDlgMarkWnd::SetError ( sal_uInt16  nError)

Definition at line 105 of file hlmarkwn.cxx.

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

Friends And Related Function Documentation

friend class SvxHlmarkTreeLBox
friend

Definition at line 34 of file hlmarkwn.hxx.

Member Data Documentation

sal_uInt16 SvxHlinkDlgMarkWnd::mnError
private

Definition at line 38 of file hlmarkwn.hxx.

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

SvxHyperlinkTabPageBase* SvxHlinkDlgMarkWnd::mpParent
private

Definition at line 36 of file hlmarkwn.hxx.

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

Definition at line 40 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

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

Definition at line 41 of file hlmarkwn.hxx.

Referenced by SvxHlinkDlgMarkWnd().

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

Definition at line 43 of file hlmarkwn.hxx.

Referenced by ErrorChanged().

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

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