summaryrefslogtreecommitdiff
path: root/configmgr/source/components.cxx
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-11-13 16:02:09 +0100
committersb <sb@openoffice.org>2009-11-13 16:02:09 +0100
commitdcf8cfd03003efc717a119edf02254548bebdd55 (patch)
treebc1e6214e079bc78bcebf2c17f0661157d514711 /configmgr/source/components.cxx
parentfd4729559ca09ddc4cf5400796d2766b85935513 (diff)
sb111: #i101955# cleaned up configmgr::update interface
Diffstat (limited to 'configmgr/source/components.cxx')
-rw-r--r--configmgr/source/components.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 7b287bafb0..c374dabcab 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -204,25 +204,31 @@ void Components::writeModifications() {
writeModFile(*this, getModificationFileUrl(), data_);
}
-void Components::insertXcsFile(int layer, rtl::OUString const & fileUri) {
+void Components::insertExtensionXcsFile(
+ bool shared, rtl::OUString const & fileUri)
+{
try {
- parseXcsFile(fileUri, layer, &data_);
+ parseXcsFile(fileUri, shared ? 9 : 13, &data_);
} catch (css::container::NoSuchElementException & e) {
throw css::uno::RuntimeException(
(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("insertXcsFile does not exist: ")) +
+ RTL_CONSTASCII_USTRINGPARAM(
+ "insertExtensionXcsFile does not exist: ")) +
e.Message),
css::uno::Reference< css::uno::XInterface >());
}
}
-void Components::insertXcuFile(int layer, rtl::OUString const & fileUri) {
+void Components::insertExtensionXcuFile(
+ bool shared, rtl::OUString const & fileUri)
+{
try {
- parseXcuFile(fileUri, layer + 1, &data_);
+ parseXcuFile(fileUri, shared ? 10 : 14, &data_);
} catch (css::container::NoSuchElementException & e) {
throw css::uno::RuntimeException(
(rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("insertXcuFile does not exist: ")) +
+ RTL_CONSTASCII_USTRINGPARAM(
+ "insertExtensionXcuFile does not exist: ")) +
e.Message),
css::uno::Reference< css::uno::XInterface >());
}