W2X help content

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@66 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-05-27 08:03:47 +00:00
parent 7f4f47c98b
commit 66440ed06d
28 changed files with 538 additions and 57 deletions

View file

@ -1022,7 +1022,13 @@ public class OfficeReader {
//collectMasterPage(getParStyle(node.getAttribute(XMLString.TEXT_STYLE_NAME)));
}
else if (sName.equals(XMLString.TEXT_H)) {
int nLevel = Misc.getPosInteger(node.getAttribute(XMLString.TEXT_OUTLINE_LEVEL),1);
int nLevel;
if (node.hasAttribute(XMLString.TEXT_OUTLINE_LEVEL)) {
nLevel = Misc.getPosInteger(node.getAttribute(XMLString.TEXT_OUTLINE_LEVEL),1);
}
else {
nLevel = Misc.getPosInteger(node.getAttribute(XMLString.TEXT_LEVEL),1);
}
StyleWithProperties style = getParStyle(node.getAttribute(XMLString.TEXT_STYLE_NAME));
//collectMasterPage(style);
if (1<=nLevel && nLevel<=10 && heading[nLevel]==null) {