org.openoffice.da.comp.w2lcommon.filter
Class ExportFilterBase

java.lang.Object
  extended by org.openoffice.da.comp.w2lcommon.filter.ExportFilterBase
Direct Known Subclasses:
W2LExportFilter, W2XExportFilter

public abstract class ExportFilterBase
extends java.lang.Object

This class provides an abstract uno component which implements an XExportFilter. The filter is actually generic and only then constructor and 3 strings needs to changed by the subclass.


Field Summary
static java.lang.String __displayName
          Filter name to include in error messages
static java.lang.String __implementationName
          Implementation name for the component
static java.lang.String __serviceName
          Service name for the component
protected static XMultiServiceFactory xMSF
           
 
Constructor Summary
ExportFilterBase(XComponentContext xComponentContext1)
          We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor.
 
Method Summary
 void characters(java.lang.String str)
           
 void convert(com.sun.star.io.XInputStream xml, com.sun.star.io.XOutputStream exportStream)
           
 void endDocument()
           
 void endElement(java.lang.String str)
           
 boolean exporter(com.sun.star.beans.PropertyValue[] aSourceData, java.lang.String[] msUserData)
           
 byte[] getImplementationId()
           
 java.lang.String getImplementationName()
           
 java.lang.String getServiceName()
           
 java.lang.String[] getSupportedServiceNames()
           
 com.sun.star.uno.Type[] getTypes()
           
 void ignorableWhitespace(java.lang.String str)
           
 java.lang.String needsMask(java.lang.String origString)
           
 void processingInstruction(java.lang.String aTarget, java.lang.String aData)
           
 java.lang.String replace(java.lang.String origString, java.lang.String origChar, java.lang.String replaceChar)
           
 void setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator)
           
 void startDocument()
           
 void startElement(java.lang.String str, com.sun.star.xml.sax.XAttributeList xattribs)
           
 boolean supportsService(java.lang.String stringServiceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__serviceName

public static final java.lang.String __serviceName
Service name for the component

See Also:
Constant Field Values

__implementationName

public static final java.lang.String __implementationName
Implementation name for the component

See Also:
Constant Field Values

__displayName

public static final java.lang.String __displayName
Filter name to include in error messages

See Also:
Constant Field Values

xMSF

protected static XMultiServiceFactory xMSF
Constructor Detail

ExportFilterBase

public ExportFilterBase(XComponentContext xComponentContext1)
We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor. The subclass must override this to set xMSF properly from the reigstration class

Method Detail

replace

public java.lang.String replace(java.lang.String origString,
                                java.lang.String origChar,
                                java.lang.String replaceChar)

needsMask

public java.lang.String needsMask(java.lang.String origString)

exporter

public boolean exporter(com.sun.star.beans.PropertyValue[] aSourceData,
                        java.lang.String[] msUserData)
                 throws com.sun.star.uno.RuntimeException
Throws:
com.sun.star.uno.RuntimeException

startDocument

public void startDocument()

endDocument

public void endDocument()
                 throws com.sun.star.uno.RuntimeException
Throws:
com.sun.star.uno.RuntimeException

startElement

public void startElement(java.lang.String str,
                         com.sun.star.xml.sax.XAttributeList xattribs)

endElement

public void endElement(java.lang.String str)

characters

public void characters(java.lang.String str)

ignorableWhitespace

public void ignorableWhitespace(java.lang.String str)

processingInstruction

public void processingInstruction(java.lang.String aTarget,
                                  java.lang.String aData)

setDocumentLocator

public void setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator)

convert

public void convert(com.sun.star.io.XInputStream xml,
                    com.sun.star.io.XOutputStream exportStream)
             throws com.sun.star.uno.RuntimeException,
                    java.io.IOException
Throws:
com.sun.star.uno.RuntimeException
java.io.IOException

getTypes

public com.sun.star.uno.Type[] getTypes()

getImplementationId

public byte[] getImplementationId()

getServiceName

public java.lang.String getServiceName()

supportsService

public boolean supportsService(java.lang.String stringServiceName)

getImplementationName

public java.lang.String getImplementationName()

getSupportedServiceNames

public java.lang.String[] getSupportedServiceNames()