org.openoffice.da.comp.w2lcommon.filter
Class ExportFilterBase
java.lang.Object
org.openoffice.da.comp.w2lcommon.filter.ExportFilterBase
- XDocumentHandler, XExportFilter, XServiceInfo, XServiceName, XTypeProvider
public abstract class ExportFilterBase
extends java.lang.Object
implements XExportFilter, XServiceName, XServiceInfo, XDocumentHandler, XTypeProvider
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.
ExportFilterBase(XComponentContext xComponentContext1) - We need to get the Service Manager from the Component context to
instantiate certain services, hence this constructor.
|
__displayName
public static final String __displayName
Filter name to include in error messages
__implementationName
public static final String __implementationName
Implementation name for the component
__serviceName
public static final String __serviceName
Service name for the component
xMSF
protected static XMultiServiceFactory xMSF
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
characters
public void characters(String str)
convert
public void convert(XInputStream xml,
XOutputStream exportStream)
throws com.sun.star.uno.RuntimeException,
IOException
endDocument
public void endDocument()
throws com.sun.star.uno.RuntimeException
endElement
public void endElement(String str)
exporter
public boolean exporter(com.sun.star.beans.PropertyValue[] aSourceData,
java.lang.String[] msUserData)
throws com.sun.star.uno.RuntimeException
getImplementationId
public byte[] getImplementationId()
getImplementationName
public String getImplementationName()
getServiceName
public String getServiceName()
getSupportedServiceNames
public String[] getSupportedServiceNames()
getTypes
public Type[] getTypes()
ignorableWhitespace
public void ignorableWhitespace(String str)
needsMask
public String needsMask(String origString)
processingInstruction
public void processingInstruction(String aTarget,
String aData)
replace
public String replace(String origString,
String origChar,
String replaceChar)
setDocumentLocator
public void setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator)
startDocument
public void startDocument()
startElement
public void startElement(String str,
com.sun.star.xml.sax.XAttributeList xattribs)
supportsService
public boolean supportsService(String stringServiceName)