This sample implements three components which act as generic XML import/export
filters. The intention is that a different import or export service will
be used depending on the name given in the TypeDetection.xml file.

Currently, this functionality is disabled and the filter only operates as
a flat XML import/export for the Writer. This means that all 4 streams,
content.xml, styles.xml, meta.xml and settings.xml are exported in a single
file, uncompressed, when using these filters.

The example register only the unified import/export filter. If you want to use all filters,
you have to uncomment the import and the export filter in the component_writeInfo
function in genericfilter.cxx.

Using the unified import/export component is much easier for the user.
The easiest way to integrate this filter is to register the component and copy the TypeDetection.xml 
file into your <office_installation_dir>/user/config/registry/instance/org/openoffice/Office directory.

But you can do it also by yourself. YOu have to insert the following entries to your TypeDetection.xml
file, inside the <Types> element:

    <Type cfg:name="writer_Flat_XML_File" state="replaced">
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">XML Flat native</cfg:value>
		</UIName>
		<Data cfg:type="string">0,,,,xml,20002,</Data>
	</Type>

And these inside the <Filters> element:

	<Filter cfg:name="writer_Flat_XML_File" state="replaced">
		<Installed cfg:type="boolean">true</Installed>
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">XML Flat native</cfg:value>
		</UIName>
		<Data cfg:type="string">0,writer_Flat_XML_File,com.sun.star.text.TextDocument,
			com.sun.star.comp.Writer.GenericXMLFilter,524355,,0,,</Data>
	</Filter>

To use all filters, you have to add the following entries to your TypeDetection.xml file,
inside the <Types> element:

    <Type cfg:name="writer_Flat_XML_FileExport" state="replaced">
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">Flat Writer XML File Export</cfg:value>
		</UIName>
		<Data cfg:type="string">0,,,,xml,20002,</Data>
    </Type>
    <Type cfg:name="writer_Flat_XML_FileImport" state="replaced">
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">Flat Writer XML File Import</cfg:value>
        </UIName>
		<Data cfg:type="string">0,,,,xml,20002,</Data>
    </Type>

And these lines inside the <Filters> element:

	<Filter cfg:name="writer_Flat_XML_FileExport" state="replaced">
		<Installed cfg:type="boolean">true</Installed>
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">Flat Writer XML File Export</cfg:value>
		</UIName>
		<Data cfg:type="string">0,writer_Flat_XML_FileExport,com.sun.star.text.TextDocument,
			com.sun.star.comp.Writer.GenericXMLExportFilter,524354,,0,,</Data>
	</Filter>
	<Filter cfg:name="writer_Flat_XML_FileImport" state="replaced">
		<Installed cfg:type="boolean">true</Installed>
		<UIName cfg:type="string" cfg:localized="true">
			<cfg:value xml:lang="en-US">Flat Writer XML File Import</cfg:value>
		</UIName>
		<Data cfg:type="string">0,writer_Flat_XML_FileImport,com.sun.star.text.TextDocument,
			com.sun.star.comp.Writer.GenericXMLImportFilter,524353,,0,,</Data>
	</Filter>

