main code
This commit is contained in:
parent
4123c61fd6
commit
966b49dc9c
8 changed files with 1001 additions and 12 deletions
|
@ -305,6 +305,7 @@ public class OfficeReader {
|
|||
private OfficeStyleFamily list = new OfficeStyleFamily(ListStyle.class);
|
||||
private OfficeStyleFamily pageLayout = new OfficeStyleFamily(PageLayout.class);
|
||||
private OfficeStyleFamily masterPage = new OfficeStyleFamily(MasterPage.class);
|
||||
private Map<String,MasterPage> masterPages = new HashMap<String, MasterPage>();
|
||||
|
||||
// Document-wide styles
|
||||
private ListStyle outline = new ListStyle();
|
||||
|
@ -500,7 +501,12 @@ public class OfficeReader {
|
|||
public MasterPage getMasterPage(String sName) {
|
||||
return (MasterPage) masterPage.getStyle(sName);
|
||||
}
|
||||
|
||||
public Map<String,MasterPage> getAllMasterPages() {
|
||||
return (masterPages);
|
||||
}
|
||||
public MasterPage getFullMasterPage(String sName) {
|
||||
return masterPages.get(sName);
|
||||
}
|
||||
public ListStyle getOutlineStyle() { return outline; }
|
||||
|
||||
public PropertySet getFootnotesConfiguration() { return footnotes; }
|
||||
|
@ -904,6 +910,7 @@ public class OfficeReader {
|
|||
}
|
||||
else if (child.getNodeName().equals(XMLString.STYLE_MASTER_PAGE)) {
|
||||
masterPage.loadStyleFromDOM(child,bAutomatic);
|
||||
masterPages.put(Misc.getAttribute(child,XMLString.STYLE_NAME), (MasterPage) masterPage.getStyle(Misc.getAttribute(child,XMLString.STYLE_NAME)) );
|
||||
if (firstMasterPage==null) {
|
||||
firstMasterPage = (MasterPage) masterPage.getStyle(Misc.getAttribute(child,XMLString.STYLE_NAME));
|
||||
}
|
||||
|
|
|
@ -311,6 +311,7 @@ public class XMLString {
|
|||
public static final String TEXT_LINE_BREAK="text:line-break";
|
||||
public static final String TEXT_PAGE_NUMBER="text:page-number";
|
||||
public static final String TEXT_PAGE_COUNT="text:page-count";
|
||||
public static final String TEXT_PAGE_ADJUST="text:page-adjust";
|
||||
public static final String TEXT_CHAPTER="text:chapter";
|
||||
public static final String TEXT_SEQUENCE="text:sequence";
|
||||
public static final String TEXT_SEQUENCE_REF="text:sequence-ref";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue