EPUB meta data, export dialog and style resources
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@81 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
e02f738e85
commit
0dcc851a33
21 changed files with 920 additions and 139 deletions
|
@ -32,8 +32,6 @@ import java.io.InputStream;
|
|||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.text.Collator;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -62,6 +60,7 @@ import com.sun.star.lib.uno.adapter.XOutputStreamToOutputStreamAdapter;
|
|||
import writer2latex.api.ComplexOption;
|
||||
import writer2latex.api.Config;
|
||||
import writer2latex.api.ConverterFactory;
|
||||
import writer2latex.util.Misc;
|
||||
|
||||
import org.openoffice.da.comp.w2lcommon.helper.DialogAccess;
|
||||
import org.openoffice.da.comp.w2lcommon.helper.FilePicker;
|
||||
|
@ -288,14 +287,6 @@ public abstract class ConfigurationDialogBase extends WeakBase implements XConta
|
|||
config.setOption(sConfigName, sConfigValues[dlg.getListBoxSelectedItem(sListBoxName)]);
|
||||
}
|
||||
|
||||
// Utilities
|
||||
protected String[] sortStringSet(Set<String> theSet) {
|
||||
String[] theArray = theSet.toArray(new String[theSet.size()]);
|
||||
// TODO: Get locale from OOo rather than the system
|
||||
Collator collator = Collator.getInstance();
|
||||
Arrays.sort(theArray, collator);
|
||||
return theArray;
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract class CustomFileHandler extends PageHandler {
|
||||
|
@ -514,7 +505,7 @@ public abstract class ConfigurationDialogBase extends WeakBase implements XConta
|
|||
private String newItem(Set<String> suggestions) {
|
||||
XDialog xDialog=getDialog(getDialogLibraryName()+".NewDialog");
|
||||
if (xDialog!=null) {
|
||||
String[] sItems = sortStringSet(suggestions);
|
||||
String[] sItems = Misc.sortStringSet(suggestions);
|
||||
DialogAccess ndlg = new DialogAccess(xDialog);
|
||||
ndlg.setListBoxStringItemList("Name", sItems);
|
||||
String sResult = null;
|
||||
|
@ -658,7 +649,7 @@ public abstract class ConfigurationDialogBase extends WeakBase implements XConta
|
|||
nCurrentFamily = nNewFamily;
|
||||
sCurrentStyleName = null;
|
||||
|
||||
String[] sStyleNames = sortStringSet(styleMap[nNewFamily].keySet());
|
||||
String[] sStyleNames = Misc.sortStringSet(styleMap[nNewFamily].keySet());
|
||||
dlg.setListBoxStringItemList("StyleName", sStyleNames);
|
||||
if (sStyleNames.length>0) {
|
||||
dlg.setListBoxSelectedItem("StyleName", (short)0);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2010-12-14)
|
||||
* Version 1.2 (2010-12-21)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -31,6 +31,7 @@ import java.util.HashSet;
|
|||
import java.util.Map;
|
||||
|
||||
import writer2latex.api.ComplexOption;
|
||||
import writer2latex.util.Misc;
|
||||
|
||||
import org.openoffice.da.comp.w2lcommon.filter.ConfigurationDialogBase;
|
||||
import org.openoffice.da.comp.w2lcommon.helper.DialogAccess;
|
||||
|
@ -677,7 +678,7 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
|
|||
StyleNameProvider styleNameProvider = new StyleNameProvider(xContext);
|
||||
Map<String,String> internalNames = styleNameProvider.getInternalNames("ParagraphStyles");
|
||||
if (internalNames!=null) {
|
||||
String[] styleNames = sortStringSet(internalNames.keySet());
|
||||
String[] styleNames = Misc.sortStringSet(internalNames.keySet());
|
||||
dlg.setListBoxStringItemList("TableFirstHeadStyle",styleNames);
|
||||
dlg.setListBoxStringItemList("TableHeadStyle",styleNames);
|
||||
dlg.setListBoxStringItemList("TableFootStyle",styleNames);
|
||||
|
@ -687,7 +688,7 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
|
|||
// Fill the table sequence combo box with sequence names
|
||||
FieldMasterNameProvider fieldMasterNameProvider = new FieldMasterNameProvider(xContext);
|
||||
dlg.setListBoxStringItemList("TableSequenceName",
|
||||
sortStringSet(fieldMasterNameProvider.getFieldMasterNames("com.sun.star.text.fieldmaster.SetExpression.")));
|
||||
Misc.sortStringSet(fieldMasterNameProvider.getFieldMasterNames("com.sun.star.text.fieldmaster.SetExpression.")));
|
||||
|
||||
dlg.setCheckBoxStateAsBoolean("NoTables", !"accept".equals(config.getOption("table_content")));
|
||||
checkBoxFromConfig(dlg,"UseColortbl","use_colortbl");
|
||||
|
@ -766,7 +767,7 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
|
|||
// Fill the figure sequence combo box with sequence names
|
||||
FieldMasterNameProvider fieldMasterNameProvider = new FieldMasterNameProvider(xContext);
|
||||
dlg.setListBoxStringItemList("FigureSequenceName",
|
||||
sortStringSet(fieldMasterNameProvider.getFieldMasterNames("com.sun.star.text.fieldmaster.SetExpression.")));
|
||||
Misc.sortStringSet(fieldMasterNameProvider.getFieldMasterNames("com.sun.star.text.fieldmaster.SetExpression.")));
|
||||
|
||||
checkBoxFromConfig(dlg,"UseCaption","use_caption");
|
||||
checkBoxFromConfig(dlg,"AlignFrames","align_frames");
|
||||
|
@ -825,7 +826,7 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
|
|||
else { mathSymbols = new ComplexOption(); }
|
||||
mathSymbols.copyAll(config.getComplexOption("math-symbol-map"));
|
||||
sCurrentMathSymbol = null;
|
||||
dlg.setListBoxStringItemList("MathSymbolName", sortStringSet(mathSymbols.keySet()));
|
||||
dlg.setListBoxStringItemList("MathSymbolName", Misc.sortStringSet(mathSymbols.keySet()));
|
||||
// This triggers an onchange event
|
||||
dlg.setListBoxSelectedItem("MathSymbolName", (short)Math.min(0,mathSymbols.keySet().size()-1));
|
||||
|
||||
|
@ -834,7 +835,7 @@ public final class ConfigurationDialog extends ConfigurationDialogBase implement
|
|||
else { stringReplace = new ComplexOption(); }
|
||||
stringReplace.copyAll(config.getComplexOption("string-replace"));
|
||||
sCurrentText = null;
|
||||
dlg.setListBoxStringItemList("TextInput", sortStringSet(stringReplace.keySet()));
|
||||
dlg.setListBoxStringItemList("TextInput", Misc.sortStringSet(stringReplace.keySet()));
|
||||
// This triggers an onchange event
|
||||
dlg.setListBoxSelectedItem("TextInput", (short)Math.min(0,stringReplace.keySet().size()-1));
|
||||
|
||||
|
|
|
@ -0,0 +1,319 @@
|
|||
/************************************************************************
|
||||
*
|
||||
* EpubOptionsDialog.java
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2010 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2010-12-28)
|
||||
*
|
||||
*/
|
||||
|
||||
// TODO: Add to doc:
|
||||
// New options relative_font_size, font_scaling, use_default_font, default_font_name, split_after, page_break_split, include_toc
|
||||
// Also add to list of possible locked options external_toc_depth
|
||||
|
||||
package org.openoffice.da.comp.writer2xhtml;
|
||||
|
||||
import java.awt.GraphicsEnvironment;
|
||||
|
||||
import com.sun.star.awt.XDialog;
|
||||
import com.sun.star.beans.XPropertySet;
|
||||
import com.sun.star.uno.XComponentContext;
|
||||
|
||||
import org.openoffice.da.comp.w2lcommon.helper.PropertyHelper;
|
||||
import org.openoffice.da.comp.w2lcommon.filter.OptionsDialogBase;
|
||||
|
||||
/** This class provides a uno component which implements a filter ui for the
|
||||
* EPUB export
|
||||
*/
|
||||
public class EpubOptionsDialog extends OptionsDialogBase {
|
||||
|
||||
/** The component will be registered under this name.
|
||||
*/
|
||||
public static String __serviceName = "org.openoffice.da.writer2xhtml.EpubOptionsDialog";
|
||||
|
||||
/** The component should also have an implementation name.
|
||||
*/
|
||||
public static String __implementationName = "org.openoffice.da.comp.writer2xhtml.EpubOptionsDialog";
|
||||
|
||||
@Override public String getDialogLibraryName() { return "W2XDialogs2"; }
|
||||
|
||||
/** Return the name of the dialog within the library
|
||||
*/
|
||||
@Override public String getDialogName() { return "EpubOptions"; }
|
||||
|
||||
/** Return the name of the registry path
|
||||
*/
|
||||
@Override public String getRegistryPath() {
|
||||
return "/org.openoffice.da.Writer2xhtml.Options/EpubOptions";
|
||||
}
|
||||
|
||||
/** Create a new EpubOptionsDialog */
|
||||
public EpubOptionsDialog(XComponentContext xContext) {
|
||||
super(xContext);
|
||||
xMSF = W2XRegistration.xMultiServiceFactory;
|
||||
}
|
||||
|
||||
/** Load settings from the registry to the dialog */
|
||||
@Override protected void loadSettings(XPropertySet xProps) {
|
||||
// Style
|
||||
loadConfig(xProps);
|
||||
loadNumericOption(xProps, "Scaling");
|
||||
loadNumericOption(xProps, "ColumnScaling");
|
||||
loadCheckBoxOption(xProps, "RelativeFontSize");
|
||||
loadNumericOption(xProps, "FontScaling");
|
||||
loadCheckBoxOption(xProps, "RelativeFontSize");
|
||||
loadCheckBoxOption(xProps, "UseDefaultFont");
|
||||
loadComboBoxOption(xProps, "DefaultFontName");
|
||||
loadCheckBoxOption(xProps, "ConvertToPx");
|
||||
loadCheckBoxOption(xProps, "OriginalImageSize");
|
||||
|
||||
// Fill the font name list with all installed fonts
|
||||
setListBoxStringItemList("DefaultFontName",
|
||||
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
|
||||
|
||||
// Special content
|
||||
loadCheckBoxOption(xProps, "DisplayHiddenText");
|
||||
loadCheckBoxOption(xProps, "Notes");
|
||||
loadCheckBoxOption(xProps, "UseDublinCore");
|
||||
|
||||
// AutoCorrect
|
||||
loadCheckBoxOption(xProps, "IgnoreHardLineBreaks");
|
||||
loadCheckBoxOption(xProps, "IgnoreEmptyParagraphs");
|
||||
loadCheckBoxOption(xProps, "IgnoreDoubleSpaces");
|
||||
|
||||
// Files
|
||||
loadCheckBoxOption(xProps, "Split");
|
||||
loadListBoxOption(xProps, "SplitLevel");
|
||||
loadCheckBoxOption(xProps, "UsePageBreakSplit");
|
||||
loadListBoxOption(xProps, "PageBreakSplit");
|
||||
loadCheckBoxOption(xProps, "UseSplitAfter");
|
||||
loadNumericOption(xProps, "SplitAfter");
|
||||
|
||||
// Table of contents
|
||||
loadListBoxOption(xProps, "ExternalTocDepth");
|
||||
loadCheckBoxOption(xProps, "IncludeToc");
|
||||
|
||||
updateLockedOptions();
|
||||
enableControls();
|
||||
}
|
||||
|
||||
/** Save settings from the dialog to the registry and create FilterData */
|
||||
@Override protected void saveSettings(XPropertySet xProps, PropertyHelper helper) {
|
||||
// Style
|
||||
short nConfig = saveConfig(xProps, helper);
|
||||
switch (nConfig) {
|
||||
case 0: helper.put("ConfigURL","*default.xml"); break;
|
||||
case 1: helper.put("ConfigURL","$(user)/writer2xhtml.xml");
|
||||
helper.put("AutoCreate","true");
|
||||
helper.put("TemplateURL", "$(user)/writer2xhtml-template.xhtml");
|
||||
helper.put("StyleSheetURL", "$(user)/writer2xhtml-styles.css");
|
||||
}
|
||||
|
||||
saveNumericOptionAsPercentage(xProps, helper, "Scaling", "scaling");
|
||||
saveNumericOptionAsPercentage(xProps, helper, "ColumnScaling", "column_scaling");
|
||||
saveCheckBoxOption(xProps, helper, "RelativeFontSize", "relative_font_size");
|
||||
saveNumericOptionAsPercentage(xProps, helper, "FontScaling", "font_scaling");
|
||||
saveCheckBoxOption(xProps, helper, "UseDefaultFont", "use_default_font");
|
||||
saveTextFieldOption(xProps, helper, "DefaultFontName", "default_font_name");
|
||||
saveCheckBoxOption(xProps, helper, "ConvertToPx", "convert_to_px");
|
||||
saveCheckBoxOption(xProps, helper, "OriginalImageSize", "original_image_size");
|
||||
|
||||
// Special content
|
||||
saveCheckBoxOption(xProps, helper, "DisplayHiddenText", "display_hidden_text");
|
||||
saveCheckBoxOption(xProps, helper, "Notes", "notes");
|
||||
saveCheckBoxOption(xProps, helper, "UseDublinCore", "use_dublin_core");
|
||||
|
||||
// AutoCorrect
|
||||
saveCheckBoxOption(xProps, helper, "IgnoreHardLineBreaks", "ignore_hard_line_breaks");
|
||||
saveCheckBoxOption(xProps, helper, "IgnoreEmptyParagraphs", "ignore_empty_paragraphs");
|
||||
saveCheckBoxOption(xProps, helper, "IgnoreDoubleSpaces", "ignore_double_spaces");
|
||||
|
||||
// Files
|
||||
boolean bSplit = saveCheckBoxOption(xProps, "Split");
|
||||
short nSplitLevel = saveListBoxOption(xProps, "SplitLevel");
|
||||
if (!isLocked("split_level")) {
|
||||
if (bSplit) {
|
||||
helper.put("split_level",Integer.toString(nSplitLevel+1));
|
||||
}
|
||||
else {
|
||||
helper.put("split_level","0");
|
||||
}
|
||||
}
|
||||
|
||||
boolean bUsePageBreakSplit = saveCheckBoxOption(xProps, "UsePageBreakSplit");
|
||||
short nPageBreakSplit = saveListBoxOption(xProps, "PageBreakSplit");
|
||||
if (!isLocked("page_break_split")) {
|
||||
if (bUsePageBreakSplit) {
|
||||
switch (nPageBreakSplit) {
|
||||
case 0: helper.put("page_break_split", "styles"); break;
|
||||
case 1: helper.put("page_break_split", "explicit"); break;
|
||||
case 2: helper.put("page_break_split", "all");
|
||||
}
|
||||
}
|
||||
else {
|
||||
helper.put("page_break_split","none");
|
||||
}
|
||||
}
|
||||
|
||||
boolean bUseSplitAfter = saveCheckBoxOption(xProps, "UseSplitAfter");
|
||||
int nSplitAfter = saveNumericOption(xProps, "SplitAfter");
|
||||
if (!isLocked("split_after")) {
|
||||
if (bUseSplitAfter) {
|
||||
helper.put("split_after", nSplitAfter);
|
||||
}
|
||||
else {
|
||||
helper.put("split_after", 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Table of contents
|
||||
short nExternalTocDepth = saveListBoxOption(xProps, "ExternalTocDepth");
|
||||
helper.put("external_toc_depth", nExternalTocDepth+1);
|
||||
saveCheckBoxOption(xProps, "IncludeToc");
|
||||
}
|
||||
|
||||
|
||||
// Implement XDialogEventHandler
|
||||
@Override public boolean callHandlerMethod(XDialog xDialog, Object event, String sMethod) {
|
||||
if (sMethod.equals("ConfigChange")) {
|
||||
updateLockedOptions();
|
||||
enableControls();
|
||||
}
|
||||
else if (sMethod.equals("RelativeFontSizeChange")) {
|
||||
relativeFontSizeChange();
|
||||
}
|
||||
else if (sMethod.equals("UseDefaultFontChange")) {
|
||||
useDefaultFontChange();
|
||||
}
|
||||
else if (sMethod.equals("SplitChange")) {
|
||||
splitChange();
|
||||
}
|
||||
else if (sMethod.equals("UsePageBreakSplitChange")) {
|
||||
usePageBreakSplitChange();
|
||||
}
|
||||
else if (sMethod.equals("UseSplitAfterChange")) {
|
||||
useSplitAfterChange();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override public String[] getSupportedMethodNames() {
|
||||
String[] sNames = { "ConfigChange", "RelativeFontSizeChange", "UseDefaultFontChange",
|
||||
"SplitChange", "UsePageBreakSplitChange", "UseSplitAfterChange" };
|
||||
return sNames;
|
||||
}
|
||||
|
||||
private void enableControls() {
|
||||
// Style
|
||||
setControlEnabled("ScalingLabel",!isLocked("scaling"));
|
||||
setControlEnabled("Scaling",!isLocked("scaling"));
|
||||
setControlEnabled("ColumnScalingLabel",!isLocked("column_scaling"));
|
||||
setControlEnabled("ColumnScaling",!isLocked("column_scaling"));
|
||||
|
||||
boolean bRelativeFontSize = getCheckBoxStateAsBoolean("RelativeFontSize");
|
||||
setControlEnabled("RelativeFontSize",!isLocked("relative_font_size"));
|
||||
setControlEnabled("FontScalingLabel", !isLocked("font_scaling") && bRelativeFontSize);
|
||||
setControlEnabled("FontScaling",!isLocked("font_scaling") && bRelativeFontSize);
|
||||
setControlEnabled("FontScalingPercentLabel", !isLocked("font_scaling") && bRelativeFontSize);
|
||||
|
||||
boolean bUseDefaultFont = getCheckBoxStateAsBoolean("UseDefaultFont");
|
||||
setControlEnabled("UseDefaultFont",!isLocked("use_default_font"));
|
||||
setControlEnabled("DefaultFontNameLabel",!isLocked("default_font_name") && bUseDefaultFont);
|
||||
setControlEnabled("DefaultFontName",!isLocked("default_font_name") && bUseDefaultFont);
|
||||
|
||||
setControlEnabled("DisplayHiddenText",!isLocked("display_hidden_text"));
|
||||
setControlEnabled("ConvertToPx",!isLocked("convert_to_px"));
|
||||
setControlEnabled("OriginalImageSize",!isLocked("original_image_size"));
|
||||
|
||||
// Special content
|
||||
setControlEnabled("Notes",!isLocked("notes"));
|
||||
setControlEnabled("UseDublinCore",!isLocked("use_dublin_core"));
|
||||
|
||||
// AutoCorrect
|
||||
setControlEnabled("IgnoreHardLineBreaks",!isLocked("ignore_hard_line_breaks"));
|
||||
setControlEnabled("IgnoreEmptyParagraphs",!isLocked("ignore_empty_paragraphs"));
|
||||
setControlEnabled("IgnoreDoubleSpaces",!isLocked("ignore_double_spaces"));
|
||||
|
||||
// Files
|
||||
boolean bSplit = getCheckBoxStateAsBoolean("Split");
|
||||
setControlEnabled("Split",!isLocked("split_level"));
|
||||
setControlEnabled("SplitLevelLabel",!isLocked("split_level") && bSplit);
|
||||
setControlEnabled("SplitLevel",!isLocked("split_level") && bSplit);
|
||||
|
||||
boolean bUsePageBreakSplit = getCheckBoxStateAsBoolean("UsePageBreakSplit");
|
||||
setControlEnabled("UsePageBreakSplit",!isLocked("page_break_split"));
|
||||
setControlEnabled("PageBreakSplitLabel",!isLocked("page_break_split") && bUsePageBreakSplit);
|
||||
setControlEnabled("PageBreakSplit",!isLocked("page_break_split") && bUsePageBreakSplit);
|
||||
|
||||
boolean bUseSplitAfter = getCheckBoxStateAsBoolean("UseSplitAfter");
|
||||
setControlEnabled("UseSplitAfter",!isLocked("split_after"));
|
||||
setControlEnabled("SplitAfterLabel",!isLocked("split_after") && bUseSplitAfter);
|
||||
setControlEnabled("SplitAfter",!isLocked("split_after") && bUseSplitAfter);
|
||||
|
||||
// Table of contents
|
||||
setControlEnabled("ExternalTocDepthLabel", !isLocked("external_toc_depth"));
|
||||
setControlEnabled("ExternalTocDepth", !isLocked("external_toc_depth"));
|
||||
setControlEnabled("IncludeToc", !isLocked("include_toc"));
|
||||
}
|
||||
|
||||
private void relativeFontSizeChange() {
|
||||
if (!isLocked("font_scaling")) {
|
||||
boolean bState = getCheckBoxStateAsBoolean("RelativeFontSize");
|
||||
setControlEnabled("FontScalingLabel", bState);
|
||||
setControlEnabled("FontScaling", bState);
|
||||
setControlEnabled("FontScalingPercentLabel", bState);
|
||||
}
|
||||
}
|
||||
|
||||
private void useDefaultFontChange() {
|
||||
if (!isLocked("default_font_name")) {
|
||||
boolean bState = getCheckBoxStateAsBoolean("UseDefaultFont");
|
||||
setControlEnabled("DefaultFontNameLabel", bState);
|
||||
setControlEnabled("DefaultFontName", bState);
|
||||
}
|
||||
}
|
||||
|
||||
private void splitChange() {
|
||||
if (!isLocked("split_level")) {
|
||||
boolean bState = getCheckBoxStateAsBoolean("Split");
|
||||
setControlEnabled("SplitLevelLabel",bState);
|
||||
setControlEnabled("SplitLevel",bState);
|
||||
}
|
||||
}
|
||||
|
||||
private void usePageBreakSplitChange() {
|
||||
if (!isLocked("page_break_split")) {
|
||||
boolean bState = getCheckBoxStateAsBoolean("UsePageBreakSplit");
|
||||
setControlEnabled("PageBreakSplitLabel",bState);
|
||||
setControlEnabled("PageBreakSplit",bState);
|
||||
}
|
||||
}
|
||||
|
||||
private void useSplitAfterChange() {
|
||||
if (!isLocked("split_after")) {
|
||||
boolean bState = getCheckBoxStateAsBoolean("UseSplitAfter");
|
||||
setControlEnabled("SplitAfterLabel",bState);
|
||||
setControlEnabled("SplitAfter",bState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2010-03-22)
|
||||
* Version 1.2 (2010-12-28)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -90,6 +90,12 @@ public class W2XRegistration {
|
|||
multiFactory,
|
||||
regKey);
|
||||
}
|
||||
else if (implName.equals(EpubOptionsDialog.__implementationName)) {
|
||||
xSingleServiceFactory = FactoryHelper.getServiceFactory(EpubOptionsDialog.class,
|
||||
EpubOptionsDialog.__serviceName,
|
||||
multiFactory,
|
||||
regKey);
|
||||
}
|
||||
else if (implName.equals(ConfigurationDialog.__implementationName)) {
|
||||
xSingleServiceFactory = FactoryHelper.getServiceFactory(ConfigurationDialog.class,
|
||||
ConfigurationDialog.__serviceName,
|
||||
|
@ -120,7 +126,9 @@ public class W2XRegistration {
|
|||
XhtmlOptionsDialogXsl.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(XhtmlOptionsDialogCalc.__implementationName,
|
||||
XhtmlOptionsDialogCalc.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(ConfigurationDialog.__implementationName,
|
||||
FactoryHelper.writeRegistryServiceInfo(EpubOptionsDialog.__implementationName,
|
||||
EpubOptionsDialog.__serviceName, regKey) &
|
||||
FactoryHelper.writeRegistryServiceInfo(ConfigurationDialog.__implementationName,
|
||||
ConfigurationDialog.__serviceName, regKey);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue