[ooo-build-commit] .: source/config source/odfflatxml

René Engelhard rene at kemper.freedesktop.org
Thu Sep 30 14:36:04 PDT 2010


 source/config/fragments/filters/ODG_FlatXML.xcu       |   13 +++++++++++++
 source/config/fragments/filters/ODP_FlatXML.xcu       |   13 +++++++++++++
 source/config/fragments/filters/ODS_FlatXML.xcu       |   13 +++++++++++++
 source/config/fragments/filters/ODT_FlatXML.xcu       |   13 +++++++++++++
 source/config/fragments/types/calc_ODS_FlatXML.xcu    |   14 ++++++++++++++
 source/config/fragments/types/draw_ODG_FlatXML.xcu    |   14 ++++++++++++++
 source/config/fragments/types/impress_ODP_FlatXML.xcu |   14 ++++++++++++++
 source/config/fragments/types/writer_ODT_FlatXML.xcu  |   14 ++++++++++++++
 source/odfflatxml/odfflatxmlexport.xsl                |   14 ++++++++++++++
 source/odfflatxml/odfflatxmlimport.xsl                |   10 ++++++++++
 10 files changed, 132 insertions(+)

New commits:
commit 22e6c50e1a2d8d98a96763a010ff451e8e77a772
Author: Rene Engelhard <rene at debian.org>
Date:   Thu Sep 30 23:33:40 2010 +0200

    add files not committed when porting odf-flatxml-import-export.diff

diff --git a/source/config/fragments/filters/ODG_FlatXML.xcu b/source/config/fragments/filters/ODG_FlatXML.xcu
new file mode 100644
index 0000000..2a5a4a0
--- /dev/null
+++ b/source/config/fragments/filters/ODG_FlatXML.xcu
@@ -0,0 +1,13 @@
+    <node oor:name="OpenDocument Drawing Flat XML" oor:op="replace">
+        <prop oor:name="FileFormatVersion"><value>0</value></prop>
+        <prop oor:name="Type"><value>draw_ODG_FlatXML</value></prop>
+        <prop oor:name="DocumentService"><value>com.sun.star.drawing.DrawingDocument</value></prop>
+        <prop oor:name="UIComponent"/>
+        <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Draw.XMLOasisImporter,com.sun.star.comp.Draw.XMLOasisExporter,../share/xslt/odfflatxml/odfflatxmlimport.xsl,../share/xslt/odfflatxml/odfflatxmlexport.xsl</value></prop>
+        <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
+        <prop oor:name="TemplateName"/>
+        <prop oor:name="UIName">
+            <value>OpenDocument Drawing (Flat XML)</value>
+        </prop>
+        <prop oor:name="Flags"><value>IMPORT EXPORT OWN 3RDPARTYFILTER</value></prop>
+    </node>
diff --git a/source/config/fragments/filters/ODP_FlatXML.xcu b/source/config/fragments/filters/ODP_FlatXML.xcu
new file mode 100644
index 0000000..175936c
--- /dev/null
+++ b/source/config/fragments/filters/ODP_FlatXML.xcu
@@ -0,0 +1,13 @@
+    <node oor:name="OpenDocument Presentation Flat XML" oor:op="replace">
+        <prop oor:name="FileFormatVersion"><value>0</value></prop>
+        <prop oor:name="Type"><value>impress_ODP_FlatXML</value></prop>
+        <prop oor:name="DocumentService"><value>com.sun.star.presentation.PresentationDocument</value></prop>
+        <prop oor:name="UIComponent"/>
+        <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Impress.XMLOasisImporter,com.sun.star.comp.Impress.XMLOasisExporter,../share/xslt/odfflatxml/odfflatxmlimport.xsl,../share/xslt/odfflatxml/odfflatxmlexport.xsl</value></prop>
+        <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
+        <prop oor:name="TemplateName"/>
+        <prop oor:name="UIName">
+            <value>OpenDocument Presentation (Flat XML)</value>
+        </prop>
+        <prop oor:name="Flags"><value>IMPORT EXPORT OWN 3RDPARTYFILTER</value></prop>
+    </node>
diff --git a/source/config/fragments/filters/ODS_FlatXML.xcu b/source/config/fragments/filters/ODS_FlatXML.xcu
new file mode 100644
index 0000000..a780901
--- /dev/null
+++ b/source/config/fragments/filters/ODS_FlatXML.xcu
@@ -0,0 +1,13 @@
+    <node oor:name="OpenDocument Spreadsheet Flat XML" oor:op="replace">
+        <prop oor:name="FileFormatVersion"><value>0</value></prop>
+        <prop oor:name="Type"><value>calc_ODS_FlatXML</value></prop>
+        <prop oor:name="DocumentService"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
+        <prop oor:name="UIComponent"/>
+        <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,../share/xslt/odfflatxml/odfflatxmlimport.xsl,../share/xslt/odfflatxml/odfflatxmlexport.xsl</value></prop>
+        <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
+        <prop oor:name="TemplateName"/>
+        <prop oor:name="UIName">
+            <value>OpenDocument Spreadsheet (Flat XML)</value>
+        </prop>
+        <prop oor:name="Flags"><value>IMPORT EXPORT OWN 3RDPARTYFILTER</value></prop>
+    </node>
diff --git a/source/config/fragments/filters/ODT_FlatXML.xcu b/source/config/fragments/filters/ODT_FlatXML.xcu
new file mode 100644
index 0000000..b931543
--- /dev/null
+++ b/source/config/fragments/filters/ODT_FlatXML.xcu
@@ -0,0 +1,13 @@
+    <node oor:name="OpenDocument Text Flat XML" oor:op="replace">
+        <prop oor:name="FileFormatVersion"><value>0</value></prop>
+        <prop oor:name="Type"><value>writer_ODT_FlatXML</value></prop>
+        <prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
+        <prop oor:name="UIComponent"/>
+        <prop oor:name="UserData"><value oor:separator=",">com.sun.star.documentconversion.XSLTFilter,,com.sun.star.comp.Writer.XMLOasisImporter,com.sun.star.comp.Writer.XMLOasisExporter,../share/xslt/odfflatxml/odfflatxmlimport.xsl,../share/xslt/odfflatxml/odfflatxmlexport.xsl</value></prop>
+        <prop oor:name="FilterService"><value>com.sun.star.comp.Writer.XmlFilterAdaptor</value></prop>
+        <prop oor:name="TemplateName"/>
+        <prop oor:name="UIName">
+            <value>OpenDocument Text (Flat XML)</value>
+        </prop>
+        <prop oor:name="Flags"><value>IMPORT EXPORT OWN 3RDPARTYFILTER</value></prop>
+    </node>
diff --git a/source/config/fragments/types/calc_ODS_FlatXML.xcu b/source/config/fragments/types/calc_ODS_FlatXML.xcu
new file mode 100644
index 0000000..51e43cb
--- /dev/null
+++ b/source/config/fragments/types/calc_ODS_FlatXML.xcu
@@ -0,0 +1,14 @@
+    <node oor:name="calc_ODS_FlatXML" oor:op="replace">
+        <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop>
+        <prop oor:name="URLPattern"/>
+        <prop oor:name="Extensions"><value>fods ods xml</value></prop>
+        <prop oor:name="MediaType"/>
+        <prop oor:name="Preferred"><value>false</value></prop>
+        <prop oor:name="PreferredFilter"><value>OpenDocument Spreadsheet Flat XML</value></prop>
+        <prop oor:name="UIName">
+            <value>OpenDocument Spreadsheet (Flat XML)</value>
+        </prop>
+        <prop oor:name="ClipboardFormat">
+            <value>doctype:office:mimetype="application/vnd.oasis.opendocument.spreadsheet"</value>
+        </prop>
+    </node>
diff --git a/source/config/fragments/types/draw_ODG_FlatXML.xcu b/source/config/fragments/types/draw_ODG_FlatXML.xcu
new file mode 100644
index 0000000..2fa92bf
--- /dev/null
+++ b/source/config/fragments/types/draw_ODG_FlatXML.xcu
@@ -0,0 +1,14 @@
+    <node oor:name="draw_ODG_FlatXML" oor:op="replace">
+        <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop>
+        <prop oor:name="URLPattern"/>
+        <prop oor:name="Extensions"><value>fodg odg xml</value></prop>
+        <prop oor:name="MediaType"/>
+        <prop oor:name="Preferred"><value>false</value></prop>
+        <prop oor:name="PreferredFilter"><value>OpenDocument Drawing Flat XML</value></prop>
+        <prop oor:name="UIName">
+            <value>OpenDocument Drawing (Flat XML)</value>
+        </prop>
+        <prop oor:name="ClipboardFormat">
+            <value>doctype:office:mimetype="application/vnd.oasis.opendocument.graphics"</value>
+        </prop>
+    </node>
diff --git a/source/config/fragments/types/impress_ODP_FlatXML.xcu b/source/config/fragments/types/impress_ODP_FlatXML.xcu
new file mode 100644
index 0000000..1b43a63
--- /dev/null
+++ b/source/config/fragments/types/impress_ODP_FlatXML.xcu
@@ -0,0 +1,14 @@
+    <node oor:name="impress_ODP_FlatXML" oor:op="replace">
+        <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop>
+        <prop oor:name="URLPattern"/>
+        <prop oor:name="Extensions"><value>fodp odp xml</value></prop>
+        <prop oor:name="MediaType"/>
+        <prop oor:name="Preferred"><value>false</value></prop>
+        <prop oor:name="PreferredFilter"><value>OpenDocument Presentation Flat XML</value></prop>
+        <prop oor:name="UIName">
+            <value>OpenDocument Presentation (Flat XML)</value>
+        </prop>
+        <prop oor:name="ClipboardFormat">
+            <value>doctype:office:mimetype="application/vnd.oasis.opendocument.presentation"</value>
+        </prop>
+    </node>
diff --git a/source/config/fragments/types/writer_ODT_FlatXML.xcu b/source/config/fragments/types/writer_ODT_FlatXML.xcu
new file mode 100644
index 0000000..7c6f324
--- /dev/null
+++ b/source/config/fragments/types/writer_ODT_FlatXML.xcu
@@ -0,0 +1,14 @@
+    <node oor:name="writer_ODT_FlatXML" oor:op="replace">
+        <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop>
+        <prop oor:name="URLPattern"/>
+        <prop oor:name="Extensions"><value>fodt odt xml</value></prop>
+        <prop oor:name="MediaType"/>
+        <prop oor:name="Preferred"><value>false</value></prop>
+        <prop oor:name="PreferredFilter"><value>OpenDocument Text Flat XML</value></prop>
+        <prop oor:name="UIName">
+            <value>OpenDocument Text (Flat XML)</value>
+        </prop>
+        <prop oor:name="ClipboardFormat">
+            <value>doctype:office:mimetype="application/vnd.oasis.opendocument.text"</value>
+        </prop>
+    </node>
diff --git a/source/odfflatxml/odfflatxmlexport.xsl b/source/odfflatxml/odfflatxmlexport.xsl
new file mode 100644
index 0000000..e08afd7
--- /dev/null
+++ b/source/odfflatxml/odfflatxmlexport.xsl
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0">
+    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
+
+  <xsl:template match="@*|node()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="@office:mimetype[string(.)='application/vnd.oasis.opendocument.drawing']">
+      <xsl:attribute name="office:mimetype">application/vnd.oasis.opendocument.graphics</xsl:attribute>
+  </xsl:template>
+</xsl:stylesheet>
diff --git a/source/odfflatxml/odfflatxmlimport.xsl b/source/odfflatxml/odfflatxmlimport.xsl
new file mode 100644
index 0000000..802ff53
--- /dev/null
+++ b/source/odfflatxml/odfflatxmlimport.xsl
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
+
+    <xsl:template match="@*|node()">
+        <xsl:copy>
+            <xsl:apply-templates select="@*|node()"/>
+        </xsl:copy>
+    </xsl:template>
+</xsl:stylesheet>


More information about the ooo-build-commit mailing list