2009-07-24 16:56:06 +02:00
|
|
|
/*************************************************************************
|
2010-02-25 15:59:15 +01:00
|
|
|
*
|
2009-07-24 16:56:06 +02:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
2010-02-25 15:59:15 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2009-07-24 16:56:06 +02:00
|
|
|
*
|
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
*
|
|
|
|
* This file is part of OpenOffice.org.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2010-02-25 15:59:15 +01:00
|
|
|
*
|
2009-07-24 16:56:06 +02:00
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "precompiled_configmgr.hxx"
|
|
|
|
#include "sal/config.h"
|
|
|
|
|
|
|
|
#include "configmgr/update.hxx"
|
|
|
|
#include "osl/mutex.hxx"
|
2009-12-02 14:57:12 +01:00
|
|
|
#include "rtl/ref.hxx"
|
2009-07-24 16:56:06 +02:00
|
|
|
#include "rtl/ustring.hxx"
|
|
|
|
|
2009-12-02 14:57:12 +01:00
|
|
|
#include "broadcaster.hxx"
|
2009-07-24 16:56:06 +02:00
|
|
|
#include "components.hxx"
|
|
|
|
#include "lock.hxx"
|
2009-12-02 14:57:12 +01:00
|
|
|
#include "modifications.hxx"
|
|
|
|
#include "rootaccess.hxx"
|
2009-07-24 16:56:06 +02:00
|
|
|
|
|
|
|
namespace configmgr {
|
|
|
|
|
|
|
|
namespace update {
|
|
|
|
|
2009-11-13 16:02:09 +01:00
|
|
|
void insertExtensionXcsFile(bool shared, rtl::OUString const & fileUri) {
|
2009-07-24 16:56:06 +02:00
|
|
|
osl::MutexGuard g(lock);
|
2009-11-13 16:02:09 +01:00
|
|
|
Components::getSingleton().insertExtensionXcsFile(shared, fileUri);
|
2009-07-24 16:56:06 +02:00
|
|
|
}
|
|
|
|
|
2009-11-13 16:02:09 +01:00
|
|
|
void insertExtensionXcuFile(bool shared, rtl::OUString const & fileUri) {
|
2009-12-02 14:57:12 +01:00
|
|
|
Broadcaster bc;
|
|
|
|
{
|
|
|
|
osl::MutexGuard g(lock);
|
|
|
|
Modifications mods;
|
|
|
|
Components::getSingleton().insertExtensionXcuFile(
|
|
|
|
shared, fileUri, &mods);
|
|
|
|
Components::getSingleton().initGlobalBroadcaster(
|
|
|
|
mods, rtl::Reference< RootAccess >(), &bc);
|
|
|
|
}
|
|
|
|
bc.send();
|
2009-07-24 16:56:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|