protected abstract static class TranslateOdtCommon.CommonArgs
extends org.vishia.util.Arguments
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TranslateOdtCommon.CommonArgs.DirName |
| Modifier and Type | Field and Description |
|---|---|
(package private) org.vishia.util.Arguments.Argument[] |
argListCommon |
(package private) boolean |
bBackAll
If given as true by "-backall:dir", then rename all existing backup files with a number (as "file.99.vml") to preserve all versions.
|
(package private) java.io.File |
dirDbg |
(package private) java.io.File |
dirIn
The input file to read, either odt or ZmL.
|
java.io.File |
dirLabel
Directory of the label file.
|
(package private) java.io.File |
dirOutBack
If set then create backup files for the current file.ZmL before writing the new one.
|
(package private) java.io.File |
dirZml
Directory (relative to current directory where the *.odt invokes this conversion)
where the Zml and also label files are stored.
|
(package private) java.io.File |
fIn
The input file to read, either odt or ZmL.
|
(package private) java.io.OutputStream |
fLog
If not null then write the log output beside stdout, stderr in this file.
|
(package private) java.io.File |
fReport
If not null then write some report info.
|
(package private) java.lang.String |
sCurrDir |
protected java.lang.String |
sDirSrcCmpn
This should be present the component's directory in the 'src/component'.
|
(package private) java.lang.String |
sExtOut |
(package private) java.lang.String |
sExtRefBesideHtml
Contains the extension for reference links beside the own document from -labels.
|
(package private) java.lang.String |
sExtRefBesidePdf
Contains the extension for reference links beside the own document from -labels.
|
(package private) java.lang.String |
sExtZmL
Used extension for the ZmL file.
|
(package private) java.lang.String |
sNameDoc
This is either the whole name of
fIn or the right part after a "++" in the name, without extension. |
java.lang.String |
sNameLabel
"*" if * is written, read all files.
|
(package private) java.lang.String |
sRefBesideHtml
Contains a relative (or possible absolute) or also a URL path where foreign linked bookmark files are placed.
|
(package private) java.lang.String |
sRefBesideInWWWHtml
Contains the www URL path where the files with references to bookmarks to documents beside are placed
additional to the given #-sRefBesidePdf
It has the form "https://myPage.org/path/*.ext" where ".ext" may be ".html" to link to html files.
|
(package private) java.lang.String |
sRefBesideInWWWPdf
Contains the www URL path where the files with references to bookmarks to documents beside are placed
additional to the given #-sRefBesidePdf
It has the form "https://myPage.org/path/*.ext" where ".ext" may be ".html" to link to html files.
|
(package private) java.lang.String |
sRefBesidePdf
Contains a relative (or possible absolute) or also a URL path where foreign linked bookmark files are placed.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CommonArgs() |
| Modifier and Type | Method and Description |
|---|---|
protected TranslateOdtCommon.CommonArgs.DirName |
getDirNameReplaceSrcCmpn(java.lang.String val)
Combines the given 'val' with
sDirSrcCmpn to a directory and extract maybe the given extension. |
protected java.io.File |
getDirRepaceSrcCmpn(java.lang.String sDirArg) |
void |
setCurrDir() |
java.lang.String sCurrDir
java.io.File dirIn
java.io.File fIn
java.io.File fReport
java.io.OutputStream fLog
protected java.lang.String sDirSrcCmpn
fIn if this name contains "++" in mid.
The ++ is adequate a separator but admissible for file names.java.lang.String sNameDoc
fIn or the right part after a "++" in the name, without extension.
It is used to build the name of the ZmL file as <&sNameDoc>.ZmLjava.lang.String sExtOut
java.io.File dirZml
java.lang.String sExtZmL
java.io.File dirOutBack
boolean bBackAll
public java.io.File dirLabel
public java.lang.String sNameLabel
java.lang.String sRefBesideHtml
java.lang.String sRefBesidePdf
java.lang.String sExtRefBesideHtml
java.lang.String sExtRefBesidePdf
java.lang.String sRefBesideInWWWHtml
java.lang.String sRefBesideInWWWPdf
java.io.File dirDbg
org.vishia.util.Arguments.Argument[] argListCommon
public void setCurrDir()
protected TranslateOdtCommon.CommonArgs.DirName getDirNameReplaceSrcCmpn(java.lang.String val)
sDirSrcCmpn to a directory and extract maybe the given extension.
This operation is used for several argument preparation.
sDirSrcCmpn is set (not null),
then the directory part with '++' on end is replaced by sDirSrcCmpn.
sDirSrcCmpn null,
(because the input file name has not contained a '++' in the name,
or argument '-dirCmpn' was not given)
then '++' is removed in the path, it means the directory name before '++' is used.
This should be the default component path.
TranslateOdtCommon.CommonArgs.DirName.name is set with the part after *
TranslateOdtCommon.CommonArgs.DirName.name is set with the last path entry as file name.
val - argument value can contain 'path/default++/to/*name.ext'bFile - true then extract an file name or extension, false: build the directory with valprotected java.io.File getDirRepaceSrcCmpn(java.lang.String sDirArg)