Unnumbered headings & a few language bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@98 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
7df46da38c
commit
028e30afb6
8 changed files with 85 additions and 57 deletions
|
@ -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-08)
|
||||
* Version 1.2 (2011-03-10)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -102,7 +102,7 @@ public abstract class StyleConverterHelper extends ConverterHelper {
|
|||
String sLang = style.getProperty(XMLString.FO_LANGUAGE);
|
||||
String sCountry = style.getProperty(XMLString.FO_COUNTRY);
|
||||
if (sLang!=null) {
|
||||
if (sCountry==null) { info.sLang = sLang; }
|
||||
if (sCountry==null || sCountry.equals("none")) { info.sLang = sLang; }
|
||||
else { info.sLang = sLang+"-"+sCountry; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/************************************************************************
|
||||
*
|
||||
* TextConverter.java
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -596,11 +597,11 @@ public class TextConverter extends ConverterHelper {
|
|||
|
||||
private void handleHeading(Element onode, Node hnode, boolean bAfterSplit) {
|
||||
int nListLevel = getOutlineLevel((Element)onode);
|
||||
//boolean bUnNumbered = "true".equals(Misc.getAttribute(onode,XMLString.TEXT_IS_LIST_HEADER));
|
||||
boolean bUnNumbered = "true".equals(Misc.getAttribute(onode,XMLString.TEXT_IS_LIST_HEADER));
|
||||
boolean bRestart = "true".equals(Misc.getAttribute(onode,XMLString.TEXT_RESTART_NUMBERING));
|
||||
int nStartValue = Misc.getPosInteger(Misc.getAttribute(onode,XMLString.TEXT_START_VALUE),1)-1;
|
||||
handleHeading(onode, hnode, bAfterSplit, ofr.getOutlineStyle(),
|
||||
nListLevel, false, bRestart, nStartValue);
|
||||
nListLevel, bUnNumbered, bRestart, nStartValue);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue