Writer2xhtml: Some work on lists and headings
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@62 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
54a7c265f2
commit
d7f1b41599
18 changed files with 295 additions and 145 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2010-05-04)
|
||||
* Version 1.2 (2010-05-05)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -102,7 +102,7 @@ public class ListStyleConverter extends StyleConverterHelper {
|
|||
buf.append(props.toString());
|
||||
buf.append("}");
|
||||
buf.append(config.prettyPrint() ? "\n" : " ");
|
||||
if (config.useHardListNumbering()) {
|
||||
if (config.listFormatting()==XhtmlConfig.HARD_LABELS) {
|
||||
// Apply left margin and text indent to the paragraphs contained in the list
|
||||
CSVList parProps = new CSVList(";");
|
||||
cssListParMargins(style,nLevel,parProps);
|
||||
|
@ -137,7 +137,7 @@ public class ListStyleConverter extends StyleConverterHelper {
|
|||
// so we will stick with the simpler CSS1-like list style properties
|
||||
props.addValue("margin-top","0");
|
||||
props.addValue("margin-bottom","0");
|
||||
if (!config.useHardListNumbering()) {
|
||||
if (config.listFormatting()!=XhtmlConfig.HARD_LABELS) {
|
||||
// Export the numbering to CSS1
|
||||
String sLevelType = style.getLevelType(nLevel);
|
||||
if (XMLString.TEXT_LIST_LEVEL_STYLE_NUMBER.equals(sLevelType)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue