34 const OUString& rUIXMLDescription,
const OUString& rID,
36 : xBuilder(
Application::CreateBuilder(pParent, rUIXMLDescription))
37 , xContainer(xBuilder->weld_container(rID))
39 , bHasExchangeSupport(false)
60 return DeactivateRC::LeavePage;
89 bool bInvalidate = sOldPageId != rId;
93 if (pOldData && pOldData->
xPage)
109 if (rId != msCurrentPageId)
125 assert(
pData &&
"ID not known " );
127 pData->xPage->Reset( *pSet );
137 assert( !
maPageList.empty() &&
"no Pages registered " );
139 assert(
pData &&
"ID not known " );
141 if (
pData->bRefresh )
144 pData->bRefresh =
false;
178 if ( ( DeactivateRC::LeavePage & nRet ) &&
202 if ( nRet & DeactivateRC::RefreshSet )
208 if ( pObj->xPage.get() != pPage )
209 pObj->bRefresh =
true;
211 pObj->bRefresh =
false;
221 assert(
pData &&
"ID not known " );
236 SAL_WARN(
"cui.dialogs",
"Set does already exist!" );
249 bool bSet = (
pSet != nullptr );
265 if (
pData->xPage && !
pData->xPage->QueryClose() )
291 if (
pData->sId == rId )
Reference< XExecutableDialog > m_xDialog
IconChoicePage(weld::Container *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pItemSet)
const SfxItemSet & GetItemSet() const
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
virtual ~IconChoicePage()
bool HasExchangeSupport() const
virtual bool QueryClose()
virtual void ActivatePage(const SfxItemSet &)
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
IconChoicePageData * GetPageData(std::u16string_view rId)
void PageCreated(IconChoicePage &rPage)
WhichRangesContainer pRanges
const OUString & GetCurPageId() const
void SwitchPage(const OUString &rId)
std::vector< std::unique_ptr< IconChoicePageData > > maPageList
std::unique_ptr< SfxItemSet > pOutSet
std::unique_ptr< SfxItemSet > pExampleSet
void AddTabPage(const OUString &rId, CreatePage pCreateFunc)
static OUString msRememberedPageId
std::unique_ptr< weld::Button > m_xResetBtn
std::unique_ptr< weld::Notebook > m_xIconCtrl
void SetInputSet(const SfxItemSet *pInSet)
void SetCurPageId(const OUString &rId)
void ShowPage(const OUString &rId)
WhichRangesContainer GetInputRanges(const SfxItemPool &)
gives via map converted local slots if applicable
void DeActivatePageImpl()
IMPL_LINK_NOARG(SvxHpLinkDlg, ResetHdl, weld::Button &, void)
IMPL_LINK(SvxHpLinkDlg, ChosePageHdl_Impl, const OUString &, rId, void)
std::unique_ptr< IconChoicePage >(* CreatePage)(weld::Container *pParent, SvxHpLinkDlg *pDlg, const SfxItemSet *pAttrSet)
#define SAL_WARN(area, stream)
std::unique_ptr< sal_Int32[]> pData
Data-structure for pages in dialog.
std::unique_ptr< IconChoicePage > xPage
the TabPage itself
bool empty() const noexcept