/// <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; }
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; }
internal SectionFieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer) { this.sectionField = domObj as SectionField; }
public FootnoteRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer) { this.footnote = domObj as Footnote; }
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; }
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; }
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) { }
internal HeaderFooterRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer) { this.headerFooter = domObj as HeaderFooter; }
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; }
internal FieldRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer) { }
public ListInfoOverrideRenderer(DocumentObject domObj, CsvDocumentRenderer docRenderer) : base(domObj, docRenderer) { this.listInfo = domObj as ListInfo; }
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; }
/// <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); }