Class ExportFilterBase
java.lang.Object
org.openoffice.da.comp.w2lcommon.filter.ExportFilterBase
- All Implemented Interfaces:
com.sun.star.lang.XServiceInfo,com.sun.star.lang.XServiceName,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XInterface,com.sun.star.xml.sax.XDocumentHandler,com.sun.star.xml.XExportFilter
- Direct Known Subclasses:
W2LExportFilter,W2XExportFilter
public abstract class ExportFilterBase
extends Object
implements com.sun.star.xml.XExportFilter, com.sun.star.lang.XServiceName, com.sun.star.lang.XServiceInfo, com.sun.star.xml.sax.XDocumentHandler, com.sun.star.lang.XTypeProvider
This class provides an abstract UNO component which implements an XExportFilter.
The filter is actually generic and only the constructor and 3 strings needs
to be changed by the subclass.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFilter name to include in error messagesstatic final StringImplementation name for the componentstatic final StringService name for the componentFields inherited from interface com.sun.star.xml.sax.XDocumentHandler
UNOTYPEINFOFields inherited from interface com.sun.star.xml.XExportFilter
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XServiceInfo
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XServiceName
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO -
Constructor Summary
ConstructorsConstructorDescriptionExportFilterBase(com.sun.star.uno.XComponentContext xComponentContext) Construct a new ExportFilterBase from a given component context -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(String sText) voidvoidendElement(String sTagName) booleanbyte[]String[]com.sun.star.uno.Type[]getTypes()voidvoidprocessingInstruction(String aTarget, String aData) voidsetDocumentLocator(com.sun.star.xml.sax.XLocator xLocator) voidvoidstartElement(String sTagName, com.sun.star.xml.sax.XAttributeList xAttribs) booleansupportsService(String stringServiceName)
-
Field Details
-
__serviceName
Service name for the component- See Also:
-
__implementationName
Implementation name for the component- See Also:
-
__displayName
Filter name to include in error messages
-
-
Constructor Details
-
ExportFilterBase
public ExportFilterBase(com.sun.star.uno.XComponentContext xComponentContext) Construct a new ExportFilterBase from a given component context- Parameters:
xComponentContext- the component context used to instantiate new UNO services
-
-
Method Details
-
exporter
- Specified by:
exporterin interfacecom.sun.star.xml.XExportFilter
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfacecom.sun.star.xml.sax.XDocumentHandler
-
endDocument
public void endDocument() throws com.sun.star.uno.RuntimeException- Specified by:
endDocumentin interfacecom.sun.star.xml.sax.XDocumentHandler- Throws:
com.sun.star.uno.RuntimeException
-
startElement
- Specified by:
startElementin interfacecom.sun.star.xml.sax.XDocumentHandler
-
endElement
- Specified by:
endElementin interfacecom.sun.star.xml.sax.XDocumentHandler
-
characters
- Specified by:
charactersin interfacecom.sun.star.xml.sax.XDocumentHandler
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfacecom.sun.star.xml.sax.XDocumentHandler
-
processingInstruction
- Specified by:
processingInstructionin interfacecom.sun.star.xml.sax.XDocumentHandler
-
setDocumentLocator
public void setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator) - Specified by:
setDocumentLocatorin interfacecom.sun.star.xml.sax.XDocumentHandler
-
getTypes
public com.sun.star.uno.Type[] getTypes()- Specified by:
getTypesin interfacecom.sun.star.lang.XTypeProvider
-
getImplementationId
public byte[] getImplementationId()- Specified by:
getImplementationIdin interfacecom.sun.star.lang.XTypeProvider
-
getServiceName
- Specified by:
getServiceNamein interfacecom.sun.star.lang.XServiceName
-
supportsService
- Specified by:
supportsServicein interfacecom.sun.star.lang.XServiceInfo
-
getImplementationName
- Specified by:
getImplementationNamein interfacecom.sun.star.lang.XServiceInfo
-
getSupportedServiceNames
- Specified by:
getSupportedServiceNamesin interfacecom.sun.star.lang.XServiceInfo
-