Java 5 + Writer4LaTeX + bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@11 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
be54e842f4
commit
9241a44f6c
83 changed files with 2373 additions and 631 deletions
|
@ -60,9 +60,9 @@ public class TextStyleConverter extends StyleWithPropertiesConverterHelper {
|
|||
// Bookkeeping for anchors
|
||||
private ExportNameCollection anchorStyleNames = new ExportNameCollection(true);
|
||||
private ExportNameCollection anchorVisitedStyleNames = new ExportNameCollection(true);
|
||||
private Hashtable anchorCombinedStyleNames = new Hashtable();
|
||||
private Hashtable orgAnchorStyleNames = new Hashtable();
|
||||
private Hashtable orgAnchorVisitedStyleNames = new Hashtable();
|
||||
private Hashtable<String, String> anchorCombinedStyleNames = new Hashtable<String, String>();
|
||||
private Hashtable<String, String> orgAnchorStyleNames = new Hashtable<String, String>();
|
||||
private Hashtable<String, String> orgAnchorVisitedStyleNames = new Hashtable<String, String>();
|
||||
|
||||
/** Create a new <code>TextStyleConverter</code>
|
||||
* @param ofr an <code>OfficeReader</code> to read style information from
|
||||
|
@ -111,7 +111,7 @@ public class TextStyleConverter extends StyleWithPropertiesConverterHelper {
|
|||
orgAnchorStyleNames.put(sExportName,sStyleName);
|
||||
orgAnchorVisitedStyleNames.put(sExportName,sVisitedStyleName);
|
||||
}
|
||||
info.sClass = (String)anchorCombinedStyleNames.get(sName);
|
||||
info.sClass = anchorCombinedStyleNames.get(sName);
|
||||
}
|
||||
|
||||
/** <p>Convert style information for used styles</p>
|
||||
|
@ -144,11 +144,11 @@ public class TextStyleConverter extends StyleWithPropertiesConverterHelper {
|
|||
}
|
||||
|
||||
// Remaining link styles...
|
||||
Enumeration enumer = anchorCombinedStyleNames.elements();
|
||||
Enumeration<String> enumer = anchorCombinedStyleNames.elements();
|
||||
while (enumer.hasMoreElements()) {
|
||||
String sExportName = (String) enumer.nextElement();
|
||||
String sStyleName = (String) orgAnchorStyleNames.get(sExportName);
|
||||
String sVisitedStyleName = (String) orgAnchorVisitedStyleNames.get(sExportName);
|
||||
String sExportName = enumer.nextElement();
|
||||
String sStyleName = orgAnchorStyleNames.get(sExportName);
|
||||
String sVisitedStyleName = orgAnchorVisitedStyleNames.get(sExportName);
|
||||
|
||||
StyleWithProperties style = ofr.getTextStyle(sStyleName);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue