Example #1
0
        public override void Build(Table table, BuildTracker tracker)
        {
            tracker.Track(table.Caption.Items);
            tracker.Track(table.Caption);

            base.Build(table, tracker);
        }
        public override void Build(List list, BuildTracker tracker)
        {
            base.Build(list, tracker);

            tracker.Track(list.Items.SelectMany(items => items.Items));
            tracker.Track(list.Items);
        }
Example #3
0
        public override void Build(BarPlot barPlot, BuildTracker tracker)
        {
            var captionText = _builderRepository.ChunkFor(barPlot.Caption);

            tracker.Track(barPlot.Caption.Items);
            tracker.Track(barPlot.Caption);

            tracker.TeX.Append(FigureWriter.BarPlotFigure(captionText, barPlot, TeX.Converter.DefaultConverter.Instance));
        }
        public override void Build(PlotTwoOrdinates plot, BuildTracker tracker)
        {
            var captionText = _builderRepository.ChunkFor(plot.Caption);

            tracker.Track(plot.Caption.Items);
            tracker.Track(plot.Caption);

            tracker.TeX.Append(FigureWriter.PlotTwoOrdinatesFigure(captionText, plot, TeX.Converter.DefaultConverter.Instance));
        }
        public override void Build(Figure figure, BuildTracker tracker)
        {
            var captionText = _builderRepository.ChunkFor(figure.Caption);

            tracker.Track(figure.Caption.Items);
            tracker.Track(figure.Caption);

            tracker.TeX.Append(FigureWriter.IncludeFigure(figure.Position, captionText, figure.Label, figure.RelativeFilePath, figure.Landscape, DefaultConverter.Instance));
        }
Example #6
0
 public override void Build(StructureElement element, BuildTracker tracker)
 {
     base.Build(element, tracker);
     if (element.Text != null)
     {
         tracker.Track(element.Text.Items);
     }
 }
Example #7
0
        public void Report(object objectToReport, BuildTracker tracker)
        {
            if (objectToReport == null)
            {
                return;
            }

            var builder = BuilderFor(objectToReport);

            if (builder == null)
            {
                throw new BuilderNotFoundException(objectToReport);
            }

            builder.Build(objectToReport, tracker);
            tracker.Track(objectToReport);
        }
        public override void Build(InLandscape landscape, BuildTracker tracker)
        {
            tracker.TeX.Append(Helper.Begin(Helper.Environments.landscape));
            foreach (var landscapeObject in landscape.Items)
            {
                var objectLandscapeDepending = landscapeObject as ILandscapeDepending;
                if (objectLandscapeDepending != null)
                {
                    objectLandscapeDepending.Landscape = true;
                }

                var builder = _repository.BuilderFor(landscapeObject);
                builder.Build(landscapeObject, tracker);
            }
            tracker.TeX.Append(Helper.End(Helper.Environments.landscape));
            tracker.Track(landscape.Items);
        }
Example #9
0
 public override void Build(T text, BuildTracker tracker)
 {
     base.Build(text, tracker);
     tracker.Track(text.Items);
 }
Example #10
0
 public override void Build(InlineImage image, BuildTracker tracker)
 {
     base.Build(image, tracker);
     tracker.Track(image);
 }