diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-10 17:19:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-14 11:43:51 +0100 |
commit | 9237a905fa5f2b67db73c15847eff203a258c2b4 (patch) | |
tree | bf213e7f3fd7322ee032af9fa648d04c99faaba1 /sfx2/source/dialog/newstyle.cxx | |
parent | 34f6b7f4529cc5a3b0e286fbd7318c2b7bf9b132 (diff) |
weld SvxCharNamePage
Change-Id: Ia54a5ac4fe4a11b7c03508c336193bb52c616e7f
Diffstat (limited to 'sfx2/source/dialog/newstyle.cxx')
-rw-r--r-- | sfx2/source/dialog/newstyle.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/dialog/newstyle.cxx b/sfx2/source/dialog/newstyle.cxx index 38cd472c4d65..24d0f570ad3c 100644 --- a/sfx2/source/dialog/newstyle.cxx +++ b/sfx2/source/dialog/newstyle.cxx @@ -29,7 +29,7 @@ IMPL_LINK_NOARG(SfxNewStyleDlg, OKClickHdl, weld::Button&, void) { - const OUString aName(m_xColBox->get_text()); + const OUString aName(m_xColBox->get_active_text()); SfxStyleSheetBase* pStyle = m_rPool.Find(aName, m_rPool.GetSearchFamily()); if ( pStyle ) { @@ -54,20 +54,21 @@ IMPL_LINK_NOARG(SfxNewStyleDlg, OKHdl, weld::TreeView&, void) OKClickHdl(*m_xOKBtn); } -IMPL_LINK(SfxNewStyleDlg, ModifyHdl, weld::Entry&, rBox, void) +IMPL_LINK(SfxNewStyleDlg, ModifyHdl, weld::ComboBoxText&, rBox, void) { - m_xOKBtn->set_sensitive(!rBox.get_text().replaceAll(" ", "").isEmpty()); + m_xOKBtn->set_sensitive(!rBox.get_active_text().replaceAll(" ", "").isEmpty()); } SfxNewStyleDlg::SfxNewStyleDlg(weld::Window* pParent, SfxStyleSheetBasePool& rInPool) : GenericDialogController(pParent, "sfx/ui/newstyle.ui", "CreateStyleDialog") , m_rPool(rInPool) - , m_xColBox(m_xBuilder->weld_entry_tree_view("stylename", "styles")) + , m_xColBox(m_xBuilder->weld_entry_tree_view("stylegrid", "stylename", "styles")) , m_xOKBtn(m_xBuilder->weld_button("ok")) , m_xQueryOverwriteBox(Application::CreateMessageDialog(m_xDialog.get(), VclMessageType::Question, VclButtonsType::YesNo, SfxResId(STR_QUERY_OVERWRITE))) { - m_xColBox->set_size_request_by_digits_rows(20, 8); + m_xColBox->set_entry_width_chars(20); + m_xColBox->set_height_request_by_rows(8); m_xOKBtn->connect_clicked(LINK(this, SfxNewStyleDlg, OKClickHdl)); m_xColBox->connect_changed(LINK(this, SfxNewStyleDlg, ModifyHdl)); |