示例#1
0
        public void copy2(docPubScheme oth)
        {
            oth.strSchemeName = strSchemeName;
            oth.nTocEnable    = nTocEnable;
            oth.tocFnt.clone(tocFnt);
            oth.tocParaFmt.clone(tocParaFmt);
            oth.tocStyles.clone(tocStyles);

            oth.bHdSnsEnable = bHdSnsEnable;
            oth.hdSnFnt.clone(hdSnFnt);

            headingSn hdSn = null, ohdSn = null;
            int       nCnt = oth.hdSns.Count;

            for (int i = 0; i < nCnt; i++)
            {
                hdSn  = (headingSn)hdSns[i];
                ohdSn = (headingSn)oth.hdSns[i];

                ohdSn.clone(hdSn);
            }

            oth.bHdStylesEnable = bHdStylesEnable;
            oth.hdStyleFnt.clone(hdStyleFnt);
            oth.hdStyleParaFmt.clone(hdStyleParaFmt);

            headingStyle hdStyle = null, ohdStyle = null;

            nCnt = oth.hdStyles.Count;
            for (int i = 0; i < nCnt; i++)
            {
                hdStyle  = (headingStyle)hdStyles[i];
                ohdStyle = (headingStyle)oth.hdStyles[i];

                ohdStyle.clone(hdStyle);
            }

            oth.nTizhuEnable = nTizhuEnable;
            oth.tizhuFnt.clone(tizhuFnt);
            oth.tizhuParaFmt.clone(tizhuParaFmt);

            oth.tblTizhuStyle.clone(tblTizhuStyle);
            oth.inShpTizhuStyle.clone(inShpTizhuStyle);


            oth.bTblEnable = bTblEnable;
            oth.tblFont.clone(tblFont);
            //oth.tblEveryParaFmt.clone(tblEveryParaFmt);
            oth.tblParaFmt.clone(tblParaFmt);

            oth.bInShpEnable = bInShpEnable;
            oth.inShpParaFmt.clone(inShpParaFmt);


            oth.nListParaEnable = nListParaEnable;
            oth.listParaFnt.clone(listParaFnt);
            oth.listParaParaFmt.clone(listParaParaFmt);
            oth.outTblListParaStyle.clone(outTblListParaStyle);
            oth.inTblListParaStyle.clone(inTblListParaStyle);

            oth.nTextBodyEnable = nTextBodyEnable;
            oth.textBodyFnt.clone(textBodyFnt);
            oth.textBodyParaFmt.clone(textBodyParaFmt);

            oth.outTblTextBodyStyle.clone(outTblTextBodyStyle);
            oth.inTblTextBodyStyle.clone(inTblTextBodyStyle);


            oth.nPgNumEnable = nPgNumEnable;
            oth.pgNumStyle.clone(pgNumStyle);

            pageNumStyle pgNum = null, opgNum = null;

            nCnt = oth.pgNumStyles.Count;

            for (int i = 0; i < nCnt; i++)
            {
                pgNum  = (pageNumStyle)pgNumStyles[i];
                opgNum = (pageNumStyle)oth.pgNumStyles[i];

                //
                opgNum.clone(pgNum);
            }

            return;
        }
示例#2
0
        public void clone(docPubScheme oth)
        {
            strSchemeName = oth.strSchemeName;

            nTocEnable = oth.nTocEnable;
            tocFnt.clone(oth.tocFnt);
            tocParaFmt.clone(oth.tocParaFmt);
            tocStyles.clone(oth.tocStyles);

            bHdSnsEnable = oth.bHdSnsEnable;
            hdSnFnt.clone(oth.hdSnFnt);
            headingSn hdSn = null, ohdSn = null;
            int       nCnt = hdSns.Count;

            for (int i = 0; i < nCnt; i++)
            {
                hdSn  = (headingSn)hdSns[i];
                ohdSn = (headingSn)oth.hdSns[i];

                hdSn.clone(ohdSn);
            }

            bHdStylesEnable = oth.bHdStylesEnable;
            hdStyleFnt.clone(oth.hdStyleFnt);
            hdStyleParaFmt.clone(oth.hdStyleParaFmt);

            headingStyle hdStyle = null, ohdStyle = null;

            nCnt = hdStyles.Count;
            for (int i = 0; i < nCnt; i++)
            {
                hdStyle  = (headingStyle)hdStyles[i];
                ohdStyle = (headingStyle)oth.hdStyles[i];

                hdStyle.clone(ohdStyle);
            }

            nTizhuEnable = oth.nTizhuEnable;
            tizhuFnt.clone(oth.tizhuFnt);
            tizhuParaFmt.clone(oth.tizhuParaFmt);

            tblTizhuStyle.clone(oth.tblTizhuStyle);
            inShpTizhuStyle.clone(oth.inShpTizhuStyle);

            //
            bTblEnable = oth.bTblEnable;
            tblFont.clone(oth.tblFont);
            //tblEveryParaFmt.clone(oth.tblEveryParaFmt);
            tblParaFmt.clone(oth.tblParaFmt);

            bInShpEnable = oth.bInShpEnable;
            inShpParaFmt.clone(oth.inShpParaFmt);


            nListParaEnable = oth.nListParaEnable;
            listParaFnt.clone(oth.listParaFnt);
            listParaParaFmt.clone(oth.listParaParaFmt);
            outTblListParaStyle.clone(oth.outTblListParaStyle);
            inTblListParaStyle.clone(oth.inTblListParaStyle);

            nTextBodyEnable = oth.nTextBodyEnable;
            textBodyFnt.clone(oth.textBodyFnt);
            textBodyParaFmt.clone(oth.textBodyParaFmt);

            outTblTextBodyStyle.clone(oth.outTblTextBodyStyle);
            inTblTextBodyStyle.clone(oth.inTblTextBodyStyle);


            nPgNumEnable = oth.nPgNumEnable;
            pgNumStyle.clone(oth.pgNumStyle);

            pageNumStyle pgNum = null, opgNum = null;

            nCnt = pgNumStyles.Count;

            for (int i = 0; i < nCnt; i++)
            {
                pgNum  = (pageNumStyle)pgNumStyles[i];
                opgNum = (pageNumStyle)oth.pgNumStyles[i];

                //
                pgNum.clone(opgNum);
            }

            return;
        }