EPUB meta data editor second draft

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@92 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2011-02-23 11:09:09 +00:00
parent bb1cc87bab
commit 3dd2833a4e
16 changed files with 336 additions and 238 deletions

View file

@ -4,8 +4,6 @@ Changelog for Writer2LaTeX version 1.0 -> 1.2
[w2x] Standard meta data as well as custom meta data can now be edited directly from the EPUB export dialog
[w2x] New option use_custom_metadata (default true) making the inclusion of custom meta data in EPUB export optional
[w2x] Revised the internal structure of EPUB files: Text files are named chapter<n>.xhtml, images are placed in the
subdirectory images and name image<n>, styles are placed in the subdirectory styles and names styles.css (custom
style sheet) and styles1.css (generated style sheet)

Binary file not shown.

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2010 by Henrik Just
* Copyright: 2002-2011 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2010-04-12)
* Version 1.2 (2011-02-23)
*
*/
@ -115,7 +115,7 @@ public abstract class OptionsDialogBase extends DialogBase implements
/** Finalize the dialog after execution (eg. save settings to the registry)
*/
public void finalize() {
public void endDialog() {
try {
// Prepare registry view
Object rwview = getRegistryView(true);

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2008 by Henrik Just
* Copyright: 2002-2011 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.0 (2008-09-11)
* Version 1.2 (2011-02-23)
*
*/
@ -87,10 +87,10 @@ public abstract class DialogBase implements
*/
protected abstract void initialize();
/** Finalize the dialog after execution (eg. save settings to the registry)
/** End the dialog after execution (eg. save settings to the registry)
* The subclass must implement this
*/
protected abstract void finalize();
protected abstract void endDialog();
//////////////////////////////////////////////////////////////////////////
// Some constants
@ -195,15 +195,12 @@ public abstract class DialogBase implements
if (nResult == ExecutableDialogResults.OK) {
// Finalize after execution of dialog using method from subclass
finalize();
endDialog();
}
xDialog.endExecute();
return nResult;
}
catch (Exception e) {
MessageBox msgBox = new MessageBox(xContext);
msgBox.showMessage("Error",e.toString()+" "+e.getStackTrace()[0].toString());
// continue as if the dialog was executed OK
return ExecutableDialogResults.OK;
}

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2011-02-22)
* Version 1.2 (2011-02-23)
*
*/
@ -30,6 +30,9 @@ import java.util.HashSet;
import org.openoffice.da.comp.w2lcommon.helper.DialogBase;
import writer2latex.util.CSVList;
import com.sun.star.awt.XDialog;
import com.sun.star.beans.IllegalTypeException;
import com.sun.star.beans.NotRemoveableException;
import com.sun.star.beans.Property;
@ -65,7 +68,8 @@ public class EpubMetadataDialog extends DialogBase {
private static final String COVERAGE="Coverage";
private static final String RIGHTS="Rights";
// Access to the user defined properties
// Access to the document properties
private XDocumentProperties xDocumentProperties=null;
private XPropertyContainer xUserProperties=null;
private XPropertySet xUserPropertySet=null;
@ -81,15 +85,193 @@ public class EpubMetadataDialog extends DialogBase {
*/
public static String __implementationName = "org.openoffice.da.comp.writer2xhtml.EpubMetadataDialog";
@Override
public String getDialogLibraryName() {
// --------------------------------------------------
// Ensure that the super can find us :-)
@Override public String getDialogLibraryName() {
return "W2XDialogs2";
}
@Override
public String getDialogName() {
@Override public String getDialogName() {
return "EpubMetadata";
}
// --------------------------------------------------
// Implement the interface XDialogEventHandler
@Override public boolean callHandlerMethod(XDialog xDialog, Object event, String sMethod) {
if (sMethod.equals("UseCustomIdentifierChange")) {
return useCustomIdentifierChange();
}
else if (sMethod.equals("AuthorAddClick")) {
return authorAddclick();
}
else if (sMethod.equals("AuthorModifyClick")) {
return authorModifyclick();
}
else if (sMethod.equals("AuthorDeleteClick")) {
return authorDeleteclick();
}
else if (sMethod.equals("AuthorUpClick")) {
return authorUpclick();
}
else if (sMethod.equals("AuthorDownClick")) {
return authorDownclick();
}
else if (sMethod.equals("DateAddClick")) {
return dateAddClick();
}
else if (sMethod.equals("DateModifyClick")) {
return dateModifyClick();
}
else if (sMethod.equals("DateDeleteClick")) {
return dateDeleteClick();
}
return false;
}
@Override public String[] getSupportedMethodNames() {
String[] sNames = { "UseCustomIdentifierChange",
"AuthorAddClick", "AuthorModifyClick", "AuthorDeleteClick", "AuthorUpClick", "AuthorDownClick",
"DataAddClick", "DateModifyClick", "DateDeleteClick"};
return sNames;
}
private boolean useCustomIdentifierChange() {
boolean bEnabled = getCheckBoxStateAsBoolean("UseCustomIdentifier");
setControlEnabled("IdentifierLabel",bEnabled);
setControlEnabled("Identifier",bEnabled);
setControlEnabled("IdentifierTypeLabel",bEnabled);
setControlEnabled("IdentifierType",bEnabled);
return true;
}
private boolean authorAddclick() {
System.out.println("AuthorAddClick");
return true;
}
private boolean authorModifyclick() {
System.out.println("AuthorModifyClick");
return true;
}
private boolean authorDeleteclick() {
System.out.println("AuthorDeleteClick");
return true;
}
private boolean authorUpclick() {
System.out.println("AuthorUpClick");
return true;
}
private boolean authorDownclick() {
System.out.println("AuthorDownClick");
return true;
}
private boolean dateAddClick() {
System.out.println("DateAddClick");
return true;
}
private boolean dateModifyClick() {
System.out.println("DateModifyClick");
return true;
}
private boolean dateDeleteClick() {
System.out.println("DateDeleteClick");
return true;
}
// --------------------------------------------------
// Get and set properties from and to current document
@Override protected void initialize() {
// Get the document properties
XDesktop xDesktop;
Object desktop;
try {
desktop = xContext.getServiceManager().createInstanceWithContext("com.sun.star.frame.Desktop", xContext);
} catch (Exception e) {
// Failed to get desktop
return;
}
xDesktop = (XDesktop) UnoRuntime.queryInterface(com.sun.star.frame.XDesktop.class, desktop);
XComponent xComponent = xDesktop.getCurrentComponent();
XDocumentPropertiesSupplier xSupplier = (XDocumentPropertiesSupplier) UnoRuntime.queryInterface(XDocumentPropertiesSupplier.class, xComponent);
// Get the document properties (we need several interfaces)
xDocumentProperties = xSupplier.getDocumentProperties();
xUserProperties= xDocumentProperties.getUserDefinedProperties();
xUserPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xUserProperties);
// Get the custom identifier and set the text fields
String[] sIdentifiers = getProperties(IDENTIFIER,false);
setCheckBoxStateAsBoolean("UseCustomIdentifier",sIdentifiers.length>0);
useCustomIdentifierChange();
if (sIdentifiers.length>0) { // Use the first if we have several...
setTextFieldText("Identifier",getValue(sIdentifiers[0]));
int nDot = sIdentifiers[0].indexOf(".");
setTextFieldText("IdentifierType",nDot>-1 ? sIdentifiers[0].substring(nDot+1) : "");
}
// Get the standard properties and set the text fields
setTextFieldText("Title",xDocumentProperties.getTitle());
setTextFieldText("Subject",xDocumentProperties.getSubject());
String[] sKeywords = xDocumentProperties.getKeywords();
CSVList keywords = new CSVList(", ");
for (String sKeyword : sKeywords) {
keywords.addValue(sKeyword);
}
setTextFieldText("Keywords",keywords.toString());
setTextFieldText("Description",xDocumentProperties.getDescription());
// Get the simple user properties and set the text fields
readSimpleProperty(PUBLISHER);
readSimpleProperty(TYPE);
readSimpleProperty(FORMAT);
readSimpleProperty(SOURCE);
readSimpleProperty(RELATION);
readSimpleProperty(COVERAGE);
readSimpleProperty(RIGHTS);
}
@Override protected void endDialog() {
// Set the custom identifier from the text fields
String[] sIdentifiers = getProperties(IDENTIFIER,false);
for (String sIdentifier : sIdentifiers) { // Remove old identifier(s)
removeProperty(sIdentifier);
}
if (getCheckBoxStateAsBoolean("UseCustomIdentifier")) {
String sName = IDENTIFIER;
if (getTextFieldText("IdentifierType").trim().length()>0) {
sName+="."+getTextFieldText("IdentifierType").trim();
}
addProperty(sName);
setValue(sName,getTextFieldText("Identifier"));
}
// Set the standard properties from the text fields
xDocumentProperties.setTitle(getTextFieldText("Title"));
xDocumentProperties.setSubject(getTextFieldText("Subject"));
String[] sKeywords = getTextFieldText("Keywords").split(",");
for (int i=0; i<sKeywords.length; i++) {
sKeywords[i] = sKeywords[i].trim();
}
xDocumentProperties.setKeywords(sKeywords);
xDocumentProperties.setDescription(getTextFieldText("Description"));
// Set the simple user properties from the text fields
writeSimpleProperty(PUBLISHER);
writeSimpleProperty(TYPE);
writeSimpleProperty(FORMAT);
writeSimpleProperty(SOURCE);
writeSimpleProperty(RELATION);
writeSimpleProperty(COVERAGE);
writeSimpleProperty(RIGHTS);
}
// Get all currently defined user properties with a specific name or prefix
private String[] getProperties(String sPrefix, boolean bComplete) {
@ -189,52 +371,5 @@ public class EpubMetadataDialog extends DialogBase {
}
}
@Override
protected void initialize() {
// Get the document properties
XDesktop xDesktop;
Object desktop;
try {
desktop = xContext.getServiceManager().createInstanceWithContext("com.sun.star.frame.Desktop", xContext);
} catch (Exception e) {
// Failed to get desktop
System.out.println("Failed to get desktop");
return;
}
xDesktop = (XDesktop) UnoRuntime.queryInterface(com.sun.star.frame.XDesktop.class, desktop);
XComponent xComponent = xDesktop.getCurrentComponent();
XDocumentPropertiesSupplier xSupplier = (XDocumentPropertiesSupplier) UnoRuntime.queryInterface(XDocumentPropertiesSupplier.class, xComponent);
XDocumentProperties xProperties = xSupplier.getDocumentProperties();
// Get the user defined properties from the properties (we need several interfaces)
xUserProperties= xProperties.getUserDefinedProperties();
xUserPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xUserProperties);
// Get and fill the simple values
readSimpleProperty(PUBLISHER);
readSimpleProperty(TYPE);
readSimpleProperty(FORMAT);
readSimpleProperty(SOURCE);
readSimpleProperty(RELATION);
readSimpleProperty(COVERAGE);
readSimpleProperty(RIGHTS);
}
@Override
protected void finalize() {
// Set the simple values
writeSimpleProperty(PUBLISHER);
writeSimpleProperty(TYPE);
writeSimpleProperty(FORMAT);
writeSimpleProperty(SOURCE);
writeSimpleProperty(RELATION);
writeSimpleProperty(COVERAGE);
writeSimpleProperty(RIGHTS);
xUserProperties = null;
xUserPropertySet = null;
}
}

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2011-02-22)
* Version 1.2 (2011-02-23)
*
*/
@ -29,14 +29,8 @@ package org.openoffice.da.comp.writer2xhtml;
import java.awt.GraphicsEnvironment;
import com.sun.star.awt.XDialog;
import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XPropertySet;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XDispatchHelper;
import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XComponent;
import com.sun.star.ui.dialogs.XExecutableDialog;
import com.sun.star.uno.Exception;
import com.sun.star.uno.UnoRuntime;
@ -103,7 +97,6 @@ public class EpubOptionsDialog extends OptionsDialogBase {
loadCheckBoxOption(xProps, "DisplayHiddenText");
loadCheckBoxOption(xProps, "Notes");
loadCheckBoxOption(xProps, "UseDublinCore");
loadCheckBoxOption(xProps, "UseCustomMetadata");
// Document division
loadCheckBoxOption(xProps, "Split");
@ -151,7 +144,6 @@ public class EpubOptionsDialog extends OptionsDialogBase {
saveCheckBoxOption(xProps, helper, "DisplayHiddenText", "display_hidden_text");
saveCheckBoxOption(xProps, helper, "Notes", "notes");
saveCheckBoxOption(xProps, helper, "UseDublinCore", "use_dublin_core");
saveCheckBoxOption(xProps, helper, "UseCustomMetadata", "use_custom_metadata");
// Document division
boolean bSplit = saveCheckBoxOption(xProps, "Split");
@ -213,9 +205,6 @@ public class EpubOptionsDialog extends OptionsDialogBase {
else if (sMethod.equals("EditMetadataClick")) {
editMetadataClick();
}
else if (sMethod.equals("EditCustomMetadataClick")) {
editCustomMetadataClick();
}
else if (sMethod.equals("SplitChange")) {
splitChange();
}
@ -229,8 +218,7 @@ public class EpubOptionsDialog extends OptionsDialogBase {
}
@Override public String[] getSupportedMethodNames() {
String[] sNames = { "ConfigChange", "RelativeFontSizeChange", "UseDefaultFontChange",
"EditMetadataClick", "EditCustomMetadataClick",
String[] sNames = { "ConfigChange", "RelativeFontSizeChange", "UseDefaultFontChange", "EditMetadataClick",
"SplitChange", "UsePageBreakSplitChange", "UseSplitAfterChange" };
return sNames;
}
@ -265,7 +253,6 @@ public class EpubOptionsDialog extends OptionsDialogBase {
// Special content
setControlEnabled("Notes",!isLocked("notes"));
setControlEnabled("UseDublinCore",!isLocked("use_dublin_core"));
setControlEnabled("UseCustomMetadata",!isLocked("use_custom_metadata"));
// Document division
boolean bSplit = getCheckBoxStateAsBoolean("Split");
@ -307,49 +294,22 @@ public class EpubOptionsDialog extends OptionsDialogBase {
}
private void editMetadataClick() {
// Get the DispatchHelper service
XMultiComponentFactory xMCF = xContext.getServiceManager();
XMultiServiceFactory xFactory = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xMCF);
Object dispatchHelper;
try {
dispatchHelper = xFactory.createInstance("com.sun.star.frame.DispatchHelper");
} catch (Exception e) {
// Failed to get dispatch helper, cannot execute dispatch
System.out.println("Failed to get dispatch helper");
return;
}
XDispatchHelper helper = (XDispatchHelper) UnoRuntime.queryInterface(XDispatchHelper.class, dispatchHelper);
// Get the current frame
XDesktop xDesktop;
Object desktop;
try {
desktop = xContext.getServiceManager().createInstanceWithContext("com.sun.star.frame.Desktop", xContext);
} catch (Exception e) {
// Failed to get desktop
System.out.println("Failed to get desktop");
return;
}
xDesktop = (XDesktop) UnoRuntime.queryInterface(com.sun.star.frame.XDesktop.class, desktop);
XFrame xFrame =xDesktop.getCurrentFrame();
// Get the DispatchProvider for the current frame
XDispatchProvider xDispatchProvider = (XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class, xFrame);
PropertyValue[] props = new PropertyValue[0];
helper.executeDispatch(xDispatchProvider, ".uno:SetDocumentProperties","", 0, props);
}
private void editCustomMetadataClick() {
Object dialog;
try {
dialog = xContext.getServiceManager().createInstanceWithContext("org.openoffice.da.writer2xhtml.EpubMetadataDialog", xContext);
XExecutableDialog xDialog = (XExecutableDialog) UnoRuntime.queryInterface(XExecutableDialog.class, dialog);
xDialog.execute();
// Dispose the dialog after execution (to free up the memory)
XComponent xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, dialog);
if (xComponent!=null) {
System.out.println("Disposing the dialog!");
xComponent.dispose();
}
} catch (Exception e) {
// Failed to get dialog
}
}
private void splitChange() {
if (!isLocked("split_level")) {
boolean bState = getCheckBoxStateAsBoolean("Split");

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2009 by Henrik Just
* Copyright: 2002-2011 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2009-03-26)
* Version 1.2 (2011-02-23)
*
*/
@ -77,7 +77,7 @@ public class LogViewerDialog extends DialogBase
}
}
public void finalize() {
public void endDialog() {
}
/** Create a new LogViewerDialog */

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2011-02-22)
* Version 1.2 (2011-02-23)
*
*/
@ -33,7 +33,7 @@ public class ConverterFactory {
// Version information
private static final String VERSION = "1.1.7";
private static final String DATE = "2011-02-22";
private static final String DATE = "2011-02-23";
/** Return the Writer2LaTeX version in the form
* (major version).(minor version).(patch level)<br/>

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* version 1.2 (2011-02-17)
* version 1.2 (2011-02-23)
*
*/
@ -89,7 +89,7 @@ public class EPUBWriter implements OutputFile {
zos.closeEntry();
// Then manifest
OPFWriter manifest = new OPFWriter(xhtmlResult, config.xhtmlUseDublinCore(), config.useCustomMetadata());
OPFWriter manifest = new OPFWriter(xhtmlResult, config.xhtmlUseDublinCore());
ZipEntry manifestEntry = new ZipEntry("OEBPS/book.opf");
zos.putNextEntry(manifestEntry);
writeZipEntry(manifest,zos);

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* version 1.2 (2011-02-17)
* version 1.2 (2011-02-23)
*
*/
@ -51,7 +51,7 @@ import writer2latex.xmerge.NewDOMDocument;
public class OPFWriter extends NewDOMDocument {
private String sUID=null;
public OPFWriter(ConverterResult cr, boolean bUseDublinCore, boolean bUseCustomMetadata) {
public OPFWriter(ConverterResult cr, boolean bUseDublinCore) {
super("book", "opf");
// create DOM
@ -108,7 +108,7 @@ public class OPFWriter extends NewDOMDocument {
boolean bHasIdentifier = false;
boolean bHasCreator = false;
boolean bHasDate = false;
if (bUseCustomMetadata) {
if (bUseDublinCore) {
// First rearrange the user-defined meta data
Map<String,String> userDefinedMetaData = cr.getMetaData().getUserDefinedMetaData();
Map<String,String[]> dc = new HashMap<String,String[]>();

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2011-02-17)
* Version 1.2 (2011-02-23)
*
*/
@ -41,7 +41,7 @@ import writer2latex.util.Misc;
public class XhtmlConfig extends writer2latex.base.ConfigBase {
// Implement configuration methods
protected int getOptionCount() { return 54; }
protected int getOptionCount() { return 53; }
protected String getDefaultConfigPath() { return "/writer2latex/xhtml/config/"; }
// Override setOption: To be backwards compatible, we must accept options
@ -106,37 +106,36 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
private static final int USE_DEFAULT_FONT = 20;
private static final int DEFAULT_FONT_NAME = 21;
private static final int USE_DUBLIN_CORE = 22;
private static final int USE_CUSTOM_METADATA = 23;
private static final int NOTES = 24;
private static final int DISPLAY_HIDDEN_TEXT = 25;
private static final int CONVERT_TO_PX = 26;
private static final int SCALING = 27;
private static final int COLUMN_SCALING = 28;
private static final int RELATIVE_FONT_SIZE = 29;
private static final int FONT_SCALING = 30;
private static final int FLOAT_OBJECTS = 31;
private static final int TABSTOP_STYLE = 32;
private static final int FORMULAS = 33;
private static final int ENDNOTES_HEADING = 34;
private static final int EXTERNAL_TOC_DEPTH = 35;
private static final int INCLUDE_TOC = 36;
private static final int SPLIT_LEVEL = 37;
private static final int REPEAT_LEVELS = 38;
private static final int PAGE_BREAK_SPLIT = 39;
private static final int SPLIT_AFTER = 40;
private static final int CALC_SPLIT = 41;
private static final int DISPLAY_HIDDEN_SHEETS = 42;
private static final int DISPLAY_HIDDEN_ROWS_COLS = 43;
private static final int DISPLAY_FILTERED_ROWS_COLS = 44;
private static final int APPLY_PRINT_RANGES = 45;
private static final int USE_TITLE_AS_HEADING = 46;
private static final int USE_SHEET_NAMES_AS_HEADINGS = 47;
private static final int XSLT_PATH = 48;
private static final int SAVE_IMAGES_IN_SUBDIR = 49;
private static final int UPLINK = 50;
private static final int DIRECTORY_ICON = 51;
private static final int DOCUMENT_ICON = 52;
private static final int ZEN_HACK = 53; // temporary hack for ePub Zen Garden styles
private static final int NOTES = 23;
private static final int DISPLAY_HIDDEN_TEXT = 24;
private static final int CONVERT_TO_PX = 25;
private static final int SCALING = 26;
private static final int COLUMN_SCALING = 27;
private static final int RELATIVE_FONT_SIZE = 28;
private static final int FONT_SCALING = 29;
private static final int FLOAT_OBJECTS = 30;
private static final int TABSTOP_STYLE = 31;
private static final int FORMULAS = 32;
private static final int ENDNOTES_HEADING = 33;
private static final int EXTERNAL_TOC_DEPTH = 34;
private static final int INCLUDE_TOC = 35;
private static final int SPLIT_LEVEL = 36;
private static final int REPEAT_LEVELS = 37;
private static final int PAGE_BREAK_SPLIT = 38;
private static final int SPLIT_AFTER = 39;
private static final int CALC_SPLIT = 40;
private static final int DISPLAY_HIDDEN_SHEETS = 41;
private static final int DISPLAY_HIDDEN_ROWS_COLS = 42;
private static final int DISPLAY_FILTERED_ROWS_COLS = 43;
private static final int APPLY_PRINT_RANGES = 44;
private static final int USE_TITLE_AS_HEADING = 45;
private static final int USE_SHEET_NAMES_AS_HEADINGS = 46;
private static final int XSLT_PATH = 47;
private static final int SAVE_IMAGES_IN_SUBDIR = 48;
private static final int UPLINK = 49;
private static final int DIRECTORY_ICON = 50;
private static final int DOCUMENT_ICON = 51;
private static final int ZEN_HACK = 52; // temporary hack for ePub Zen Garden styles
protected ComplexOption xheading = addComplexOption("heading-map");
protected ComplexOption xpar = addComplexOption("paragraph-map");
@ -178,7 +177,6 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
options[USE_DEFAULT_FONT] = new BooleanOption("use_default_font","false");
options[DEFAULT_FONT_NAME] = new BooleanOption("default_font_name","");
options[USE_DUBLIN_CORE] = new BooleanOption("use_dublin_core","true");
options[USE_CUSTOM_METADATA] = new BooleanOption("use_custom_metadata","true");
options[NOTES] = new BooleanOption("notes","true");
options[DISPLAY_HIDDEN_TEXT] = new BooleanOption("display_hidden_text", "false");
options[CONVERT_TO_PX] = new BooleanOption("convert_to_px","true");
@ -343,7 +341,6 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
public boolean useDefaultFont() { return ((BooleanOption) options[USE_DEFAULT_FONT]).getValue(); }
public String defaultFontName() { return options[DEFAULT_FONT_NAME].getString(); }
public boolean xhtmlUseDublinCore() { return ((BooleanOption) options[USE_DUBLIN_CORE]).getValue(); }
public boolean useCustomMetadata() { return ((BooleanOption) options[USE_CUSTOM_METADATA]).getValue(); }
public boolean xhtmlNotes() { return ((BooleanOption) options[NOTES]).getValue(); }
public boolean displayHiddenText() { return ((BooleanOption) options[DISPLAY_HIDDEN_TEXT]).getValue(); }
public boolean xhtmlConvertToPx() { return ((BooleanOption) options[CONVERT_TO_PX]).getValue(); }

View file

@ -70,7 +70,6 @@
<prop oor:name="DisplayHiddenText" oor:type="xs:boolean" />
<prop oor:name="Notes" oor:type="xs:boolean" />
<prop oor:name="UseDublinCore" oor:type="xs:boolean" />
<prop oor:name="UseCustomMetadata" oor:type="xs:boolean" />
<!-- Files -->
<prop oor:name="Split" oor:type="xs:boolean" />
<prop oor:name="SplitLevel" oor:type="xs:short" />

View file

@ -103,9 +103,6 @@
<prop oor:name="UseDublinCore" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="UseCustomMetadata" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="Split" oor:type="xs:boolean">
<value>false</value>
</prop>

View file

@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EpubMetadata" dlg:left="173" dlg:top="73" dlg:width="220" dlg:height="310" dlg:closeable="true" dlg:moveable="true" dlg:title="EPUB custom document properties (Writer2xhtml)">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EpubMetadata" dlg:left="173" dlg:top="73" dlg:width="360" dlg:height="218" dlg:closeable="true" dlg:moveable="true" dlg:title="EPUB document properties (Writer2xhtml)">
<dlg:bulletinboard>
<dlg:checkbox dlg:id="UseCustomIdentifier" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="210" dlg:height="12" dlg:value="Use custom identifier" dlg:checked="false"/>
<dlg:text dlg:id="IdentifierLabel" dlg:tab-index="1" dlg:left="20" dlg:top="22" dlg:width="60" dlg:height="12" dlg:value="Identifier"/>
<dlg:textfield dlg:id="Identifier" dlg:tab-index="2" dlg:left="85" dlg:top="20" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="IdentifierTypeLabel" dlg:tab-index="3" dlg:left="20" dlg:top="36" dlg:width="60" dlg:height="12" dlg:value="Type"/>
<dlg:combobox dlg:id="IdentifierType" dlg:tab-index="4" dlg:left="85" dlg:top="34" dlg:width="130" dlg:height="12" dlg:spin="true">
<dlg:checkbox dlg:id="UseCustomIdentifier" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="165" dlg:height="12" dlg:value="Use custom identifier" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseCustomIdentifierChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="IdentifierLabel" dlg:tab-index="1" dlg:left="20" dlg:top="22" dlg:width="40" dlg:height="12" dlg:value="Identifier"/>
<dlg:textfield dlg:id="Identifier" dlg:tab-index="2" dlg:left="65" dlg:top="20" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="IdentifierTypeLabel" dlg:tab-index="3" dlg:left="20" dlg:top="36" dlg:width="40" dlg:height="12" dlg:value="Type"/>
<dlg:combobox dlg:id="IdentifierType" dlg:tab-index="4" dlg:left="65" dlg:top="34" dlg:width="105" dlg:height="12" dlg:spin="true">
<dlg:menupopup>
<dlg:menuitem dlg:value="ISBN"/>
<dlg:menuitem dlg:value="DOI"/>
@ -15,35 +17,60 @@
<dlg:menuitem dlg:value="UUID"/>
</dlg:menupopup>
</dlg:combobox>
<dlg:text dlg:id="AuthorsLabel" dlg:tab-index="5" dlg:left="5" dlg:top="50" dlg:width="210" dlg:height="12" dlg:value="Authors"/>
<dlg:menulist dlg:id="Authors" dlg:tab-index="6" dlg:left="10" dlg:top="62" dlg:width="160" dlg:height="36"/>
<dlg:button dlg:id="AuthorUpButton" dlg:tab-index="7" dlg:left="175" dlg:top="62" dlg:width="40" dlg:height="12" dlg:value="Move up"/>
<dlg:button dlg:id="AuthorDownButton" dlg:tab-index="8" dlg:left="175" dlg:top="86" dlg:width="40" dlg:height="12" dlg:value="Move down"/>
<dlg:button dlg:id="AddAuthorButton" dlg:tab-index="9" dlg:left="10" dlg:top="100" dlg:width="50" dlg:height="12" dlg:value="Add..."/>
<dlg:button dlg:id="ModifyAuthorButton" dlg:tab-index="10" dlg:left="65" dlg:top="100" dlg:width="50" dlg:height="12" dlg:value="Modify..."/>
<dlg:button dlg:id="DeleteAuthorButton" dlg:tab-index="11" dlg:left="120" dlg:top="100" dlg:width="50" dlg:height="12" dlg:value="Delete..."/>
<dlg:text dlg:id="AuthorsLabel" dlg:tab-index="5" dlg:left="5" dlg:top="50" dlg:width="165" dlg:height="12" dlg:value="Authors"/>
<dlg:menulist dlg:id="Authors" dlg:tab-index="6" dlg:left="10" dlg:top="62" dlg:width="130" dlg:height="36"/>
<dlg:button dlg:id="AuthorUpButton" dlg:tab-index="7" dlg:left="145" dlg:top="62" dlg:width="25" dlg:height="12" dlg:value="Up">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AuthorUpClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="AuthorDownButton" dlg:tab-index="8" dlg:left="145" dlg:top="86" dlg:width="25" dlg:height="12" dlg:value="Down">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AuthorDownClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="AddAuthorButton" dlg:tab-index="9" dlg:left="10" dlg:top="100" dlg:width="40" dlg:height="12" dlg:value="Add...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AuthorAddClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="ModifyAuthorButton" dlg:tab-index="10" dlg:left="55" dlg:top="100" dlg:width="40" dlg:height="12" dlg:value="Modify...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AuthorModifyClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="DeleteAuthorButton" dlg:tab-index="11" dlg:left="100" dlg:top="100" dlg:width="40" dlg:height="12" dlg:value="Delete...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AuthorDeleteClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="CommandButton1" dlg:tab-index="12" dlg:left="149" dlg:top="-11" dlg:width="8" dlg:height="0" dlg:value="CommandButton1"/>
<dlg:text dlg:id="DatesLabel" dlg:tab-index="13" dlg:left="5" dlg:top="116" dlg:width="210" dlg:height="12" dlg:value="Dates"/>
<dlg:menulist dlg:id="Dates" dlg:tab-index="14" dlg:left="10" dlg:top="128" dlg:width="160" dlg:height="36"/>
<dlg:button dlg:id="AddDateButton" dlg:tab-index="15" dlg:left="10" dlg:top="166" dlg:width="50" dlg:height="12" dlg:value="Add..."/>
<dlg:button dlg:id="ModifyDateButton" dlg:tab-index="16" dlg:left="65" dlg:top="166" dlg:width="50" dlg:height="12" dlg:value="Modify..."/>
<dlg:button dlg:id="DeleteDateButton" dlg:tab-index="17" dlg:left="120" dlg:top="166" dlg:width="50" dlg:height="12" dlg:value="Delete..."/>
<dlg:text dlg:id="PublisherLabel" dlg:tab-index="18" dlg:left="5" dlg:top="186" dlg:width="75" dlg:height="12" dlg:value="Publisher"/>
<dlg:textfield dlg:id="Publisher" dlg:tab-index="19" dlg:left="85" dlg:top="184" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="TypeLabel" dlg:tab-index="20" dlg:left="5" dlg:top="200" dlg:width="75" dlg:height="12" dlg:value="Type"/>
<dlg:textfield dlg:id="Type" dlg:tab-index="21" dlg:left="85" dlg:top="198" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="FormatLabel" dlg:tab-index="22" dlg:left="5" dlg:top="214" dlg:width="75" dlg:height="12" dlg:value="Format"/>
<dlg:textfield dlg:id="Format" dlg:tab-index="23" dlg:left="85" dlg:top="212" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="SourceLabel" dlg:tab-index="24" dlg:left="5" dlg:top="228" dlg:width="75" dlg:height="12" dlg:value="Source"/>
<dlg:textfield dlg:id="Source" dlg:tab-index="25" dlg:left="85" dlg:top="226" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="RelationLabel" dlg:tab-index="26" dlg:left="5" dlg:top="242" dlg:width="75" dlg:height="12" dlg:value="Relation"/>
<dlg:textfield dlg:id="Relation" dlg:tab-index="27" dlg:left="85" dlg:top="240" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="CoverageLabel" dlg:tab-index="28" dlg:left="5" dlg:top="256" dlg:width="75" dlg:height="12" dlg:value="Coverage"/>
<dlg:textfield dlg:id="Coverage" dlg:tab-index="29" dlg:left="85" dlg:top="254" dlg:width="130" dlg:height="12"/>
<dlg:text dlg:id="RightsLabel" dlg:tab-index="30" dlg:left="5" dlg:top="270" dlg:width="75" dlg:height="12" dlg:value="Rights"/>
<dlg:textfield dlg:id="Rights" dlg:tab-index="31" dlg:left="85" dlg:top="268" dlg:width="130" dlg:height="12"/>
<dlg:button dlg:id="OKButton" dlg:tab-index="32" dlg:left="5" dlg:top="290" dlg:width="50" dlg:height="12" dlg:value="OK" dlg:button-type="ok"/>
<dlg:button dlg:id="CancelButton" dlg:tab-index="33" dlg:left="60" dlg:top="290" dlg:width="50" dlg:height="12" dlg:value="Cancel" dlg:button-type="cancel"/>
<dlg:button dlg:id="HelpButton" dlg:tab-index="34" dlg:left="165" dlg:top="290" dlg:width="50" dlg:height="12" dlg:value="Help"/>
<dlg:text dlg:id="DatesLabel" dlg:tab-index="13" dlg:left="5" dlg:top="116" dlg:width="165" dlg:height="12" dlg:value="Dates"/>
<dlg:menulist dlg:id="Dates" dlg:tab-index="14" dlg:left="10" dlg:top="128" dlg:width="130" dlg:height="36"/>
<dlg:button dlg:id="AddDateButton" dlg:tab-index="15" dlg:left="10" dlg:top="166" dlg:width="40" dlg:height="12" dlg:value="Add...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:DateAddClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="ModifyDateButton" dlg:tab-index="16" dlg:left="55" dlg:top="166" dlg:width="40" dlg:height="12" dlg:value="Modify...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:DateModifyClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="DeleteDateButton" dlg:tab-index="17" dlg:left="100" dlg:top="166" dlg:width="40" dlg:height="12" dlg:value="Delete...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:DateDeleteClick" script:language="UNO"/>
</dlg:button>
<dlg:text dlg:id="PublisherLabel" dlg:tab-index="29" dlg:left="190" dlg:top="84" dlg:width="50" dlg:height="12" dlg:value="Publisher"/>
<dlg:textfield dlg:id="Publisher" dlg:tab-index="22" dlg:left="245" dlg:top="82" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="TypeLabel" dlg:tab-index="30" dlg:left="190" dlg:top="98" dlg:width="50" dlg:height="12" dlg:value="Type"/>
<dlg:textfield dlg:id="Type" dlg:tab-index="23" dlg:left="245" dlg:top="96" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="FormatLabel" dlg:tab-index="31" dlg:left="190" dlg:top="112" dlg:width="50" dlg:height="12" dlg:value="Format"/>
<dlg:textfield dlg:id="Format" dlg:tab-index="24" dlg:left="245" dlg:top="110" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="SourceLabel" dlg:tab-index="32" dlg:left="190" dlg:top="126" dlg:width="50" dlg:height="12" dlg:value="Source"/>
<dlg:textfield dlg:id="Source" dlg:tab-index="25" dlg:left="245" dlg:top="124" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="RelationLabel" dlg:tab-index="33" dlg:left="190" dlg:top="140" dlg:width="50" dlg:height="12" dlg:value="Relation"/>
<dlg:textfield dlg:id="Relation" dlg:tab-index="26" dlg:left="245" dlg:top="138" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="CoverageLabel" dlg:tab-index="34" dlg:left="190" dlg:top="154" dlg:width="50" dlg:height="12" dlg:value="Coverage"/>
<dlg:textfield dlg:id="Coverage" dlg:tab-index="27" dlg:left="245" dlg:top="152" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="RightsLabel" dlg:tab-index="35" dlg:left="190" dlg:top="168" dlg:width="50" dlg:height="12" dlg:value="Rights"/>
<dlg:textfield dlg:id="Rights" dlg:tab-index="28" dlg:left="245" dlg:top="166" dlg:width="105" dlg:height="12"/>
<dlg:button dlg:id="OKButton" dlg:tab-index="36" dlg:left="10" dlg:top="195" dlg:width="50" dlg:height="12" dlg:value="OK" dlg:button-type="ok"/>
<dlg:button dlg:id="CancelButton" dlg:tab-index="37" dlg:left="65" dlg:top="195" dlg:width="50" dlg:height="12" dlg:value="Cancel" dlg:button-type="cancel"/>
<dlg:button dlg:id="HelpButton" dlg:tab-index="38" dlg:left="300" dlg:top="195" dlg:width="50" dlg:height="12" dlg:value="Help"/>
<dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="39" dlg:left="180" dlg:top="9" dlg:width="1" dlg:height="170" dlg:align="vertical"/>
<dlg:text dlg:id="TitleLabel" dlg:tab-index="40" dlg:left="190" dlg:top="8" dlg:width="50" dlg:height="12" dlg:value="Title"/>
<dlg:textfield dlg:id="Title" dlg:tab-index="18" dlg:left="245" dlg:top="6" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="SubjectLabel" dlg:tab-index="41" dlg:left="190" dlg:top="22" dlg:width="50" dlg:height="12" dlg:value="Subject"/>
<dlg:textfield dlg:id="Subject" dlg:tab-index="19" dlg:left="245" dlg:top="20" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="KeywordsLabel" dlg:tab-index="42" dlg:left="190" dlg:top="36" dlg:width="50" dlg:height="12" dlg:value="Keywords"/>
<dlg:textfield dlg:id="Keywords" dlg:tab-index="20" dlg:left="245" dlg:top="34" dlg:width="105" dlg:height="12"/>
<dlg:text dlg:id="DescriptionLabel" dlg:tab-index="43" dlg:left="190" dlg:top="50" dlg:width="50" dlg:height="12" dlg:value="Description"/>
<dlg:textfield dlg:id="Description" dlg:tab-index="21" dlg:left="245" dlg:top="48" dlg:width="105" dlg:height="32" dlg:vscroll="true" dlg:multiline="true"/>
</dlg:bulletinboard>
</dlg:window>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EpubOptions" dlg:left="139" dlg:top="84" dlg:width="360" dlg:height="256" dlg:closeable="true" dlg:moveable="true" dlg:title="EPUB Options (Writer2xhtml)">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EpubOptions" dlg:left="139" dlg:top="84" dlg:width="360" dlg:height="240" dlg:closeable="true" dlg:moveable="true" dlg:title="EPUB Options (Writer2xhtml)">
<dlg:bulletinboard>
<dlg:text dlg:id="StyleLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="160" dlg:height="12" dlg:value="Style"/>
<dlg:text dlg:id="ConfigLabel" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="60" dlg:height="12" dlg:value="Use style"/>
@ -16,21 +16,21 @@
<dlg:text dlg:id="ScalingPercentLabel" dlg:tab-index="5" dlg:left="155" dlg:top="36" dlg:width="10" dlg:height="12" dlg:value="%"/>
<dlg:text dlg:id="ColumnScalingLabel" dlg:tab-index="6" dlg:left="10" dlg:top="50" dlg:width="100" dlg:height="12" dlg:value="Column scaling"/>
<dlg:numericfield dlg:id="ColumnScaling" dlg:tab-index="7" dlg:left="120" dlg:top="48" dlg:width="30" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsColumnScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
<dlg:text dlg:id="ColumnScalingPercentLabel" dlg:tab-index="31" dlg:left="155" dlg:top="50" dlg:width="10" dlg:height="12" dlg:value="%"/>
<dlg:text dlg:id="ColumnScalingPercentLabel" dlg:tab-index="29" dlg:left="155" dlg:top="50" dlg:width="10" dlg:height="12" dlg:value="%"/>
<dlg:checkbox dlg:id="ConvertToPx" dlg:tab-index="12" dlg:left="10" dlg:top="120" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsConvertToPx" dlg:value="Convert units to px (pixels)" dlg:checked="true"/>
<dlg:checkbox dlg:id="OriginalImageSize" dlg:tab-index="13" dlg:left="10" dlg:top="134" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsOriginalImageSize" dlg:value="Use original image size" dlg:checked="false"/>
<dlg:text dlg:id="SpecialContentLabel" dlg:tab-index="32" dlg:left="185" dlg:top="8" dlg:width="160" dlg:height="12" dlg:value="Special content"/>
<dlg:text dlg:id="SpecialContentLabel" dlg:tab-index="30" dlg:left="185" dlg:top="8" dlg:width="160" dlg:height="12" dlg:value="Special content"/>
<dlg:checkbox dlg:id="Notes" dlg:tab-index="18" dlg:left="190" dlg:top="36" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsNotes" dlg:value="Export notes" dlg:checked="true"/>
<dlg:checkbox dlg:id="UseDublinCore" dlg:tab-index="19" dlg:left="190" dlg:top="50" dlg:width="110" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseDublinCore" dlg:value="Export optional document properties" dlg:checked="true"/>
<dlg:text dlg:id="AutoCorrectLabel" dlg:tab-index="33" dlg:left="5" dlg:top="148" dlg:width="160" dlg:height="12" dlg:value="AutoCorrect"/>
<dlg:text dlg:id="AutoCorrectLabel" dlg:tab-index="31" dlg:left="5" dlg:top="148" dlg:width="160" dlg:height="12" dlg:value="AutoCorrect"/>
<dlg:checkbox dlg:id="IgnoreHardLineBreaks" dlg:tab-index="14" dlg:left="10" dlg:top="162" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsIgnoreHardLineBreaks" dlg:value="Ignore hard line breaks" dlg:checked="false"/>
<dlg:checkbox dlg:id="IgnoreEmptyParagraphs" dlg:tab-index="15" dlg:left="10" dlg:top="176" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsIgnoreEmptyParagraphs" dlg:value="Ignore empty paragraphs" dlg:checked="false"/>
<dlg:checkbox dlg:id="IgnoreDoubleSpaces" dlg:tab-index="16" dlg:left="10" dlg:top="190" dlg:width="155" dlg:height="15" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsIgnoreDoubleSpaces" dlg:value="Ignore double spaces" dlg:checked="false"/>
<dlg:checkbox dlg:id="Split" dlg:tab-index="23" dlg:left="190" dlg:top="92" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsSplit" dlg:value="Split document at headings" dlg:checked="false">
<dlg:checkbox dlg:id="Split" dlg:tab-index="21" dlg:left="190" dlg:top="78" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsSplit" dlg:value="Split document at headings" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:SplitChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="SplitLevelLabel" dlg:tab-index="35" dlg:left="199" dlg:top="106" dlg:width="100" dlg:height="12" dlg:value="Heading level"/>
<dlg:menulist dlg:id="SplitLevel" dlg:tab-index="24" dlg:left="305" dlg:top="104" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsSplitLevel" dlg:spin="true" dlg:linecount="6">
<dlg:text dlg:id="SplitLevelLabel" dlg:tab-index="33" dlg:left="199" dlg:top="92" dlg:width="100" dlg:height="12" dlg:value="Heading level"/>
<dlg:menulist dlg:id="SplitLevel" dlg:tab-index="22" dlg:left="305" dlg:top="90" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsSplitLevel" dlg:spin="true" dlg:linecount="6">
<dlg:menupopup>
<dlg:menuitem dlg:value="1"/>
<dlg:menuitem dlg:value="2"/>
@ -40,41 +40,41 @@
<dlg:menuitem dlg:value="6"/>
</dlg:menupopup>
</dlg:menulist>
<dlg:button dlg:id="ExportButton" dlg:tab-index="36" dlg:left="5" dlg:top="230" dlg:width="55" dlg:height="12" dlg:value="Export" dlg:button-type="ok"/>
<dlg:button dlg:id="CancelButton" dlg:tab-index="37" dlg:left="70" dlg:top="230" dlg:width="55" dlg:height="12" dlg:value="Cancel" dlg:button-type="cancel"/>
<dlg:button dlg:id="HelpButton" dlg:tab-index="38" dlg:left="290" dlg:top="230" dlg:width="55" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptions" dlg:value="Help" dlg:button-type="help"/>
<dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="39" dlg:left="175" dlg:top="9" dlg:width="2" dlg:height="207" dlg:value="&amp;143.XhtmlOptions.FixedLine1.Label" dlg:align="vertical"/>
<dlg:button dlg:id="ExportButton" dlg:tab-index="34" dlg:left="5" dlg:top="216" dlg:width="55" dlg:height="12" dlg:value="Export" dlg:button-type="ok"/>
<dlg:button dlg:id="CancelButton" dlg:tab-index="35" dlg:left="70" dlg:top="216" dlg:width="55" dlg:height="12" dlg:value="Cancel" dlg:button-type="cancel"/>
<dlg:button dlg:id="HelpButton" dlg:tab-index="36" dlg:left="290" dlg:top="216" dlg:width="55" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptions" dlg:value="Help" dlg:button-type="help"/>
<dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="37" dlg:left="175" dlg:top="9" dlg:width="2" dlg:height="190" dlg:value="&amp;143.XhtmlOptions.FixedLine1.Label" dlg:align="vertical"/>
<dlg:checkbox dlg:id="RelativeFontSize" dlg:tab-index="8" dlg:left="10" dlg:top="64" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsRelativeFontSize" dlg:value="Use relative font size" dlg:checked="true">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:RelativeFontSizeChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="FontScalingLabel" dlg:tab-index="40" dlg:left="19" dlg:top="78" dlg:width="90" dlg:height="12" dlg:value="Scaling"/>
<dlg:text dlg:id="FontScalingLabel" dlg:tab-index="38" dlg:left="19" dlg:top="78" dlg:width="90" dlg:height="12" dlg:value="Scaling"/>
<dlg:numericfield dlg:id="FontScaling" dlg:tab-index="9" dlg:left="120" dlg:top="76" dlg:width="30" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsFontScaling" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value="100" dlg:value-min="1" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
<dlg:text dlg:id="FontScalingPercentLabel" dlg:tab-index="41" dlg:left="155" dlg:top="78" dlg:width="10" dlg:height="12" dlg:value="%"/>
<dlg:text dlg:id="FontScalingPercentLabel" dlg:tab-index="39" dlg:left="155" dlg:top="78" dlg:width="10" dlg:height="12" dlg:value="%"/>
<dlg:checkbox dlg:id="UseDefaultFont" dlg:tab-index="10" dlg:left="10" dlg:top="92" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseDefaultFont" dlg:value="Use a single font for the entire document" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseDefaultFontChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="DefaultFontNameLabel" dlg:tab-index="42" dlg:left="19" dlg:top="106" dlg:width="50" dlg:height="12" dlg:value="Font name"/>
<dlg:text dlg:id="DefaultFontNameLabel" dlg:tab-index="40" dlg:left="19" dlg:top="106" dlg:width="50" dlg:height="12" dlg:value="Font name"/>
<dlg:combobox dlg:id="DefaultFontName" dlg:tab-index="11" dlg:left="75" dlg:top="104" dlg:width="90" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsDefaultFontName" dlg:spin="true"/>
<dlg:checkbox dlg:id="DisplayHiddenText" dlg:tab-index="17" dlg:left="190" dlg:top="22" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsDisplayHiddenText" dlg:value="Display hidden text" dlg:checked="false"/>
<dlg:checkbox dlg:id="UsePageBreakSplit" dlg:tab-index="25" dlg:left="190" dlg:top="120" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsPageBreakSplit" dlg:value="Split document at page breaks" dlg:checked="false">
<dlg:checkbox dlg:id="UsePageBreakSplit" dlg:tab-index="23" dlg:left="190" dlg:top="106" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsPageBreakSplit" dlg:value="Split document at page breaks" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UsePageBreakSplitChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="PageBreakSplitLabel" dlg:tab-index="43" dlg:left="199" dlg:top="134" dlg:width="45" dlg:height="12" dlg:value="Types"/>
<dlg:menulist dlg:id="PageBreakSplit" dlg:tab-index="26" dlg:left="255" dlg:top="132" dlg:width="90" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsPageBreakSplitType" dlg:spin="true" dlg:linecount="3">
<dlg:text dlg:id="PageBreakSplitLabel" dlg:tab-index="41" dlg:left="199" dlg:top="120" dlg:width="45" dlg:height="12" dlg:value="Types"/>
<dlg:menulist dlg:id="PageBreakSplit" dlg:tab-index="24" dlg:left="255" dlg:top="118" dlg:width="90" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsPageBreakSplitType" dlg:spin="true" dlg:linecount="3">
<dlg:menupopup>
<dlg:menuitem dlg:value="Defined by styles"/>
<dlg:menuitem dlg:value="All explicit"/>
<dlg:menuitem dlg:value="All"/>
</dlg:menupopup>
</dlg:menulist>
<dlg:checkbox dlg:id="IncludeToc" dlg:tab-index="30" dlg:left="190" dlg:top="204" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsIncludeToc" dlg:value="Also include original table of contents" dlg:checked="false"/>
<dlg:checkbox dlg:id="UseSplitAfter" dlg:tab-index="27" dlg:left="190" dlg:top="148" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseEpubAutoSplit" dlg:value="Automatic split of long documents" dlg:checked="false">
<dlg:checkbox dlg:id="IncludeToc" dlg:tab-index="28" dlg:left="190" dlg:top="190" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsIncludeToc" dlg:value="Also include original table of contents" dlg:checked="false"/>
<dlg:checkbox dlg:id="UseSplitAfter" dlg:tab-index="25" dlg:left="190" dlg:top="134" dlg:width="155" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseEpubAutoSplit" dlg:value="Automatic split of long documents" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseSplitAfterChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="SplitAfterLabel" dlg:tab-index="44" dlg:left="199" dlg:top="162" dlg:width="100" dlg:height="12" dlg:value="After (in 1000 characters)"/>
<dlg:numericfield dlg:id="SplitAfter" dlg:tab-index="28" dlg:left="305" dlg:top="160" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsEpubAutoSplit" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value-min="10" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
<dlg:text dlg:id="ExternalTocDepthLabel" dlg:tab-index="45" dlg:left="190" dlg:top="190" dlg:width="110" dlg:height="12" dlg:value="Number of heading levels to include"/>
<dlg:menulist dlg:id="ExternalTocDepth" dlg:tab-index="29" dlg:left="305" dlg:top="188" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsExternalTocDepth" dlg:spin="true" dlg:linecount="10">
<dlg:text dlg:id="SplitAfterLabel" dlg:tab-index="42" dlg:left="199" dlg:top="148" dlg:width="100" dlg:height="12" dlg:value="After (in 1000 characters)"/>
<dlg:numericfield dlg:id="SplitAfter" dlg:tab-index="26" dlg:left="305" dlg:top="146" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsEpubAutoSplit" dlg:strict-format="true" dlg:decimal-accuracy="0" dlg:value-min="10" dlg:value-max="1000" dlg:value-step="10" dlg:spin="true"/>
<dlg:text dlg:id="ExternalTocDepthLabel" dlg:tab-index="43" dlg:left="190" dlg:top="176" dlg:width="110" dlg:height="12" dlg:value="Number of heading levels to include"/>
<dlg:menulist dlg:id="ExternalTocDepth" dlg:tab-index="27" dlg:left="305" dlg:top="174" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsExternalTocDepth" dlg:spin="true" dlg:linecount="10">
<dlg:menupopup>
<dlg:menuitem dlg:value="1"/>
<dlg:menuitem dlg:value="2"/>
@ -88,14 +88,10 @@
<dlg:menuitem dlg:value="10"/>
</dlg:menupopup>
</dlg:menulist>
<dlg:text dlg:id="TocLabel" dlg:tab-index="46" dlg:left="185" dlg:top="176" dlg:width="160" dlg:height="12" dlg:value="Navigation table"/>
<dlg:text dlg:id="DocumentDivisionLabel" dlg:tab-index="34" dlg:left="185" dlg:top="78" dlg:width="160" dlg:height="12" dlg:value="Document division"/>
<dlg:checkbox dlg:id="UseCustomMetadata" dlg:tab-index="21" dlg:left="190" dlg:top="64" dlg:width="110" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseCustomMetadata" dlg:value="Export custom document properties" dlg:checked="true"/>
<dlg:button dlg:id="EditMetadata" dlg:tab-index="20" dlg:left="305" dlg:top="48" dlg:width="40" dlg:height="12" dlg:value="Edit" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseCustomMetadata">
<dlg:text dlg:id="TocLabel" dlg:tab-index="44" dlg:left="185" dlg:top="162" dlg:width="160" dlg:height="12" dlg:value="Navigation table"/>
<dlg:text dlg:id="DocumentDivisionLabel" dlg:tab-index="32" dlg:left="185" dlg:top="64" dlg:width="160" dlg:height="12" dlg:value="Document division"/>
<dlg:button dlg:id="EditMetadata" dlg:tab-index="20" dlg:left="305" dlg:top="48" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseCustomMetadata" dlg:value="Edit">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:EditMetadataClick" script:language="UNO"/>
</dlg:button>
<dlg:button dlg:id="EditCustomMetadata" dlg:tab-index="22" dlg:left="305" dlg:top="62" dlg:width="40" dlg:height="12" dlg:value="Edit" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseMetadata" >
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:EditCustomMetadataClick" script:language="UNO"/>
</dlg:button>
</dlg:bulletinboard>
</dlg:window>

View file

@ -124,14 +124,6 @@
are exported, otherwise only the title is exported.</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Click <emph>Edit</emph> to open the dialog to edit the document properties.</paragraph>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseCustomMetadata" id="bm_options_usecustommetadata"/>
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2xhtml.oxt:EpubOptionsUseCustomMetadata" visibility="hidden">Check this if you want to export custom document properties</ahelp></paragraph>
<paragraph role="heading" level="3" xml-lang="en-US">Export custom document properties</paragraph>
<paragraph role="paragraph" xml-lang="en-US">The EPUB format supports a number of additional document properties, which can be
defined using custom document properties in %PRODUCTNAME Writer.</paragraph>
<paragraph role="paragraph" xml-lang="en-US">If you select this option, these properties will be exported.</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Click <emph>Edit</emph> to edit the custom document properties.</paragraph>
<paragraph role="heading" level="2" xml-lang="en-US">Document division</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Technically an EPUB document consists of several document parts in XHTML format.
In principle you can have only one part, but this is not recommended. For performance reasons and because some EPUB readers have