diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 08:54:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 12:27:52 +0100 |
commit | 702b981d9a9bd079a98660153747aee7337424fa (patch) | |
tree | d04bcd66371518641b02403c6ac44122015ac6e2 /sfx2/source/dialog/newstyle.cxx | |
parent | 8ab6621cac3a43acfb61222dbf434df496230b36 (diff) |
QueryBox MSG_QUERY_OPENASTEMPLATE -> MessageDialog + string
Change-Id: I031a145ca62e3bf7e74b9d447ff8bb041974daa6
Diffstat (limited to 'sfx2/source/dialog/newstyle.cxx')
-rw-r--r-- | sfx2/source/dialog/newstyle.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
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() { } |