public XMLFillModel(XMLPaletteModel palette)
 {
     this._fill             = new CT_Fill();
     this._fill.Choice_0    = CT_Fill.ChoiceBucket_0.patternFill;
     this._fill.PatternFill = new CT_PatternFill();
     this._fill.PatternFill.PatternType_Attr = ST_PatternType.none;
     this._palette = palette;
 }
 public XMLBorderModel(XMLPaletteModel palette)
 {
     this._border          = new CT_Border();
     this._border.Top      = new CT_BorderPr();
     this._border.Bottom   = new CT_BorderPr();
     this._border.Left     = new CT_BorderPr();
     this._border.Right    = new CT_BorderPr();
     this._border.Diagonal = new CT_BorderPr();
     this._palette         = palette;
     this.InitBorderPartModels();
 }
 public XMLColorModel(CT_Color color, XMLPaletteModel palette)
 {
     this._palette = palette;
     if (color == null)
     {
         this._color          = new CT_Color();
         this._color.Rgb_Attr = "FF000000";
     }
     else
     {
         this._color = color;
     }
 }
 public XMLFillModel(CT_Fill fill, XMLPaletteModel palette)
 {
     this._fill    = fill;
     this._palette = palette;
     if (this._fill.PatternFill != null)
     {
         if (this._fill.PatternFill.FgColor != null)
         {
             this._foreground = this._palette.GetColorFromCT(this._fill.PatternFill.FgColor);
         }
         if (this._fill.PatternFill.BgColor != null)
         {
             this._background = this._palette.GetColorFromCT(this._fill.PatternFill.BgColor);
         }
     }
 }
 public XMLBorderPartModel(CT_BorderPr part, XMLPaletteModel palette)
 {
     this._part    = part;
     this._palette = palette;
 }
 public XMLBorderModel(CT_Border border, XMLPaletteModel palette)
 {
     this._border  = border;
     this._palette = palette;
     this.InitBorderPartModels();
 }
Пример #7
0
 public XMLFontModel(XMLPaletteModel palette)
     : this(new CT_Font(), palette)
 {
 }
Пример #8
0
 public XMLFontModel(CT_Font font, XMLPaletteModel palette)
 {
     this._font      = font;
     this._interface = new Font(this);
     this._palette   = palette;
 }