2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-15 17:28:16 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2010-04-16 23:00:12 +02:00
|
|
|
#include <svtools/acceleratorexecute.hxx>
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2012-09-04 14:56:48 +02:00
|
|
|
#include <com/sun/star/frame/ModuleManager.hpp>
|
2012-12-14 12:58:00 +02:00
|
|
|
#include <com/sun/star/frame/Desktop.hpp>
|
2012-12-10 15:58:49 +02:00
|
|
|
#include <com/sun/star/ui/GlobalAcceleratorConfiguration.hpp>
|
2005-03-01 18:51:32 +00:00
|
|
|
#include <com/sun/star/ui/XUIConfigurationManager.hpp>
|
2014-01-29 18:58:18 +01:00
|
|
|
#include <com/sun/star/ui/theModuleUIConfigurationManagerSupplier.hpp>
|
2005-03-01 18:51:32 +00:00
|
|
|
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
|
2007-04-16 15:49:47 +00:00
|
|
|
#include <com/sun/star/awt/XTopWindow.hpp>
|
2004-09-20 09:11:17 +00:00
|
|
|
#include <com/sun/star/awt/KeyModifier.hpp>
|
|
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
|
|
#include <com/sun/star/beans/PropertyValue.hpp>
|
2006-02-07 09:24:45 +00:00
|
|
|
#include <com/sun/star/lang/DisposedException.hpp>
|
2012-06-01 15:15:25 +02:00
|
|
|
#include <com/sun/star/util/URLTransformer.hpp>
|
2007-04-16 15:49:47 +00:00
|
|
|
#include <toolkit/helper/vclunohelper.hxx>
|
2012-09-19 13:15:15 +02:00
|
|
|
#include <comphelper/processfactory.hxx>
|
2007-04-16 15:49:47 +00:00
|
|
|
|
|
|
|
#include <vcl/window.hxx>
|
|
|
|
#include <vcl/svapp.hxx>
|
2010-10-16 03:20:00 -05:00
|
|
|
#include <osl/mutex.hxx>
|
2007-04-16 15:49:47 +00:00
|
|
|
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
namespace svt
|
|
|
|
{
|
|
|
|
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
class SVT_DLLPRIVATE AsyncAccelExec
|
|
|
|
{
|
|
|
|
public:
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
/** creates a new instance of this class, which can be used
|
|
|
|
one times only!
|
|
|
|
|
|
|
|
This instance can be forced to execute it's internal set request
|
|
|
|
asynchronous. After that it deletes itself !
|
|
|
|
*/
|
|
|
|
static AsyncAccelExec* createOnShotInstance(const css::uno::Reference< css::frame::XDispatch >& xDispatch,
|
|
|
|
const css::util::URL& aURL );
|
|
|
|
|
|
|
|
void execAsync();
|
|
|
|
|
|
|
|
private:
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
/** @short allow creation of instances of this class
|
|
|
|
by using our factory only!
|
|
|
|
*/
|
|
|
|
SVT_DLLPRIVATE AsyncAccelExec(const css::uno::Reference< css::frame::XDispatch >& xDispatch,
|
|
|
|
const css::util::URL& aURL );
|
|
|
|
|
|
|
|
DECL_DLLPRIVATE_LINK(impl_ts_asyncCallback, void*);
|
|
|
|
|
|
|
|
private:
|
2015-04-28 23:09:13 +03:00
|
|
|
vcl::EventPoster m_aAsyncCallback;
|
2006-02-07 09:24:45 +00:00
|
|
|
css::uno::Reference< css::frame::XDispatch > m_xDispatch;
|
|
|
|
css::util::URL m_aURL;
|
|
|
|
};
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-20 09:11:17 +00:00
|
|
|
AcceleratorExecute::AcceleratorExecute()
|
|
|
|
: TMutexInit ( )
|
|
|
|
, m_aAsyncCallback(LINK(this, AcceleratorExecute, impl_ts_asyncCallback))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
AcceleratorExecute::~AcceleratorExecute()
|
|
|
|
{
|
|
|
|
// does nothing real
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-20 09:11:17 +00:00
|
|
|
AcceleratorExecute* AcceleratorExecute::createAcceleratorHelper()
|
|
|
|
{
|
|
|
|
AcceleratorExecute* pNew = new AcceleratorExecute();
|
|
|
|
return pNew;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2012-12-14 12:58:00 +02:00
|
|
|
void AcceleratorExecute::init(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
2004-09-20 09:11:17 +00:00
|
|
|
const css::uno::Reference< css::frame::XFrame >& xEnv )
|
|
|
|
{
|
|
|
|
// SAFE -> ----------------------------------
|
|
|
|
::osl::ResettableMutexGuard aLock(m_aLock);
|
|
|
|
|
|
|
|
// take over the uno service manager
|
2012-12-14 12:58:00 +02:00
|
|
|
m_xContext = rxContext;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// specify our internal dispatch provider
|
|
|
|
// frame or desktop?! => document or global config.
|
2014-05-08 11:42:56 +02:00
|
|
|
bool bDesktopIsUsed = false;
|
2012-12-14 12:58:00 +02:00
|
|
|
m_xDispatcher = css::uno::Reference< css::frame::XDispatchProvider >(xEnv, css::uno::UNO_QUERY);
|
2004-09-20 09:11:17 +00:00
|
|
|
if (!m_xDispatcher.is())
|
|
|
|
{
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ------------------------------
|
|
|
|
|
2012-12-14 12:58:00 +02:00
|
|
|
css::uno::Reference< css::frame::XDispatchProvider > xDispatcher(css::frame::Desktop::create(rxContext), css::uno::UNO_QUERY_THROW);
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// SAFE -> ------------------------------
|
|
|
|
aLock.reset();
|
|
|
|
|
|
|
|
m_xDispatcher = xDispatcher;
|
2014-05-08 11:42:56 +02:00
|
|
|
bDesktopIsUsed = true;
|
2004-09-20 09:11:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
|
|
|
|
// open all needed configuration objects
|
2005-03-01 18:51:32 +00:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg;
|
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xModuleCfg;
|
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xDocCfg ;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// global cfg
|
2012-12-14 12:58:00 +02:00
|
|
|
xGlobalCfg = css::ui::GlobalAcceleratorConfiguration::create(rxContext);
|
2004-09-20 09:11:17 +00:00
|
|
|
if (!bDesktopIsUsed)
|
|
|
|
{
|
|
|
|
// module cfg
|
2012-12-14 12:58:00 +02:00
|
|
|
xModuleCfg = AcceleratorExecute::st_openModuleConfig(rxContext, xEnv);
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// doc cfg
|
|
|
|
css::uno::Reference< css::frame::XController > xController;
|
|
|
|
css::uno::Reference< css::frame::XModel > xModel;
|
|
|
|
xController = xEnv->getController();
|
|
|
|
if (xController.is())
|
|
|
|
xModel = xController->getModel();
|
|
|
|
if (xModel.is())
|
|
|
|
xDocCfg = AcceleratorExecute::st_openDocConfig(xModel);
|
|
|
|
}
|
|
|
|
|
|
|
|
// SAFE -> ------------------------------
|
|
|
|
aLock.reset();
|
|
|
|
|
|
|
|
m_xGlobalCfg = xGlobalCfg;
|
|
|
|
m_xModuleCfg = xModuleCfg;
|
|
|
|
m_xDocCfg = xDocCfg ;
|
|
|
|
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-08-23 22:22:32 +03:00
|
|
|
bool AcceleratorExecute::execute(const vcl::KeyCode& aVCLKey)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
|
|
|
css::awt::KeyEvent aAWTKey = AcceleratorExecute::st_VCLKey2AWTKey(aVCLKey);
|
|
|
|
return execute(aAWTKey);
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-03-19 11:18:00 +02:00
|
|
|
bool AcceleratorExecute::execute(const css::awt::KeyEvent& aAWTKey)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString sCommand = impl_ts_findCommand(aAWTKey);
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2014-11-10 15:05:25 +01:00
|
|
|
// No Command found? Do nothing! User is not interested on any error handling .-)
|
2014-09-05 12:44:21 +02:00
|
|
|
// or for some reason m_xContext is NULL (which would crash impl_ts_getURLParser()
|
|
|
|
if (sCommand.isEmpty() || !m_xContext.is())
|
|
|
|
{
|
2014-03-19 11:18:00 +02:00
|
|
|
return false;
|
2014-09-05 12:44:21 +02:00
|
|
|
}
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// SAFE -> ----------------------------------
|
|
|
|
::osl::ResettableMutexGuard aLock(m_aLock);
|
|
|
|
|
2005-01-21 16:28:51 +00:00
|
|
|
css::uno::Reference< css::frame::XDispatchProvider > xProvider = m_xDispatcher;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
|
2005-01-21 16:28:51 +00:00
|
|
|
// convert command in URL structure
|
|
|
|
css::uno::Reference< css::util::XURLTransformer > xParser = impl_ts_getURLParser();
|
|
|
|
css::util::URL aURL;
|
|
|
|
aURL.Complete = sCommand;
|
|
|
|
xParser->parseStrict(aURL);
|
|
|
|
|
|
|
|
// ask for dispatch object
|
2013-04-07 12:06:47 +02:00
|
|
|
css::uno::Reference< css::frame::XDispatch > xDispatch = xProvider->queryDispatch(aURL, OUString(), 0);
|
2014-03-19 11:18:00 +02:00
|
|
|
bool bRet = xDispatch.is();
|
2006-07-19 16:06:13 +00:00
|
|
|
if ( bRet )
|
2005-01-21 16:28:51 +00:00
|
|
|
{
|
2006-02-07 09:24:45 +00:00
|
|
|
// Note: Such instance can be used one times only and destroy itself afterwards .-)
|
|
|
|
AsyncAccelExec* pExec = AsyncAccelExec::createOnShotInstance(xDispatch, aURL);
|
|
|
|
pExec->execAsync();
|
2005-01-21 16:28:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return bRet;
|
2004-09-20 09:11:17 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-08-23 22:22:32 +03:00
|
|
|
css::awt::KeyEvent AcceleratorExecute::st_VCLKey2AWTKey(const vcl::KeyCode& aVCLKey)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
|
|
|
css::awt::KeyEvent aAWTKey;
|
|
|
|
aAWTKey.Modifiers = 0;
|
|
|
|
aAWTKey.KeyCode = (sal_Int16)aVCLKey.GetCode();
|
|
|
|
|
|
|
|
if (aVCLKey.IsShift())
|
|
|
|
aAWTKey.Modifiers |= css::awt::KeyModifier::SHIFT;
|
|
|
|
if (aVCLKey.IsMod1())
|
|
|
|
aAWTKey.Modifiers |= css::awt::KeyModifier::MOD1;
|
|
|
|
if (aVCLKey.IsMod2())
|
|
|
|
aAWTKey.Modifiers |= css::awt::KeyModifier::MOD2;
|
2013-02-25 17:52:23 +01:00
|
|
|
if (aVCLKey.IsMod3())
|
2009-04-12 04:24:43 +00:00
|
|
|
aAWTKey.Modifiers |= css::awt::KeyModifier::MOD3;
|
2004-09-20 09:11:17 +00:00
|
|
|
return aAWTKey;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-08-23 22:22:32 +03:00
|
|
|
vcl::KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
2014-05-08 11:42:56 +02:00
|
|
|
bool bShift = ((aAWTKey.Modifiers & css::awt::KeyModifier::SHIFT) == css::awt::KeyModifier::SHIFT );
|
|
|
|
bool bMod1 = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD1 ) == css::awt::KeyModifier::MOD1 );
|
|
|
|
bool bMod2 = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD2 ) == css::awt::KeyModifier::MOD2 );
|
|
|
|
bool bMod3 = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD3 ) == css::awt::KeyModifier::MOD3 );
|
2010-11-05 10:31:15 +08:00
|
|
|
sal_uInt16 nKey = (sal_uInt16)aAWTKey.KeyCode;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2014-08-23 22:22:32 +03:00
|
|
|
return vcl::KeyCode(nKey, bShift, bMod1, bMod2, bMod3);
|
2004-09-20 09:11:17 +00:00
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString AcceleratorExecute::findCommand(const css::awt::KeyEvent& aKey)
|
2007-07-06 09:06:05 +00:00
|
|
|
{
|
|
|
|
return impl_ts_findCommand(aKey);
|
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString AcceleratorExecute::impl_ts_findCommand(const css::awt::KeyEvent& aKey)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
|
|
|
// SAFE -> ----------------------------------
|
|
|
|
::osl::ResettableMutexGuard aLock(m_aLock);
|
|
|
|
|
2005-03-01 18:51:32 +00:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg = m_xGlobalCfg;
|
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xModuleCfg = m_xModuleCfg;
|
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xDocCfg = m_xDocCfg ;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString sCommand;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if (xDocCfg.is())
|
|
|
|
sCommand = xDocCfg->getCommandByKeyEvent(aKey);
|
2012-01-13 19:13:55 -02:00
|
|
|
if (!sCommand.isEmpty())
|
2004-09-20 09:11:17 +00:00
|
|
|
return sCommand;
|
|
|
|
}
|
|
|
|
catch(const css::container::NoSuchElementException&)
|
|
|
|
{}
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if (xModuleCfg.is())
|
|
|
|
sCommand = xModuleCfg->getCommandByKeyEvent(aKey);
|
2012-01-13 19:13:55 -02:00
|
|
|
if (!sCommand.isEmpty())
|
2004-09-20 09:11:17 +00:00
|
|
|
return sCommand;
|
|
|
|
}
|
|
|
|
catch(const css::container::NoSuchElementException&)
|
|
|
|
{}
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if (xGlobalCfg.is())
|
|
|
|
sCommand = xGlobalCfg->getCommandByKeyEvent(aKey);
|
2012-01-13 19:13:55 -02:00
|
|
|
if (!sCommand.isEmpty())
|
2004-09-20 09:11:17 +00:00
|
|
|
return sCommand;
|
|
|
|
}
|
|
|
|
catch(const css::container::NoSuchElementException&)
|
|
|
|
{}
|
|
|
|
|
2008-05-30 06:33:46 +00:00
|
|
|
// fall back to functional key codes
|
|
|
|
if( aKey.Modifiers == 0 )
|
|
|
|
{
|
|
|
|
switch( aKey.KeyCode )
|
|
|
|
{
|
|
|
|
case com::sun::star::awt::Key::DELETE_TO_BEGIN_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToStartOfLine" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::DELETE_TO_END_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToEndOfLine" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::DELETE_TO_BEGIN_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToStartOfPara" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::DELETE_TO_END_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToEndOfPara" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::DELETE_WORD_BACKWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToStartOfWord" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::DELETE_WORD_FORWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:DelToEndOfWord" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::INSERT_LINEBREAK:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:InsertLinebreak" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::INSERT_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:InsertPara" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_WORD_BACKWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToPrevWord" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_WORD_FORWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToNextWord" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToStartOfLine" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_END_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToEndOfLine" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToStartOfPara" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_END_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToEndOfPara" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_DOCUMENT:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToStartOfDoc" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::MOVE_TO_END_OF_DOCUMENT:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:GoToEndOfDoc" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_BACKWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:CharLeftSel" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_FORWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:CharRightSel" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_WORD_BACKWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:WordLeftSel" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_WORD_FORWARD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:WordRightSel" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_WORD:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:SelectWord" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString();
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:SelectText" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:StartOfLineSel" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_END_OF_LINE:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:EndOfLineSel" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:StartOfParaSel" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_END_OF_PARAGRAPH:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:EndOfParaSel" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_DOCUMENT:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:StartOfDocumentSel" );
|
2009-01-02 15:26:18 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_TO_END_OF_DOCUMENT:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:EndOfDocumentSel" );
|
2008-05-30 06:33:46 +00:00
|
|
|
case com::sun::star::awt::Key::SELECT_ALL:
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString( ".uno:SelectAll" );
|
2008-05-30 06:33:46 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
return OUString();
|
2004-09-20 09:11:17 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2012-12-10 15:58:49 +02:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > AcceleratorExecute::st_openModuleConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
2004-09-20 09:11:17 +00:00
|
|
|
const css::uno::Reference< css::frame::XFrame >& xFrame)
|
|
|
|
{
|
2012-09-05 14:55:34 +02:00
|
|
|
css::uno::Reference< css::frame::XModuleManager2 > xModuleDetection(
|
2012-12-10 15:58:49 +02:00
|
|
|
css::frame::ModuleManager::create(rxContext));
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString sModule;
|
2004-09-20 09:11:17 +00:00
|
|
|
try
|
|
|
|
{
|
|
|
|
sModule = xModuleDetection->identify(xFrame);
|
|
|
|
}
|
2009-05-19 09:31:27 +00:00
|
|
|
catch(const css::uno::RuntimeException&rEx)
|
|
|
|
{ (void) rEx; throw; }
|
2004-09-20 09:11:17 +00:00
|
|
|
catch(const css::uno::Exception&)
|
2005-03-01 18:51:32 +00:00
|
|
|
{ return css::uno::Reference< css::ui::XAcceleratorConfiguration >(); }
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2005-03-01 18:51:32 +00:00
|
|
|
css::uno::Reference< css::ui::XModuleUIConfigurationManagerSupplier > xUISupplier(
|
2014-01-29 18:58:18 +01:00
|
|
|
css::ui::theModuleUIConfigurationManagerSupplier::get(rxContext) );
|
2004-09-20 09:11:17 +00:00
|
|
|
|
CWS-TOOLING: integrate CWS fwk103
2009-05-26 12:44:25 +0200 mst r272292 : #i100727#
- svtools/inc/svtools/parhtml.hxx, svtools/source/svhtml/parhtml.cxx:
+ fix warning: rename method to prevent overloading
2009-05-19 13:42:31 +0200 mav r272075 : #i101356# add comment
2009-05-19 10:56:24 +0200 mav r272062 : #i101356# register the singleton correctly
2009-05-19 10:25:42 +0200 mav r272060 : #i101356# register the singleton correctly
2009-05-18 12:48:48 +0200 mav r272013 : #i91306# fix the typo
2009-05-14 08:50:06 +0200 mav r271871 : #i101356# reduce the amount of macros
2009-05-13 13:26:08 +0200 mav r271858 : #i101356# reduce the amount of macros
2009-05-13 11:29:16 +0200 mav r271849 : #i101356# reduce the amount of macros
2009-05-12 12:09:42 +0200 mav r271815 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 12:03:20 +0200 mav r271814 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:58:48 +0200 mav r271813 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:53:05 +0200 mav r271812 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:48:36 +0200 mav r271810 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:43:45 +0200 mav r271809 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:39:38 +0200 mav r271808 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:37:38 +0200 mav r271806 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:33:58 +0200 mav r271805 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:30:01 +0200 mav r271804 : #i101356# allow to generate a small log if a document can not be stored
2009-05-06 17:43:38 +0200 mst r271607 : #i100727#
- svtools/source/svhtml/parhtml.cxx:
+ adapt code to renaming of HTML constants (sb107)
2009-05-05 11:14:18 +0200 mav r271507 : #i101222# avoid warning
2009-05-05 10:27:23 +0200 mav r271505 : #i101426# send the modified() notification only when the document can be modified
2009-05-05 10:25:07 +0200 mav r271504 : #i101426# send the modified() notification only when the document is modified
2009-05-05 08:42:48 +0200 mav r271497 : CWS-TOOLING: rebase CWS fwk103 to trunk@271427 (milestone: DEV300:m47)
2009-04-30 13:32:11 +0200 mav r271412 : #i100518# check the template folders quietly
2009-04-29 20:04:25 +0200 mst r271393 : - sw/source/filter/html/swhtml.cxx:
+ fix wrong initialization order in constructor
2009-04-28 12:28:46 +0200 mav r271319 : #i99142# set the error correctly
2009-04-28 08:44:48 +0200 mav r271305 : #i99050# clear hidden flag if necessary
2009-04-28 08:40:10 +0200 mav r271304 : #i99050# avoid crash
2009-04-22 07:40:11 +0200 mav r271056 : #i101093# lets not affect the performance
2009-04-15 09:30:47 +0200 cd r270820 : #i99771# Fix warnings for gcc 4.4
2009-04-15 09:19:52 +0200 cd r270819 : #i99771# Fix warnings for gcc 4.4
2009-04-15 08:42:34 +0200 cd r270817 : #i99771# Fix warnings for gcc 4.4
2009-04-14 14:31:01 +0200 mav r270768 : #i99493# fix typo
2009-04-01 12:45:43 +0200 mst r270317 : fix #i100727#
- svtools/inc/svtools/svparser.hxx, svtools/source/svrtf/svparser.cxx,
sfx2/inc/sfx2/docfile.hxx, sfx2/source/doc/{objmisc.cxx,docfile.cxx}:
+ move SvKeyValue stuff from sfx2 to svtools
- svtools/inc/svtools/parhtml.hxx, svtools/source/svhtml/parhtml.cxx,
sfx2/inc/sfx2/sfxhtml.hxx, sfx2/source/bastyp/sfxhtml.cxx:
+ move ParseMetaOptions() and GetEncodingByMIME() from SfxHTMLParser (sfx2)
to HTMLParser (svtools)
+ make HTMLParser::ParseMetaOptions() a virtual function
+ HTMLParser::ParseMetaOptions() calls GetExtendedCompatibilityTextEncoding()
+ new template method HTMLParser::AddMetaUserDefined()
- svtools/source/svhtml/makefile.mk:
+ enable exceptions for parhtml.cxx
- dbaccess/source/ui/misc/HtmlReader.cxx,
sc/source/filter/html/htmlpars.cxx:
+ remove encoding related code duplication
- sw/source/filter/html/{swhtml{.hxx,.cxx},htmlfld.cxx}:
+ new SwHTMLParser::AddMetaUserDefined() for import of
DOCINFO field subtypes INFO[1-4]
+ do not use DocumentInfo for import of DOCINFO field subtypes INFO[1-4]
2009-03-31 17:01:35 +0200 mav r270288 : #i91214# fix typo
2009-03-31 15:19:41 +0200 mav r270285 : #i100123# allow to turn OOo locking mechanics off
2009-03-31 15:00:36 +0200 mav r270284 : #i100123# allow to turn OOo locking mechanics off
2009-03-31 12:19:13 +0200 mav r270270 : #i100123# taking the lock file over throws no exception
2009-03-30 13:57:21 +0200 mav r270227 : #i100351# fix the typo
2009-03-30 13:47:26 +0200 mav r270225 : #i99885# let OK be default button
2009-03-29 19:38:55 +0200 mav r270190 : CWS-TOOLING: rebase CWS fwk103 to trunk@270033 (milestone: DEV300:m45)
2009-03-16 16:39:48 +0100 mav r269558 : #i93558# convert the attributes as well
2009-03-13 15:35:55 +0100 mav r269488 : #i93558# improve manifest.xml parsing
2009-03-13 08:47:00 +0100 mav r269454 : #i96205# allow to remove password on SaveAs
2009-03-12 13:36:07 +0100 mav r269398 : #i91306# show special error in case of shared document
2009-03-12 13:33:35 +0100 mav r269397 : #i91306# introduce the new error-message
2009-03-12 11:40:42 +0100 mst r269378 : fix #i90877#
- svtools/source/uno/unoevent.cxx:
+ use proper operator delete[]
2009-02-26 15:23:10 +0100 mav r268526 : #i91214# do not use ATL
2009-02-26 14:19:06 +0100 mav r268516 : #i98909# integrate the patch
2009-02-10 17:29:52 +0100 cd r267568 : #i98649# Make sure that we catch the NoSuchElementException when a module is not installed.
2009-06-16 16:15:54 +00:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xAccCfg;
|
|
|
|
try
|
|
|
|
{
|
|
|
|
css::uno::Reference< css::ui::XUIConfigurationManager > xUIManager = xUISupplier->getUIConfigurationManager(sModule);
|
2013-05-27 14:52:39 +02:00
|
|
|
xAccCfg = xUIManager->getShortCutManager();
|
CWS-TOOLING: integrate CWS fwk103
2009-05-26 12:44:25 +0200 mst r272292 : #i100727#
- svtools/inc/svtools/parhtml.hxx, svtools/source/svhtml/parhtml.cxx:
+ fix warning: rename method to prevent overloading
2009-05-19 13:42:31 +0200 mav r272075 : #i101356# add comment
2009-05-19 10:56:24 +0200 mav r272062 : #i101356# register the singleton correctly
2009-05-19 10:25:42 +0200 mav r272060 : #i101356# register the singleton correctly
2009-05-18 12:48:48 +0200 mav r272013 : #i91306# fix the typo
2009-05-14 08:50:06 +0200 mav r271871 : #i101356# reduce the amount of macros
2009-05-13 13:26:08 +0200 mav r271858 : #i101356# reduce the amount of macros
2009-05-13 11:29:16 +0200 mav r271849 : #i101356# reduce the amount of macros
2009-05-12 12:09:42 +0200 mav r271815 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 12:03:20 +0200 mav r271814 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:58:48 +0200 mav r271813 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:53:05 +0200 mav r271812 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:48:36 +0200 mav r271810 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:43:45 +0200 mav r271809 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:39:38 +0200 mav r271808 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:37:38 +0200 mav r271806 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:33:58 +0200 mav r271805 : #i101356# allow to generate a small log if a document can not be stored
2009-05-12 11:30:01 +0200 mav r271804 : #i101356# allow to generate a small log if a document can not be stored
2009-05-06 17:43:38 +0200 mst r271607 : #i100727#
- svtools/source/svhtml/parhtml.cxx:
+ adapt code to renaming of HTML constants (sb107)
2009-05-05 11:14:18 +0200 mav r271507 : #i101222# avoid warning
2009-05-05 10:27:23 +0200 mav r271505 : #i101426# send the modified() notification only when the document can be modified
2009-05-05 10:25:07 +0200 mav r271504 : #i101426# send the modified() notification only when the document is modified
2009-05-05 08:42:48 +0200 mav r271497 : CWS-TOOLING: rebase CWS fwk103 to trunk@271427 (milestone: DEV300:m47)
2009-04-30 13:32:11 +0200 mav r271412 : #i100518# check the template folders quietly
2009-04-29 20:04:25 +0200 mst r271393 : - sw/source/filter/html/swhtml.cxx:
+ fix wrong initialization order in constructor
2009-04-28 12:28:46 +0200 mav r271319 : #i99142# set the error correctly
2009-04-28 08:44:48 +0200 mav r271305 : #i99050# clear hidden flag if necessary
2009-04-28 08:40:10 +0200 mav r271304 : #i99050# avoid crash
2009-04-22 07:40:11 +0200 mav r271056 : #i101093# lets not affect the performance
2009-04-15 09:30:47 +0200 cd r270820 : #i99771# Fix warnings for gcc 4.4
2009-04-15 09:19:52 +0200 cd r270819 : #i99771# Fix warnings for gcc 4.4
2009-04-15 08:42:34 +0200 cd r270817 : #i99771# Fix warnings for gcc 4.4
2009-04-14 14:31:01 +0200 mav r270768 : #i99493# fix typo
2009-04-01 12:45:43 +0200 mst r270317 : fix #i100727#
- svtools/inc/svtools/svparser.hxx, svtools/source/svrtf/svparser.cxx,
sfx2/inc/sfx2/docfile.hxx, sfx2/source/doc/{objmisc.cxx,docfile.cxx}:
+ move SvKeyValue stuff from sfx2 to svtools
- svtools/inc/svtools/parhtml.hxx, svtools/source/svhtml/parhtml.cxx,
sfx2/inc/sfx2/sfxhtml.hxx, sfx2/source/bastyp/sfxhtml.cxx:
+ move ParseMetaOptions() and GetEncodingByMIME() from SfxHTMLParser (sfx2)
to HTMLParser (svtools)
+ make HTMLParser::ParseMetaOptions() a virtual function
+ HTMLParser::ParseMetaOptions() calls GetExtendedCompatibilityTextEncoding()
+ new template method HTMLParser::AddMetaUserDefined()
- svtools/source/svhtml/makefile.mk:
+ enable exceptions for parhtml.cxx
- dbaccess/source/ui/misc/HtmlReader.cxx,
sc/source/filter/html/htmlpars.cxx:
+ remove encoding related code duplication
- sw/source/filter/html/{swhtml{.hxx,.cxx},htmlfld.cxx}:
+ new SwHTMLParser::AddMetaUserDefined() for import of
DOCINFO field subtypes INFO[1-4]
+ do not use DocumentInfo for import of DOCINFO field subtypes INFO[1-4]
2009-03-31 17:01:35 +0200 mav r270288 : #i91214# fix typo
2009-03-31 15:19:41 +0200 mav r270285 : #i100123# allow to turn OOo locking mechanics off
2009-03-31 15:00:36 +0200 mav r270284 : #i100123# allow to turn OOo locking mechanics off
2009-03-31 12:19:13 +0200 mav r270270 : #i100123# taking the lock file over throws no exception
2009-03-30 13:57:21 +0200 mav r270227 : #i100351# fix the typo
2009-03-30 13:47:26 +0200 mav r270225 : #i99885# let OK be default button
2009-03-29 19:38:55 +0200 mav r270190 : CWS-TOOLING: rebase CWS fwk103 to trunk@270033 (milestone: DEV300:m45)
2009-03-16 16:39:48 +0100 mav r269558 : #i93558# convert the attributes as well
2009-03-13 15:35:55 +0100 mav r269488 : #i93558# improve manifest.xml parsing
2009-03-13 08:47:00 +0100 mav r269454 : #i96205# allow to remove password on SaveAs
2009-03-12 13:36:07 +0100 mav r269398 : #i91306# show special error in case of shared document
2009-03-12 13:33:35 +0100 mav r269397 : #i91306# introduce the new error-message
2009-03-12 11:40:42 +0100 mst r269378 : fix #i90877#
- svtools/source/uno/unoevent.cxx:
+ use proper operator delete[]
2009-02-26 15:23:10 +0100 mav r268526 : #i91214# do not use ATL
2009-02-26 14:19:06 +0100 mav r268516 : #i98909# integrate the patch
2009-02-10 17:29:52 +0100 cd r267568 : #i98649# Make sure that we catch the NoSuchElementException when a module is not installed.
2009-06-16 16:15:54 +00:00
|
|
|
}
|
|
|
|
catch(const css::container::NoSuchElementException&)
|
|
|
|
{}
|
2004-09-20 09:11:17 +00:00
|
|
|
return xAccCfg;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2005-03-01 18:51:32 +00:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > AcceleratorExecute::st_openDocConfig(const css::uno::Reference< css::frame::XModel >& xModel)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
2007-05-22 18:34:17 +00:00
|
|
|
css::uno::Reference< css::ui::XAcceleratorConfiguration > xAccCfg;
|
|
|
|
css::uno::Reference< css::ui::XUIConfigurationManagerSupplier > xUISupplier(xModel, css::uno::UNO_QUERY);
|
|
|
|
if (xUISupplier.is())
|
|
|
|
{
|
|
|
|
css::uno::Reference< css::ui::XUIConfigurationManager > xUIManager = xUISupplier->getUIConfigurationManager();
|
2013-05-27 14:52:39 +02:00
|
|
|
xAccCfg = xUIManager->getShortCutManager();
|
2007-05-22 18:34:17 +00:00
|
|
|
}
|
2004-09-20 09:11:17 +00:00
|
|
|
return xAccCfg;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-20 09:11:17 +00:00
|
|
|
css::uno::Reference< css::util::XURLTransformer > AcceleratorExecute::impl_ts_getURLParser()
|
|
|
|
{
|
|
|
|
// SAFE -> ----------------------------------
|
|
|
|
::osl::ResettableMutexGuard aLock(m_aLock);
|
|
|
|
|
|
|
|
if (m_xURLParser.is())
|
|
|
|
return m_xURLParser;
|
2012-12-14 12:58:00 +02:00
|
|
|
css::uno::Reference< css::uno::XComponentContext > xContext = m_xContext;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
|
2012-12-14 12:58:00 +02:00
|
|
|
css::uno::Reference< css::util::XURLTransformer > xParser = css::util::URLTransformer::create( xContext );
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
// SAFE -> ----------------------------------
|
|
|
|
aLock.reset();
|
|
|
|
m_xURLParser = xParser;
|
|
|
|
aLock.clear();
|
|
|
|
// <- SAFE ----------------------------------
|
|
|
|
|
|
|
|
return xParser;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
IMPL_LINK_NOARG(AcceleratorExecute, impl_ts_asyncCallback)
|
2004-09-20 09:11:17 +00:00
|
|
|
{
|
2006-02-07 09:24:45 +00:00
|
|
|
// replaced by AsyncAccelExec!
|
|
|
|
return 0;
|
|
|
|
}
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
AsyncAccelExec::AsyncAccelExec(const css::uno::Reference< css::frame::XDispatch >& xDispatch,
|
|
|
|
const css::util::URL& aURL )
|
|
|
|
: m_aAsyncCallback(LINK(this, AsyncAccelExec, impl_ts_asyncCallback))
|
|
|
|
, m_xDispatch (xDispatch )
|
|
|
|
, m_aURL (aURL )
|
|
|
|
{
|
|
|
|
}
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
AsyncAccelExec* AsyncAccelExec::createOnShotInstance(const css::uno::Reference< css::frame::XDispatch >& xDispatch,
|
|
|
|
const css::util::URL& aURL )
|
|
|
|
{
|
|
|
|
AsyncAccelExec* pExec = new AsyncAccelExec(xDispatch, aURL);
|
|
|
|
return pExec;
|
|
|
|
}
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2006-02-07 09:24:45 +00:00
|
|
|
void AsyncAccelExec::execAsync()
|
|
|
|
{
|
|
|
|
m_aAsyncCallback.Post(0);
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2015-05-10 11:24:40 +02:00
|
|
|
IMPL_LINK_NOARG(AsyncAccelExec, impl_ts_asyncCallback)
|
2006-02-07 09:24:45 +00:00
|
|
|
{
|
|
|
|
if (! m_xDispatch.is())
|
|
|
|
return 0;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
2005-01-21 16:28:51 +00:00
|
|
|
try
|
|
|
|
{
|
2006-02-07 09:24:45 +00:00
|
|
|
m_xDispatch->dispatch(m_aURL, css::uno::Sequence< css::beans::PropertyValue >());
|
2005-01-21 16:28:51 +00:00
|
|
|
}
|
2006-02-07 09:24:45 +00:00
|
|
|
catch(const css::lang::DisposedException&)
|
|
|
|
{}
|
2009-06-03 11:26:39 +00:00
|
|
|
catch(const css::uno::RuntimeException& )
|
|
|
|
{ throw; }
|
2005-01-21 16:28:51 +00:00
|
|
|
catch(const css::uno::Exception&)
|
2006-02-07 09:24:45 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
delete this;
|
2004-09-20 09:11:17 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace svt
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|