diff options
author | Michaël Lefèvre <lefevre00@yahoo.fr> | 2015-02-03 22:18:17 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-02-05 11:12:02 +0000 |
commit | 71c49bcfa0677f013684030defbf5ead21695d85 (patch) | |
tree | a3c17dc153467b00fe14f0298397301b2dffa4d6 /sw/source/uibase/uiview/view0.cxx | |
parent | 0473818b3ebd8446a40cffa6a83b985dc3d9d1a0 (diff) |
tdf#60739 code factorisation
Limit duplication for SfxRequest FN_NUMBERING_OUTLINE_DLG in sw shells
Change-Id: Ibbf58480232f3b393d13548508b7cdbc98690847
Reviewed-on: https://gerrit.libreoffice.org/14313
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/uiview/view0.cxx')
-rw-r--r-- | sw/source/uibase/uiview/view0.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index a821f04e3609..1c7bf5cbecce 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -79,6 +79,7 @@ using namespace ::com::sun::star; #include <unomid.h> #include <boost/scoped_ptr.hpp> #include "swabstdlg.hxx" +#include "misc.hrc" SFX_IMPL_NAMED_VIEWFACTORY(SwView, "Default") { @@ -605,4 +606,16 @@ void SwView::ExecFormatFootnote() pDlg->Execute(); } +void SwView::ExecNumberingOutline(SfxItemPool & rPool) +{ + SfxItemSet aTmp(rPool, FN_PARAM_1, FN_PARAM_1); + SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); + OSL_ENSURE(pFact, "Dialog creation failed!"); + boost::scoped_ptr<SfxAbstractTabDialog> pDlg(pFact->CreateSwTabDialog( DLG_TAB_OUTLINE, + GetWindow(), &aTmp, GetWrtShell())); + OSL_ENSURE(pDlg, "Dialog creation failed!"); + pDlg->Execute(); + pDlg.reset(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |