// border-bottom
m = new ListProperty.Maker(PR_BORDER_BOTTOM);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new GenericShorthandParser());
addPropertyMaker("border-bottom", m);
// border-color
m = new ListProperty.Maker(PR_BORDER_COLOR);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new BoxPropShorthandParser());
addPropertyMaker("border-color", m);
// border-left
m = new ListProperty.Maker(PR_BORDER_LEFT);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new GenericShorthandParser());
addPropertyMaker("border-left", m);
// border-right
m = new ListProperty.Maker(PR_BORDER_RIGHT);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new GenericShorthandParser());
addPropertyMaker("border-right", m);
// border-style
m = new ListProperty.Maker(PR_BORDER_STYLE);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new BoxPropShorthandParser());
addPropertyMaker("border-style", m);
// border-top
m = new ListProperty.Maker(PR_BORDER_TOP);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new GenericShorthandParser());
addPropertyMaker("border-top", m);
// border-width
m = new ListProperty.Maker(PR_BORDER_WIDTH);
m.setInherited(false);
+ m.setDefault("");
m.setDatatypeParser(new BoxPropShorthandParser());
addPropertyMaker("border-width", m);
if ((propId & Constants.COMPOUND_MASK) != 0) {
newProp = getSubprop(newProp, propId & Constants.COMPOUND_MASK);
}
+ if (newProp.getString() == null) {
+ log.warn("Specified value of \"inherit\" for "
+ + FOPropertyMapping.getPropertyName(getPropId()) + " on "
+ + propertyList.getFObj().getName() + ", but no "
+ + "inherited or specified value found on the parent FO.");
+ }
} else {
// Check for keyword shorthand values to be substituted.
pvalue = checkValueKeywords(pvalue);
// If value is a name token, may be keyword or Enum
String sval = prop.getNCname();
if (sval != null) {
- log.debug("Convert shorthand ncname " + sval);
+ //log.debug("Convert shorthand ncname " + sval);
pret = checkEnumValues(sval);
if (pret == null) {
/* Check for keyword shorthand values to be substituted. */
String pvalue = checkValueKeywords(sval);
if (!pvalue.equals(sval)) {
- log.debug("Convert shorthand keyword" + pvalue);
+ //log.debug("Convert shorthand keyword" + pvalue);
// Substituted a value: must parse it
Property p = PropertyParser.parse(pvalue,
new PropertyInfo(this,
* file specifies a length value equivalent for these keywords,
* such as "0.5pt" for "thin".
* @param keyword the string value of property attribute.
- * @return a String containing a parseable equivalent or null if
- * the passed value isn't a keyword initializer for this Property.
+ * @return a String containing a parseable equivalent or null if
+ * the passed value isn't a keyword initializer for this Property
*/
protected String checkValueKeywords(String keyword) {
if (keywords != null) {