LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SvxHpLinkDlg Class Reference

#include <cuihyperdlg.hxx>

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

Public Member Functions

 SvxHpLinkDlg (SfxBindings *pBindings, SfxChildWindow *pChild, weld::Window *pParent)
 
virtual ~SvxHpLinkDlg () override
 
void AddTabPage (const OUString &rId, CreatePage pCreateFunc)
 
void SetCurPageId (const OUString &rId)
 
const OUString & GetCurPageId () const
 
void ShowPage (const OUString &rId)
 
WhichRangesContainer GetInputRanges (const SfxItemPool &)
 gives via map converted local slots if applicable More...
 
void SetInputSet (const SfxItemSet *pInSet)
 
void Start ()
 
bool QueryClose ()
 
void PageCreated (IconChoicePage &rPage)
 
void SetPage (SvxHyperlinkItem const *pItem)
 
void SetReadOnlyMode (bool bReadOnly)
 
bool IsHTMLDoc () const
 
SfxDispatcherGetDispatcher () const
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 

Private Member Functions

 DECL_LINK (ChosePageHdl_Impl, const OUString &, void)
 
IconChoicePageDataGetPageData (std::u16string_view rId)
 
void SwitchPage (const OUString &rId)
 
 DECL_LINK (ResetHdl, weld::Button &, void)
 
 DECL_LINK (ClickOkHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ClickApplyHdl_Impl, weld::Button &, void)
 
IconChoicePageGetTabPage (std::u16string_view rPageId)
 
void ActivatePageImpl ()
 
void DeActivatePageImpl ()
 
void ResetPageImpl ()
 
void Activate () override
 
virtual void Close () override
 
void Apply ()
 

Private Attributes

std::vector< std::unique_ptr< IconChoicePageData > > maPageList
 
OUString msCurrentPageId
 
const SfxItemSetpSet
 
std::unique_ptr< SfxItemSetpOutSet
 
std::unique_ptr< SfxItemSetpExampleSet
 
WhichRangesContainer pRanges
 
SvxHlinkCtrl maCtrl
 Controller. More...
 
std::unique_ptr< SfxItemSetmpItemSet
 
bool mbGrabFocus: 1
 
bool mbIsHTMLDoc: 1
 
std::unique_ptr< weld::Notebookm_xIconCtrl
 
std::unique_ptr< weld::Buttonm_xOKBtn
 
std::unique_ptr< weld::Buttonm_xApplyBtn
 
std::unique_ptr< weld::Buttonm_xCancelBtn
 
std::unique_ptr< weld::Buttonm_xHelpBtn
 
std::unique_ptr< weld::Buttonm_xResetBtn
 

Static Private Attributes

static OUString msRememberedPageId
 

Friends

class IconChoicePage
 

Additional Inherited Members

- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 

Detailed Description

Definition at line 63 of file cuihyperdlg.hxx.

Constructor & Destructor Documentation

◆ SvxHpLinkDlg()

SvxHpLinkDlg::SvxHpLinkDlg ( SfxBindings pBindings,
SfxChildWindow pChild,
weld::Window pParent 
)

◆ ~SvxHpLinkDlg()

SvxHpLinkDlg::~SvxHpLinkDlg ( )
overridevirtual

Member Function Documentation

◆ Activate()

void SvxHpLinkDlg::Activate ( )
overrideprivatevirtual

◆ ActivatePageImpl()

void SvxHpLinkDlg::ActivatePageImpl ( )
private

Definition at line 135 of file iconcdlg.cxx.

References GetPageData(), m_xDialog, m_xResetBtn, maPageList, msCurrentPageId, msRememberedPageId, pData, pExampleSet, and pSet.

Referenced by ShowPage(), and Start().

◆ AddTabPage()

void SvxHpLinkDlg::AddTabPage ( const OUString &  rId,
CreatePage  pCreateFunc 
)

Definition at line 73 of file iconcdlg.cxx.

References m_xIconCtrl, maPageList, PageCreated(), and pSet.

Referenced by SvxHpLinkDlg().

◆ Apply()

void SvxHpLinkDlg::Apply ( )
private

◆ Close()

void SvxHpLinkDlg::Close ( )
overrideprivatevirtual

◆ DeActivatePageImpl()

void SvxHpLinkDlg::DeActivatePageImpl ( )
private

◆ DECL_LINK() [1/4]

SvxHpLinkDlg::DECL_LINK ( ChosePageHdl_Impl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [2/4]

SvxHpLinkDlg::DECL_LINK ( ClickApplyHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/4]

SvxHpLinkDlg::DECL_LINK ( ClickOkHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/4]

SvxHpLinkDlg::DECL_LINK ( ResetHdl  ,
weld::Button ,
void   
)
private

◆ GetCurPageId()

const OUString & SvxHpLinkDlg::GetCurPageId ( ) const
inline

Definition at line 121 of file cuihyperdlg.hxx.

References msCurrentPageId.

Referenced by Activate(), Apply(), SetPage(), and ShowPage().

◆ GetDispatcher()

SfxDispatcher * SvxHpLinkDlg::GetDispatcher ( ) const
inline

◆ GetInputRanges()

WhichRangesContainer SvxHpLinkDlg::GetInputRanges ( const SfxItemPool )

gives via map converted local slots if applicable

Definition at line 232 of file iconcdlg.cxx.

References WhichRangesContainer::empty(), SfxItemSet::GetRanges(), pRanges, pSet, and SAL_WARN.

Referenced by DeActivatePageImpl().

◆ GetPageData()

IconChoicePageData * SvxHpLinkDlg::GetPageData ( std::u16string_view  rId)
private

Definition at line 286 of file iconcdlg.cxx.

References maPageList, and pData.

Referenced by ActivatePageImpl(), DeActivatePageImpl(), GetTabPage(), ResetPageImpl(), and ShowPage().

◆ GetTabPage()

IconChoicePage * SvxHpLinkDlg::GetTabPage ( std::u16string_view  rPageId)
inlineprivate

Definition at line 102 of file cuihyperdlg.hxx.

References GetPageData(), and IconChoicePageData::xPage.

Referenced by Activate(), Apply(), and SetPage().

◆ IsHTMLDoc()

bool SvxHpLinkDlg::IsHTMLDoc ( ) const
inline

Definition at line 135 of file cuihyperdlg.hxx.

References mbIsHTMLDoc.

Referenced by SvxHyperlinkTabPageBase::GetDataFromCommonFields().

◆ PageCreated()

void SvxHpLinkDlg::PageCreated ( IconChoicePage rPage)

◆ QueryClose()

bool SvxHpLinkDlg::QueryClose ( )

Definition at line 260 of file iconcdlg.cxx.

References maPageList, and pData.

◆ ResetPageImpl()

void SvxHpLinkDlg::ResetPageImpl ( )
private

Definition at line 217 of file iconcdlg.cxx.

References GetPageData(), msCurrentPageId, pData, and pSet.

◆ SetCurPageId()

void SvxHpLinkDlg::SetCurPageId ( const OUString &  rId)
inline

Definition at line 120 of file cuihyperdlg.hxx.

References msCurrentPageId, and SwitchPage().

Referenced by ShowPage(), and SvxHpLinkDlg().

◆ SetInputSet()

void SvxHpLinkDlg::SetInputSet ( const SfxItemSet pInSet)

Definition at line 247 of file iconcdlg.cxx.

References SfxItemSet::GetPool(), SfxItemSet::GetRanges(), pExampleSet, pOutSet, and pSet.

Referenced by SvxHpLinkDlg().

◆ SetPage()

void SvxHpLinkDlg::SetPage ( SvxHyperlinkItem const *  pItem)

◆ SetReadOnlyMode()

void SvxHpLinkDlg::SetReadOnlyMode ( bool  bReadOnly)

Definition at line 279 of file cuihyperdlg.cxx.

References m_xOKBtn.

Referenced by SvxHlinkCtrl::StateChangedAtToolBoxControl().

◆ ShowPage()

void SvxHpLinkDlg::ShowPage ( const OUString &  rId)

◆ Start()

void SvxHpLinkDlg::Start ( )

Definition at line 274 of file iconcdlg.cxx.

References ActivatePageImpl(), msCurrentPageId, and SwitchPage().

Referenced by SvxHpLinkDlg().

◆ SwitchPage()

void SvxHpLinkDlg::SwitchPage ( const OUString &  rId)
private

Definition at line 306 of file iconcdlg.cxx.

References m_xIconCtrl.

Referenced by SetCurPageId(), and Start().

Friends And Related Function Documentation

◆ IconChoicePage

friend class IconChoicePage
friend

Definition at line 66 of file cuihyperdlg.hxx.

Member Data Documentation

◆ m_xApplyBtn

std::unique_ptr<weld::Button> SvxHpLinkDlg::m_xApplyBtn
private

Definition at line 87 of file cuihyperdlg.hxx.

Referenced by SvxHpLinkDlg().

◆ m_xCancelBtn

std::unique_ptr<weld::Button> SvxHpLinkDlg::m_xCancelBtn
private

Definition at line 88 of file cuihyperdlg.hxx.

Referenced by SvxHpLinkDlg().

◆ m_xHelpBtn

std::unique_ptr<weld::Button> SvxHpLinkDlg::m_xHelpBtn
private

Definition at line 89 of file cuihyperdlg.hxx.

Referenced by SvxHpLinkDlg().

◆ m_xIconCtrl

std::unique_ptr<weld::Notebook> SvxHpLinkDlg::m_xIconCtrl
private

Definition at line 85 of file cuihyperdlg.hxx.

Referenced by AddTabPage(), SvxHpLinkDlg(), and SwitchPage().

◆ m_xOKBtn

std::unique_ptr<weld::Button> SvxHpLinkDlg::m_xOKBtn
private

Definition at line 86 of file cuihyperdlg.hxx.

Referenced by SetReadOnlyMode(), and SvxHpLinkDlg().

◆ m_xResetBtn

std::unique_ptr<weld::Button> SvxHpLinkDlg::m_xResetBtn
private

Definition at line 90 of file cuihyperdlg.hxx.

Referenced by ActivatePageImpl(), and SvxHpLinkDlg().

◆ maCtrl

SvxHlinkCtrl SvxHpLinkDlg::maCtrl
private

Controller.

Definition at line 79 of file cuihyperdlg.hxx.

Referenced by ~SvxHpLinkDlg().

◆ maPageList

std::vector< std::unique_ptr<IconChoicePageData> > SvxHpLinkDlg::maPageList
private

◆ mbGrabFocus

bool SvxHpLinkDlg::mbGrabFocus
private

Definition at line 82 of file cuihyperdlg.hxx.

Referenced by Activate(), SvxHpLinkDlg(), and ~SvxHpLinkDlg().

◆ mbIsHTMLDoc

bool SvxHpLinkDlg::mbIsHTMLDoc
private

Definition at line 83 of file cuihyperdlg.hxx.

Referenced by IsHTMLDoc(), and SetPage().

◆ mpItemSet

std::unique_ptr<SfxItemSet> SvxHpLinkDlg::mpItemSet
private

Definition at line 80 of file cuihyperdlg.hxx.

Referenced by SvxHpLinkDlg(), and ~SvxHpLinkDlg().

◆ msCurrentPageId

OUString SvxHpLinkDlg::msCurrentPageId
private

◆ msRememberedPageId

OUString SvxHpLinkDlg::msRememberedPageId
staticprivate

Definition at line 72 of file cuihyperdlg.hxx.

Referenced by ActivatePageImpl(), and SvxHpLinkDlg().

◆ pExampleSet

std::unique_ptr<SfxItemSet> SvxHpLinkDlg::pExampleSet
private

Definition at line 76 of file cuihyperdlg.hxx.

Referenced by ActivatePageImpl(), DeActivatePageImpl(), SetInputSet(), and SvxHpLinkDlg().

◆ pOutSet

std::unique_ptr<SfxItemSet> SvxHpLinkDlg::pOutSet
private

Definition at line 75 of file cuihyperdlg.hxx.

Referenced by DeActivatePageImpl(), SetInputSet(), SvxHpLinkDlg(), and ~SvxHpLinkDlg().

◆ pRanges

WhichRangesContainer SvxHpLinkDlg::pRanges
private

Definition at line 77 of file cuihyperdlg.hxx.

Referenced by GetInputRanges(), and ~SvxHpLinkDlg().

◆ pSet

const SfxItemSet* SvxHpLinkDlg::pSet
private

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