From 702b981d9a9bd079a98660153747aee7337424fa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 25 Aug 2014 08:54:32 +0100 Subject: QueryBox MSG_QUERY_OPENASTEMPLATE -> MessageDialog + string Change-Id: I031a145ca62e3bf7e74b9d447ff8bb041974daa6 --- sfx2/source/dialog/newstyle.cxx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'sfx2/source/dialog/newstyle.cxx') diff --git a/sfx2/source/dialog/newstyle.cxx b/sfx2/source/dialog/newstyle.cxx index b2927b692375..56ae0e9c1aca 100644 --- a/sfx2/source/dialog/newstyle.cxx +++ b/sfx2/source/dialog/newstyle.cxx @@ -50,8 +50,6 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl ) return 0; } - - IMPL_LINK_INLINE_START( SfxNewStyleDlg, ModifyHdl, ComboBox *, pBox ) { m_pOKBtn->Enable( !comphelper::string::remove(pBox->GetText(), ' ').isEmpty() ); @@ -59,16 +57,11 @@ IMPL_LINK_INLINE_START( SfxNewStyleDlg, ModifyHdl, ComboBox *, pBox ) } IMPL_LINK_INLINE_END( SfxNewStyleDlg, ModifyHdl, ComboBox *, pBox ) -// CTOR / DTOR ----------------------------------------------------------- - -SfxNewStyleDlg::SfxNewStyleDlg( Window* pParent, SfxStyleSheetBasePool& rInPool ) : - - ModalDialog( pParent, "CreateStyleDialog", "sfx/ui/newstyle.ui" ), - - aQueryOverwriteBox ( this, SfxResId( MSG_OVERWRITE ) ), - - rPool( rInPool ) - +SfxNewStyleDlg::SfxNewStyleDlg( Window* pParent, SfxStyleSheetBasePool& rInPool ) + : ModalDialog(pParent, "CreateStyleDialog", "sfx/ui/newstyle.ui") + , aQueryOverwriteBox(this, SfxResId(STR_QUERY_OVERWRITE), + VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO) + , rPool(rInPool) { get(m_pColBox, "stylename"); m_pColBox->set_width_request(m_pColBox->approximate_char_width() * 25); @@ -87,8 +80,6 @@ SfxNewStyleDlg::SfxNewStyleDlg( Window* pParent, SfxStyleSheetBasePool& rInPool } } - - SfxNewStyleDlg::~SfxNewStyleDlg() { } -- cgit