filter/Configuration_filter.mk                            |    1 
 filter/source/config/fragments/filters/calc_csv_Orcus.xcu |   19 ++++++++++++++
 sc/source/filter/orcus/orcusfiltersimpl.cxx               |    1 
 3 files changed, 21 insertions(+)

New commits:
commit e5be160df8153ffe485c8f3e59f27d0f8556b833
Author:     Kohei Yoshida <kohei.yosh...@collabora.com>
AuthorDate: Thu Jul 10 23:43:37 2025 -0400
Commit:     Kohei Yoshida <kohei.yosh...@collabora.com>
CommitDate: Fri Jul 11 18:52:38 2025 +0200

    Add orcus-based csv filter as alternative
    
    This filter currently does not have a UI, nor allow field type selection
    or any other filter settings.  The separator character must be ','.  It
    also does not perform any nice format related post processing at all.
    
    Obviously this is very limiting feature-wise compared to the default CSV
    filter, but it generally loads faster & may prove to be useful when you
    need to open a very large CSV file.
    
    To use this filter, you need to manually select 'Text CSV (orcus)'
    filter from the file open dialog.
    
    Change-Id: Ibeab7c7d2dda5df99c4efe6cfdce608847e4040a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187670
    Tested-by: Jenkins
    Reviewed-by: Kohei Yoshida <ko...@libreoffice.org>

diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk
index dbe04df3f7ba..5b6bda1d617c 100644
--- a/filter/Configuration_filter.mk
+++ b/filter/Configuration_filter.mk
@@ -527,6 +527,7 @@ $(eval $(call 
filter_Configuration_add_filters,fcfg_langpack,fcfg_calc_filters.x
        SYLK \
        StarOffice_XML__Calc_ \
        Text___txt___csv__StarCalc_ \
+       calc_csv_Orcus \
        calc_HTML_WebQuery \
        calc_StarOffice_XML_Calc_Template \
        calc_pdf_Export \
diff --git a/filter/source/config/fragments/filters/calc_csv_Orcus.xcu 
b/filter/source/config/fragments/filters/calc_csv_Orcus.xcu
new file mode 100644
index 000000000000..2dbe33e19433
--- /dev/null
+++ b/filter/source/config/fragments/filters/calc_csv_Orcus.xcu
@@ -0,0 +1,19 @@
+<!--
+ * 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/.
+-->
+<node oor:name="Orcus CSV" oor:op="replace">
+    <prop oor:name="Flags"><value>IMPORT ALIEN</value></prop>
+    <prop oor:name="UIComponent"/>
+    <prop oor:name="FilterService"/>
+    <prop oor:name="UserData"/>
+    <prop oor:name="Type"><value>generic_Text</value></prop>
+    <prop oor:name="TemplateName"/>
+    <prop 
oor:name="DocumentService"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
+    <prop oor:name="UIName">
+        <value xml:lang="en-US">Text CSV (orcus)</value>
+    </prop>
+</node>
diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx 
b/sc/source/filter/orcus/orcusfiltersimpl.cxx
index 2a13c761d5d5..7f16a01bfe22 100644
--- a/sc/source/filter/orcus/orcusfiltersimpl.cxx
+++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx
@@ -73,6 +73,7 @@ ScOrcusFilters::ImportResult 
ScOrcusFiltersImpl::importByName(ScDocument& rDoc,
         { "Apache Parquet Spreadsheet", orcus::format_t::parquet },
         { "Gnumeric Spreadsheet", orcus::format_t::gnumeric },
         { "MS Excel 2003 XML Orcus", orcus::format_t::xls_xml },
+        { "Orcus CSV", orcus::format_t::csv },
         { "csv", orcus::format_t::csv },
         { "gnumeric", orcus::format_t::gnumeric },
         { "ods", orcus::format_t::ods },

Reply via email to