Пример #1
0
 public ezShape(string id, ezImage image, ezText text = null, string @class = null)
 {
     this.id     = id;
     this.image  = image;
     this.text   = text;
     this.@class = @class;
 }
Пример #2
0
        public ezShape(Shape shape)
        {
            string qulifiedShapeName = Utility.qulifiedNameGenerator(shape.Name);

            id     = "sh" + qulifiedShapeName;
            @class = "temp"; //need to get it from alt text. if not found default is 'temp'
            if (shape.AlternativeText.Contains("$class$"))
            {
                @class = classFinder(shape.AlternativeText);
            }
            //text = new ezText(shape); //Need to its structure..When instructed

            if (shape.Type == Microsoft.Office.Core.MsoShapeType.msoMedia && shape.MediaType == PpMediaType.ppMediaTypeSound)
            {
                audioUrl = Utility.getExtractedAudioUrl(shape);
                if (audioUrl != null)
                {
                    this.audioUrl = audioUrl;
                }
            }

            image = new ezImage(shape);

            actions = new ezAction(shape);

            shapeCount++;
        }
Пример #3
0
        public ezBackGround(Slide sld)
        {
            id = "SlideBackGround";
            ezCss css = new ezCss(576, 420, 0, 0);

            image     = new ezImage(sld);
            image.css = css;
            backgroundCount++;
        }