From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- xmlscript/CppunitTest_xmlscript_cppunit.mk | 43 + xmlscript/IwyuFilter_xmlscript.yaml | 2 + xmlscript/Library_xmlscript.mk | 54 + xmlscript/Makefile | 14 + xmlscript/Module_xmlscript.mk | 21 + xmlscript/Package_dtd.mk | 19 + xmlscript/README.md | 6 + xmlscript/dtd/dialog.dtd | 426 +++++ xmlscript/dtd/libraries.dtd | 34 + xmlscript/dtd/library.dtd | 33 + xmlscript/dtd/module.dtd | 24 + xmlscript/inc/pch/precompiled_xmlscript.cxx | 12 + xmlscript/inc/pch/precompiled_xmlscript.hxx | 44 + xmlscript/qa/cppunit/data/EmptyPopupItems.xdl | 13 + xmlscript/qa/cppunit/data/test.xml | 123 ++ xmlscript/qa/cppunit/data/w3c.jpg | Bin 0 -> 2028 bytes xmlscript/qa/cppunit/test.cxx | 220 +++ xmlscript/source/inc/misc.hxx | 50 + xmlscript/source/inc/xml_import.hxx | 44 + xmlscript/source/xml_helper/xml_byteseq.cxx | 158 ++ xmlscript/source/xml_helper/xml_element.cxx | 111 ++ xmlscript/source/xml_helper/xml_impctx.cxx | 717 ++++++++ xmlscript/source/xmldlg_imexp/common.hxx | 41 + xmlscript/source/xmldlg_imexp/exp_share.hxx | 258 +++ xmlscript/source/xmldlg_imexp/imp_share.hxx | 1052 +++++++++++ xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx | 95 + xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 1275 +++++++++++++ xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 1419 +++++++++++++++ xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 1901 ++++++++++++++++++++ xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 1777 ++++++++++++++++++ xmlscript/source/xmlflat_imexp/xmlbas_export.cxx | 377 ++++ xmlscript/source/xmlflat_imexp/xmlbas_export.hxx | 92 + xmlscript/source/xmllib_imexp/imp_share.hxx | 219 +++ xmlscript/source/xmllib_imexp/xmllib_export.cxx | 135 ++ xmlscript/source/xmllib_imexp/xmllib_import.cxx | 257 +++ xmlscript/source/xmlmod_imexp/imp_share.hxx | 101 ++ xmlscript/source/xmlmod_imexp/xmlmod_export.cxx | 63 + xmlscript/source/xmlmod_imexp/xmlmod_import.cxx | 154 ++ xmlscript/util/xmlscript.component | 34 + 39 files changed, 11418 insertions(+) create mode 100644 xmlscript/CppunitTest_xmlscript_cppunit.mk create mode 100644 xmlscript/IwyuFilter_xmlscript.yaml create mode 100644 xmlscript/Library_xmlscript.mk create mode 100644 xmlscript/Makefile create mode 100644 xmlscript/Module_xmlscript.mk create mode 100644 xmlscript/Package_dtd.mk create mode 100644 xmlscript/README.md create mode 100644 xmlscript/dtd/dialog.dtd create mode 100644 xmlscript/dtd/libraries.dtd create mode 100644 xmlscript/dtd/library.dtd create mode 100644 xmlscript/dtd/module.dtd create mode 100644 xmlscript/inc/pch/precompiled_xmlscript.cxx create mode 100644 xmlscript/inc/pch/precompiled_xmlscript.hxx create mode 100644 xmlscript/qa/cppunit/data/EmptyPopupItems.xdl create mode 100644 xmlscript/qa/cppunit/data/test.xml create mode 100644 xmlscript/qa/cppunit/data/w3c.jpg create mode 100644 xmlscript/qa/cppunit/test.cxx create mode 100644 xmlscript/source/inc/misc.hxx create mode 100644 xmlscript/source/inc/xml_import.hxx create mode 100644 xmlscript/source/xml_helper/xml_byteseq.cxx create mode 100644 xmlscript/source/xml_helper/xml_element.cxx create mode 100644 xmlscript/source/xml_helper/xml_impctx.cxx create mode 100644 xmlscript/source/xmldlg_imexp/common.hxx create mode 100644 xmlscript/source/xmldlg_imexp/exp_share.hxx create mode 100644 xmlscript/source/xmldlg_imexp/imp_share.hxx create mode 100644 xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx create mode 100644 xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx create mode 100644 xmlscript/source/xmldlg_imexp/xmldlg_export.cxx create mode 100644 xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx create mode 100644 xmlscript/source/xmldlg_imexp/xmldlg_import.cxx create mode 100644 xmlscript/source/xmlflat_imexp/xmlbas_export.cxx create mode 100644 xmlscript/source/xmlflat_imexp/xmlbas_export.hxx create mode 100644 xmlscript/source/xmllib_imexp/imp_share.hxx create mode 100644 xmlscript/source/xmllib_imexp/xmllib_export.cxx create mode 100644 xmlscript/source/xmllib_imexp/xmllib_import.cxx create mode 100644 xmlscript/source/xmlmod_imexp/imp_share.hxx create mode 100644 xmlscript/source/xmlmod_imexp/xmlmod_export.cxx create mode 100644 xmlscript/source/xmlmod_imexp/xmlmod_import.cxx create mode 100644 xmlscript/util/xmlscript.component (limited to 'xmlscript') diff --git a/xmlscript/CppunitTest_xmlscript_cppunit.mk b/xmlscript/CppunitTest_xmlscript_cppunit.mk new file mode 100644 index 000000000..cedf2c50e --- /dev/null +++ b/xmlscript/CppunitTest_xmlscript_cppunit.mk @@ -0,0 +1,43 @@ +# -*- Mode: makefile-gmake; 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/. +# + +$(eval $(call gb_CppunitTest_CppunitTest,xmlscript_cppunit)) + +$(eval $(call gb_CppunitTest_add_exception_objects,xmlscript_cppunit, \ + xmlscript/qa/cppunit/test \ +)) + +$(eval $(call gb_CppunitTest_use_sdk_api,xmlscript_cppunit)) +$(eval $(call gb_CppunitTest_use_ure,xmlscript_cppunit)) +$(eval $(call gb_CppunitTest_use_vcl,xmlscript_cppunit)) +$(eval $(call gb_CppunitTest_use_rdb,xmlscript_cppunit,services)) + +$(eval $(call gb_CppunitTest_use_custom_headers,xmlscript_cppunit,\ + officecfg/registry \ +)) + +$(eval $(call gb_CppunitTest_use_externals,xmlscript_cppunit,\ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,xmlscript_cppunit)) + +$(eval $(call gb_CppunitTest_use_libraries,xmlscript_cppunit, \ + comphelper \ + cppu \ + cppuhelper \ + fwk \ + sal \ + test \ + unotest \ + utl \ + xmlscript \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/xmlscript/IwyuFilter_xmlscript.yaml b/xmlscript/IwyuFilter_xmlscript.yaml new file mode 100644 index 000000000..ee208d992 --- /dev/null +++ b/xmlscript/IwyuFilter_xmlscript.yaml @@ -0,0 +1,2 @@ +--- +assumeFilename: xmlscript/source/xmldlg_imexp/xmldlg_import.cxx diff --git a/xmlscript/Library_xmlscript.mk b/xmlscript/Library_xmlscript.mk new file mode 100644 index 000000000..7a26dc333 --- /dev/null +++ b/xmlscript/Library_xmlscript.mk @@ -0,0 +1,54 @@ +# -*- Mode: makefile-gmake; 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/. +# + +$(eval $(call gb_Library_Library,xmlscript)) + +$(eval $(call gb_Library_use_external,xmlscript,boost_headers)) + +$(eval $(call gb_Library_set_componentfile,xmlscript,xmlscript/util/xmlscript,services)) + +$(eval $(call gb_Library_use_sdk_api,xmlscript)) + +$(eval $(call gb_Library_use_libraries,xmlscript,\ + comphelper \ + cppu \ + cppuhelper \ + sal \ + tl \ + i18nlangtag \ +)) + +$(eval $(call gb_Library_set_include,xmlscript,\ + -I$(SRCDIR)/xmlscript/source/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_Library_add_defs,xmlscript,\ + -DXMLSCRIPT_DLLIMPLEMENTATION \ +)) + +$(eval $(call gb_Library_set_precompiled_header,xmlscript,xmlscript/inc/pch/precompiled_xmlscript)) + +$(eval $(call gb_Library_add_exception_objects,xmlscript,\ + xmlscript/source/xml_helper/xml_byteseq \ + xmlscript/source/xml_helper/xml_element \ + xmlscript/source/xml_helper/xml_impctx \ + xmlscript/source/xmldlg_imexp/xmldlg_addfunc \ + xmlscript/source/xmldlg_imexp/xmldlg_expmodels \ + xmlscript/source/xmldlg_imexp/xmldlg_export \ + xmlscript/source/xmldlg_imexp/xmldlg_impmodels \ + xmlscript/source/xmldlg_imexp/xmldlg_import \ + xmlscript/source/xmlflat_imexp/xmlbas_export \ + xmlscript/source/xmllib_imexp/xmllib_export \ + xmlscript/source/xmllib_imexp/xmllib_import \ + xmlscript/source/xmlmod_imexp/xmlmod_export \ + xmlscript/source/xmlmod_imexp/xmlmod_import \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/xmlscript/Makefile b/xmlscript/Makefile new file mode 100644 index 000000000..0997e6284 --- /dev/null +++ b/xmlscript/Makefile @@ -0,0 +1,14 @@ +# -*- Mode: makefile-gmake; 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/. +# + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/xmlscript/Module_xmlscript.mk b/xmlscript/Module_xmlscript.mk new file mode 100644 index 000000000..c76702a70 --- /dev/null +++ b/xmlscript/Module_xmlscript.mk @@ -0,0 +1,21 @@ +# -*- Mode: makefile-gmake; 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/. +# + +$(eval $(call gb_Module_Module,xmlscript)) + +$(eval $(call gb_Module_add_targets,xmlscript,\ + Library_xmlscript \ + Package_dtd \ +)) + +$(eval $(call gb_Module_add_check_targets,xmlscript,\ + CppunitTest_xmlscript_cppunit \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/xmlscript/Package_dtd.mk b/xmlscript/Package_dtd.mk new file mode 100644 index 000000000..de8d0dec7 --- /dev/null +++ b/xmlscript/Package_dtd.mk @@ -0,0 +1,19 @@ +# -*- Mode: makefile-gmake; 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/. +# + +$(eval $(call gb_Package_Package,xmlscript_dtd,$(SRCDIR)/xmlscript)) + +$(eval $(call gb_Package_add_files,xmlscript_dtd,$(LIBO_SHARE_FOLDER)/dtd/officedocument/1_0,\ + dtd/dialog.dtd \ + dtd/libraries.dtd \ + dtd/library.dtd \ + dtd/module.dtd \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/xmlscript/README.md b/xmlscript/README.md new file mode 100644 index 000000000..3f0b05aa8 --- /dev/null +++ b/xmlscript/README.md @@ -0,0 +1,6 @@ +# XML Dialogs + +This code is used to (de)serialize basic dialogs to XML for storage +inside documents. While the XML -appears- to have some hierarchical +structure, that is only a fabrication, parsing and underlying toolkit +widget structure is sadly linear and flat. diff --git a/xmlscript/dtd/dialog.dtd b/xmlscript/dtd/dialog.dtd new file mode 100644 index 000000000..7290b8d22 --- /dev/null +++ b/xmlscript/dtd/dialog.dtd @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xmlscript/dtd/libraries.dtd b/xmlscript/dtd/libraries.dtd new file mode 100644 index 000000000..3b3b82e53 --- /dev/null +++ b/xmlscript/dtd/libraries.dtd @@ -0,0 +1,34 @@ + + + + + + + + + diff --git a/xmlscript/dtd/library.dtd b/xmlscript/dtd/library.dtd new file mode 100644 index 000000000..c0341ed54 --- /dev/null +++ b/xmlscript/dtd/library.dtd @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/xmlscript/dtd/module.dtd b/xmlscript/dtd/module.dtd new file mode 100644 index 000000000..b77d62f46 --- /dev/null +++ b/xmlscript/dtd/module.dtd @@ -0,0 +1,24 @@ + + + + diff --git a/xmlscript/inc/pch/precompiled_xmlscript.cxx b/xmlscript/inc/pch/precompiled_xmlscript.cxx new file mode 100644 index 000000000..85735abe9 --- /dev/null +++ b/xmlscript/inc/pch/precompiled_xmlscript.cxx @@ -0,0 +1,12 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * 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/. + */ + +#include "precompiled_xmlscript.hxx" + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlscript/inc/pch/precompiled_xmlscript.hxx b/xmlscript/inc/pch/precompiled_xmlscript.hxx new file mode 100644 index 000000000..45c831b54 --- /dev/null +++ b/xmlscript/inc/pch/precompiled_xmlscript.hxx @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * 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 has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such + manual changes will be rewritten by the next run of update_pch.sh (which presumably + also fixes all possible problems, so it's usually better to use it). + + Generated on 2021-03-08 13:22:55 using: + ./bin/update_pch xmlscript xmlscript --cutoff=4 --exclude:system --exclude:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./xmlscript/inc/pch/precompiled_xmlscript.hxx "make xmlscript.build" --find-conflicts +*/ + +#include +#if PCH_LEVEL >= 1 +#endif // PCH_LEVEL >= 1 +#if PCH_LEVEL >= 2 +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 2 +#if PCH_LEVEL >= 3 +#include +#include +#endif // PCH_LEVEL >= 3 +#if PCH_LEVEL >= 4 +#include +#include +#include +#endif // PCH_LEVEL >= 4 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlscript/qa/cppunit/data/EmptyPopupItems.xdl b/xmlscript/qa/cppunit/data/EmptyPopupItems.xdl new file mode 100644 index 000000000..827469e95 --- /dev/null +++ b/xmlscript/qa/cppunit/data/EmptyPopupItems.xdl @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/xmlscript/qa/cppunit/data/test.xml b/xmlscript/qa/cppunit/data/test.xml new file mode 100644 index 000000000..06e44309b --- /dev/null +++ b/xmlscript/qa/cppunit/data/test.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + +