예제 #1
0
        /// <summary>
        /// Initializes a new instance of the RendererBase class.
        /// </summary>
        internal RendererBase(DocumentObject domObj, CsvDocumentRenderer docRenderer)
        {
            if (enumTranslationTable == null)
            {
                CreateEnumTranslationTable();
            }

            this.docObject   = domObj;
            this.docRenderer = docRenderer;
            if (docRenderer != null)
            {
                this.csvWriter = docRenderer.CsvWriter;
            }
            this.useEffectiveValue = false;
        }
예제 #2
0
 internal PageSetupRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.pageSetup = domObj as PageSetup;
 }
 internal PageFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.pageField = domObj as PageField;
 }
 internal DateFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.dateField = domObj as DateField;
 }
예제 #5
0
 internal SectionFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
   : base(domObj, docRenderer)
 {
   this.sectionField = domObj as SectionField;
 }
예제 #6
0
 public FootnoteRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.footnote = domObj as Footnote;
 }
예제 #7
0
 internal CellRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.cell = domObj as Cell;
 }
 internal NumPagesFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.numPagesField = domObj as NumPagesField;
 }
예제 #9
0
 internal ShadingRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.shading       = domObj as Shading;
     this.isCellShading = !(DocumentRelations.GetParent(shading) is ParagraphFormat);
 }
 internal FormattedTextRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.formattedText = domObj as FormattedText;
 }
예제 #11
0
 internal ShapeRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.shape = domObj as Shape;
 }
 public ParagraphRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.paragraph = domObj as Paragraph;
 }
 internal PageBreakRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
 }
예제 #14
0
 internal HeaderFooterRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.headerFooter = domObj as HeaderFooter;
 }
예제 #15
0
 internal RowsRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.rows = domObj as Rows;
 }
 internal NumericFieldRendererBase(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.numericField = domObj as NumericFieldBase;
 }
예제 #17
0
 internal FieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
 }
 public ListInfoOverrideRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.listInfo = domObj as ListInfo;
 }
예제 #19
0
 internal TabStopRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.tabStop = domObj as TabStop;
 }
 public BookmarkFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.bookmark = domObj as BookmarkField;
 }
 /// <summary>
 /// Creates a new instance of the CharacterRenderer class.
 /// </summary>
 internal CharacterRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.character = domObj as Character;
 }
 internal InfoFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.infoField = domObj as InfoField;
 }
 internal TextFrameRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer)
 {
     this.textFrame = domObj as TextFrame;
 }
 internal HyperlinkRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.hyperlink = domObj as Hyperlink;
 }
예제 #25
0
        /// <summary>
        /// Dynamically creates a renderer for the given document object.
        /// </summary>
        internal static RendererBase CreateRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer)
        {
            switch (domObj.GetType().Name)
            {
            case "TabStops":
                return(new TabStopsRenderer(domObj, docRenderer));

            case "TabStop":
                return(new TabStopRenderer(domObj, docRenderer));

            case "Section":
                return(new SectionRenderer(domObj, docRenderer));

            case "PageSetup":
                return(new PageSetupRenderer(domObj, docRenderer));

            case "Paragraph":
                return(new ParagraphRenderer(domObj, docRenderer));

            case "Text":
                return(new TextRenderer(domObj, docRenderer));

            case "FormattedText":
                return(new FormattedTextRenderer(domObj, docRenderer));

            case "Character":
                return(new CharacterRenderer(domObj, docRenderer));

            //Fields start
            case "BookmarkField":
                return(new BookmarkFieldRenderer(domObj, docRenderer));

            case "PageField":
                return(new PageFieldRenderer(domObj, docRenderer));

            case "PageRefField":
                return(new PageRefFieldRenderer(domObj, docRenderer));

            case "NumPagesField":
                return(new NumPagesFieldRenderer(domObj, docRenderer));

            case "SectionField":
                return(new SectionFieldRenderer(domObj, docRenderer));

            case "SectionPagesField":
                return(new SectionPagesFieldRenderer(domObj, docRenderer));

            case "InfoField":
                return(new InfoFieldRenderer(domObj, docRenderer));

            case "DateField":
                return(new DateFieldRenderer(domObj, docRenderer));

            //Fields end
            case "Hyperlink":
                return(new HyperlinkRenderer(domObj, docRenderer));

            case "Footnote":
                return(new FootnoteRenderer(domObj, docRenderer));

            case "ListInfo":
                return(new ListInfoRenderer(domObj, docRenderer));

            case "TextFrame":
                return(new TextFrameRenderer(domObj, docRenderer));

            case "HeadersFooters":
                return(new HeadersFootersRenderer(domObj, docRenderer));

            case "HeaderFooter":
                return(new HeaderFooterRenderer(domObj, docRenderer));

            case "PageBreak":
                return(new PageBreakRenderer(domObj, docRenderer));

            //Table
            case "Table":
                return(new TableRenderer(domObj, docRenderer));

            case "Row":
                return(new RowRenderer(domObj, docRenderer));

            case "Cell":
                return(new CellRenderer(domObj, docRenderer));
                //Table end
            }
            return(null);
        }