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