Inheritance: CssFeatureBase
示例#1
0
        public static bool dbugIsEq(dbugPropCheckReport rep, CssBorderFeature prop1, CssBorderFeature prop2)
        {
            int inCount = rep.Count;

            rep.Check("LeftWidth", CssLength.IsEq(prop1.LeftWidth, prop2.LeftWidth));
            rep.Check("TopWidth", CssLength.IsEq(prop1.TopWidth, prop2.TopWidth));
            rep.Check("RightWidth", CssLength.IsEq(prop1.RightWidth, prop2.RightWidth));
            rep.Check("BottomWidth", CssLength.IsEq(prop1.BottomWidth, prop2.BottomWidth));

            rep.Check("LeftStyle", prop1.LeftStyle == prop2.LeftStyle);
            rep.Check("TopStyle", prop1.TopStyle == prop2.TopStyle);
            rep.Check("RightStyle", prop1.RightStyle == prop2.RightStyle);
            rep.Check("BottomStyle", prop1.BottomStyle == prop2.BottomStyle);

            rep.Check("LeftColor", prop1.LeftColor == prop2.LeftColor);
            rep.Check("TopColor", prop1.TopColor == prop2.TopColor);
            rep.Check("RightColor", prop1.RightColor == prop2.RightColor);
            rep.Check("BottomColor", prop1.BottomColor == prop2.BottomColor);

            rep.Check("BorderCollapse", prop1.BorderCollapse == prop2.BorderCollapse);

            rep.Check("BorderSpacingH", CssLength.IsEq(prop1.BorderSpacingH, prop2.BorderSpacingH));
            rep.Check("BorderSpacingV", CssLength.IsEq(prop1.BorderSpacingV, prop2.BorderSpacingV));

            return(inCount == rep.Count);
        }
示例#2
0
        //----------------------------------------------------------------------
#if DEBUG
        public static bool dbugCompare(dbugPropCheckReport dbugR, BoxSpec boxBase, BoxSpec spec)
        {
            int dd = boxBase.__aa_dbugId;

            dbugR.Check("_fontProps", CssFontFeature.dbugIsEq(dbugR, boxBase._fontFeats, spec._fontFeats));
            dbugR.Check("_listProps", CssListFeature.dbugIsEq(dbugR, boxBase._listFeats, spec._listFeats));
            dbugR.Check("_lineHeight", CssLength.IsEq(boxBase._lineHeight, spec._lineHeight));
            dbugR.Check("_textIndent", CssLength.IsEq(boxBase._textIndent, spec._textIndent));
            dbugR.Check("_actualColor", boxBase._actualColor == spec._actualColor);
            dbugR.Check("_emptyCells", boxBase._emptyCells == spec._emptyCells);
            dbugR.Check("_textAlign", boxBase._textAlign == spec._textAlign);

            dbugR.Check("_verticalAlign", boxBase._verticalAlign == spec._verticalAlign);
            dbugR.Check("_visibility", boxBase._visibility == spec._visibility);
            dbugR.Check("_whitespace", boxBase._whitespace == spec._whitespace);
            dbugR.Check("_wordBreak", boxBase._wordBreak == spec._wordBreak);
            dbugR.Check("_cssDirection", boxBase._cssDirection == spec._cssDirection);

            dbugR.Check("_backgroundProps", CssBackgroundFeature.dbugIsEq(dbugR, boxBase._backgroundFeats, spec._backgroundFeats));
            dbugR.Check("_borderProps", CssBorderFeature.dbugIsEq(dbugR, boxBase._borderFeats, spec._borderFeats));
            dbugR.Check("_cornerProps", CssCornerFeature.dbugIsEq(dbugR, boxBase._cornerFeats, spec._cornerFeats));

            //---------------------------------------
            dbugR.Check("_left", CssLength.IsEq(boxBase._left, spec._left));
            dbugR.Check("_top", CssLength.IsEq(boxBase._top, spec._top));
            dbugR.Check("_bottom", CssLength.IsEq(boxBase._bottom, spec._bottom));
            dbugR.Check("_right", CssLength.IsEq(boxBase._right, spec._right));


            dbugR.Check("_width", CssLength.IsEq(boxBase._width, spec._width));
            dbugR.Check("_height", CssLength.IsEq(boxBase._height, spec._height));
            dbugR.Check("_maxWidth", CssLength.IsEq(boxBase._maxWidth, spec._maxWidth));


            dbugR.Check("_position", boxBase._position == spec._position);
            dbugR.Check("_wordSpacing", CssLength.IsEq(boxBase._wordSpacing, spec._wordSpacing));
            dbugR.Check("_float", boxBase._float == spec._float);
            dbugR.Check("_cssDisplay", boxBase._cssDisplay == spec._cssDisplay);
            dbugR.Check("_overflow", boxBase._overflow == spec._overflow);
            dbugR.Check("_textDecoration", boxBase._textDecoration == spec._textDecoration);


            if (dbugR.Count > 0)
            {
                return(false);
            }
            return(true);
        }
示例#3
0
 private CssBorderFeature(object owner, CssBorderFeature inheritFrom)
     : base(owner)
 {
     this.LeftWidth   = inheritFrom.LeftWidth;
     this.TopWidth    = inheritFrom.TopWidth;
     this.RightWidth  = inheritFrom.RightWidth;
     this.BottomWidth = inheritFrom.BottomWidth;
     //---------------------------------------------------------
     this.LeftStyle   = inheritFrom.LeftStyle;
     this.TopStyle    = inheritFrom.TopStyle;
     this.RightStyle  = inheritFrom.RightStyle;
     this.BottomStyle = inheritFrom.BottomStyle;
     //---------------------------------------------------------
     this.LeftColor   = inheritFrom.LeftColor;
     this.TopColor    = inheritFrom.TopColor;
     this.RightColor  = inheritFrom.RightColor;
     this.BottomColor = inheritFrom.BottomColor;
     //---------------------------------------------------------
     this.BorderCollapse = inheritFrom.BorderCollapse;
     this.BorderSpacingH = inheritFrom.BorderSpacingH;
     this.BorderSpacingV = inheritFrom.BorderSpacingV;
     //---------------------------------------------------------
 }
示例#4
0
 private CssBorderFeature(object owner, CssBorderFeature inheritFrom)
     : base(owner)
 {
     this.LeftWidth = inheritFrom.LeftWidth;
     this.TopWidth = inheritFrom.TopWidth;
     this.RightWidth = inheritFrom.RightWidth;
     this.BottomWidth = inheritFrom.BottomWidth;
     //---------------------------------------------------------
     this.LeftStyle = inheritFrom.LeftStyle;
     this.TopStyle = inheritFrom.TopStyle;
     this.RightStyle = inheritFrom.RightStyle;
     this.BottomStyle = inheritFrom.BottomStyle;
     //---------------------------------------------------------
     this.LeftColor = inheritFrom.LeftColor;
     this.TopColor = inheritFrom.TopColor;
     this.RightColor = inheritFrom.RightColor;
     this.BottomColor = inheritFrom.BottomColor;
     //---------------------------------------------------------
     this.BorderCollapse = inheritFrom.BorderCollapse;
     this.BorderSpacingH = inheritFrom.BorderSpacingH;
     this.BorderSpacingV = inheritFrom.BorderSpacingV;
     //---------------------------------------------------------
 }
示例#5
0
 public static bool dbugIsEq(dbugPropCheckReport rep, CssBorderFeature prop1, CssBorderFeature prop2)
 {
     int inCount = rep.Count;
     rep.Check("LeftWidth", CssLength.IsEq(prop1.LeftWidth, prop2.LeftWidth));
     rep.Check("TopWidth", CssLength.IsEq(prop1.TopWidth, prop2.TopWidth));
     rep.Check("RightWidth", CssLength.IsEq(prop1.RightWidth, prop2.RightWidth));
     rep.Check("BottomWidth", CssLength.IsEq(prop1.BottomWidth, prop2.BottomWidth));
     rep.Check("LeftStyle", prop1.LeftStyle == prop2.LeftStyle);
     rep.Check("TopStyle", prop1.TopStyle == prop2.TopStyle);
     rep.Check("RightStyle", prop1.RightStyle == prop2.RightStyle);
     rep.Check("BottomStyle", prop1.BottomStyle == prop2.BottomStyle);
     rep.Check("LeftColor", prop1.LeftColor == prop2.LeftColor);
     rep.Check("TopColor", prop1.TopColor == prop2.TopColor);
     rep.Check("RightColor", prop1.RightColor == prop2.RightColor);
     rep.Check("BottomColor", prop1.BottomColor == prop2.BottomColor);
     rep.Check("BorderCollapse", prop1.BorderCollapse == prop2.BorderCollapse);
     rep.Check("BorderSpacingH", CssLength.IsEq(prop1.BorderSpacingH, prop2.BorderSpacingH));
     rep.Check("BorderSpacingV", CssLength.IsEq(prop1.BorderSpacingV, prop2.BorderSpacingV));
     return inCount == rep.Count;
 }