From 201778889feeb02085e2a6a90870b51e18c00714 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 4 Apr 2003 15:39:39 +0000 Subject: [PATCH] INTEGRATION: CWS xmlfilter01 (1.29.112); FILE MERGED 2003/03/23 16:42:54 cl 1.29.112.1: #108138# added menu entry for xslt filter settings dialog --- sw/source/ui/shells/textsh1.cxx | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx index 0578aef0d0ab..25878a04df3d 100644 --- a/sw/source/ui/shells/textsh1.cxx +++ b/sw/source/ui/shells/textsh1.cxx @@ -2,9 +2,9 @@ * * $RCSfile: textsh1.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: os $ $Date: 2002-11-27 08:58:58 $ + * last change: $Author: hr $ $Date: 2003-04-04 16:39:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,6 +59,13 @@ * ************************************************************************/ +#ifndef _COM_SUN_STAR_UI_DIALOGS_XEXECUTABLEDIALOG_HPP_ +#include +#endif +#ifndef _COMPHELPER_PROCESSFACTORY_HXX_ +#include +#endif + #ifdef PRECOMPILED #include "ui_pch.hxx" #endif @@ -1150,6 +1157,24 @@ void SwTextShell::Execute(SfxRequest &rReq) rWrtSh.ClickToINetAttr((const SwFmtINetFmt&)rItem, URLLOAD_NOFILTER); } } + + break; + + case SID_OPEN_XML_FILTERSETTINGS: + { + try + { + com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance(rtl::OUString::createFromAscii("com.sun.star.comp.ui.XSLTFilterDialog")), com::sun::star::uno::UNO_QUERY); + if( xDialog.is() ) + { + xDialog->execute(); + } + } + catch( ::com::sun::star::uno::Exception& ) + { + } + rReq.Ignore (); + } break; default: ASSERT(!this, falscher Dispatcher);