components.cxx (3a7cf181) components.cxx (910823ae)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 501 unchanged lines hidden (view full) ---

510 rtl::OUString(
511 RTL_CONSTASCII_USTRINGPARAM(
512 "$OOO_BASE_DIR/share/registry/modules"))));
513 parseResLayer(
514 3,
515 expand(
516 rtl::OUString(
517 RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/share/registry"))));
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 501 unchanged lines hidden (view full) ---

510 rtl::OUString(
511 RTL_CONSTASCII_USTRINGPARAM(
512 "$OOO_BASE_DIR/share/registry/modules"))));
513 parseResLayer(
514 3,
515 expand(
516 rtl::OUString(
517 RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/share/registry"))));
518 parseXcsXcuLayer(
519 4,
520 expand(
521 rtl::OUString(
522 RTL_CONSTASCII_USTRINGPARAM(
523 "$BRAND_BASE_DIR/share/registry"))));
524 parseModuleLayer(
525 6,
526 expand(
527 rtl::OUString(
528 RTL_CONSTASCII_USTRINGPARAM(
529 "$BRAND_BASE_DIR/share/registry/modules"))));
530 parseXcsXcuIniLayer(
518 parseXcsXcuIniLayer(
531 7,
532 expand(
533 rtl::OUString(
534 RTL_CONSTASCII_USTRINGPARAM(
535 "${$OOO_BASE_DIR/program/" SAL_CONFIGFILE("uno")
536 ":BUNDLED_EXTENSIONS_USER}/registry/"
537 "com.sun.star.comp.deployment.configuration."
538 "PackageRegistryBackend/configmgr.ini"))),

--- 285 unchanged lines hidden (view full) ---

824 layer, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".xcu")),
825 &parseXcuFile, resUrl, false);
826}
827
828rtl::OUString Components::getModificationFileUrl() const {
829 return expand(
830 rtl::OUString(
831 RTL_CONSTASCII_USTRINGPARAM(
519 7,
520 expand(
521 rtl::OUString(
522 RTL_CONSTASCII_USTRINGPARAM(
523 "${$OOO_BASE_DIR/program/" SAL_CONFIGFILE("uno")
524 ":BUNDLED_EXTENSIONS_USER}/registry/"
525 "com.sun.star.comp.deployment.configuration."
526 "PackageRegistryBackend/configmgr.ini"))),

--- 285 unchanged lines hidden (view full) ---

812 layer, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".xcu")),
813 &parseXcuFile, resUrl, false);
814}
815
816rtl::OUString Components::getModificationFileUrl() const {
817 return expand(
818 rtl::OUString(
819 RTL_CONSTASCII_USTRINGPARAM(
832 "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
820 "${$OOO_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
833 ":UserInstallation}/user/registrymodifications.xcu")));
834}
835
836void Components::parseModificationLayer() {
837 try {
838 parseFileLeniently(
839 &parseXcuFile, getModificationFileUrl(), Data::NO_LAYER, data_, 0,
840 0, 0);

--- 4 unchanged lines hidden (view full) ---

845 // longer relevant, probably OOo 4; also see hack for xsi namespace in
846 // xmlreader::XmlReader::registerNamespaceIri):
847 parseFiles(
848 Data::NO_LAYER, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".xcu")),
849 &parseXcuFile,
850 expand(
851 rtl::OUString(
852 RTL_CONSTASCII_USTRINGPARAM(
821 ":UserInstallation}/user/registrymodifications.xcu")));
822}
823
824void Components::parseModificationLayer() {
825 try {
826 parseFileLeniently(
827 &parseXcuFile, getModificationFileUrl(), Data::NO_LAYER, data_, 0,
828 0, 0);

--- 4 unchanged lines hidden (view full) ---

833 // longer relevant, probably OOo 4; also see hack for xsi namespace in
834 // xmlreader::XmlReader::registerNamespaceIri):
835 parseFiles(
836 Data::NO_LAYER, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".xcu")),
837 &parseXcuFile,
838 expand(
839 rtl::OUString(
840 RTL_CONSTASCII_USTRINGPARAM(
853 "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
841 "${$OOO_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap")
854 ":UserInstallation}/user/registry/data"))),
855 false);
856 }
857}
858
859}
842 ":UserInstallation}/user/registry/data"))),
843 false);
844 }
845}
846
847}