Example #1
0
 internal ExcelColor(ExcelStyles styles, OfficeOpenXml.XmlHelper.ChangedEventHandler ChangedEvent, int worksheetID, string address, eStyleClass cls, StyleBase parent) : 
     base(styles, ChangedEvent, worksheetID, address)
     
 {
     _parent = parent;
     _cls = cls;
 }
 internal ExcelNamedStyleXml(XmlNamespaceManager NameSpaceManager, XmlNode topNode, ExcelStyles styles)
     : base(NameSpaceManager, topNode)
 {
     StyleXfId = GetXmlNodeInt(idPath);
     Name = GetXmlNode(namePath);
     BuildInId = GetXmlNodeInt(buildInIdPath);
     _styles = styles;
     _style = new ExcelStyle(styles, styles.NamedStylePropertyChange, -1, Name, _styleXfId);
 }
Example #3
0
 internal ExcelStyle(ExcelStyles styles, OfficeOpenXml.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string Address, int xfsId)
     : base(styles, ChangedEvent, PositionID, Address)
 {
     Index = xfsId;
     ExcelXfs xfs = _styles.CellXfs[xfsId];
     Numberformat = new ExcelNumberFormat(styles, ChangedEvent, PositionID, Address, xfs.NumberFormatId);
     Font = new ExcelFont(styles, ChangedEvent, PositionID, Address, xfs.FontId);
     Fill = new ExcelFill(styles, ChangedEvent, PositionID, Address, xfs.FillId);
     Border = new Border(styles, ChangedEvent, PositionID, Address, xfs.BorderId);
 }
Example #4
0
 internal ExcelXfs(XmlNamespaceManager nsm, XmlNode topNode, ExcelStyles styles)
     : base(nsm, topNode)
 {
     _styles = styles;
     _xfID = GetXmlNodeInt("@xfid");
     if (_xfID == 0) isBuildIn = true; //Normal taggen
     _numFmtId = GetXmlNodeInt("@numFmtId");
     _fontId = GetXmlNodeInt("@fontId");
     _fillId = GetXmlNodeInt("@fillId");
     _borderId = GetXmlNodeInt("@borderId");
     _readingOrder = GetXmlNode(readingOrderPath) == "1" ? true : false;
     _verticalAlignment = GetVerticalAlign(GetXmlNode(verticalAlignPath));
     _horizontalAlignment = GetHorizontalAlign(GetXmlNode(horizontalAlignPath));
     _wrapText = GetXmlNode(wrapTextPath) == "1" ? true : false;
     _textRotation = GetXmlNodeInt(textRotationPath);
     _hidden = GetXmlNodeBool(hiddenPath);
     _locked = GetXmlNodeBool(lockedPath,true);
 }
Example #5
0
 internal ExcelStyle(ExcelStyles styles, Zephyr.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int positionID, string Address, int xfsId) :
     base(styles, ChangedEvent, positionID, Address)
 {
     Index = xfsId;
     ExcelXfs xfs;
     if (positionID > -1)
     {
         xfs = _styles.CellXfs[xfsId];
     }
     else
     {
         xfs = _styles.CellStyleXfs[xfsId];
     }
     Styles = styles;
     PositionID = positionID;
     Numberformat = new ExcelNumberFormat(styles, ChangedEvent, PositionID, Address, xfs.NumberFormatId);
     Font = new ExcelFont(styles, ChangedEvent, PositionID, Address, xfs.FontId);
     Fill = new ExcelFill(styles, ChangedEvent, PositionID, Address, xfs.FillId);
     Border = new Border(styles, ChangedEvent, PositionID, Address, xfs.BorderId); 
 }
Example #6
0
 internal ExcelXfs(XmlNamespaceManager nsm, XmlNode topNode, ExcelStyles styles)
     : base(nsm, topNode)
 {
     _styles = styles;
     _xfID = GetXmlNodeInt("@xfid");
     if (_xfID == 0) isBuildIn = true; //Normal taggen
     _numFmtId = GetXmlNodeInt("@numFmtId");
     _fontId = GetXmlNodeInt("@fontId");
     _fillId = GetXmlNodeInt("@fillId");
     _borderId = GetXmlNodeInt("@borderId");
     _readingOrder = GetXmlNode(readingOrderPath) == "1" ? true : false;
     _verticalAlignment = GetVerticalAlign(GetXmlNode(verticalAlignPath));
     _horizontalAlignment = GetHorizontalAlign(GetXmlNode(horizontalAlignPath));
     _wrapText = GetXmlNode(wrapTextPath) == "1" ? true : false;
     //ApplyFont = GetXmlNode("@applyFont") == "1" ? true : false;
     //ApplyFill = GetXmlNode("@applyFill") == "1" ? true : false;
     //ApplyBorder = GetXmlNode("@applyBorder") == "1" ? true : false;
     //ApplyNumberFormat = GetXmlNode("@applyNumberFormat") == "1" ? true : false;
     //ApplyFill = GetXmlNode("@applyFont") == "1" ? true : false;
     //ApplyProtection = GetXmlNode("@applyProtection") == "1" ? true : false;
     //ApplyAlignment = GetXmlNode("@applyAlitgnment") == "1" ? true : false;
 }
Example #7
0
 internal ExcelXfs Copy(ExcelStyles styles)
 {
     ExcelXfs newXF = new ExcelXfs(NameSpaceManager, styles);
     newXF.NumberFormatId = _numFmtId;
     newXF.FontId = _fontId;
     newXF.FillId = _fillId;
     newXF.BorderId = _borderId;
     newXF.XfId = _xfID;
     newXF.ReadingOrder = _readingOrder;
     newXF.HorizontalAlignment = _horizontalAlignment;
     newXF.VerticalAlignment = _verticalAlignment;
     newXF.WrapText = _wrapText;
     newXF.ShrinkToFit = _shrinkToFit;
     newXF.Indent = _indent;
     newXF.TextRotation = _textRotation;
     newXF.Locked = _locked;
     newXF.Hidden = _hidden;
     return newXF;
 }
Example #8
0
 internal ExcelXfs(XmlNamespaceManager nameSpaceManager, ExcelStyles styles) : base(nameSpaceManager)
 {
     _styles = styles;
     isBuildIn = false;
 }
Example #9
0
        internal Border(ExcelStyles styles, OfficeOpenXml.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string address, int index) :
            base(styles, ChangedEvent, PositionID, address)
	    {
            Index = index;
        }
Example #10
0
 internal ExcelNumberFormat(ExcelStyles styles, OfficeOpenXml.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string Address, int index) :
     base(styles, ChangedEvent, PositionID, Address)
 {
     Index = index;
 }
Example #11
0
 internal ExcelNamedStyleXml(XmlNamespaceManager nameSpaceManager, ExcelStyles styles)
     : base(nameSpaceManager)
 {
     _styles = styles;
     BuildInId = int.MinValue;
 }
Example #12
0
        internal ExcelFill(ExcelStyles styles, Zephyr.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string address, int index) :
            base(styles, ChangedEvent, PositionID, address)

        {
            Index = index;
        }
        internal ExcelBorderItem (ExcelStyles styles, Zephyr.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int worksheetID, string address, eStyleClass cls, StyleBase parent) : 
            base(styles, ChangedEvent, worksheetID, address)
	    {
            _cls=cls;
            _parent = parent;
	    }
Example #14
0
 internal StyleBase(ExcelStyles styles, OfficeOpenXml.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string Address)
 {
     _styles = styles;
     _ChangedEvent = ChangedEvent;
     _address = Address;
     _positionID = PositionID;
 }
Example #15
0
 internal StyleBase(ExcelStyles styles, LF.Utils.EPPlus.XmlHelper.ChangedEventHandler ChangedEvent, int PositionID, string Address)
 {
     _styles = styles;
     _ChangedEvent = ChangedEvent;
     _address = Address;
     _positionID = PositionID;
 }