diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-28 11:47:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-29 14:39:56 +0100 |
commit | b2d08d759ee755cb5722553e01fb6d007ac9ffbe (patch) | |
tree | 78f090a64d417f630d4a4cf20455bb1fd66d0b3d /sw | |
parent | d4116a4f66ce20b492c143606b67d5eb9ee2fc09 (diff) |
convert more queryboxes to new message box replacement
Change-Id: Ice41a86e17d5cbee784e239224b640ea4378ac36
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/wrtsh/wrtsh1.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx index f38099e4eb22..87e126b98a61 100644 --- a/sw/source/ui/wrtsh/wrtsh1.cxx +++ b/sw/source/ui/wrtsh/wrtsh1.cxx @@ -31,6 +31,7 @@ #include <math.h> #include <hintids.hxx> +#include <svx/hdft.hxx> #include <svx/svdview.hxx> #include <sot/factory.hxx> #include <svl/itemiter.hxx> @@ -1754,9 +1755,13 @@ void SwWrtShell::ChangeHeaderOrFooter( EndAllAction(); Window* pParent = &GetView().GetViewFrame()->GetWindow(); - bool bRet = RET_YES == QueryBox( pParent, ResId( RID_SVXQBX_DELETE_HEADFOOT, - DIALOG_MGR() ) ).Execute(); - bExecute = bRet; + short nResult; + if (bHeader) + nResult = DeleteHeaderDialog(pParent).Execute(); + else + nResult = DeleteFooterDialog(pParent).Execute(); + bExecute = nResult == RET_YES; + StartAllAction(); } if( bExecute ) |