Home

Contents

1 Introduction

2 Using the export filters

3 Using the command line utility

4 Configuration

5 Special features for the EPUB export

6 The LaTeX package ooomath.sty

7 Using Writer2LaTeX from another application

7.1 Using Writer2LaTeX from a Java application

7.2 Using Writer2LaTeX from a Basic macro

7.3 Batch conversion with UNO

7.4 Converting from StarMath with a Basic macro

8 Troubleshooting

    

7 Using Writer2LaTeX from another application

7.3 Batch conversion with UNO

Writer2LaTeX also offers a uno service

org.openoffice.da.writer2xhtml.BatchConverter

providing batch conversion of a complete directory into another format (usually XHTML) with index pages. This service implements the interface org.openoffice.da.writer2xhtml.XBatchConverter, which provides a single method

// method

// org::openoffice::da::writer2xhtml::XBatchConverter::convert

void convert ( [in] string sSourceURL,

  [in] string sTargetURL,

  [in] sequence<com::sun::star::beans::PropertyValue> lArguments,

  [in] XBatchHandler handler );

The available arguments (for the parameter lArguments) are specified in this table

Argument

Description

Recurse

Set to true (default) if you want to convert subdirectories

Uplink

You can set this to an URL, which will be used as an uplink on the index page for the top level directory

DirectoryIcon

You can set this to an URL pointing to an image that represents a directory

DocumentIcon

You can set this to an URL pointing to an image that represents a document

TemplateURL

You can set this to an URL pointing to an XHTML template that should be used to generate the index page(s).

Note that if you want to provide an XHTML template for the documents as well, this must be done using the FilterData (and the templates may be different).

IndcludePdf

Set this to true (default) if you want to include a pdf version of each file in addition to the XHTML version

UseTitle

Set this to true (default) if you want to use the document title in the index page rather than the file name

UseDescription

Set this to true (default) if you want to include the description of the document in the index page.

WriterFilterName

You can set this to the name of any Writer export filter you have available in your LO installation. The default is the XHTML export filter provided by Writer2xhtml (org.openoffice.da.writer2xhtml).

WriterFilterData

The structure of this argument depends on the filter, but for the default filter it is a sequence of PropertyValues to pass options to the filter (see above).

CalcFilterName

You can set this to the name of any Calc export filter you have available in your LO installation. The default is the XHTML export filter provided by Writer2xhtml (org.openoffice.da.calc2xhtml).

CalcFilterData

The structure of this argument depends on the filter, but for the default filter it is a sequence of PropertyValues to pass options to the filter (see above).