23#include <sfx2/strings.hrc>
32 const OUString
aName(m_xColBox->get_active_text());
39 VclMessageType::Info, VclButtonsType::Ok,
45 if (
RET_YES == m_xQueryOverwriteBox->run())
54 OKClickHdl(*m_xOKBtn);
60 m_xOKBtn->set_sensitive(!rBox.get_active_text().replaceAll(
" ",
"").isEmpty());
64 : GenericDialogController(pParent,
"sfx/ui/newstyle.ui",
"CreateStyleDialog")
66 , m_eSearchFamily(eFam)
67 , m_xColBox(m_xBuilder->weld_entry_tree_view(
"stylegrid",
"stylename",
"styles"))
68 , m_xOKBtn(m_xBuilder->weld_button(
"ok"))
84 pStyle = xIter->Next();
Reference< XExecutableDialog > m_xDialog
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
std::unique_ptr< weld::Button > m_xOKBtn
SfxNewStyleDlg(weld::Widget *pParent, SfxStyleSheetBasePool &rPool, SfxStyleFamily eFam)
std::unique_ptr< weld::EntryTreeView > m_xColBox
virtual ~SfxNewStyleDlg() override
SfxStyleSheetBasePool & m_rPool
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator(SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
const OUString & GetName() const
bool IsUserDefined() const
#define LINK(Instance, Class, Member)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
IMPL_LINK(SfxNewStyleDlg, ModifyHdl, weld::ComboBox &, rBox, void)
IMPL_LINK_NOARG(SfxNewStyleDlg, OKClickHdl, weld::Button &, void)
OUString SfxResId(TranslateId aId)