/*package*/ internal CT_Dxf GetDxf(bool create) { StylesTable styles = ((XSSFWorkbook)_sh.Workbook).GetStylesSource(); CT_Dxf dxf = null; if (styles._GetDXfsSize() > 0 && _cfRule.IsSetDxfId()) { int dxfId = (int)_cfRule.dxfId; dxf = styles.GetDxfAt(dxfId); } if (create && dxf == null) { dxf = new CT_Dxf(); int dxfId = styles.PutDxf(dxf); _cfRule.dxfId = (uint)(dxfId - 1); } return dxf; }
public int PutDxf(CT_Dxf dxf) { this.dxfs.Add(dxf); return this.dxfs.Count; }
public CT_RevisionCellChange() { this.extLstField = new CT_ExtensionList(); this.ndxfField = new CT_Dxf(); this.odxfField = new CT_Dxf(); this.ncField = new CT_Cell(); this.ocField = new CT_Cell(); this.uaField = false; this.raField = false; this.odxf1Field = false; this.xfDxfField = false; this.sField = false; this.dxfField = false; this.quotePrefixField = false; this.oldQuotePrefixField = false; this.phField = false; this.oldPhField = false; this.endOfListFormulaUpdateField = false; }
public static CT_Dxf Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_Dxf ctObj = new CT_Dxf(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "font") ctObj.font = CT_Font.Parse(childNode, namespaceManager); else if (childNode.LocalName == "numFmt") ctObj.numFmt = CT_NumFmt.Parse(childNode, namespaceManager); else if (childNode.LocalName == "fill") ctObj.fill = CT_Fill.Parse(childNode, namespaceManager); else if (childNode.LocalName == "alignment") ctObj.alignment = CT_CellAlignment.Parse(childNode, namespaceManager); else if (childNode.LocalName == "border") ctObj.border = CT_Border.Parse(childNode, namespaceManager); else if (childNode.LocalName == "protection") ctObj.protection = CT_CellProtection.Parse(childNode, namespaceManager); else if (childNode.LocalName == "extLst") ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager); } return ctObj; }
public CT_RevisionFormatting() { this.sqrefField = new List<string>(); this.extLstField = new CT_ExtensionList(); this.dxfField = new CT_Dxf(); this.xfDxfField = false; this.sField = false; }