int CP_WITHIN_PAGE = 11 << COMPOUND_SHIFT;
// Enumeration constants
-
- int ABSOLUTE = 1;
- int ABSOLUTE_COLORMETRIC = 2;
- int AFTER = 3;
- int ALL = 4;
- int ALPHABETIC = 5;
- int ALWAYS = 6;
- int ANY = 7;
- int AUTO = 8;
- int BASELINE = 9;
- int BEFORE = 10;
- int BLANK = 11;
- int BLINK = 12;
- int BOTTOM = 13;
- int CAPITALIZE = 14;
- int CENTER = 15;
- int COLLAPSE = 16;
- int COLUMN = 17;
- int DASHED = 18;
- int DISCARD = 19;
- int DOCUMENT = 20;
- int DOTS = 21;
- int DOTTED = 22;
- int DOUBLE = 23;
- int END = 24;
- int END_ON_EVEN = 25;
- int END_ON_ODD = 26;
- int ERROR_IF_OVERFLOW = 27;
- int EVEN = 28;
- int EVEN_PAGE = 29;
- int FALSE = 30;
- int FIC = 31;
- int FIRST = 32;
- int FIXED = 33;
- int FORCE = 34;
- int FSWP = 35;
- int GROOVE = 36;
- int HIDDEN = 37;
- int IGNORE = 38;
- int IGNORE_IF_AFTER_LINEFEED = 39;
- int IGNORE_IF_BEFORE_LINEFEED = 40;
- int IGNORE_IF_SURROUNDING_LINEFEED = 41;
- int INSET = 42;
- int JUSTIFY = 43;
- int LAST = 44;
- int LEFT = 45;
- int LEWP = 46;
- int LINE_THROUGH = 47;
- int LOWERCASE = 48;
- int LR_TB = 49;
- int LSWP = 50;
- int MIDDLE = 51;
- int NO_BLINK = 52;
- int NO_FORCE = 53;
- int NO_LINE_THROUGH = 54;
- int NO_OVERLINE = 55;
- int NO_UNDERLINE = 56;
- int NO_WRAP = 57;
- int NON_UNIFORM = 58;
- int NONE = 59;
- int NOREPEAT = 60;
- int NORMAL = 61;
- int NOT_BLANK = 62;
- int ODD = 63;
- int ODD_PAGE = 64;
- int OUTSET = 65;
- int OVERLINE = 66;
- int PAGE = 67;
- int PAGE_SEQUENCE = 68;
- int PERCEPTUAL = 69;
- int PRESERVE = 70;
- int REFERENCE_AREA = 71;
- int RELATIVE = 72;
- int RELATIVE_COLOMETRIC = 73;
- int REPEAT = 74;
- int REPEATX = 75;
- int REPEATY = 76;
- int REST = 77;
- int RETAIN = 78;
- int RIDGE = 79;
- int RIGHT = 80;
- int RL_TB = 81;
- int RULE = 82;
- int SATURATION = 83;
- int SCROLL = 84;
- int SEPARATE = 85;
- int SMALL_CAPS = 86;
- int SOLID = 87;
- int SPACE = 88;
- int START = 89;
- int STATIC = 90;
- int SUB = 91;
- int SUPER = 92;
- int TB_RL = 93;
- int TEXT_BOTTOM = 94;
- int TEXT_TOP = 95;
- int TOP = 96;
- int TRADITIONAL = 97;
- int TREAT_AS_SPACE = 98;
- int TREAT_AS_ZERO_WIDTH_SPACE = 99;
- int TRUE = 100;
- int UNDERLINE = 101;
- int UNIFORM = 102;
- int UPPERCASE = 103;
- int USECONTENT = 104;
- int VISIBLE = 105;
- int WRAP = 106;
- int FONT_HEIGHT = 107;
- int LINE_HEIGHT = 108;
- int MAX_HEIGHT = 109;
- int NO_LIMIT = 110;
- int AUTO_ODD = 111;
- int AUTO_EVEN = 112;
- int BEFORE_EDGE = 113;
- int TEXT_BEFORE_EDGE = 114;
- int CENTRAL = 115;
- int AFTER_EDGE = 116;
- int TEXT_AFTER_EDGE = 117;
- int IDEOGRAPHIC = 118;
- int HANGING = 119;
- int MATHEMATICAL = 120;
- int SCALE_TO_FIT = 121;
- int USE_FONT_METRICS = 122;
- int INDEFINITE = 123;
- int LARGER = 124;
- int SMALLER = 125;
- int INSIDE = 126;
- int OUTSIDE = 127;
- int CONSIDER_SHIFTS = 128;
- int DISREGARD_SHIFTS = 129;
- int INTEGER_PIXELS = 130;
- int RESAMPLE_ANY_METHOD = 131;
- int USE_SCRIPT = 132;
- int NO_CHANGE = 133;
- int RESET_SIZE = 134;
- int WIDER = 135;
- int NARROWER = 136;
- int ULTRA_CONDENSED = 137;
- int EXTRA_CONDENSED = 138;
- int CONDENSED = 139;
- int SEMI_CONDENSED = 140;
- int SEMI_EXPANDED = 141;
- int EXPANDED = 142;
- int EXTRA_EXPANDED = 143;
- int ULTRA_EXPANDED = 144;
- int LINE = 145;
- int INDENT = 146;
- int BLOCK = 147;
- int BOTH = 148;
- int COLLAPSE_WITH_PRECEDENCE = 149;
- int SHOW = 150;
- int HIDE = 151;
- int EMBED = 152;
- int BIDI_OVERRIDE = 153;
- int LTR = 154;
- int RTL = 155;
- int CHARACTER_BY_CHARACTER = 156;
- int SUPPRESS = 157;
- int PAGINATE = 158;
- int BOUNDED_IN_ONE_DIMENSION = 159;
- int UNBOUNDED = 160;
- int ENUM_COUNT = 160;
-
- // Enumeration Interfaces
-
- public interface GenericBooleanInterface {
- int TRUE = Constants.TRUE;
- int FALSE = Constants.FALSE;
- }
-
- public interface GenericBorderStyleInterface {
- int NONE = Constants.NONE;
- int HIDDEN = Constants.HIDDEN;
- int DOTTED = Constants.DOTTED;
- int DASHED = Constants.DASHED;
- int SOLID = Constants.SOLID;
- int DOUBLE = Constants.DOUBLE;
- int GROOVE = Constants.GROOVE;
- int RIDGE = Constants.RIDGE;
- int INSET = Constants.INSET;
- int OUTSET = Constants.OUTSET;
- }
-
- public interface GenericBreakInterface {
- int AUTO = Constants.AUTO;
- int COLUMN = Constants.COLUMN;
- int PAGE = Constants.PAGE;
- int EVEN_PAGE = Constants.EVEN_PAGE;
- int ODD_PAGE = Constants.ODD_PAGE;
- }
-
- public interface GenericCondBorderWidthInterface {
- public interface Conditionality {
- int DISCARD = Constants.DISCARD;
- int RETAIN = Constants.RETAIN;
- }
- }
-
- public interface GenericCondPaddingInterface {
- public interface Conditionality {
- int DISCARD = Constants.DISCARD;
- int RETAIN = Constants.RETAIN;
- }
- }
-
- public interface GenericKeepInterface {
- public interface WithinPage {
- int AUTO = Constants.AUTO;
- int ALWAYS = Constants.ALWAYS;
- }
- public interface WithinLine {
- int AUTO = Constants.AUTO;
- int ALWAYS = Constants.ALWAYS;
- }
- public interface WithinColumn {
- int AUTO = Constants.AUTO;
- int ALWAYS = Constants.ALWAYS;
- }
- }
-
- public interface GenericSpaceInterface {
- public interface Precedence {
- int FORCE = Constants.FORCE;
- }
- public interface Conditionality {
- int DISCARD = Constants.DISCARD;
- int RETAIN = Constants.RETAIN;
- }
- }
-
-
- public interface AbsolutePosition {
- int AUTO = Constants.AUTO;
- int FIXED = Constants.FIXED;
- int ABSOLUTE = Constants.ABSOLUTE; }
-
- public interface BackgroundRepeat {
- int REPEAT = Constants.REPEAT;
- int REPEATX = Constants.REPEATX;
- int REPEATY = Constants.REPEATY;
- int NOREPEAT = Constants.NOREPEAT; }
-
- public interface BaselineShift {
- int BASELINE = Constants.BASELINE;
- int SUB = Constants.SUB;
- int SUPER = Constants.SUPER; }
-
- public interface BlankOrNotBlank {
- int BLANK = Constants.BLANK;
- int NOT_BLANK = Constants.NOT_BLANK;
- int ANY = Constants.ANY; }
-
- public interface BorderAfterStyle extends GenericBorderStyleInterface { }
-
- public interface BorderAfterWidth extends GenericCondBorderWidthInterface { }
-
- public interface BorderBeforeStyle extends GenericBorderStyleInterface { }
-
- public interface BorderBeforeWidth extends GenericCondBorderWidthInterface { }
-
- public interface BorderBottomStyle extends GenericBorderStyleInterface { }
-
- public interface BorderCollapse {
- int SEPARATE = Constants.SEPARATE;
- int COLLAPSE = Constants.COLLAPSE; }
-
- public interface BorderEndStyle extends GenericBorderStyleInterface { }
-
- public interface BorderEndWidth extends GenericCondBorderWidthInterface { }
-
- public interface BorderLeftStyle extends GenericBorderStyleInterface { }
-
- public interface BorderRightStyle extends GenericBorderStyleInterface { }
-
- public interface BorderStartStyle extends GenericBorderStyleInterface { }
-
- public interface BorderStartWidth extends GenericCondBorderWidthInterface { }
-
- public interface BorderTopStyle extends GenericBorderStyleInterface { }
-
- public interface BreakAfter extends GenericBreakInterface { }
-
- public interface BreakBefore extends GenericBreakInterface { }
-
- public interface CaptionSide {
- int BEFORE = Constants.BEFORE;
- int AFTER = Constants.AFTER;
- int START = Constants.START;
- int END = Constants.END;
- int TOP = Constants.TOP;
- int BOTTOM = Constants.BOTTOM;
- int LEFT = Constants.LEFT;
- int RIGHT = Constants.RIGHT; }
-
- public interface DisplayAlign {
- int BEFORE = Constants.BEFORE;
- int AFTER = Constants.AFTER;
- int CENTER = Constants.CENTER;
- int AUTO = Constants.AUTO; }
-
- public interface FontVariant {
- int NORMAL = Constants.NORMAL;
- int SMALL_CAPS = Constants.SMALL_CAPS; }
-
- public interface ForcePageCount {
- int EVEN = Constants.EVEN;
- int ODD = Constants.ODD;
- int END_ON_EVEN = Constants.END_ON_EVEN;
- int END_ON_ODD = Constants.END_ON_ODD;
- int NO_FORCE = Constants.NO_FORCE;
- int AUTO = Constants.AUTO; }
-
- public interface Hyphenate {
- int TRUE = Constants.TRUE;
- int FALSE = Constants.FALSE; }
-
- public interface KeepTogether extends GenericKeepInterface { }
-
- public interface KeepWithNext extends GenericKeepInterface { }
-
- public interface KeepWithPrevious extends GenericKeepInterface { }
-
- public interface LeaderAlignment {
- int NONE = Constants.NONE;
- int REFERENCE_AREA = Constants.REFERENCE_AREA;
- int PAGE = Constants.PAGE; }
-
- public interface LeaderPattern {
- int SPACE = Constants.SPACE;
- int RULE = Constants.RULE;
- int DOTS = Constants.DOTS;
- int USECONTENT = Constants.USECONTENT; }
-
- public interface LetterValue {
- int ALPHABETIC = Constants.ALPHABETIC;
- int TRADITIONAL = Constants.TRADITIONAL;
- int AUTO = Constants.AUTO; }
-
- public interface LinefeedTreatment {
- int IGNORE = Constants.IGNORE;
- int PRESERVE = Constants.PRESERVE;
- int TREAT_AS_SPACE = Constants.TREAT_AS_SPACE;
- int TREAT_AS_ZERO_WIDTH_SPACE = Constants.TREAT_AS_ZERO_WIDTH_SPACE; }
-
- public interface LineStackingStrategy {
- int LINE_HEIGHT = Constants.LINE_HEIGHT;
- int FONT_HEIGHT = Constants.FONT_HEIGHT;
- int MAX_HEIGHT = Constants.MAX_HEIGHT;
- }
-
- public interface OddOrEven {
- int ODD = Constants.ODD;
- int EVEN = Constants.EVEN;
- int ANY = Constants.ANY; }
-
- public interface Overflow {
- int VISIBLE = Constants.VISIBLE;
- int HIDDEN = Constants.HIDDEN;
- int SCROLL = Constants.SCROLL;
- int ERROR_IF_OVERFLOW = Constants.ERROR_IF_OVERFLOW;
- int AUTO = Constants.AUTO; }
-
- public interface PaddingAfter extends GenericCondPaddingInterface { }
-
- public interface PaddingBefore extends GenericCondPaddingInterface { }
-
- public interface PaddingEnd extends GenericCondPaddingInterface { }
-
- public interface PaddingStart extends GenericCondPaddingInterface { }
-
- public interface PagePosition {
- int FIRST = Constants.FIRST;
- int LAST = Constants.LAST;
- int REST = Constants.REST;
- int ANY = Constants.ANY; }
-
-/* public interface Position { conflicts with layoutmgr.Position
- int STATIC = Constants.STATIC;
- int RELATIVE = Constants.RELATIVE;
- int ABSOLUTE = Constants.ABSOLUTE;
- int FIXED = Constants.FIXED; } */
-
- public interface Precedence {
- int TRUE = Constants.TRUE;
- int FALSE = Constants.FALSE; }
-
- public interface RelativeAlign {
- int BEFORE = Constants.BEFORE;
- int BASELINE = Constants.BASELINE; }
-
- public interface RenderingIntent {
- int AUTO = Constants.AUTO;
- int PERCEPTUAL = Constants.PERCEPTUAL;
- int RELATIVE_COLOMETRIC = Constants.RELATIVE_COLOMETRIC;
- int SATURATION = Constants.SATURATION;
- int ABSOLUTE_COLORMETRIC = Constants.ABSOLUTE_COLORMETRIC; }
-
- public interface RetrieveBoundary {
- int PAGE = Constants.PAGE;
- int PAGE_SEQUENCE = Constants.PAGE_SEQUENCE;
- int DOCUMENT = Constants.DOCUMENT; }
-
- public interface RetrievePosition {
- int FSWP = Constants.FSWP;
- int FIC = Constants.FIC;
- int LSWP = Constants.LSWP;
- int LEWP = Constants.LEWP; }
-
- public interface RuleStyle {
- int NONE = Constants.NONE;
- int DOTTED = Constants.DOTTED;
- int DASHED = Constants.DASHED;
- int SOLID = Constants.SOLID;
- int DOUBLE = Constants.DOUBLE;
- int GROOVE = Constants.GROOVE;
- int RIDGE = Constants.RIDGE; }
-
- public interface Scaling {
- int UNIFORM = Constants.UNIFORM;
- int NON_UNIFORM = Constants.NON_UNIFORM; }
-
- public interface SpaceAfter extends GenericSpaceInterface { }
-
- public interface SpaceBefore extends GenericSpaceInterface { }
-
- public interface SpaceEnd extends GenericSpaceInterface { }
-
- public interface SpaceStart extends GenericSpaceInterface { }
-
-/* public interface Span { conflicts with Area.Span
- int NONE = Constants.NONE;
- int ALL = Constants.ALL; } */
-
- public interface TableLayout {
- int AUTO = Constants.AUTO;
- int FIXED = Constants.FIXED; }
-
- public interface TableOmitFooterAtBreak extends GenericBooleanInterface { }
-
- public interface TableOmitHeaderAtBreak extends GenericBooleanInterface { }
-
- public interface TextAlign {
- int CENTER = Constants.CENTER;
- int END = Constants.END;
- int START = Constants.START;
- int JUSTIFY = Constants.JUSTIFY; }
-
- public interface TextAlignLast {
- int CENTER = Constants.CENTER;
- int END = Constants.END;
- int START = Constants.START;
- int JUSTIFY = Constants.JUSTIFY; }
-
- public interface TextDecoration {
- int NONE = Constants.NONE;
- int UNDERLINE = Constants.UNDERLINE;
- int OVERLINE = Constants.OVERLINE;
- int LINE_THROUGH = Constants.LINE_THROUGH;
- int BLINK = Constants.BLINK;
- int NO_UNDERLINE = Constants.NO_UNDERLINE;
- int NO_OVERLINE = Constants.NO_OVERLINE;
- int NO_LINE_THROUGH = Constants.NO_LINE_THROUGH;
- int NO_BLINK = Constants.NO_BLINK; }
-
- public interface TextTransform {
- int NONE = Constants.NONE;
- int CAPITALIZE = Constants.CAPITALIZE;
- int UPPERCASE = Constants.UPPERCASE;
- int LOWERCASE = Constants.LOWERCASE; }
-
- public interface VerticalAlign {
- int BASELINE = Constants.BASELINE;
- int MIDDLE = Constants.MIDDLE;
- int SUB = Constants.SUB;
- int SUPER = Constants.SUPER;
- int TEXT_TOP = Constants.TEXT_TOP;
- int TEXT_BOTTOM = Constants.TEXT_BOTTOM;
- int TOP = Constants.TOP;
- int BOTTOM = Constants.BOTTOM; }
-
- public interface WhiteSpaceCollapse extends GenericBooleanInterface { }
-
- public interface WhiteSpaceTreatment {
- int IGNORE = Constants.IGNORE;
- int PRESERVE = Constants.PRESERVE;
- int IGNORE_IF_BEFORE_LINEFEED = Constants.IGNORE_IF_BEFORE_LINEFEED;
- int IGNORE_IF_AFTER_LINEFEED = Constants.IGNORE_IF_AFTER_LINEFEED;
- int IGNORE_IF_SURROUNDING_LINEFEED = Constants.IGNORE_IF_SURROUNDING_LINEFEED; }
-
- public interface WordSpacing extends GenericSpaceInterface { }
-
- public interface WrapOption {
- int WRAP = Constants.WRAP;
- int NO_WRAP = Constants.NO_WRAP; }
-
- public interface WritingMode {
- int LR_TB = Constants.LR_TB;
- int RL_TB = Constants.RL_TB;
- int TB_RL = Constants.TB_RL; }
-
+ int EN_ABSOLUTE = 1;
+ int EN_ABSOLUTE_COLORMETRIC = 2;
+ int EN_AFTER = 3;
+ int EN_ALL = 4;
+ int EN_ALPHABETIC = 5;
+ int EN_ALWAYS = 6;
+ int EN_ANY = 7;
+ int EN_AUTO = 8;
+ int EN_BASELINE = 9;
+ int EN_BEFORE = 10;
+ int EN_BLANK = 11;
+ int EN_BLINK = 12;
+ int EN_BOTTOM = 13;
+ int EN_CAPITALIZE = 14;
+ int EN_CENTER = 15;
+ int EN_COLLAPSE = 16;
+ int EN_COLUMN = 17;
+ int EN_DASHED = 18;
+ int EN_DISCARD = 19;
+ int EN_DOCUMENT = 20;
+ int EN_DOTS = 21;
+ int EN_DOTTED = 22;
+ int EN_DOUBLE = 23;
+ int EN_END = 24;
+ int EN_END_ON_EVEN = 25;
+ int EN_END_ON_ODD = 26;
+ int EN_ERROR_IF_OVERFLOW = 27;
+ int EN_EVEN = 28;
+ int EN_EVEN_PAGE = 29;
+ int EN_FALSE = 30;
+ int EN_FIC = 31;
+ int EN_FIRST = 32;
+ int EN_FIXED = 33;
+ int EN_FORCE = 34;
+ int EN_FSWP = 35;
+ int EN_GROOVE = 36;
+ int EN_HIDDEN = 37;
+ int EN_IGNORE = 38;
+ int EN_IGNORE_IF_AFTER_LINEFEED = 39;
+ int EN_IGNORE_IF_BEFORE_LINEFEED = 40;
+ int EN_IGNORE_IF_SURROUNDING_LINEFEED = 41;
+ int EN_INSET = 42;
+ int EN_JUSTIFY = 43;
+ int EN_LAST = 44;
+ int EN_LEFT = 45;
+ int EN_LEWP = 46;
+ int EN_LINE_THROUGH = 47;
+ int EN_LOWERCASE = 48;
+ int EN_LR_TB = 49;
+ int EN_LSWP = 50;
+ int EN_MIDDLE = 51;
+ int EN_NO_BLINK = 52;
+ int EN_NO_FORCE = 53;
+ int EN_NO_LINE_THROUGH = 54;
+ int EN_NO_OVERLINE = 55;
+ int EN_NO_UNDERLINE = 56;
+ int EN_NO_WRAP = 57;
+ int EN_NON_UNIFORM = 58;
+ int EN_NONE = 59;
+ int EN_NOREPEAT = 60;
+ int EN_NORMAL = 61;
+ int EN_NOT_BLANK = 62;
+ int EN_ODD = 63;
+ int EN_ODD_PAGE = 64;
+ int EN_OUTSET = 65;
+ int EN_OVERLINE = 66;
+ int EN_PAGE = 67;
+ int EN_PAGE_SEQUENCE = 68;
+ int EN_PERCEPTUAL = 69;
+ int EN_PRESERVE = 70;
+ int EN_REFERENCE_AREA = 71;
+ int EN_RELATIVE = 72;
+ int EN_RELATIVE_COLOMETRIC = 73;
+ int EN_REPEAT = 74;
+ int EN_REPEATX = 75;
+ int EN_REPEATY = 76;
+ int EN_REST = 77;
+ int EN_RETAIN = 78;
+ int EN_RIDGE = 79;
+ int EN_RIGHT = 80;
+ int EN_RL_TB = 81;
+ int EN_RULE = 82;
+ int EN_SATURATION = 83;
+ int EN_SCROLL = 84;
+ int EN_SEPARATE = 85;
+ int EN_SMALL_CAPS = 86;
+ int EN_SOLID = 87;
+ int EN_SPACE = 88;
+ int EN_START = 89;
+ int EN_STATIC = 90;
+ int EN_SUB = 91;
+ int EN_SUPER = 92;
+ int EN_TB_RL = 93;
+ int EN_TEXT_BOTTOM = 94;
+ int EN_TEXT_TOP = 95;
+ int EN_TOP = 96;
+ int EN_TRADITIONAL = 97;
+ int EN_TREAT_AS_SPACE = 98;
+ int EN_TREAT_AS_ZERO_WIDTH_SPACE = 99;
+ int EN_TRUE = 100;
+ int EN_UNDERLINE = 101;
+ int EN_UNIFORM = 102;
+ int EN_UPPERCASE = 103;
+ int EN_USECONTENT = 104;
+ int EN_VISIBLE = 105;
+ int EN_WRAP = 106;
+ int EN_FONT_HEIGHT = 107;
+ int EN_LINE_HEIGHT = 108;
+ int EN_MAX_HEIGHT = 109;
+ int EN_NO_LIMIT = 110;
+ int EN_AUTO_ODD = 111;
+ int EN_AUTO_EVEN = 112;
+ int EN_BEFORE_EDGE = 113;
+ int EN_TEXT_BEFORE_EDGE = 114;
+ int EN_CENTRAL = 115;
+ int EN_AFTER_EDGE = 116;
+ int EN_TEXT_AFTER_EDGE = 117;
+ int EN_IDEOGRAPHIC = 118;
+ int EN_HANGING = 119;
+ int EN_MATHEMATICAL = 120;
+ int EN_SCALE_TO_FIT = 121;
+ int EN_USE_FONT_METRICS = 122;
+ int EN_INDEFINITE = 123;
+ int EN_LARGER = 124;
+ int EN_SMALLER = 125;
+ int EN_INSIDE = 126;
+ int EN_OUTSIDE = 127;
+ int EN_CONSIDER_SHIFTS = 128;
+ int EN_DISREGARD_SHIFTS = 129;
+ int EN_INTEGER_PIXELS = 130;
+ int EN_RESAMPLE_ANY_METHOD = 131;
+ int EN_USE_SCRIPT = 132;
+ int EN_NO_CHANGE = 133;
+ int EN_RESET_SIZE = 134;
+ int EN_WIDER = 135;
+ int EN_NARROWER = 136;
+ int EN_ULTRA_CONDENSED = 137;
+ int EN_EXTRA_CONDENSED = 138;
+ int EN_CONDENSED = 139;
+ int EN_SEMI_CONDENSED = 140;
+ int EN_SEMI_EXPANDED = 141;
+ int EN_EXPANDED = 142;
+ int EN_EXTRA_EXPANDED = 143;
+ int EN_ULTRA_EXPANDED = 144;
+ int EN_LINE = 145;
+ int EN_INDENT = 146;
+ int EN_BLOCK = 147;
+ int EN_BOTH = 148;
+ int EN_COLLAPSE_WITH_PRECEDENCE = 149;
+ int EN_SHOW = 150;
+ int EN_HIDE = 151;
+ int EN_EMBED = 152;
+ int EN_BIDI_OVERRIDE = 153;
+ int EN_LTR = 154;
+ int EN_RTL = 155;
+ int EN_CHARACTER_BY_CHARACTER = 156;
+ int EN_SUPPRESS = 157;
+ int EN_PAGINATE = 158;
+ int EN_BOUNDED_IN_ONE_DIMENSION = 159;
+ int EN_UNBOUNDED = 160;
+ int EN_INHERIT = 161;
+ int ENUM_COUNT = 161;
}
// GenericBoolean
genericBoolean = new EnumProperty.Maker(0);
- genericBoolean.addEnum("true", makeEnumProperty(TRUE, "TRUE"));
- genericBoolean.addEnum("false", makeEnumProperty(FALSE, "FALSE"));
+ genericBoolean.addEnum("true", makeEnumProperty(EN_TRUE, "TRUE"));
+ genericBoolean.addEnum("false", makeEnumProperty(EN_FALSE, "FALSE"));
// GenericKeep
genericKeep = new KeepProperty.Maker(0);
sub = new NumberProperty.Maker(CP_WITHIN_PAGE);
sub.setByShorthand(true);
sub.setDefault("auto");
- sub.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- sub.addEnum("always", makeEnumProperty(ALWAYS, "ALWAYS"));
+ sub.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ sub.addEnum("always", makeEnumProperty(EN_ALWAYS, "ALWAYS"));
genericKeep.addSubpropMaker(sub);
sub = new NumberProperty.Maker(CP_WITHIN_LINE);
sub.setByShorthand(true);
sub.setDefault("auto");
- sub.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- sub.addEnum("always", makeEnumProperty(ALWAYS, "ALWAYS"));
+ sub.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ sub.addEnum("always", makeEnumProperty(EN_ALWAYS, "ALWAYS"));
genericKeep.addSubpropMaker(sub);
sub = new NumberProperty.Maker(CP_WITHIN_COLUMN);
sub.setByShorthand(true);
sub.setDefault("auto");
- sub.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- sub.addEnum("always", makeEnumProperty(ALWAYS, "ALWAYS"));
+ sub.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ sub.addEnum("always", makeEnumProperty(EN_ALWAYS, "ALWAYS"));
genericKeep.addSubpropMaker(sub);
// GenericCondLength
sub.setByShorthand(true);
genericCondLength.addSubpropMaker(sub);
sub = new EnumProperty.Maker(CP_CONDITIONALITY);
- sub.addEnum("discard", makeEnumProperty(DISCARD, "DISCARD"));
- sub.addEnum("retain", makeEnumProperty(RETAIN, "RETAIN"));
+ sub.addEnum("discard", makeEnumProperty(EN_DISCARD, "DISCARD"));
+ sub.addEnum("retain", makeEnumProperty(EN_RETAIN, "RETAIN"));
genericCondLength.addSubpropMaker(sub);
// GenericCondPadding
sub.setDefault("medium");
genericCondBorderWidth.addSubpropMaker(sub);
sub = new EnumProperty.Maker(CP_CONDITIONALITY);
- sub.addEnum("discard", makeEnumProperty(DISCARD, "DISCARD"));
- sub.addEnum("retain", makeEnumProperty(RETAIN, "RETAIN"));
+ sub.addEnum("discard", makeEnumProperty(EN_DISCARD, "DISCARD"));
+ sub.addEnum("retain", makeEnumProperty(EN_RETAIN, "RETAIN"));
genericCondBorderWidth.addSubpropMaker(sub);
// GenericBorderWidth
// GenericBorderStyle
genericBorderStyle = new EnumProperty.Maker(0);
genericBorderStyle.setInherited(false);
- genericBorderStyle.addEnum("none", makeEnumProperty(NONE, "NONE"));
- genericBorderStyle.addEnum("hidden", makeEnumProperty(HIDDEN, "HIDDEN"));
- genericBorderStyle.addEnum("dotted", makeEnumProperty(DOTTED, "DOTTED"));
- genericBorderStyle.addEnum("dashed", makeEnumProperty(DASHED, "DASHED"));
- genericBorderStyle.addEnum("solid", makeEnumProperty(SOLID, "SOLID"));
- genericBorderStyle.addEnum("double", makeEnumProperty(DOUBLE, "DOUBLE"));
- genericBorderStyle.addEnum("groove", makeEnumProperty(GROOVE, "GROOVE"));
- genericBorderStyle.addEnum("ridge", makeEnumProperty(RIDGE, "RIDGE"));
- genericBorderStyle.addEnum("inset", makeEnumProperty(INSET, "INSET"));
- genericBorderStyle.addEnum("outset", makeEnumProperty(OUTSET, "OUTSET"));
+ genericBorderStyle.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ genericBorderStyle.addEnum("hidden", makeEnumProperty(EN_HIDDEN, "HIDDEN"));
+ genericBorderStyle.addEnum("dotted", makeEnumProperty(EN_DOTTED, "DOTTED"));
+ genericBorderStyle.addEnum("dashed", makeEnumProperty(EN_DASHED, "DASHED"));
+ genericBorderStyle.addEnum("solid", makeEnumProperty(EN_SOLID, "SOLID"));
+ genericBorderStyle.addEnum("double", makeEnumProperty(EN_DOUBLE, "DOUBLE"));
+ genericBorderStyle.addEnum("groove", makeEnumProperty(EN_GROOVE, "GROOVE"));
+ genericBorderStyle.addEnum("ridge", makeEnumProperty(EN_RIDGE, "RIDGE"));
+ genericBorderStyle.addEnum("inset", makeEnumProperty(EN_INSET, "INSET"));
+ genericBorderStyle.addEnum("outset", makeEnumProperty(EN_OUTSET, "OUTSET"));
genericBorderStyle.setDefault("none");
// GenericBreak
genericBreak = new EnumProperty.Maker(0);
genericBreak.setInherited(false);
- genericBreak.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- genericBreak.addEnum("column", makeEnumProperty(COLUMN, "COLUMN"));
- genericBreak.addEnum("page", makeEnumProperty(PAGE, "PAGE"));
- genericBreak.addEnum("even-page", makeEnumProperty(EVEN_PAGE, "EVEN_PAGE"));
- genericBreak.addEnum("odd-page", makeEnumProperty(ODD_PAGE, "ODD_PAGE"));
+ genericBreak.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ genericBreak.addEnum("column", makeEnumProperty(EN_COLUMN, "COLUMN"));
+ genericBreak.addEnum("page", makeEnumProperty(EN_PAGE, "PAGE"));
+ genericBreak.addEnum("even-page", makeEnumProperty(EN_EVEN_PAGE, "EVEN_PAGE"));
+ genericBreak.addEnum("odd-page", makeEnumProperty(EN_ODD_PAGE, "ODD_PAGE"));
genericBreak.setDefault("auto");
// GenericSpace
sub.setByShorthand(true);
genericSpace.addSubpropMaker(sub);
sub = new NumberProperty.Maker(CP_PRECEDENCE);
- sub.addEnum("force", makeEnumProperty(FORCE, "FORCE"));
+ sub.addEnum("force", makeEnumProperty(EN_FORCE, "FORCE"));
sub.setDefault("0");
genericSpace.addSubpropMaker(sub);
sub = new EnumProperty.Maker(CP_CONDITIONALITY);
- sub.addEnum("discard", makeEnumProperty(DISCARD, "DISCARD"));
- sub.addEnum("retain", makeEnumProperty(RETAIN, "RETAIN"));
+ sub.addEnum("discard", makeEnumProperty(EN_DISCARD, "DISCARD"));
+ sub.addEnum("retain", makeEnumProperty(EN_RETAIN, "RETAIN"));
sub.setDefault("discard");
genericSpace.addSubpropMaker(sub);
}
// absolute-position
m = new EnumProperty.Maker(PR_ABSOLUTE_POSITION);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
- m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("fixed", makeEnumProperty(EN_FIXED, "FIXED"));
+ m.addEnum("absolute", makeEnumProperty(EN_ABSOLUTE, "ABSOLUTE"));
m.setDefault("auto");
m.addShorthand(s_generics[PR_POSITION]);
addPropertyMaker("absolute-position", m);
// top
l = new LengthProperty.Maker(PR_TOP);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
addPropertyMaker("top", l);
// right
l = new LengthProperty.Maker(PR_RIGHT);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
addPropertyMaker("right", l);
// bottom
l = new LengthProperty.Maker(PR_BOTTOM);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
addPropertyMaker("bottom", l);
// left
l = new LengthProperty.Maker(PR_LEFT);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
addPropertyMaker("left", l);
}
// background-attachment
m = new EnumProperty.Maker(PR_BACKGROUND_ATTACHMENT);
m.setInherited(false);
- m.addEnum("scroll", makeEnumProperty(SCROLL, "SCROLL"));
- m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
+ m.addEnum("scroll", makeEnumProperty(EN_SCROLL, "SCROLL"));
+ m.addEnum("fixed", makeEnumProperty(EN_FIXED, "FIXED"));
m.setDefault("scroll");
addPropertyMaker("background-attachment", m);
// background-repeat
m = new EnumProperty.Maker(PR_BACKGROUND_REPEAT);
m.setInherited(false);
- m.addEnum("repeat", makeEnumProperty(REPEAT, "REPEAT"));
- m.addEnum("repeat-x", makeEnumProperty(REPEATX, "REPEATX"));
- m.addEnum("repeat-y", makeEnumProperty(REPEATY, "REPEATY"));
- m.addEnum("no-repeat", makeEnumProperty(NOREPEAT, "NOREPEAT"));
+ m.addEnum("repeat", makeEnumProperty(EN_REPEAT, "REPEAT"));
+ m.addEnum("repeat-x", makeEnumProperty(EN_REPEATX, "REPEATX"));
+ m.addEnum("repeat-y", makeEnumProperty(EN_REPEATY, "REPEATY"));
+ m.addEnum("no-repeat", makeEnumProperty(EN_NOREPEAT, "NOREPEAT"));
m.setDefault("repeat");
addPropertyMaker("background-repeat", m);
// font-selection-strategy
m = new EnumProperty.Maker(PR_FONT_SELECTION_STRATEGY);
m.setInherited(true);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("character-by-character", makeEnumProperty(CHARACTER_BY_CHARACTER, "CHARACTER_BY_CHARACTER"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("character-by-character", makeEnumProperty(EN_CHARACTER_BY_CHARACTER, "CHARACTER_BY_CHARACTER"));
m.setDefault("auto");
addPropertyMaker("font-selection-strategy", m);
// font-stretch
m = new EnumProperty.Maker(PR_FONT_STRETCH);
- m.addEnum("normal", makeEnumProperty(NORMAL, "NORMAL"));
- m.addEnum("wider", makeEnumProperty(WIDER, "WIDER"));
- m.addEnum("narrower", makeEnumProperty(NARROWER, "NARROWER"));
- m.addEnum("ultra-condensed", makeEnumProperty(ULTRA_CONDENSED, "ULTRA_CONDENSED"));
- m.addEnum("extra-condensed", makeEnumProperty(EXTRA_CONDENSED, "EXTRA_CONDENSED"));
- m.addEnum("condensed", makeEnumProperty(CONDENSED, "CONDENSED"));
- m.addEnum("semi-condensed", makeEnumProperty(SEMI_CONDENSED, "SEMI_CONDENSED"));
- m.addEnum("semi-expanded", makeEnumProperty(SEMI_EXPANDED, "SEMI_EXPANDED"));
- m.addEnum("expanded", makeEnumProperty(EXPANDED, "EXPANDED"));
- m.addEnum("extra-expanded", makeEnumProperty(EXTRA_EXPANDED, "EXTRA_EXPANDED"));
- m.addEnum("ultra-expanded", makeEnumProperty(ULTRA_EXPANDED, "ULTRA_EXPANDED"));
+ m.addEnum("normal", makeEnumProperty(EN_NORMAL, "NORMAL"));
+ m.addEnum("wider", makeEnumProperty(EN_WIDER, "WIDER"));
+ m.addEnum("narrower", makeEnumProperty(EN_NARROWER, "NARROWER"));
+ m.addEnum("ultra-condensed", makeEnumProperty(EN_ULTRA_CONDENSED, "ULTRA_CONDENSED"));
+ m.addEnum("extra-condensed", makeEnumProperty(EN_EXTRA_CONDENSED, "EXTRA_CONDENSED"));
+ m.addEnum("condensed", makeEnumProperty(EN_CONDENSED, "CONDENSED"));
+ m.addEnum("semi-condensed", makeEnumProperty(EN_SEMI_CONDENSED, "SEMI_CONDENSED"));
+ m.addEnum("semi-expanded", makeEnumProperty(EN_SEMI_EXPANDED, "SEMI_EXPANDED"));
+ m.addEnum("expanded", makeEnumProperty(EN_EXPANDED, "EXPANDED"));
+ m.addEnum("extra-expanded", makeEnumProperty(EN_EXTRA_EXPANDED, "EXTRA_EXPANDED"));
+ m.addEnum("ultra-expanded", makeEnumProperty(EN_ULTRA_EXPANDED, "ULTRA_EXPANDED"));
m.setDefault("normal");
addPropertyMaker("font-stretch", m);
// font-size-adjust
m = new NumberProperty.Maker(PR_FONT_SIZE_ADJUST);
m.setInherited(true);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
m.setDefault("none");
addPropertyMaker("font-size-adjust", m);
// font-variant
m = new EnumProperty.Maker(PR_FONT_VARIANT);
m.setInherited(true);
- m.addEnum("normal", makeEnumProperty(NORMAL, "NORMAL"));
- m.addEnum("small-caps", makeEnumProperty(SMALL_CAPS, "SMALL_CAPS"));
+ m.addEnum("normal", makeEnumProperty(EN_NORMAL, "NORMAL"));
+ m.addEnum("small-caps", makeEnumProperty(EN_SMALL_CAPS, "SMALL_CAPS"));
m.setDefault("normal");
addPropertyMaker("font-variant", m);
// hyphenate
m = new EnumProperty.Maker(PR_HYPHENATE);
m.setInherited(true);
- m.addEnum("true", makeEnumProperty(TRUE, "TRUE"));
- m.addEnum("false", makeEnumProperty(FALSE, "FALSE"));
+ m.addEnum("true", makeEnumProperty(EN_TRUE, "TRUE"));
+ m.addEnum("false", makeEnumProperty(EN_FALSE, "FALSE"));
m.setDefault("false");
addPropertyMaker("hyphenate", m);
// relative-position
m = new EnumProperty.Maker(PR_RELATIVE_POSITION);
m.setInherited(false);
- m.addEnum("static", makeEnumProperty(STATIC, "STATIC"));
- m.addEnum("relative", makeEnumProperty(RELATIVE, "RELATIVE"));
+ m.addEnum("static", makeEnumProperty(EN_STATIC, "STATIC"));
+ m.addEnum("relative", makeEnumProperty(EN_RELATIVE, "RELATIVE"));
m.setDefault("static");
m.addShorthand(s_generics[PR_POSITION]);
addPropertyMaker("relative-position", m);
// alignment-adjust
m = new LengthProperty.Maker(PR_ALIGNMENT_ADJUST);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("baseline", makeEnumProperty(BASELINE, "BASELINE"));
- m.addEnum("before-edge", makeEnumProperty(BEFORE_EDGE, "BEFORE_EDGE"));
- m.addEnum("text-before-edge", makeEnumProperty(TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
- m.addEnum("middle", makeEnumProperty(MIDDLE, "MIDDLE"));
- m.addEnum("central", makeEnumProperty(CENTRAL, "CENTRAL"));
- m.addEnum("after-edge", makeEnumProperty(AFTER_EDGE, "AFTER_EDGE"));
- m.addEnum("text-after-edge", makeEnumProperty(TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE"));
- m.addEnum("ideographic", makeEnumProperty(IDEOGRAPHIC, "IDEOGRAPHIC"));
- m.addEnum("alphabetic", makeEnumProperty(ALPHABETIC, "ALPHABETIC"));
- m.addEnum("hanging", makeEnumProperty(HANGING, "HANGING"));
- m.addEnum("mathematical", makeEnumProperty(MATHEMATICAL, "MATHEMATICAL"));
- m.addEnum("top", makeEnumProperty(TOP, "TOP"));
- m.addEnum("bottom", makeEnumProperty(BOTTOM, "BOTTOM"));
- m.addEnum("text-top", makeEnumProperty(TEXT_TOP, "TEXT_TOP"));
- m.addEnum("text-bottom", makeEnumProperty(TEXT_BOTTOM, "TEXT_BOTTOM"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("baseline", makeEnumProperty(EN_BASELINE, "BASELINE"));
+ m.addEnum("before-edge", makeEnumProperty(EN_BEFORE_EDGE, "BEFORE_EDGE"));
+ m.addEnum("text-before-edge", makeEnumProperty(EN_TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
+ m.addEnum("middle", makeEnumProperty(EN_MIDDLE, "MIDDLE"));
+ m.addEnum("central", makeEnumProperty(EN_CENTRAL, "CENTRAL"));
+ m.addEnum("after-edge", makeEnumProperty(EN_AFTER_EDGE, "AFTER_EDGE"));
+ m.addEnum("text-after-edge", makeEnumProperty(EN_TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE"));
+ m.addEnum("ideographic", makeEnumProperty(EN_IDEOGRAPHIC, "IDEOGRAPHIC"));
+ m.addEnum("alphabetic", makeEnumProperty(EN_ALPHABETIC, "ALPHABETIC"));
+ m.addEnum("hanging", makeEnumProperty(EN_HANGING, "HANGING"));
+ m.addEnum("mathematical", makeEnumProperty(EN_MATHEMATICAL, "MATHEMATICAL"));
+ m.addEnum("top", makeEnumProperty(EN_TOP, "TOP"));
+ m.addEnum("bottom", makeEnumProperty(EN_BOTTOM, "BOTTOM"));
+ m.addEnum("text-top", makeEnumProperty(EN_TEXT_TOP, "TEXT_TOP"));
+ m.addEnum("text-bottom", makeEnumProperty(EN_TEXT_BOTTOM, "TEXT_BOTTOM"));
m.setDefault("auto");
addPropertyMaker("alignment-adjust", m);
// alignment-baseline
m = new EnumProperty.Maker(PR_ALIGNMENT_BASELINE);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("baseline", makeEnumProperty(BASELINE, "BASELINE"));
- m.addEnum("before-edge", makeEnumProperty(BEFORE_EDGE, "BEFORE_EDGE"));
- m.addEnum("text-before-edge", makeEnumProperty(TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
- m.addEnum("middle", makeEnumProperty(MIDDLE, "MIDDLE"));
- m.addEnum("central", makeEnumProperty(CENTRAL, "CENTRAL"));
- m.addEnum("after-edge", makeEnumProperty(AFTER_EDGE, "AFTER_EDGE"));
- m.addEnum("text-after-edge", makeEnumProperty(TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE"));
- m.addEnum("ideographic", makeEnumProperty(IDEOGRAPHIC, "IDEOGRAPHIC"));
- m.addEnum("alphabetic", makeEnumProperty(ALPHABETIC, "ALPHABETIC"));
- m.addEnum("hanging", makeEnumProperty(HANGING, "HANGING"));
- m.addEnum("mathematical", makeEnumProperty(MATHEMATICAL, "MATHEMATICAL"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("baseline", makeEnumProperty(EN_BASELINE, "BASELINE"));
+ m.addEnum("before-edge", makeEnumProperty(EN_BEFORE_EDGE, "BEFORE_EDGE"));
+ m.addEnum("text-before-edge", makeEnumProperty(EN_TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
+ m.addEnum("middle", makeEnumProperty(EN_MIDDLE, "MIDDLE"));
+ m.addEnum("central", makeEnumProperty(EN_CENTRAL, "CENTRAL"));
+ m.addEnum("after-edge", makeEnumProperty(EN_AFTER_EDGE, "AFTER_EDGE"));
+ m.addEnum("text-after-edge", makeEnumProperty(EN_TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE"));
+ m.addEnum("ideographic", makeEnumProperty(EN_IDEOGRAPHIC, "IDEOGRAPHIC"));
+ m.addEnum("alphabetic", makeEnumProperty(EN_ALPHABETIC, "ALPHABETIC"));
+ m.addEnum("hanging", makeEnumProperty(EN_HANGING, "HANGING"));
+ m.addEnum("mathematical", makeEnumProperty(EN_MATHEMATICAL, "MATHEMATICAL"));
m.setDefault("auto");
addPropertyMaker("alignment-baseline", m);
// baseline-shift
m = new LengthProperty.Maker(PR_BASELINE_SHIFT);
m.setInherited(false);
- m.addEnum("baseline", makeEnumProperty(BASELINE, "BASELINE"));
- m.addEnum("sub", makeEnumProperty(SUB, "SUB"));
- m.addEnum("super", makeEnumProperty(SUPER, "SUPER"));
+ m.addEnum("baseline", makeEnumProperty(EN_BASELINE, "BASELINE"));
+ m.addEnum("sub", makeEnumProperty(EN_SUB, "SUB"));
+ m.addEnum("super", makeEnumProperty(EN_SUPER, "SUPER"));
m.setDefault("baseline");
addPropertyMaker("baseline-shift", m);
// display-align
m = new EnumProperty.Maker(PR_DISPLAY_ALIGN);
m.setInherited(true);
- m.addEnum("before", makeEnumProperty(BEFORE, "BEFORE"));
- m.addEnum("after", makeEnumProperty(AFTER, "AFTER"));
- m.addEnum("center", makeEnumProperty(CENTER, "CENTER"));
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ m.addEnum("before", makeEnumProperty(EN_BEFORE, "BEFORE"));
+ m.addEnum("after", makeEnumProperty(EN_AFTER, "AFTER"));
+ m.addEnum("center", makeEnumProperty(EN_CENTER, "CENTER"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
m.setDefault("auto");
addPropertyMaker("display-align", m);
// dominant-baseline
m = new EnumProperty.Maker(PR_DOMINANT_BASELINE);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("use-script", makeEnumProperty(USE_SCRIPT, "USE_SCRIPT"));
- m.addEnum("no-change", makeEnumProperty(NO_CHANGE, "NO_CHANGE"));
- m.addEnum("reset-size", makeEnumProperty(RESET_SIZE, "RESET_SIZE"));
- m.addEnum("ideographic", makeEnumProperty(IDEOGRAPHIC, "IDEOGRAPHIC"));
- m.addEnum("alphabetic", makeEnumProperty(ALPHABETIC, "ALPHABETIC"));
- m.addEnum("hanging", makeEnumProperty(HANGING, "HANGING"));
- m.addEnum("mathematical", makeEnumProperty(MATHEMATICAL, "MATHEMATICAL"));
- m.addEnum("central", makeEnumProperty(CENTRAL, "CENTRAL"));
- m.addEnum("middle", makeEnumProperty(MIDDLE, "MIDDLE"));
- m.addEnum("text-after-edge", makeEnumProperty(TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE" ));
- m.addEnum("text-before-edge", makeEnumProperty(TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("use-script", makeEnumProperty(EN_USE_SCRIPT, "USE_SCRIPT"));
+ m.addEnum("no-change", makeEnumProperty(EN_NO_CHANGE, "NO_CHANGE"));
+ m.addEnum("reset-size", makeEnumProperty(EN_RESET_SIZE, "RESET_SIZE"));
+ m.addEnum("ideographic", makeEnumProperty(EN_IDEOGRAPHIC, "IDEOGRAPHIC"));
+ m.addEnum("alphabetic", makeEnumProperty(EN_ALPHABETIC, "ALPHABETIC"));
+ m.addEnum("hanging", makeEnumProperty(EN_HANGING, "HANGING"));
+ m.addEnum("mathematical", makeEnumProperty(EN_MATHEMATICAL, "MATHEMATICAL"));
+ m.addEnum("central", makeEnumProperty(EN_CENTRAL, "CENTRAL"));
+ m.addEnum("middle", makeEnumProperty(EN_MIDDLE, "MIDDLE"));
+ m.addEnum("text-after-edge", makeEnumProperty(EN_TEXT_AFTER_EDGE, "TEXT_AFTER_EDGE" ));
+ m.addEnum("text-before-edge", makeEnumProperty(EN_TEXT_BEFORE_EDGE, "TEXT_BEFORE_EDGE"));
m.setDefault("auto");
addPropertyMaker("dominant-baseline", m);
// relative-align
m = new EnumProperty.Maker(PR_RELATIVE_ALIGN);
m.setInherited(true);
- m.addEnum("before", makeEnumProperty(BEFORE, "BEFORE"));
- m.addEnum("baseline", makeEnumProperty(BASELINE, "BASELINE"));
+ m.addEnum("before", makeEnumProperty(EN_BEFORE, "BEFORE"));
+ m.addEnum("baseline", makeEnumProperty(EN_BASELINE, "BASELINE"));
m.setDefault("before");
addPropertyMaker("relative-align", m);
}
l = new LengthProperty.Maker(CP_MINIMUM);
l.setDefault("auto");
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
m.addSubpropMaker(l);
l = new LengthProperty.Maker(CP_OPTIMUM);
l.setDefault("auto");
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
m.addSubpropMaker(l);
l = new LengthProperty.Maker(CP_MAXIMUM);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
// content-height
l = new LengthProperty.Maker(PR_CONTENT_HEIGHT);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- l.addEnum("scale-to-fit", makeEnumProperty(SCALE_TO_FIT, "SCALE_TO_FIT"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ l.addEnum("scale-to-fit", makeEnumProperty(EN_SCALE_TO_FIT, "SCALE_TO_FIT"));
l.setDefault("auto");
addPropertyMaker("content-height", l);
// content-width
l = new LengthProperty.Maker(PR_CONTENT_WIDTH);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- l.addEnum("scale-to-fit", makeEnumProperty(SCALE_TO_FIT, "SCALE_TO_FIT"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ l.addEnum("scale-to-fit", makeEnumProperty(EN_SCALE_TO_FIT, "SCALE_TO_FIT"));
l.setDefault("auto");
addPropertyMaker("content-width", l);
// height
l = new LengthProperty.Maker(PR_HEIGHT);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
addPropertyMaker("height", l);
l = new LengthProperty.Maker(CP_MINIMUM);
l.setDefault("auto");
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
m.addSubpropMaker(l);
l = new LengthProperty.Maker(CP_OPTIMUM);
l.setDefault("auto");
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
m.addSubpropMaker(l);
l = new LengthProperty.Maker(CP_MAXIMUM);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("auto");
l.setPercentBase(LengthBase.CONTAINING_BOX);
l.setByShorthand(true);
// scaling
m = new EnumProperty.Maker(PR_SCALING);
m.setInherited(true);
- m.addEnum("uniform", makeEnumProperty(UNIFORM, "UNIFORM"));
- m.addEnum("non-uniform", makeEnumProperty(NON_UNIFORM, "NON_UNIFORM"));
+ m.addEnum("uniform", makeEnumProperty(EN_UNIFORM, "UNIFORM"));
+ m.addEnum("non-uniform", makeEnumProperty(EN_NON_UNIFORM, "NON_UNIFORM"));
m.setDefault("uniform");
addPropertyMaker("scaling", m);
// scaling-method
m = new EnumProperty.Maker(PR_SCALING_METHOD);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("integer-pixels", makeEnumProperty(INTEGER_PIXELS, "INTEGER_PIXELS"));
- m.addEnum("resample-any-method", makeEnumProperty(RESAMPLE_ANY_METHOD, "RESAMPLE_ANY_METHOD"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("integer-pixels", makeEnumProperty(EN_INTEGER_PIXELS, "INTEGER_PIXELS"));
+ m.addEnum("resample-any-method", makeEnumProperty(EN_RESAMPLE_ANY_METHOD, "RESAMPLE_ANY_METHOD"));
m.setDefault("auto");
addPropertyMaker("scaling-method", m);
// width
l = new LengthProperty.Maker(PR_WIDTH);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setPercentBase(LengthBase.BLOCK_WIDTH);
l.setDefault("auto");
addPropertyMaker("width", l);
// hyphenation-keep
m = new EnumProperty.Maker(PR_HYPHENATION_KEEP);
m.setInherited(true);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("column", makeEnumProperty(COLUMN, "COLUMN"));
- m.addEnum("page", makeEnumProperty(PAGE, "PAGE"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("column", makeEnumProperty(EN_COLUMN, "COLUMN"));
+ m.addEnum("page", makeEnumProperty(EN_PAGE, "PAGE"));
m.setDefault("auto");
addPropertyMaker("hyphenation-keep", m);
// hyphenation-ladder-count
m = new NumberProperty.Maker(PR_HYPHENATION_LADDER_COUNT);
m.setInherited(true);
- m.addEnum("no-limit", makeEnumProperty(NO_LIMIT, "NO_LIMIT"));
+ m.addEnum("no-limit", makeEnumProperty(EN_NO_LIMIT, "NO_LIMIT"));
m.setDefault("no-limit");
addPropertyMaker("hyphenation-ladder-count", m);
// line-height-shift-adjustment
m = new EnumProperty.Maker(PR_LINE_HEIGHT_SHIFT_ADJUSTMENT);
m.setInherited(true);
- m.addEnum("consider-shifts", makeEnumProperty(CONSIDER_SHIFTS, "CONSIDER_SHIFTS"));
- m.addEnum("disregard-shifts", makeEnumProperty(DISREGARD_SHIFTS, "DISREGARD_SHIFTS"));
+ m.addEnum("consider-shifts", makeEnumProperty(EN_CONSIDER_SHIFTS, "CONSIDER_SHIFTS"));
+ m.addEnum("disregard-shifts", makeEnumProperty(EN_DISREGARD_SHIFTS, "DISREGARD_SHIFTS"));
m.setDefault("consider-shifts");
addPropertyMaker("line-height-shift-adjustment", m);
// line-stacking-strategy
m = new EnumProperty.Maker(PR_LINE_STACKING_STRATEGY);
m.setInherited(true);
- m.addEnum("line-height", makeEnumProperty(LINE_HEIGHT, "LINE_HEIGHT"));
- m.addEnum("font-height", makeEnumProperty(FONT_HEIGHT, "FONT_HEIGHT"));
- m.addEnum("max-height", makeEnumProperty(MAX_HEIGHT, "MAX_HEIGHT"));
+ m.addEnum("line-height", makeEnumProperty(EN_LINE_HEIGHT, "LINE_HEIGHT"));
+ m.addEnum("font-height", makeEnumProperty(EN_FONT_HEIGHT, "FONT_HEIGHT"));
+ m.addEnum("max-height", makeEnumProperty(EN_MAX_HEIGHT, "MAX_HEIGHT"));
m.setDefault("max-height");
addPropertyMaker("line-stacking-strategy", m);
// linefeed-treatment
m = new EnumProperty.Maker(PR_LINEFEED_TREATMENT);
m.setInherited(true);
- m.addEnum("ignore", makeEnumProperty(IGNORE, "IGNORE"));
- m.addEnum("preserve", makeEnumProperty(PRESERVE, "PRESERVE"));
- m.addEnum("treat-as-space", makeEnumProperty(TREAT_AS_SPACE, "TREAT_AS_SPACE"));
- m.addEnum("treat-as-zero-width-space", makeEnumProperty(TREAT_AS_ZERO_WIDTH_SPACE, "TREAT_AS_ZERO_WIDTH_SPACE"));
+ m.addEnum("ignore", makeEnumProperty(EN_IGNORE, "IGNORE"));
+ m.addEnum("preserve", makeEnumProperty(EN_PRESERVE, "PRESERVE"));
+ m.addEnum("treat-as-space", makeEnumProperty(EN_TREAT_AS_SPACE, "TREAT_AS_SPACE"));
+ m.addEnum("treat-as-zero-width-space", makeEnumProperty(EN_TREAT_AS_ZERO_WIDTH_SPACE, "TREAT_AS_ZERO_WIDTH_SPACE"));
m.setDefault("treat-as-space");
addPropertyMaker("linefeed-treatment", m);
// white-space-treatment
m = new EnumProperty.Maker(PR_WHITE_SPACE_TREATMENT);
m.setInherited(true);
- m.addEnum("ignore", makeEnumProperty(IGNORE, "IGNORE"));
- m.addEnum("preserve", makeEnumProperty(PRESERVE, "PRESERVE"));
- m.addEnum("ignore-if-before-linefeed", makeEnumProperty(IGNORE_IF_BEFORE_LINEFEED, "IGNORE_IF_BEFORE_LINEFEED"));
- m.addEnum("ignore-if-after-linefeed", makeEnumProperty(IGNORE_IF_AFTER_LINEFEED, "IGNORE_IF_AFTER_LINEFEED"));
- m.addEnum("ignore-if-surrounding-linefeed", makeEnumProperty(IGNORE_IF_SURROUNDING_LINEFEED, "IGNORE_IF_SURROUNDING_LINEFEED"));
+ m.addEnum("ignore", makeEnumProperty(EN_IGNORE, "IGNORE"));
+ m.addEnum("preserve", makeEnumProperty(EN_PRESERVE, "PRESERVE"));
+ m.addEnum("ignore-if-before-linefeed", makeEnumProperty(EN_IGNORE_IF_BEFORE_LINEFEED, "IGNORE_IF_BEFORE_LINEFEED"));
+ m.addEnum("ignore-if-after-linefeed", makeEnumProperty(EN_IGNORE_IF_AFTER_LINEFEED, "IGNORE_IF_AFTER_LINEFEED"));
+ m.addEnum("ignore-if-surrounding-linefeed", makeEnumProperty(EN_IGNORE_IF_SURROUNDING_LINEFEED, "IGNORE_IF_SURROUNDING_LINEFEED"));
m.setDefault("ignore-if-surrounding-linefeed");
addPropertyMaker("white-space-treatment", m);
m.setInherited(true);
// Note: both 'end', 'right' and 'outside' are mapped to END
// both 'start', 'left' and 'inside' are mapped to START
- m.addEnum("center", makeEnumProperty(CENTER, "CENTER"));
- m.addEnum("end", makeEnumProperty(END, "END"));
- m.addEnum("right", makeEnumProperty(END, "END"));
- m.addEnum("start", makeEnumProperty(START, "START"));
- m.addEnum("left", makeEnumProperty(START, "START"));
- m.addEnum("justify", makeEnumProperty(JUSTIFY, "JUSTIFY"));
- m.addEnum("inside", makeEnumProperty(START, "START"));
- m.addEnum("outside", makeEnumProperty(END, "END"));
+ m.addEnum("center", makeEnumProperty(EN_CENTER, "CENTER"));
+ m.addEnum("end", makeEnumProperty(EN_END, "END"));
+ m.addEnum("right", makeEnumProperty(EN_END, "END"));
+ m.addEnum("start", makeEnumProperty(EN_START, "START"));
+ m.addEnum("left", makeEnumProperty(EN_START, "START"));
+ m.addEnum("justify", makeEnumProperty(EN_JUSTIFY, "JUSTIFY"));
+ m.addEnum("inside", makeEnumProperty(EN_START, "START"));
+ m.addEnum("outside", makeEnumProperty(EN_END, "END"));
m.setDefault("start");
addPropertyMaker("text-align", m);
return null;
}
int correspondingValue = corresponding.getEnum();
- if (correspondingValue == JUSTIFY) {
- return makeEnumProperty(START, "START");
- } else if (correspondingValue == END) {
- return makeEnumProperty(END, "END");
- } else if (correspondingValue == START) {
- return makeEnumProperty(START, "START");
- } else if (correspondingValue == CENTER) {
- return makeEnumProperty(CENTER, "CENTER");
+ if (correspondingValue == EN_JUSTIFY) {
+ return makeEnumProperty(EN_START, "START");
+ } else if (correspondingValue == EN_END) {
+ return makeEnumProperty(EN_END, "END");
+ } else if (correspondingValue == EN_START) {
+ return makeEnumProperty(EN_START, "START");
+ } else if (correspondingValue == EN_CENTER) {
+ return makeEnumProperty(EN_CENTER, "CENTER");
} else {
return null;
}
}
};
m.setInherited(true);
- m.addEnum("center", makeEnumProperty(CENTER, "CENTER"));
- m.addEnum("end", makeEnumProperty(END, "END"));
- m.addEnum("start", makeEnumProperty(START, "START"));
- m.addEnum("justify", makeEnumProperty(JUSTIFY, "JUSTIFY"));
+ m.addEnum("center", makeEnumProperty(EN_CENTER, "CENTER"));
+ m.addEnum("end", makeEnumProperty(EN_END, "END"));
+ m.addEnum("start", makeEnumProperty(EN_START, "START"));
+ m.addEnum("justify", makeEnumProperty(EN_JUSTIFY, "JUSTIFY"));
m.setDefault("start");
addPropertyMaker("text-align-last", m);
// wrap-option
m = new EnumProperty.Maker(PR_WRAP_OPTION);
m.setInherited(true);
- m.addEnum("wrap", makeEnumProperty(WRAP, "WRAP"));
- m.addEnum("no-wrap", makeEnumProperty(NO_WRAP, "NO_WRAP"));
+ m.addEnum("wrap", makeEnumProperty(EN_WRAP, "WRAP"));
+ m.addEnum("no-wrap", makeEnumProperty(EN_NO_WRAP, "NO_WRAP"));
m.setDefault("wrap");
addPropertyMaker("wrap-option", m);
}
m.getSubpropMaker(CP_PRECEDENCE).setDefault("force");
m.getSubpropMaker(CP_CONDITIONALITY).setDefault("discard");
m.setDefault("normal");
- m.addEnum("normal", makeEnumProperty(NORMAL, "NORMAL"));
+ m.addEnum("normal", makeEnumProperty(EN_NORMAL, "NORMAL"));
addPropertyMaker("letter-spacing", m);
// suppress-at-line-break
m = new EnumProperty.Maker(PR_SUPPRESS_AT_LINE_BREAK);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("suppress", makeEnumProperty(SUPPRESS, "SUPPRESS"));
- m.addEnum("retain", makeEnumProperty(RETAIN, "RETAIN"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("suppress", makeEnumProperty(EN_SUPPRESS, "SUPPRESS"));
+ m.addEnum("retain", makeEnumProperty(EN_RETAIN, "RETAIN"));
m.setDefault("auto");
addPropertyMaker("suppress-at-line-break", m);
// text-decoration
m = new EnumProperty.Maker(PR_TEXT_DECORATION);
m.setInherited(false);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("underline", makeEnumProperty(UNDERLINE, "UNDERLINE"));
- m.addEnum("overline", makeEnumProperty(OVERLINE, "OVERLINE"));
- m.addEnum("line-through", makeEnumProperty(LINE_THROUGH, "LINE_THROUGH"));
- m.addEnum("blink", makeEnumProperty(BLINK, "BLINK"));
- m.addEnum("no-underline", makeEnumProperty(NO_UNDERLINE, "NO_UNDERLINE"));
- m.addEnum("no-overline", makeEnumProperty(NO_OVERLINE, "NO_OVERLINE"));
- m.addEnum("no-line-through", makeEnumProperty(NO_LINE_THROUGH, "NO_LINE_THROUGH"));
- m.addEnum("no-blink", makeEnumProperty(NO_BLINK, "NO_BLINK"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("underline", makeEnumProperty(EN_UNDERLINE, "UNDERLINE"));
+ m.addEnum("overline", makeEnumProperty(EN_OVERLINE, "OVERLINE"));
+ m.addEnum("line-through", makeEnumProperty(EN_LINE_THROUGH, "LINE_THROUGH"));
+ m.addEnum("blink", makeEnumProperty(EN_BLINK, "BLINK"));
+ m.addEnum("no-underline", makeEnumProperty(EN_NO_UNDERLINE, "NO_UNDERLINE"));
+ m.addEnum("no-overline", makeEnumProperty(EN_NO_OVERLINE, "NO_OVERLINE"));
+ m.addEnum("no-line-through", makeEnumProperty(EN_NO_LINE_THROUGH, "NO_LINE_THROUGH"));
+ m.addEnum("no-blink", makeEnumProperty(EN_NO_BLINK, "NO_BLINK"));
m.setDefault("none");
addPropertyMaker("text-decoration", m);
// text-transform
m = new EnumProperty.Maker(PR_TEXT_TRANSFORM);
m.setInherited(true);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("capitalize", makeEnumProperty(CAPITALIZE, "CAPITALIZE"));
- m.addEnum("uppercase", makeEnumProperty(UPPERCASE, "UPPERCASE"));
- m.addEnum("lowercase", makeEnumProperty(LOWERCASE, "LOWERCASE"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("capitalize", makeEnumProperty(EN_CAPITALIZE, "CAPITALIZE"));
+ m.addEnum("uppercase", makeEnumProperty(EN_UPPERCASE, "UPPERCASE"));
+ m.addEnum("lowercase", makeEnumProperty(EN_LOWERCASE, "LOWERCASE"));
m.setDefault("none");
addPropertyMaker("text-transform", m);
// treat-as-word-space
m = new EnumProperty.Maker(PR_TREAT_AS_WORD_SPACE);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("true", makeEnumProperty(TRUE, "TRUE"));
- m.addEnum("false", makeEnumProperty(FALSE, "FALSE"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("true", makeEnumProperty(EN_TRUE, "TRUE"));
+ m.addEnum("false", makeEnumProperty(EN_FALSE, "FALSE"));
m.setInherited(false);
m.setDefault("auto");
addPropertyMaker("treat-as-word-space", m);
m.getSubpropMaker(CP_PRECEDENCE).setDefault("force");
m.getSubpropMaker(CP_CONDITIONALITY).setDefault("discard");
m.setDefault("normal");
- m.addEnum("normal", makeEnumProperty(NORMAL, "NORMAL"));
+ m.addEnum("normal", makeEnumProperty(EN_NORMAL, "NORMAL"));
addPropertyMaker("word-spacing", m);
}
// rendering-intent
m = new EnumProperty.Maker(PR_RENDERING_INTENT);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("perceptual", makeEnumProperty(PERCEPTUAL, "PERCEPTUAL"));
- m.addEnum("relative-colorimetric", makeEnumProperty(RELATIVE_COLOMETRIC, "RELATIVE_COLOMETRIC"));
- m.addEnum("saturation", makeEnumProperty(SATURATION, "SATURATION"));
- m.addEnum("absolute-colorimetric", makeEnumProperty(ABSOLUTE_COLORMETRIC, "ABSOLUTE_COLORMETRIC"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("perceptual", makeEnumProperty(EN_PERCEPTUAL, "PERCEPTUAL"));
+ m.addEnum("relative-colorimetric", makeEnumProperty(EN_RELATIVE_COLOMETRIC, "RELATIVE_COLOMETRIC"));
+ m.addEnum("saturation", makeEnumProperty(EN_SATURATION, "SATURATION"));
+ m.addEnum("absolute-colorimetric", makeEnumProperty(EN_ABSOLUTE_COLORMETRIC, "ABSOLUTE_COLORMETRIC"));
m.setDefault("auto");
addPropertyMaker("rendering-intent", m);
}
m = new EnumProperty.Maker(PR_CLEAR);
m.setInherited(false);
// Note that left -> start and right -> end.
- m.addEnum("start", makeEnumProperty(START, "START"));
- m.addEnum("end", makeEnumProperty(END, "END"));
- m.addEnum("left", makeEnumProperty(START, "START"));
- m.addEnum("right", makeEnumProperty(END, "END"));
- m.addEnum("both", makeEnumProperty(BOTH, "BOTH"));
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
+ m.addEnum("start", makeEnumProperty(EN_START, "START"));
+ m.addEnum("end", makeEnumProperty(EN_END, "END"));
+ m.addEnum("left", makeEnumProperty(EN_START, "START"));
+ m.addEnum("right", makeEnumProperty(EN_END, "END"));
+ m.addEnum("both", makeEnumProperty(EN_BOTH, "BOTH"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
m.setDefault("none");
addPropertyMaker("clear", m);
m = new EnumProperty.Maker(PR_FLOAT);
m.setInherited(false);
// Note that left -> start and right -> end.
- m.addEnum("before", makeEnumProperty(BEFORE, "BEFORE"));
- m.addEnum("start", makeEnumProperty(START, "START"));
- m.addEnum("end", makeEnumProperty(END, "END"));
- m.addEnum("left", makeEnumProperty(START, "START"));
- m.addEnum("right", makeEnumProperty(END, "END"));
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
+ m.addEnum("before", makeEnumProperty(EN_BEFORE, "BEFORE"));
+ m.addEnum("start", makeEnumProperty(EN_START, "START"));
+ m.addEnum("end", makeEnumProperty(EN_END, "END"));
+ m.addEnum("left", makeEnumProperty(EN_START, "START"));
+ m.addEnum("right", makeEnumProperty(EN_END, "END"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
m.setDefault("none");
addPropertyMaker("float", m);
// intrusion-displace
m = new EnumProperty.Maker(PR_INTRUSION_DISPLACE);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("line", makeEnumProperty(LINE, "LINE"));
- m.addEnum("indent", makeEnumProperty(INDENT, "INDENT"));
- m.addEnum("block", makeEnumProperty(BLOCK, "BLOCK"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("line", makeEnumProperty(EN_LINE, "LINE"));
+ m.addEnum("indent", makeEnumProperty(EN_INDENT, "INDENT"));
+ m.addEnum("block", makeEnumProperty(EN_BLOCK, "BLOCK"));
m.setDefault("none");
addPropertyMaker("intrusion-displace", m);
}
// overflow
m = new EnumProperty.Maker(PR_OVERFLOW);
m.setInherited(false);
- m.addEnum("visible", makeEnumProperty(VISIBLE, "VISIBLE"));
- m.addEnum("hidden", makeEnumProperty(HIDDEN, "HIDDEN"));
- m.addEnum("scroll", makeEnumProperty(SCROLL, "SCROLL"));
- m.addEnum("error-if-overflow", makeEnumProperty(ERROR_IF_OVERFLOW, "ERROR_IF_OVERFLOW"));
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ m.addEnum("visible", makeEnumProperty(EN_VISIBLE, "VISIBLE"));
+ m.addEnum("hidden", makeEnumProperty(EN_HIDDEN, "HIDDEN"));
+ m.addEnum("scroll", makeEnumProperty(EN_SCROLL, "SCROLL"));
+ m.addEnum("error-if-overflow", makeEnumProperty(EN_ERROR_IF_OVERFLOW, "ERROR_IF_OVERFLOW"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
m.setDefault("auto");
addPropertyMaker("overflow", m);
// span
m = new EnumProperty.Maker(PR_SPAN);
m.setInherited(false);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("all", makeEnumProperty(ALL, "ALL"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("all", makeEnumProperty(EN_ALL, "ALL"));
m.setDefault("none");
addPropertyMaker("span", m);
}
// leader-alignment
m = new EnumProperty.Maker(PR_LEADER_ALIGNMENT);
m.setInherited(true);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("reference-area", makeEnumProperty(REFERENCE_AREA, "REFERENCE_AREA"));
- m.addEnum("page", makeEnumProperty(PAGE, "PAGE"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("reference-area", makeEnumProperty(EN_REFERENCE_AREA, "REFERENCE_AREA"));
+ m.addEnum("page", makeEnumProperty(EN_PAGE, "PAGE"));
m.setDefault("none");
addPropertyMaker("leader-alignment", m);
// leader-pattern
m = new EnumProperty.Maker(PR_LEADER_PATTERN);
m.setInherited(true);
- m.addEnum("space", makeEnumProperty(SPACE, "SPACE"));
- m.addEnum("rule", makeEnumProperty(RULE, "RULE"));
- m.addEnum("dots", makeEnumProperty(DOTS, "DOTS"));
- m.addEnum("use-content", makeEnumProperty(USECONTENT, "USECONTENT"));
+ m.addEnum("space", makeEnumProperty(EN_SPACE, "SPACE"));
+ m.addEnum("rule", makeEnumProperty(EN_RULE, "RULE"));
+ m.addEnum("dots", makeEnumProperty(EN_DOTS, "DOTS"));
+ m.addEnum("use-content", makeEnumProperty(EN_USECONTENT, "USECONTENT"));
m.setDefault("space");
addPropertyMaker("leader-pattern", m);
// rule-style
m = new EnumProperty.Maker(PR_RULE_STYLE);
m.setInherited(true);
- m.addEnum("none", makeEnumProperty(NONE, "NONE"));
- m.addEnum("dotted", makeEnumProperty(DOTTED, "DOTTED"));
- m.addEnum("dashed", makeEnumProperty(DASHED, "DASHED"));
- m.addEnum("solid", makeEnumProperty(SOLID, "SOLID"));
- m.addEnum("double", makeEnumProperty(DOUBLE, "DOUBLE"));
- m.addEnum("groove", makeEnumProperty(GROOVE, "GROOVE"));
- m.addEnum("ridge", makeEnumProperty(RIDGE, "RIDGE"));
+ m.addEnum("none", makeEnumProperty(EN_NONE, "NONE"));
+ m.addEnum("dotted", makeEnumProperty(EN_DOTTED, "DOTTED"));
+ m.addEnum("dashed", makeEnumProperty(EN_DASHED, "DASHED"));
+ m.addEnum("solid", makeEnumProperty(EN_SOLID, "SOLID"));
+ m.addEnum("double", makeEnumProperty(EN_DOUBLE, "DOUBLE"));
+ m.addEnum("groove", makeEnumProperty(EN_GROOVE, "GROOVE"));
+ m.addEnum("ridge", makeEnumProperty(EN_RIDGE, "RIDGE"));
m.setDefault("solid");
addPropertyMaker("rule-style", m);
// retrieve-position
m = new EnumProperty.Maker(PR_RETRIEVE_POSITION);
m.setInherited(false);
- m.addEnum("first-starting-within-page", makeEnumProperty(FSWP, "FSWP"));
- m.addEnum("first-including-carryover", makeEnumProperty(FIC, "FIC"));
- m.addEnum("last-starting-within-page", makeEnumProperty(LSWP, "LSWP"));
- m.addEnum("last-ending-within-page", makeEnumProperty(LEWP, "LEWP"));
+ m.addEnum("first-starting-within-page", makeEnumProperty(EN_FSWP, "FSWP"));
+ m.addEnum("first-including-carryover", makeEnumProperty(EN_FIC, "FIC"));
+ m.addEnum("last-starting-within-page", makeEnumProperty(EN_LSWP, "LSWP"));
+ m.addEnum("last-ending-within-page", makeEnumProperty(EN_LEWP, "LEWP"));
m.setDefault("first-starting-within-page");
addPropertyMaker("retrieve-position", m);
// retrieve-boundary
m = new EnumProperty.Maker(PR_RETRIEVE_BOUNDARY);
m.setInherited(false);
- m.addEnum("page", makeEnumProperty(PAGE, "PAGE"));
- m.addEnum("page-sequence", makeEnumProperty(PAGE_SEQUENCE, "PAGE_SEQUENCE"));
- m.addEnum("document", makeEnumProperty(DOCUMENT, "DOCUMENT"));
+ m.addEnum("page", makeEnumProperty(EN_PAGE, "PAGE"));
+ m.addEnum("page-sequence", makeEnumProperty(EN_PAGE_SEQUENCE, "PAGE_SEQUENCE"));
+ m.addEnum("document", makeEnumProperty(EN_DOCUMENT, "DOCUMENT"));
m.setDefault("page-sequence");
addPropertyMaker("retrieve-boundary", m);
}
// letter-value
m = new EnumProperty.Maker(PR_LETTER_VALUE);
m.setInherited(false);
- m.addEnum("alphabetic", makeEnumProperty(ALPHABETIC, "ALPHABETIC"));
- m.addEnum("traditional", makeEnumProperty(TRADITIONAL, "TRADITIONAL"));
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ m.addEnum("alphabetic", makeEnumProperty(EN_ALPHABETIC, "ALPHABETIC"));
+ m.addEnum("traditional", makeEnumProperty(EN_TRADITIONAL, "TRADITIONAL"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
m.setDefault("auto");
addPropertyMaker("letter-value", m);
}
// blank-or-not-blank
m = new EnumProperty.Maker(PR_BLANK_OR_NOT_BLANK);
m.setInherited(false);
- m.addEnum("blank", makeEnumProperty(BLANK, "BLANK"));
- m.addEnum("not-blank", makeEnumProperty(NOT_BLANK, "NOT_BLANK"));
- m.addEnum("any", makeEnumProperty(ANY, "ANY"));
+ m.addEnum("blank", makeEnumProperty(EN_BLANK, "BLANK"));
+ m.addEnum("not-blank", makeEnumProperty(EN_NOT_BLANK, "NOT_BLANK"));
+ m.addEnum("any", makeEnumProperty(EN_ANY, "ANY"));
m.setDefault("any");
addPropertyMaker("blank-or-not-blank", m);
// column-gap
l = new LengthProperty.Maker(PR_COLUMN_GAP);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
l.setDefault("0.25in");
addPropertyMaker("column-gap", l);
// force-page-count
m = new EnumProperty.Maker(PR_FORCE_PAGE_COUNT);
m.setInherited(false);
- m.addEnum("even", makeEnumProperty(EVEN, "EVEN"));
- m.addEnum("odd", makeEnumProperty(ODD, "ODD"));
- m.addEnum("end-on-even", makeEnumProperty(END_ON_EVEN, "END_ON_EVEN"));
- m.addEnum("end-on-odd", makeEnumProperty(END_ON_ODD, "END_ON_ODD"));
- m.addEnum("no-force", makeEnumProperty(NO_FORCE, "NO_FORCE"));
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ m.addEnum("even", makeEnumProperty(EN_EVEN, "EVEN"));
+ m.addEnum("odd", makeEnumProperty(EN_ODD, "ODD"));
+ m.addEnum("end-on-even", makeEnumProperty(EN_END_ON_EVEN, "END_ON_EVEN"));
+ m.addEnum("end-on-odd", makeEnumProperty(EN_END_ON_ODD, "END_ON_ODD"));
+ m.addEnum("no-force", makeEnumProperty(EN_NO_FORCE, "NO_FORCE"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
m.setDefault("auto");
addPropertyMaker("force-page-count", m);
// initial-page-number
m = new NumberProperty.Maker(PR_INITIAL_PAGE_NUMBER);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("auto-odd", makeEnumProperty(AUTO_ODD, "AUTO_ODD"));
- m.addEnum("auto-even", makeEnumProperty(AUTO_EVEN, "AUTO_EVEN"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("auto-odd", makeEnumProperty(EN_AUTO_ODD, "AUTO_ODD"));
+ m.addEnum("auto-even", makeEnumProperty(EN_AUTO_EVEN, "AUTO_EVEN"));
m.setDefault("auto");
addPropertyMaker("initial-page-number", m);
// maximum-repeats
m = new NumberProperty.Maker(PR_MAXIMUM_REPEATS);
m.setInherited(false);
- m.addEnum("no-limit", makeEnumProperty(NO_LIMIT, "NO_LIMIT"));
+ m.addEnum("no-limit", makeEnumProperty(EN_NO_LIMIT, "NO_LIMIT"));
m.setDefault("no-limit");
addPropertyMaker("maximum-repeats", m);
// media-usage
m = new EnumProperty.Maker(PR_MEDIA_USAGE);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("paginate", makeEnumProperty(PAGINATE, "PAGINATE"));
- m.addEnum("bounded-in-one-dimension", makeEnumProperty(BOUNDED_IN_ONE_DIMENSION, "BOUNDED_IN_ONE_DIMENSION"));
- m.addEnum("unbounded", makeEnumProperty(UNBOUNDED, "UNBOUNDED"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("paginate", makeEnumProperty(EN_PAGINATE, "PAGINATE"));
+ m.addEnum("bounded-in-one-dimension", makeEnumProperty(EN_BOUNDED_IN_ONE_DIMENSION, "BOUNDED_IN_ONE_DIMENSION"));
+ m.addEnum("unbounded", makeEnumProperty(EN_UNBOUNDED, "UNBOUNDED"));
m.setDefault("auto");
addPropertyMaker("media-usage", m);
// odd-or-even
m = new EnumProperty.Maker(PR_ODD_OR_EVEN);
m.setInherited(false);
- m.addEnum("odd", makeEnumProperty(ODD, "ODD"));
- m.addEnum("even", makeEnumProperty(EVEN, "EVEN"));
- m.addEnum("any", makeEnumProperty(ANY, "ANY"));
+ m.addEnum("odd", makeEnumProperty(EN_ODD, "ODD"));
+ m.addEnum("even", makeEnumProperty(EN_EVEN, "EVEN"));
+ m.addEnum("any", makeEnumProperty(EN_ANY, "ANY"));
m.setDefault("any");
addPropertyMaker("odd-or-even", m);
// page-height
l = new LengthProperty.Maker(PR_PAGE_HEIGHT);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- l.addEnum("indefinite", makeEnumProperty(INDEFINITE, "INDEFINITE"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ l.addEnum("indefinite", makeEnumProperty(EN_INDEFINITE, "INDEFINITE"));
// TODO: default should be 'auto'
l.setDefault("11in");
addPropertyMaker("page-height", l);
// page-position
m = new EnumProperty.Maker(PR_PAGE_POSITION);
m.setInherited(false);
- m.addEnum("first", makeEnumProperty(FIRST, "FIRST"));
- m.addEnum("last", makeEnumProperty(LAST, "LAST"));
- m.addEnum("rest", makeEnumProperty(REST, "REST"));
- m.addEnum("any", makeEnumProperty(ANY, "ANY"));
+ m.addEnum("first", makeEnumProperty(EN_FIRST, "FIRST"));
+ m.addEnum("last", makeEnumProperty(EN_LAST, "LAST"));
+ m.addEnum("rest", makeEnumProperty(EN_REST, "REST"));
+ m.addEnum("any", makeEnumProperty(EN_ANY, "ANY"));
m.setDefault("any");
addPropertyMaker("page-position", m);
// page-width
l = new LengthProperty.Maker(PR_PAGE_WIDTH);
l.setInherited(false);
- l.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- l.addEnum("indefinite", makeEnumProperty(INDEFINITE, "INDEFINITE"));
+ l.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ l.addEnum("indefinite", makeEnumProperty(EN_INDEFINITE, "INDEFINITE"));
// TODO: default should be 'auto'
l.setDefault("8in");
addPropertyMaker("page-width", l);
// precedence
m = new EnumProperty.Maker(PR_PRECEDENCE);
m.setInherited(false);
- m.addEnum("true", makeEnumProperty(TRUE, "TRUE"));
- m.addEnum("false", makeEnumProperty(FALSE, "FALSE"));
+ m.addEnum("true", makeEnumProperty(EN_TRUE, "TRUE"));
+ m.addEnum("false", makeEnumProperty(EN_FALSE, "FALSE"));
m.setDefault("false");
addPropertyMaker("precedence", m);
m = new EnumProperty.Maker(PR_BORDER_COLLAPSE);
m.setInherited(true);
m.setDefault("collapse");
- m.addEnum("separate", makeEnumProperty(SEPARATE, "SEPARATE"));
- m.addEnum("collapse-with-precedence", makeEnumProperty(COLLAPSE_WITH_PRECEDENCE, "COLLAPSE_WITH_PRECEDENCE"));
- m.addEnum("collapse", makeEnumProperty(COLLAPSE, "COLLAPSE"));
+ m.addEnum("separate", makeEnumProperty(EN_SEPARATE, "SEPARATE"));
+ m.addEnum("collapse-with-precedence", makeEnumProperty(EN_COLLAPSE_WITH_PRECEDENCE, "COLLAPSE_WITH_PRECEDENCE"));
+ m.addEnum("collapse", makeEnumProperty(EN_COLLAPSE, "COLLAPSE"));
addPropertyMaker("border-collapse", m);
// border-end-precedence
// caption-side
m = new EnumProperty.Maker(PR_CAPTION_SIDE);
m.setInherited(true);
- m.addEnum("before", makeEnumProperty(BEFORE, "BEFORE"));
- m.addEnum("after", makeEnumProperty(AFTER, "AFTER"));
- m.addEnum("start", makeEnumProperty(START, "START"));
- m.addEnum("end", makeEnumProperty(END, "END"));
- m.addEnum("top", makeEnumProperty(TOP, "TOP"));
- m.addEnum("bottom", makeEnumProperty(BOTTOM, "BOTTOM"));
- m.addEnum("left", makeEnumProperty(LEFT, "LEFT"));
- m.addEnum("right", makeEnumProperty(RIGHT, "RIGHT"));
+ m.addEnum("before", makeEnumProperty(EN_BEFORE, "BEFORE"));
+ m.addEnum("after", makeEnumProperty(EN_AFTER, "AFTER"));
+ m.addEnum("start", makeEnumProperty(EN_START, "START"));
+ m.addEnum("end", makeEnumProperty(EN_END, "END"));
+ m.addEnum("top", makeEnumProperty(EN_TOP, "TOP"));
+ m.addEnum("bottom", makeEnumProperty(EN_BOTTOM, "BOTTOM"));
+ m.addEnum("left", makeEnumProperty(EN_LEFT, "LEFT"));
+ m.addEnum("right", makeEnumProperty(EN_RIGHT, "RIGHT"));
m.setDefault("before");
addPropertyMaker("caption-side", m);
// empty-cells
m = new EnumProperty.Maker(PR_EMPTY_CELLS);
m.setInherited(true);
- m.addEnum("show", makeEnumProperty(SHOW, "SHOW"));
- m.addEnum("hide", makeEnumProperty(HIDE, "HIDE"));
+ m.addEnum("show", makeEnumProperty(EN_SHOW, "SHOW"));
+ m.addEnum("hide", makeEnumProperty(EN_HIDE, "HIDE"));
m.setDefault("show");
addPropertyMaker("empty-cells", m);
m = new EnumProperty.Maker(PR_TABLE_LAYOUT);
m.setInherited(false);
m.setDefault("auto");
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
- m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
+ m.addEnum("fixed", makeEnumProperty(EN_FIXED, "FIXED"));
addPropertyMaker("table-layout", m);
// table-omit-footer-at-break
// direction
m = new EnumProperty.Maker(PR_DIRECTION);
m.setInherited(true);
- m.addEnum("ltr", makeEnumProperty(LTR, "LTR"));
- m.addEnum("rtl", makeEnumProperty(RTL, "RTL"));
+ m.addEnum("ltr", makeEnumProperty(EN_LTR, "LTR"));
+ m.addEnum("rtl", makeEnumProperty(EN_RTL, "RTL"));
m.setDefault("ltr");
addPropertyMaker("direction", m);
// text-altitude
m = new LengthProperty.Maker(PR_TEXT_ALTITUDE);
m.setInherited(false);
- m.addEnum("use-font-metrics", makeEnumProperty(USE_FONT_METRICS, "USE_FONT_METRICS"));
+ m.addEnum("use-font-metrics", makeEnumProperty(EN_USE_FONT_METRICS, "USE_FONT_METRICS"));
m.setDefault("use-font-metrics");
addPropertyMaker("text-altitude", m);
// text-depth
m = new LengthProperty.Maker(PR_TEXT_DEPTH);
m.setInherited(false);
- m.addEnum("use-font-metrics", makeEnumProperty(USE_FONT_METRICS, "USE_FONT_METRICS"));
+ m.addEnum("use-font-metrics", makeEnumProperty(EN_USE_FONT_METRICS, "USE_FONT_METRICS"));
m.setDefault("use-font-metrics");
addPropertyMaker("text-depth", m);
// unicode-bidi
m = new EnumProperty.Maker(PR_UNICODE_BIDI);
m.setInherited(false);
- m.addEnum("normal", makeEnumProperty(NORMAL, "NORMAL"));
- m.addEnum("embed", makeEnumProperty(EMBED, "EMBED"));
- m.addEnum("bidi-override", makeEnumProperty(BIDI_OVERRIDE, "BIDI_OVERRIDE"));
+ m.addEnum("normal", makeEnumProperty(EN_NORMAL, "NORMAL"));
+ m.addEnum("embed", makeEnumProperty(EN_EMBED, "EMBED"));
+ m.addEnum("bidi-override", makeEnumProperty(EN_BIDI_OVERRIDE, "BIDI_OVERRIDE"));
m.setDefault("normal");
addPropertyMaker("unicode-bidi", m);
m = new EnumProperty.Maker(PR_WRITING_MODE);
m.setInherited(true);
m.setDefault("lr-tb");
- m.addEnum("lr-tb", makeEnumProperty(LR_TB, "LR_TB"));
- m.addEnum("rl-tb", makeEnumProperty(RL_TB, "RL_TB"));
- m.addEnum("tb-rl", makeEnumProperty(TB_RL, "TB_RL"));
+ m.addEnum("lr-tb", makeEnumProperty(EN_LR_TB, "LR_TB"));
+ m.addEnum("rl-tb", makeEnumProperty(EN_RL_TB, "RL_TB"));
+ m.addEnum("tb-rl", makeEnumProperty(EN_TB_RL, "TB_RL"));
m.addKeyword("lr", "lr-tb");
m.addKeyword("rl", "rl-tb");
m.addKeyword("tb", "tb-rl");
// visibility
m = new EnumProperty.Maker(PR_VISIBILITY);
m.setInherited(false);
- m.addEnum("visible", makeEnumProperty(VISIBLE, "VISIBLE"));
- m.addEnum("hidden", makeEnumProperty(HIDDEN, "HIDDEN"));
- m.addEnum("collapse", makeEnumProperty(COLLAPSE, "COLLAPSE"));
+ m.addEnum("visible", makeEnumProperty(EN_VISIBLE, "VISIBLE"));
+ m.addEnum("hidden", makeEnumProperty(EN_HIDDEN, "HIDDEN"));
+ m.addEnum("collapse", makeEnumProperty(EN_COLLAPSE, "COLLAPSE"));
m.setDefault("visible");
addPropertyMaker("visibility", m);
// z-index
m = new NumberProperty.Maker(PR_Z_INDEX);
m.setInherited(false);
- m.addEnum("auto", makeEnumProperty(AUTO, "AUTO"));
+ m.addEnum("auto", makeEnumProperty(EN_AUTO, "AUTO"));
m.setDefault("auto");
addPropertyMaker("z-index", m);
}
// position
m = new EnumProperty.Maker(PR_POSITION);
m.setInherited(false);
- m.addEnum("static", makeEnumProperty(STATIC, "STATIC"));
- m.addEnum("relative", makeEnumProperty(RELATIVE, "RELATIVE"));
- m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE"));
- m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
+ m.addEnum("static", makeEnumProperty(EN_STATIC, "STATIC"));
+ m.addEnum("relative", makeEnumProperty(EN_RELATIVE, "RELATIVE"));
+ m.addEnum("absolute", makeEnumProperty(EN_ABSOLUTE, "ABSOLUTE"));
+ m.addEnum("fixed", makeEnumProperty(EN_FIXED, "FIXED"));
m.setDefault("static");
m.setDatatypeParser(new PositionShorthandParser());
addPropertyMaker("position", m);
// vertical-align TODO: Should be a LengthProperty.
m = new EnumProperty.Maker(PR_VERTICAL_ALIGN);
m.setInherited(false);
- m.addEnum("baseline", makeEnumProperty(BASELINE, "BASELINE"));
- m.addEnum("middle", makeEnumProperty(MIDDLE, "MIDDLE"));
- m.addEnum("sub", makeEnumProperty(SUB, "SUB"));
- m.addEnum("super", makeEnumProperty(SUPER, "SUPER"));
- m.addEnum("text-top", makeEnumProperty(TEXT_TOP, "TEXT_TOP"));
- m.addEnum("text-bottom", makeEnumProperty(TEXT_BOTTOM, "TEXT_BOTTOM"));
- m.addEnum("top", makeEnumProperty(TOP, "TOP"));
- m.addEnum("bottom", makeEnumProperty(BOTTOM, "BOTTOM"));
+ m.addEnum("baseline", makeEnumProperty(EN_BASELINE, "BASELINE"));
+ m.addEnum("middle", makeEnumProperty(EN_MIDDLE, "MIDDLE"));
+ m.addEnum("sub", makeEnumProperty(EN_SUB, "SUB"));
+ m.addEnum("super", makeEnumProperty(EN_SUPER, "SUPER"));
+ m.addEnum("text-top", makeEnumProperty(EN_TEXT_TOP, "TEXT_TOP"));
+ m.addEnum("text-bottom", makeEnumProperty(EN_TEXT_BOTTOM, "TEXT_BOTTOM"));
+ m.addEnum("top", makeEnumProperty(EN_TOP, "TOP"));
+ m.addEnum("bottom", makeEnumProperty(EN_BOTTOM, "BOTTOM"));
m.setDefault("baseline");
addPropertyMaker("vertical-align", m);