diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /sc/util | |
parent | Initial commit. (diff) | |
download | libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sc/util')
-rwxr-xr-x | sc/util/number-defines-consecutively.awk | 56 | ||||
-rw-r--r-- | sc/util/sc.component | 114 | ||||
-rw-r--r-- | sc/util/scd.component | 30 | ||||
-rw-r--r-- | sc/util/scfilt.component | 35 | ||||
-rw-r--r-- | sc/util/vbaobj.component | 52 |
5 files changed, 287 insertions, 0 deletions
diff --git a/sc/util/number-defines-consecutively.awk b/sc/util/number-defines-consecutively.awk new file mode 100755 index 000000000..6712490ea --- /dev/null +++ b/sc/util/number-defines-consecutively.awk @@ -0,0 +1,56 @@ +#!/usr/bin/awk -f +# +# -*- Mode: awk; tab-width: 4; indent-tabs-mode: t -*- +# +# 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/. +# + +# Consecutively number a series of defines, for example sc/inc/globstr.hrc +# Duplicated values are renumbered but preserved, i.e. for ...START and ...END +# definitions, and commented with "XXX was duplicate". +# To insert and renumber use a higher value for the inserted definition than +# any other used, for example 9999. +# WARNING: this does not expect other defines in between and would mess around +# with them. + +BEGIN { + id = 0; + lastline = "" +} + +{ + if ($1 ~ /#define/ && lastline !~ /#ifndef/) + { + n = split( $0, a, / +/, s); + if (dup[a[3]]) + { + dupmsg = " // XXX was duplicate " a[3] " of " dup[a[3]]; + a[3] = map[a[3]]; + } + else + { + dup[a[3]] = a[2]; + dupmsg = ""; + ++id; + map[a[3]] = id; + a[3] = id; + } + lastline = s[0]; + for (i=1; i<=n; ++i) + { + lastline = lastline a[i] s[i]; + } + lastline = lastline dupmsg; + } + else + { + lastline = $0; + } + print lastline; +} + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sc/util/sc.component b/sc/util/sc.component new file mode 100644 index 000000000..d813ff25c --- /dev/null +++ b/sc/util/sc.component @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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 . + --> + +<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" + xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.comp.Calc.FilterOptionsDialog" + constructor="Calc_FilterOptionsDialog_get_implementation"> + <service name="com.sun.star.ui.dialogs.FilterOptionsDialog"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.SpreadsheetDocument" + constructor="Calc_SpreadsheetDocument_get_implementation"> + <service name="com.sun.star.sheet.SpreadsheetDocument"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLContentExporter" + constructor="Calc_XMLContentExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLContentExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLExporter" + constructor="Calc_XMLExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLMetaExporter" + constructor="Calc_XMLMetaExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLMetaExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisContentExporter" + constructor="Calc_XMLOasisContentExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisContentExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisContentImporter" + constructor="Calc_XMLOasisContentImporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisContentImporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisExporter" + constructor="Calc_XMLOasisExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisImporter" + constructor="Calc_XMLOasisImporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisImporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisMetaExporter" + constructor="Calc_XMLOasisMetaExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisMetaExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisMetaImporter" + constructor="Calc_XMLOasisMetaImporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisMetaImporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisSettingsExporter" + constructor="Calc_XMLOasisSettingsExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisSettingsExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisSettingsImporter" + constructor="Calc_XMLOasisSettingsImporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisSettingsImporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisStylesExporter" + constructor="Calc_XMLOasisStylesExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisStylesExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLOasisStylesImporter" + constructor="Calc_XMLOasisStylesImporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLOasisStylesImporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLSettingsExporter" + constructor="Calc_XMLSettingsExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLSettingsExporter"/> + </implementation> + <implementation name="com.sun.star.comp.Calc.XMLStylesExporter" + constructor="Calc_XMLStylesExporter_get_implementation"> + <service name="com.sun.star.comp.Calc.XMLStylesExporter"/> + </implementation> + <implementation name="stardiv.StarCalc.ScAutoFormatsObj" + constructor="ScAutoFormatsObj_get_implementation"> + <service name="com.sun.star.sheet.TableAutoFormats"/> + </implementation> + <implementation name="stardiv.StarCalc.ScFunctionAccess" + constructor="ScFunctionAccess_get_implementation"> + <service name="com.sun.star.sheet.FunctionAccess"/> + </implementation> + <implementation name="stardiv.StarCalc.ScFunctionListObj" + constructor="ScFunctionListObj_get_implementation"> + <service name="com.sun.star.sheet.FunctionDescriptions"/> + </implementation> + <implementation name="stardiv.StarCalc.ScRecentFunctionsObj" + constructor="ScRecentFunctionsObj_get_implementation"> + <service name="com.sun.star.sheet.RecentFunctions"/> + </implementation> + <implementation name="stardiv.StarCalc.ScSpreadsheetSettings" + constructor="Calc_ScSpreadsheetSettings_get_implementation"> + <service name="com.sun.star.sheet.GlobalSheetSettings"/> + </implementation> + <implementation name="org.apache.openoffice.comp.sc.sidebar.ScPanelFactory" + constructor="ScPanelFactory_get_implementation"> + <service name="com.sun.star.ui.UIElementFactory"/> + </implementation> +</component> diff --git a/sc/util/scd.component b/sc/util/scd.component new file mode 100644 index 000000000..15a38dd56 --- /dev/null +++ b/sc/util/scd.component @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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 . + --> + +<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" + xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.comp.calc.FormatDetector" + constructor="com_sun_star_comp_calc_FormatDetector_get_implementation"> + <service name="com.sun.star.frame.ExtendedTypeDetection"/> + </implementation> + <implementation name="com.sun.star.comp.calc.ExcelBiffFormatDetector" + constructor="com_sun_star_comp_calc_ExcelBiffFormatDetector_get_implementation"> + <service name="com.sun.star.frame.ExtendedTypeDetection"/> + </implementation> +</component> diff --git a/sc/util/scfilt.component b/sc/util/scfilt.component new file mode 100644 index 000000000..552893535 --- /dev/null +++ b/sc/util/scfilt.component @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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 . + --> + +<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" + xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.comp.oox.xls.ExcelFilter" + constructor="com_sun_star_comp_oox_xls_ExcelFilter_get_implementation"> + <service name="com.sun.star.document.ImportFilter"/> + <service name="com.sun.star.document.ExportFilter"/> + </implementation> + <implementation name="com.sun.star.comp.oox.xls.FormulaParser" + constructor="com_sun_star_comp_oox_xls_FormulaParser_get_implementation"> + <service name="com.sun.star.sheet.FilterFormulaParser"/> + </implementation> + <implementation name="com.sun.star.comp.sc.OrcusFilterDetect" + constructor="com_sun_star_comp_sc_OrcusFormatDetect_get_implementation"> + <service name="com.sun.star.frame.ExtendedTypeDetection"/> + </implementation> +</component> diff --git a/sc/util/vbaobj.component b/sc/util/vbaobj.component new file mode 100644 index 000000000..5ce466bab --- /dev/null +++ b/sc/util/vbaobj.component @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * 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 . + --> + +<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" + xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="ScVbaApplication" constructor="Calc_ScVbaApplication_get_implementation"> + <service name="ooo.vba.excel.Application"/> + </implementation> + <implementation name="ScVbaEventsHelper" + constructor="ScVbaEventsHelper_get_implementation"> + <service name="com.sun.star.script.vba.VBASpreadsheetEventProcessor"/> + </implementation> + <implementation name="ScVbaGlobals" + constructor="ScVbaGlobals_get_implementation"> + <service name="ooo.vba.excel.Globals"/> + </implementation> + <implementation name="ScVbaHyperlink" constructor="Calc_ScVbaHyperlink_get_implementation"> + <service name="ooo.vba.excel.Hyperlink"/> + </implementation> + <implementation name="ScVbaTextFrame" + constructor="ScVbaTextFrame_get_implementation"> + <service name="ooo.vba.excel.TextFrame"/> + </implementation> + <implementation name="ScVbaWindow" constructor="Calc_ScVbaWindow_get_implementation"> + <service name="ooo.vba.excel.Window"/> + </implementation> + <implementation name="ScVbaWorkbook" constructor="Calc_ScVbaWorkbook_get_implementation"> + <service name="ooo.vba.excel.Workbook"/> + </implementation> + <implementation name="ScVbaWorksheet" constructor="Calc_ScVbaWorksheet_get_implementation"> + <service name="ooo.vba.excel.Worksheet"/> + </implementation> + <implementation name="SvVbaRange" constructor="Calc_ScVbaRange_get_implementation"> + <service name="ooo.vba.excel.Range"/> + </implementation> +</component> |