Ejemplo n.º 1
0
        public XWPFNary(CT_Nary nary, IRunBody p)
        {
            this.nary   = nary;
            this.parent = p;

            if (nary.e == null)
            {
                nary.e = new CT_OMathArg();
            }
            this.e = new XWPFOMathArg(nary.e, this);

            if (nary.sub == null)
            {
                nary.sub = new CT_OMathArg();
            }
            this.sub = new XWPFOMathArg(nary.sub, this);

            if (nary.sup == null)
            {
                nary.sup = new CT_OMathArg();
            }
            this.sup = new XWPFOMathArg(nary.sup, this);

            if (nary.naryPr == null)
            {
                nary.naryPr = new CT_NaryPr();
            }

            if (nary.naryPr.chr == null)
            {
                nary.naryPr.chr = new CT_Char();
            }
        }
Ejemplo n.º 2
0
        public XWPFF(CT_F f, IRunBody p)
        {
            this.f      = f;
            this.parent = p;

            if (f.fPr == null)
            {
                f.fPr = new CT_FPr();
            }

            if (f.fPr.type == null)
            {
                f.fPr.type = new CT_FType();
            }

            if (f.num == null)
            {
                f.num = new CT_OMathArg();
            }
            this.num = new XWPFOMathArg(f.num, this);

            if (f.den == null)
            {
                f.den = new CT_OMathArg();
            }
            this.den = new XWPFOMathArg(f.den, this);
        }
Ejemplo n.º 3
0
        public XWPFSSub(CT_SSub ssub, IRunBody p)
        {
            this.ssub   = ssub;
            this.parent = p;

            if (ssub.e == null)
            {
                ssub.e = new CT_OMathArg();
            }
            this.e = new XWPFOMathArg(ssub.e, this);

            if (ssub.sub == null)
            {
                ssub.sub = new CT_OMathArg();
            }
            this.sub = new XWPFOMathArg(ssub.sub, this);
        }
Ejemplo n.º 4
0
        public XWPFSSup(CT_SSup ssup, IRunBody p)
        {
            this.ssup   = ssup;
            this.parent = p;

            if (ssup.e == null)
            {
                ssup.e = new CT_OMathArg();
            }
            this.e = new XWPFOMathArg(ssup.e, this);

            if (ssup.sup == null)
            {
                ssup.sup = new CT_OMathArg();
            }
            this.sup = new XWPFOMathArg(ssup.sup, this);
        }
Ejemplo n.º 5
0
 public XWPFAcc(CT_Acc acc, IRunBody p)
 {
     this.acc    = acc;
     this.parent = p;
     if (acc.e == null)
     {
         acc.e = new CT_OMathArg();
     }
     this.e = new XWPFOMathArg(acc.e, this);
     if (acc.accPr == null)
     {
         acc.accPr = new CT_AccPr();
     }
     if (acc.accPr.chr == null)
     {
         acc.accPr.chr = new CT_Char();
     }
 }
Ejemplo n.º 6
0
        public XWPFRad(CT_Rad rad, IRunBody p)
        {
            this.rad    = rad;
            this.parent = p;

            //TODO: Implement public radPr
            if (rad.radPr == null)
            {
                rad.radPr = new CT_RadPr();
            }

            if (rad.deg == null)
            {
                rad.deg = new CT_OMathArg();
            }
            this.deg = new XWPFOMathArg(rad.deg, this);

            if (rad.e == null)
            {
                rad.e = new CT_OMathArg();
            }

            this.e = new XWPFOMathArg(rad.e, this);
        }