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
|
@ -45,7 +45,7 @@ public class PresentationStyleConverter extends FrameStyleConverter {
|
|||
|
||||
// Data about outline styles
|
||||
String sCurrentOutlineStyle = null;
|
||||
Hashtable outlineStyles = new Hashtable();
|
||||
Hashtable<String, String[]> outlineStyles = new Hashtable<String, String[]>();
|
||||
ExportNameCollection outlineStyleNames = new ExportNameCollection(true);
|
||||
|
||||
/** Create a new <code>PresentationStyleConverter</code>
|
||||
|
@ -87,9 +87,9 @@ public class PresentationStyleConverter extends FrameStyleConverter {
|
|||
if (bConvertStyles) {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append(super.getStyleDeclarations(sIndent));
|
||||
Enumeration names = outlineStyleNames.keys();
|
||||
Enumeration<String> names = outlineStyleNames.keys();
|
||||
while (names.hasMoreElements()) {
|
||||
String sDisplayName = (String) names.nextElement();
|
||||
String sDisplayName = names.nextElement();
|
||||
StyleWithProperties style = (StyleWithProperties)
|
||||
getStyles().getStyleByDisplayName(sDisplayName);
|
||||
if (!style.isAutomatic()) {
|
||||
|
@ -147,7 +147,7 @@ public class PresentationStyleConverter extends FrameStyleConverter {
|
|||
public void applyOutlineStyle(int nLevel, StyleInfo info) {
|
||||
if (2<=nLevel && nLevel<=9 && sCurrentOutlineStyle!=null) {
|
||||
if (outlineStyles.containsKey(sCurrentOutlineStyle)) {
|
||||
info.sClass = "outline"+outlineStyleNames.getExportName(((String[]) outlineStyles.get(sCurrentOutlineStyle))[nLevel]);
|
||||
info.sClass = "outline"+outlineStyleNames.getExportName(outlineStyles.get(sCurrentOutlineStyle)[nLevel]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue