|
|
@@ -149,7 +149,8 @@ public class Paragraphs {
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr.getSpacing().getBeforeLines()!=null){
|
|
|
|
if (pPr.getSpacing().getBeforeLines()!=null){
|
|
|
|
return pPr.getSpacing().getBeforeLines().toString();
|
|
|
|
double lines = pPr.getSpacing().getBeforeLines().intValue() / 100.0;
|
|
|
|
|
|
|
|
return String.format("%.1f行", lines);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
@@ -157,7 +158,8 @@ public class Paragraphs {
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
return spacing.getBeforeLines().toString();
|
|
|
|
double lines = spacing.getBeforeLines().intValue() / 100.0;
|
|
|
|
|
|
|
|
return String.format("%.1f行", lines);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
@@ -167,7 +169,7 @@ public class Paragraphs {
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if(pPr.getSpacing().getBefore()!=null){
|
|
|
|
if(pPr.getSpacing().getBefore()!=null){
|
|
|
|
return pPr.getSpacing().getBefore().toString();
|
|
|
|
return String.valueOf(pPr.getSpacing().getBefore().intValue() / 20)+"磅";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
@@ -175,7 +177,7 @@ public class Paragraphs {
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
return spacing.getBefore().toString();
|
|
|
|
return String.valueOf(style.getPPr().getSpacing().getBefore().intValue() / 20)+"磅";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
@@ -185,7 +187,7 @@ public class Paragraphs {
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if(pPr.getSpacing().getAfter()!=null){
|
|
|
|
if(pPr.getSpacing().getAfter()!=null){
|
|
|
|
return pPr.getSpacing().getAfter().toString();
|
|
|
|
return String.valueOf(pPr.getSpacing().getAfter().intValue() / 20)+"磅";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
@@ -193,7 +195,7 @@ public class Paragraphs {
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
return spacing.getAfter().toString();
|
|
|
|
return String.valueOf(style.getPPr().getSpacing().getAfter().intValue() / 20)+"磅";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
@@ -204,7 +206,8 @@ public class Paragraphs {
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
PPr pPr = paragraph.getPPr();
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr != null && pPr.getSpacing() != null) {
|
|
|
|
if (pPr.getSpacing().getAfterLines() != null) {
|
|
|
|
if (pPr.getSpacing().getAfterLines() != null) {
|
|
|
|
return pPr.getSpacing().getAfterLines().toString();
|
|
|
|
double lines = pPr.getSpacing().getAfterLines().intValue() / 100.0;
|
|
|
|
|
|
|
|
return String.format("%.1f行", lines);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
|
if (pPr != null && pPr.getPStyle() != null && stylePart != null) {
|
|
|
@@ -212,7 +215,8 @@ public class Paragraphs {
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
Style style = stylePart.getStyleById(styleId);
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
if (style != null && style.getPPr() != null && style.getPPr().getSpacing() != null) {
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
PPrBase.Spacing spacing = style.getPPr().getSpacing();
|
|
|
|
return spacing.getAfterLines().toString();
|
|
|
|
double lines = spacing.getAfterLines().intValue() / 100.0;
|
|
|
|
|
|
|
|
return String.format("%.1f行", lines);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|