コード例 #1
0
    internal ShapeObject method_4(PictureWatermark A_0)
    {
        int num = 4;

        if (A_0 == null)
        {
            return(null);
        }
        ShapeObject obj2 = A_0.WordPicture.Clone() as ShapeObject;

        if (A_0.IsWashout && (!obj2.ShapePr.method_6(0x108) || !obj2.ShapePr.method_6(0x109)))
        {
            obj2.SetShapeAttribute(0x108, 0x4ccd);
            obj2.SetShapeAttribute(0x109, 0x599a);
        }
        else if (!A_0.IsWashout)
        {
            obj2.ShapePr.Remove(0x108);
            obj2.ShapePr.Remove(0x109);
        }
        int num2 = this.method_9();

        obj2.Id   = num2;
        obj2.Name = BookmarkStart.b("紩䌫尭启戱崳唵䰷伹主嬽᜿⍁ぃ⍅㩇❉ⵋ㱍㭏", num) + num2.ToString();
        obj2.TextWrappingStyle = TextWrappingStyle.InFrontOfText;
        obj2.SetShapeAttribute(0x3ba, true);
        return(obj2);
    }
コード例 #2
0
    internal ShapeObject method_5(TextWatermark A_0)
    {
        int num = 6;

        if (A_0 == null)
        {
            return(null);
        }
        ShapeObject obj2 = new ShapeObject(A_0.Document, ShapeType.TextPlainText);

        if (A_0.Semitransparent)
        {
            obj2.SetShapeAttribute(0x182, 0x8000);
        }
        obj2.SetShapeAttribute(0xc0, A_0.Text);
        obj2.SetShapeAttribute(0xc5, A_0.FontName);
        obj2.SetShapeAttribute(0xc3, ((int)A_0.FontSize) * 0x10000);
        if (A_0.Color != Color.Empty)
        {
            obj2.SetShapeAttribute(0x181, A_0.Color);
        }
        if (A_0.ShapeWidthInPixels != -1)
        {
            obj2.Width = ((float)A_0.ShapeWidthInPixels) / 20f;
        }
        else
        {
            obj2.Width = A_0.ShapeSize.Width * 0.6934f;
        }
        if (A_0.ShapeHeightInPixels != -1)
        {
            obj2.Height = ((float)A_0.ShapeHeightInPixels) / 20f;
        }
        else
        {
            obj2.Height = A_0.ShapeSize.Height * 0.67f;
        }
        if (A_0.Layout == WatermarkLayout.Diagonal)
        {
            obj2.SetShapeAttribute(4, 0x13b0000);
        }
        int num2 = this.method_9();

        obj2.Id = num2;
        obj2.SetShapeAttribute(0xf1, true);
        obj2.SetShapeAttribute(0xf5, true);
        obj2.SetShapeAttribute(0x1fc, false);
        obj2.Name = BookmarkStart.b("簫䄭䜯圱䘳昵吷伹伻椽ℿ㙁⅃㑅Շ⭉㹋╍὏け㹓㍕㭗⹙", num) + num2.ToString();
        obj2.TextWrappingStyle = TextWrappingStyle.InFrontOfText;
        obj2.SetShapeAttribute(0x3ba, true);
        return(obj2);
    }
コード例 #3
0
    private static void smethod_9(Class857 A_0, Class101 A_1, ListLevel A_2)
    {
        int      num    = 5;
        Class396 class2 = A_0.method_11();

        A_2.PatternType     = ListPatternType.Bullet;
        A_2.BulletCharacter = BookmarkStart.b("鳚", 5);
        ShapeObject obj2 = new ShapeObject(A_0.method_9(), ShapeType.Image);

        obj2.SetShapeAttribute(0x1001, TextWrappingStyle.Inline);
        Class798.smethod_1(A_0, obj2, BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⑌≎ぐ㑒ご", 5));
        A_2.PicBullet = obj2.ImageData;
        while (class2.method_9(BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾ㉀㝂㱄⭆ⱈ晊⑌≎ぐ㑒ご", num)))
        {
            string str;
            if (((str = class2.method_1()) != null) && (str == BookmarkStart.b("䜪䐬尮䔰Ḳ头制伸帺儼ሾㅀㅂ⩄㝆ⱈ㥊㥌♎㑐⁒", num)))
            {
                Class693.smethod_0(A_0, A_2);
            }
            else
            {
                class2.vmethod_1();
            }
        }
    }
コード例 #4
0
    private void method_20(CharacterFormat A_0, int A_1)
    {
        this.class764_0.method_4().BaseStream.Position = A_1;
        Class262 class2 = new Class262(this.class764_0.method_4());

        if (class2.int_3 == 0x44)
        {
            switch (class2.picfType_0)
            {
            case PicfType.InlineEscher:
            {
                int num2 = class2.int_2 - class2.int_3;
                this.method_21(class2, A_0, num2);
                return;
            }

            case ((PicfType)0x65):
                return;

            case PicfType.IncludePicture:
            {
                string str  = Class813.smethod_1(this.class764_0.method_4(), false, false);
                int    num3 = ((class2.int_2 - class2.int_3) - str.Length) - 1;
                this.method_21(class2, A_0, num3);
                return;
            }

            case PicfType.Metafile1:
            {
                int         count  = class2.int_2 - class2.int_3;
                byte[]      buffer = this.class764_0.method_4().ReadBytes(count);
                ShapeObject obj2   = new ShapeObject(this.class764_0.method_42(), ShapeType.Image)
                {
                    TextWrappingStyle = TextWrappingStyle.Inline
                };
                if (buffer.Length > 0)
                {
                    obj2.ImageData.method_87(buffer);
                    obj2.SetShapeAttribute(0x1006, obj2.ImageData.ImageBytes);
                }
                obj2.CharacterFormat.method_25(A_0);
                class2.method_2(obj2);
                this.class764_0.method_43().imethod_18(obj2);
                return;
            }
            }
        }
    }
コード例 #5
0
    private void method_19(CharacterFormat A_0, int A_1)
    {
        Class454 class2 = this.class764_0.method_41(A_1);

        if (class2 != null)
        {
            ShapeObject obj2 = new ShapeObject(this.class764_0.method_42());
            obj2.SetShapeType(ShapeType.OleObject);
            obj2.CharacterFormat.method_25(A_0);
            obj2.TextWrappingStyle = TextWrappingStyle.Inline;
            MemoryStream input = class2.method_7();
            if (input != null)
            {
                byte[] buffer = new byte[(int)(input.Length - 8L)];
                input.Position = 0L;
                BinaryReader reader2 = new BinaryReader(input);
                reader2.ReadUInt16();
                int num5 = reader2.ReadUInt16();
                int num6 = reader2.ReadUInt16();
                reader2.ReadUInt16();
                input.Read(buffer, 0, buffer.Length);
                obj2.ImageData.method_87(Class409.smethod_29(buffer, Class1044.smethod_1((int)((((double)num5) / 2540.0) * 1963.0), (int)((((double)num6) / 2540.0) * 1963.0), 1963.0, 1963.0)));
                obj2.SetShapeAttribute(0x1006, obj2.ImageData.ImageBytes);
            }
            MemoryStream stream = class2.method_8();
            if (stream != null)
            {
                BinaryReader reader = new BinaryReader(stream);
                stream.Position = 12L;
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                int num  = reader.ReadInt32();
                int num2 = reader.ReadInt32();
                stream.Position = 0x2cL;
                int num3 = reader.ReadInt32();
                int num4 = reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                obj2.method_37((Class969.smethod_32(num) * num3) / 1000.0);
                obj2.method_39((Class969.smethod_32(num2) * num4) / 1000.0);
            }
            this.class764_0.method_43().imethod_18(obj2);
        }
    }
コード例 #6
0
    internal static void smethod_0(Class857 A_0, DocumentObject A_1, CharacterFormat A_2)
    {
        ShapeObject obj2 = new ShapeObject(A_0.method_9());

        if (A_2 != null)
        {
            A_2.method_37(obj2.CharacterFormat);
        }
        Class43 class2 = new Class43();
        Class43 class3 = new Class43();

        class3.SetAttr(0x103b, ShapeType.StraightConnector1);
        Class244.smethod_2(A_0, class3);
        Class746.smethod_1(A_0, class2);
        smethod_1(A_0, class3);
        obj2.ShapePr = class2;
        class3.method_37(obj2.ShapePr);
        obj2.SetShapeAttribute(0x147, 0x2a30);
        A_1.method_13(obj2);
    }