コード例 #1
0
 public CT_TextCharacterProperties()
 {
     this.extLstField         = new CT_OfficeArtExtensionList();
     this.hlinkMouseOverField = new CT_Hyperlink();
     this.hlinkClickField     = new CT_Hyperlink();
     this.symField            = new CT_TextFont();
     this.csField             = new CT_TextFont();
     this.eaField             = new CT_TextFont();
     this.latinField          = new CT_TextFont();
     this.uFillField          = new CT_TextUnderlineFillGroupWrapper();
     this.uFillTxField        = new CT_TextUnderlineFillFollowText();
     this.uLnField            = new CT_LineProperties();
     this.uLnTxField          = new CT_TextUnderlineLineFollowText();
     this.highlightField      = new CT_Color();
     this.effectDagField      = new CT_EffectContainer();
     this.effectLstField      = new CT_EffectList();
     this.grpFillField        = new CT_GroupFillProperties();
     this.pattFillField       = new CT_PatternFillProperties();
     this.blipFillField       = new CT_BlipFillProperties();
     this.gradFillField       = new CT_GradientFillProperties();
     this.solidFillField      = new CT_SolidColorFillProperties();
     this.noFillField         = new CT_NoFillProperties();
     this.lnField             = new CT_LineProperties();
     this.dirtyField          = true;
     this.errField            = false;
     this.smtCleanField       = true;
     this.smtIdField          = ((uint)(0));
 }
コード例 #2
0
ファイル: BaseStylesheet.cs プロジェクト: zanhaipeng/npoi
 public CT_FontCollection()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.fontField   = new List <CT_SupplementalFont>();
     this.csField     = new CT_TextFont();
     this.eaField     = new CT_TextFont();
     this.latinField  = new CT_TextFont();
 }
コード例 #3
0
ファイル: TextCharacter.cs プロジェクト: kahinke/npoi
 public static CT_TextFont Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TextFont ctObj = new CT_TextFont();
     ctObj.typeface = XmlHelper.ReadString(node.Attributes["typeface"]);
     ctObj.panose = XmlHelper.ReadBytes(node.Attributes["panose"]);
     return ctObj;
 }
コード例 #4
0
        public static CT_TextFont Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextFont ctObj = new CT_TextFont();

            ctObj.typeface = XmlHelper.ReadString(node.Attributes["typeface"]);
            ctObj.panose   = XmlHelper.ReadBytes(node.Attributes["panose"]);
            return(ctObj);
        }
コード例 #5
0
ファイル: TextCharacter.cs プロジェクト: piaoye2019/npoi
        public static CT_TextFont Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextFont ctObj = new CT_TextFont();

            ctObj.typeface    = XmlHelper.ReadString(node.Attributes["typeface"]);
            ctObj.panose      = XmlHelper.ReadBytes(node.Attributes["panose"]);
            ctObj.pitchFamily = XmlHelper.ReadSByte(node.Attributes["pitchFamily"]);
            if (node.Attributes["charset"] != null)
            {
                ctObj.charsetField = XmlHelper.ReadSByte(node.Attributes["charset"]);
            }
            return(ctObj);
        }
コード例 #6
0
ファイル: TextParagraph.cs プロジェクト: purehzj/npoi-1
 public CT_TextParagraphProperties()
 {
     this.extLstField    = new CT_OfficeArtExtensionList();
     this.defRPrField    = new CT_TextCharacterProperties();
     this.tabLstField    = new List <CT_TextTabStop>();
     this.buBlipField    = new CT_TextBlipBullet();
     this.buCharField    = new CT_TextCharBullet();
     this.buAutoNumField = new CT_TextAutonumberBullet();
     this.buNoneField    = new CT_TextNoBullet();
     this.buFontField    = new CT_TextFont();
     this.buFontTxField  = new CT_TextBulletTypefaceFollowText();
     this.buSzPtsField   = new CT_TextBulletSizePoint();
     this.buSzPctField   = new CT_TextBulletSizePercent();
     this.buSzTxField    = new CT_TextBulletSizeFollowText();
     this.buClrField     = new CT_Color();
     this.buClrTxField   = new CT_TextBulletColorFollowText();
     this.spcAftField    = new CT_TextSpacing();
     this.spcBefField    = new CT_TextSpacing();
     this.lnSpcField     = new CT_TextSpacing();
 }
コード例 #7
0
ファイル: TextCharacter.cs プロジェクト: xoposhiy/npoi
 public CT_TextCharacterProperties()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.hlinkMouseOverField = new CT_Hyperlink();
     this.hlinkClickField = new CT_Hyperlink();
     this.symField = new CT_TextFont();
     this.csField = new CT_TextFont();
     this.eaField = new CT_TextFont();
     this.latinField = new CT_TextFont();
     this.uFillField = new CT_TextUnderlineFillGroupWrapper();
     this.uFillTxField = new CT_TextUnderlineFillFollowText();
     this.uLnField = new CT_LineProperties();
     this.uLnTxField = new CT_TextUnderlineLineFollowText();
     this.highlightField = new CT_Color();
     this.effectDagField = new CT_EffectContainer();
     this.effectLstField = new CT_EffectList();
     this.grpFillField = new CT_GroupFillProperties();
     this.pattFillField = new CT_PatternFillProperties();
     this.blipFillField = new CT_BlipFillProperties();
     this.gradFillField = new CT_GradientFillProperties();
     this.solidFillField = new CT_SolidColorFillProperties();
     this.noFillField = new CT_NoFillProperties();
     this.lnField = new CT_LineProperties();
     this.dirtyField = true;
     this.errField = false;
     this.smtCleanField = true;
     this.smtIdField = ((uint)(0));
 }
コード例 #8
0
ファイル: TextCharacter.cs プロジェクト: piaoye2019/npoi
 public CT_TextFont AddNewSym()
 {
     this.symField = new CT_TextFont();
     return(this.symField);
 }
コード例 #9
0
ファイル: TextCharacter.cs プロジェクト: piaoye2019/npoi
 public void UnsetSym()
 {
     this.symField = null;
 }
コード例 #10
0
ファイル: TextCharacter.cs プロジェクト: piaoye2019/npoi
 public void UnsetCs()
 {
     this.csField = null;
 }
コード例 #11
0
ファイル: BaseStylesheet.cs プロジェクト: qljiong/npoi
 public CT_FontCollection()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.fontField = new List<CT_SupplementalFont>();
     this.csField = new CT_TextFont();
     this.eaField = new CT_TextFont();
     this.latinField = new CT_TextFont();
 }
コード例 #12
0
ファイル: TextCharacter.cs プロジェクト: Reinakumiko/npoi
 public void UnsetCs()
 {
     this.csField = null;
 }
コード例 #13
0
ファイル: TextParagraph.cs プロジェクト: Reinakumiko/npoi
 public CT_TextFont AddNewBuFont()
 {
     this.buFontField = new CT_TextFont();
     return this.buFontField;
 }
コード例 #14
0
ファイル: TextCharacter.cs プロジェクト: kahinke/npoi
 public CT_TextFont AddNewLatin()
 {
     this.latinField = new CT_TextFont();
     return this.latinField;
 }
コード例 #15
0
ファイル: TextCharacter.cs プロジェクト: Reinakumiko/npoi
 public void UnsetLatin()
 {
     this.latinField = null;
 }
コード例 #16
0
ファイル: TextCharacter.cs プロジェクト: Reinakumiko/npoi
 public CT_TextFont AddNewSym()
 {
     this.symField = new CT_TextFont();
     return this.symField;
 }
コード例 #17
0
ファイル: TextCharacter.cs プロジェクト: Reinakumiko/npoi
 public void UnsetSym()
 {
     this.symField = null;
 }
コード例 #18
0
ファイル: TextParagraph.cs プロジェクト: hiodava/Romero
 public CT_TextFont AddNewBuFont()
 {
     this.buFontField = new CT_TextFont();
     return(this.buFontField);
 }
コード例 #19
0
ファイル: TextParagraph.cs プロジェクト: hiodava/Romero
 public void UnsetBuFont()
 {
     this.buFontField = null;
 }
コード例 #20
0
ファイル: TextParagraph.cs プロジェクト: Reinakumiko/npoi
 public void UnsetBuFont()
 {
     this.buFontField = null;
 }
コード例 #21
0
ファイル: TextParagraph.cs プロジェクト: hiodava/Romero
        public static CT_TextParagraphProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextParagraphProperties ctObj = new CT_TextParagraphProperties();

            ctObj.marL   = XmlHelper.ReadInt(node.Attributes["marL"]);
            ctObj.marR   = XmlHelper.ReadInt(node.Attributes["marR"]);
            ctObj.lvl    = XmlHelper.ReadInt(node.Attributes["lvl"]);
            ctObj.indent = XmlHelper.ReadInt(node.Attributes["indent"]);
            if (node.Attributes["algn"] != null)
            {
                ctObj.algn = (ST_TextAlignType)Enum.Parse(typeof(ST_TextAlignType), node.Attributes["algn"].Value);
            }
            else
            {
                ctObj.algn = ST_TextAlignType.l;
            }
            ctObj.defTabSz = XmlHelper.ReadInt(node.Attributes["defTabSz"]);
            ctObj.rtl      = XmlHelper.ReadBool(node.Attributes["rtl"]);
            ctObj.eaLnBrk  = XmlHelper.ReadBool(node.Attributes["eaLnBrk"]);
            if (node.Attributes["fontAlgn"] != null)
            {
                ctObj.fontAlgn = (ST_TextFontAlignType)Enum.Parse(typeof(ST_TextFontAlignType), node.Attributes["fontAlgn"].Value);
            }
            ctObj.latinLnBrk   = XmlHelper.ReadBool(node.Attributes["latinLnBrk"]);
            ctObj.hangingPunct = XmlHelper.ReadBool(node.Attributes["hangingPunct"]);

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "lnSpc")
                {
                    ctObj.lnSpc = CT_TextSpacing.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "spcBef")
                {
                    ctObj.spcBef = CT_TextSpacing.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "spcAft")
                {
                    ctObj.spcAft = CT_TextSpacing.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buClrTx")
                {
                    ctObj.buClrTx = new CT_TextBulletColorFollowText();
                }
                else if (childNode.LocalName == "buClr")
                {
                    ctObj.buClr = CT_Color.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buSzTx")
                {
                    ctObj.buSzTx = new CT_TextBulletSizeFollowText();
                }
                else if (childNode.LocalName == "buSzPct")
                {
                    ctObj.buSzPct = CT_TextBulletSizePercent.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buSzPts")
                {
                    ctObj.buSzPts = CT_TextBulletSizePoint.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buFontTx")
                {
                    ctObj.buFontTx = new CT_TextBulletTypefaceFollowText();
                }
                else if (childNode.LocalName == "buFont")
                {
                    ctObj.buFont = CT_TextFont.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buNone")
                {
                    ctObj.buNone = new CT_TextNoBullet();
                }
                else if (childNode.LocalName == "buAutoNum")
                {
                    ctObj.buAutoNum = CT_TextAutonumberBullet.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buChar")
                {
                    ctObj.buChar = CT_TextCharBullet.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "buBlip")
                {
                    ctObj.buBlip = CT_TextBlipBullet.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "defRPr")
                {
                    ctObj.defRPr = CT_TextCharacterProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "tabLst")
                {
                    ctObj.tabLst = CT_TextTabStopList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
コード例 #22
0
 public CT_TextFont AddNewLatin()
 {
     this.latinField = new CT_TextFont();
     return(this.latinField);
 }
コード例 #23
0
ファイル: TextCharacter.cs プロジェクト: piaoye2019/npoi
 public void UnsetLatin()
 {
     this.latinField = null;
 }
コード例 #24
0
        public static CT_TextCharacterProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextCharacterProperties ctObj = new CT_TextCharacterProperties();

            ctObj.kumimoji = XmlHelper.ReadBool(node.Attributes["kumimoji"]);
            ctObj.lang     = XmlHelper.ReadString(node.Attributes["lang"]);
            ctObj.altLang  = XmlHelper.ReadString(node.Attributes["altLang"]);
            ctObj.sz       = XmlHelper.ReadInt(node.Attributes["sz"]);
            if (node.Attributes["b"] != null)
            {
                ctObj.b = XmlHelper.ReadBool(node.Attributes["b"]);
            }
            if (node.Attributes["i"] != null)
            {
                ctObj.i = XmlHelper.ReadBool(node.Attributes["i"]);
            }
            if (node.Attributes["u"] != null)
            {
                ctObj.u = (ST_TextUnderlineType)Enum.Parse(typeof(ST_TextUnderlineType), node.Attributes["u"].Value);
            }
            if (node.Attributes["strike"] != null)
            {
                ctObj.strike = (ST_TextStrikeType)Enum.Parse(typeof(ST_TextStrikeType), node.Attributes["strike"].Value);
            }
            ctObj.kern = XmlHelper.ReadInt(node.Attributes["kern"]);
            if (node.Attributes["cap"] != null)
            {
                ctObj.cap = (ST_TextCapsType)Enum.Parse(typeof(ST_TextCapsType), node.Attributes["cap"].Value);
            }
            ctObj.spc        = XmlHelper.ReadInt(node.Attributes["spc"]);
            ctObj.normalizeH = XmlHelper.ReadBool(node.Attributes["normalizeH"]);
            ctObj.baseline   = XmlHelper.ReadInt(node.Attributes["baseline"]);
            ctObj.noProof    = XmlHelper.ReadBool(node.Attributes["noProof"]);
            if (node.Attributes["dirty"] != null)
            {
                ctObj.dirty = XmlHelper.ReadBool(node.Attributes["dirty"]);
            }
            ctObj.err = XmlHelper.ReadBool(node.Attributes["err"]);
            if (node.Attributes["smtClean"] != null)
            {
                ctObj.smtClean = XmlHelper.ReadBool(node.Attributes["smtClean"]);
            }
            ctObj.smtId = XmlHelper.ReadUInt(node.Attributes["smtId"]);
            ctObj.bmk   = XmlHelper.ReadString(node.Attributes["bmk"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "ln")
                {
                    ctObj.ln = CT_LineProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "noFill")
                {
                    ctObj.noFill = new CT_NoFillProperties();
                }
                else if (childNode.LocalName == "solidFill")
                {
                    ctObj.solidFill = CT_SolidColorFillProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "gradFill")
                {
                    ctObj.gradFill = CT_GradientFillProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "blipFill")
                {
                    ctObj.blipFill = CT_BlipFillProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "pattFill")
                {
                    ctObj.pattFill = CT_PatternFillProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "grpFill")
                {
                    ctObj.grpFill = new CT_GroupFillProperties();
                }
                else if (childNode.LocalName == "effectLst")
                {
                    ctObj.effectLst = CT_EffectList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "effectDag")
                {
                    ctObj.effectDag = CT_EffectContainer.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "highlight")
                {
                    ctObj.highlight = CT_Color.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "uLnTx")
                {
                    ctObj.uLnTx = new CT_TextUnderlineLineFollowText();
                }
                else if (childNode.LocalName == "uLn")
                {
                    ctObj.uLn = CT_LineProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "uFillTx")
                {
                    ctObj.uFillTx = new CT_TextUnderlineFillFollowText();
                }
                else if (childNode.LocalName == "uFill")
                {
                    ctObj.uFill = CT_TextUnderlineFillGroupWrapper.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "latin")
                {
                    ctObj.latin = CT_TextFont.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ea")
                {
                    ctObj.ea = CT_TextFont.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "cs")
                {
                    ctObj.cs = CT_TextFont.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sym")
                {
                    ctObj.sym = CT_TextFont.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "hlinkClick")
                {
                    ctObj.hlinkClick = CT_Hyperlink.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "hlinkMouseOver")
                {
                    ctObj.hlinkMouseOver = CT_Hyperlink.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
コード例 #25
0
ファイル: TextParagraph.cs プロジェクト: xoposhiy/npoi
 public CT_TextParagraphProperties()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.defRPrField = new CT_TextCharacterProperties();
     this.tabLstField = new List<CT_TextTabStop>();
     this.buBlipField = new CT_TextBlipBullet();
     this.buCharField = new CT_TextCharBullet();
     this.buAutoNumField = new CT_TextAutonumberBullet();
     this.buNoneField = new CT_TextNoBullet();
     this.buFontField = new CT_TextFont();
     this.buFontTxField = new CT_TextBulletTypefaceFollowText();
     this.buSzPtsField = new CT_TextBulletSizePoint();
     this.buSzPctField = new CT_TextBulletSizePercent();
     this.buSzTxField = new CT_TextBulletSizeFollowText();
     this.buClrField = new CT_Color();
     this.buClrTxField = new CT_TextBulletColorFollowText();
     this.spcAftField = new CT_TextSpacing();
     this.spcBefField = new CT_TextSpacing();
     this.lnSpcField = new CT_TextSpacing();
 }