29 : GenericDialogController(pParent,
"cui/ui/namedialog.ui",
"NameDialog")
30 , m_xEdtName(m_xBuilder->weld_entry(
"name_entry"))
31 , m_xFtDescription(m_xBuilder->weld_label(
"description_label"))
32 , m_xBtnOK(m_xBuilder->weld_button(
"ok"))
45 if (m_aCheckNameHdl.IsSet())
46 bEnable = !m_xEdtName->get_text().isEmpty() && m_aCheckNameHdl.Call(*
this);
48 bEnable = !m_xEdtName->get_text().isEmpty();
49 m_xBtnOK->set_sensitive(bEnable);
54 if (!bEnable && m_aCheckNameTooltipHdl.IsSet())
55 rTip = m_aCheckNameTooltipHdl.Call(*
this);
56 m_xBtnOK->set_tooltip_text(rTip);
57 m_xEdtName->set_tooltip_text(rTip);
65 : GenericDialogController(pParent,
"cui/ui/objectnamedialog.ui",
"ObjectNameDialog")
66 , m_xEdtName(m_xBuilder->weld_entry(
"object_name_entry"))
67 , m_xBtnOK(m_xBuilder->weld_button(
"ok"))
90 const OUString& rDescription,
91 bool const isDecorative)
92 : GenericDialogController(pParent,
"cui/ui/objecttitledescdialog.ui",
"ObjectTitleDescDialog")
93 , m_xTitleFT(m_xBuilder->weld_label(
"object_title_label"))
94 , m_xEdtTitle(m_xBuilder->weld_entry(
"object_title_entry"))
95 , m_xDescriptionFT(m_xBuilder->weld_label(
"desc_label"))
96 , m_xEdtDescription(m_xBuilder->weld_text_view(
"desc_entry"))
97 , m_xDecorativeCB(m_xBuilder->weld_check_button(
"decorative"))
115 bool const bEnable(!m_xDecorativeCB->get_active());
116 m_xEdtTitle->set_sensitive(bEnable);
117 m_xTitleFT->set_sensitive(bEnable);
118 m_xEdtDescription->set_sensitive(bEnable);
119 m_xDescriptionFT->set_sensitive(bEnable);
#i68101# Dialog for editing Object Title and Description
std::unique_ptr< weld::CheckButton > m_xDecorativeCB
std::unique_ptr< weld::Entry > m_xEdtTitle
SvxObjectTitleDescDialog(weld::Window *pWindow, const OUString &rTitle, const OUString &rDesc, bool isDecorative)
std::unique_ptr< weld::TextView > m_xEdtDescription
Link< AbstractSvxNameDialog &, bool > aCheckNameHdl
IMPL_LINK_NOARG(SvxNameDialog, ModifyHdl, weld::Entry &, void)
#define LINK(Instance, Class, Member)