Example #1
0
 public CT_HeaderFooter AddNewHeaderFooter()
 {
     this.headerFooterField = new CT_HeaderFooter();
     return this.headerFooterField;
 }
Example #2
0
 public static CT_HeaderFooter Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_HeaderFooter ctObj = new CT_HeaderFooter();
     if (node.Attributes["alignWithMargins"] != null)
         ctObj.alignWithMargins = XmlHelper.ReadBool(node.Attributes["alignWithMargins"]);
     else
         ctObj.alignWithMargins = true;
     if (node.Attributes["differentOddEven"] != null)
         ctObj.differentOddEven = XmlHelper.ReadBool(node.Attributes["differentOddEven"]);
     if (node.Attributes["differentFirst"] != null)
         ctObj.differentFirst = XmlHelper.ReadBool(node.Attributes["differentFirst"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "oddHeader")
             ctObj.oddHeader = childNode.InnerText;
         else if (childNode.LocalName == "oddFooter")
             ctObj.oddFooter = childNode.InnerText;
         else if (childNode.LocalName == "evenHeader")
             ctObj.evenHeader = childNode.InnerText;
         else if (childNode.LocalName == "evenFooter")
             ctObj.evenFooter = childNode.InnerText;
         else if (childNode.LocalName == "firstHeader")
             ctObj.firstHeader = childNode.InnerText;
         else if (childNode.LocalName == "firstFooter")
             ctObj.firstFooter = childNode.InnerText;
     }
     return ctObj;
 }
Example #3
0
 public CT_PrintSettings()
 {
     this.legacyDrawingHFField = new CT_RelId();
     this.pageSetupField = new CT_PageSetup();
     this.pageMarginsField = new CT_PageMargins();
     this.headerFooterField = new CT_HeaderFooter();
 }