Skip to content

Commit

Permalink
Keep git happy (Inconsequential changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
plutext committed Aug 12, 2013
1 parent 6e72ff3 commit 46b6fef
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
import org.docx4j.wml.BooleanDefaultTrue;
import org.docx4j.wml.SectPr;

/**
* corresponds to a section in the xslt (ie excludes continuous sections).
*
*/
public class ConversionSectionWrapper extends SectionWrapper {
protected List<Object> content = null;
protected String id = null;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/docx4j/model/fields/FldSimpleModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ protected void setupNameParameterString(String text) {
}

public static List<String> splitParameters(String text) {

log.debug("splitParameters: " + text);
List<String> ret = Collections.EMPTY_LIST;
int valStart = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public abstract class AbstractConversionImageHandler implements ConversionImageH
protected static Logger log = LoggerFactory.getLogger(AbstractConversionImageHandler.class);
protected String uuid = UUID.randomUUID().toString();
protected Map<String, String> handledImagesMap = new TreeMap<String, String>();
protected String imageDirPath = null;
protected String imageDirPath = null; // TODO FIXME should not be here; move to FileConversionImageHandler
protected boolean includeUUID = true;

/** Creates an AbstractConversionImageHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public abstract class AbstractRunProperty extends Property {

public abstract void set(RPr rPr);

public abstract void set(CTTextCharacterProperties rPr);
public abstract void set(CTTextCharacterProperties rPr); // DrawingML

}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ public interface PartStore {
*/
public long getPartSize(String partName) throws Docx4JException, java.lang.UnsupportedOperationException;

// public void finishLoad() throws Docx4JException;
/*
* If the implementation closes resources here,
* loadPart, if subsequently called, will need a way to re-open
* them. So its better just to have a notion of package unload,
* at which time resources are closed.
*
* public void finishLoad() throws Docx4JException;
*/

public void setOutputStream(OutputStream os) throws Docx4JException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public long getPartSize(String partName) throws Docx4JException {
}
}



///// Save methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public InputStream loadPart(String partName) throws Docx4JException {

ByteArray bytes = partByteArrays.get(partName);
if (bytes == null) {
log.debug("part '" + partName + "' not present in part store");
log.warn("part '" + partName + "' not present in part store");
return null;
//throw new Docx4JException("part '" + partName + "' not found");
}
Expand All @@ -191,7 +191,6 @@ public long getPartSize(String partName) throws Docx4JException {
return bytes.getLength();
}



///// Save methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ public ByteBuffer getBuffer() {
partStore.getPartSize( name.substring(1)));
} catch (UnsupportedOperationException uoe) {}

is = partStore.loadPart(
name.substring(1));
is = partStore.loadPart( name.substring(1));
if (is==null) {
log.warn(name + " missing from part store");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ public static java.util.Map<String, org.docx4j.wml.Style> getKnownStyles() {
return knownStyles;
}

/*
* Manufacture styles from the following, so they can be used as the
* roots of our style trees.
/**
* Manufacture a paragraph style from the following, so it can be used as the
* root of our paragraph style tree.
*
* <w:docDefaults>
<w:rPrDefault>
Expand All @@ -200,6 +200,12 @@ public static java.util.Map<String, org.docx4j.wml.Style> getKnownStyles() {
BEWARE: in a table, paragraph style ppr trumps table style ppr.
The effect of including w:docDefaults in the style hierarchy
is that they trump table style ppr, but they should not!
* There is no need for a doc defaults character style.
* The reason for this is that Word seems to ignore Default Paragraph Style!
* So the run formatting comes from paragraph style + explicit character style (if any),
* plus direct formatting.
*/
public void createVirtualStylesForDocDefaults() throws Docx4JException {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/docx4j/samples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
For docx4j v3, the sample code has moved to:

https://github.com/plutext/docx4j/tree/master/src/samples/docx4j/org/docx4j/samples
1 change: 0 additions & 1 deletion src/main/java/org/opendope/conditions/Xpathref.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package org.opendope.conditions;

import static org.docx4j.model.datastorage.XPathEnhancerParser.enhanceXPath;
Expand Down
Binary file modified src/test/resources/MERGEFIELD.docx
Binary file not shown.
1 change: 0 additions & 1 deletion xsd/word2003xmlto2006.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ JAXB INSTRUCTIONS
xjc word2003xmlto2006.xsd -d temp -no-header -target 2.0 -extension
-->
<xsd:import namespace="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
schemaLocation="wml/wml.xsd" />
Expand Down

0 comments on commit 46b6fef

Please sign in to comment.