Beispiel #1
0
    private void method_115(CharacterFormat A_0, CharacterFormat A_1)
    {
        CharacterFormat format     = new CharacterFormat(A_0.Document);
        CharacterFormat baseFormat = A_0;

        format.method_25(baseFormat);
        while (baseFormat.BaseFormat != null)
        {
            baseFormat = baseFormat.BaseFormat as CharacterFormat;
            format.method_25(baseFormat);
        }
        if (format.HasValue(190) && !A_1.HasValue(190))
        {
            A_1.FontSize = format.FontSize;
        }
        if (format.HasValue(160) && A_1.TextColor.IsEmpty)
        {
            A_1.method_55(format.TextColor);
        }
        if (format.HasValue(230) && !A_1.HasValue(230))
        {
            A_1.FontNameAscii = format.FontNameAscii;
        }
        if (format.HasValue(270) && !A_1.HasValue(270))
        {
            A_1.FontNameBidi = format.FontNameBidi;
        }
        if (format.HasValue(0xeb) && !A_1.HasValue(0xeb))
        {
            A_1.FontNameFarEast = format.FontNameFarEast;
        }
        if (format.HasValue(240) && !A_1.HasValue(240))
        {
            A_1.FontNameNonFarEast = format.FontNameNonFarEast;
        }
        if (format.HasValue(2) && !A_1.HasValue(2))
        {
            A_1.FontName = format.FontName;
        }
        format.Close();
    }
Beispiel #2
0
 private void method_114(CharacterFormat A_0, CharacterFormat A_1)
 {
     if ((A_0 != null) && (A_1 != null))
     {
         if (A_0.HasValue(190))
         {
             A_1.FontSize = A_0.FontSize;
         }
         if (A_0.HasValue(160))
         {
             A_1.method_55(A_0.TextColor);
         }
         if (A_0.HasValue(230))
         {
             A_1.FontNameAscii = A_0.FontNameAscii;
         }
         if (A_0.HasValue(270))
         {
             A_1.FontNameBidi = A_0.FontNameBidi;
         }
         if (A_0.HasValue(0xeb))
         {
             A_1.FontNameFarEast = A_0.FontNameFarEast;
         }
         if (A_0.HasValue(240))
         {
             A_1.FontNameNonFarEast = A_0.FontNameNonFarEast;
         }
         if (A_0.HasValue(60))
         {
             A_1.Bold = A_0.Bold;
         }
         if (A_0.HasValue(70))
         {
             A_1.Italic = A_0.Italic;
         }
         if (A_0.HasValue(140))
         {
             A_1.UnderlineStyle = A_0.UnderlineStyle;
         }
         if (A_0.HasValue(20))
         {
             A_1.HighlightColor = A_0.HighlightColor;
         }
         if (A_0.HasValue(100))
         {
             A_1.IsShadow = A_0.IsShadow;
         }
         if (A_0.HasValue(150))
         {
             A_1.CharacterSpacing = A_0.CharacterSpacing;
         }
         if (A_0.HasValue(200))
         {
             A_1.Position = A_0.Position;
         }
         if (A_0.HasValue(300))
         {
             A_1.DoubleStrike = A_0.DoubleStrike;
         }
         if (A_0.HasValue(170))
         {
             A_1.Emboss = A_0.Emboss;
         }
         if (A_0.HasValue(180))
         {
             A_1.Engrave = A_0.Engrave;
         }
         if (A_0.HasValue(210))
         {
             A_1.SubSuperScript = A_0.SubSuperScript;
         }
         if (A_0.HasValue(9))
         {
             A_1.TextBackgroundColor = A_0.TextBackgroundColor;
         }
         if (A_0.HasValue(120))
         {
             A_1.AllCaps = A_0.AllCaps;
         }
         if (A_0.Bidi)
         {
             A_1.Bidi         = true;
             A_1.FontNameBidi = A_0.FontNameBidi;
             A_1.FontSizeBidi = A_0.FontSizeBidi;
         }
         if (A_0.HasValue(250))
         {
             A_1.BoldBidi = A_0.BoldBidi;
         }
         if (A_0.HasValue(0x6d))
         {
             A_1.FieldVanish = A_0.FieldVanish;
         }
         if (A_0.HasValue(130))
         {
             A_1.Hidden = A_0.Hidden;
         }
         if (A_0.HasValue(110))
         {
             A_1.IsSmallCaps = A_0.IsSmallCaps;
         }
         if (!A_1.HasValue(140))
         {
             A_1.UnderlineStyle = UnderlineStyle.None;
         }
     }
 }