<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Xml;
using fyiReporting.RDL;
using Xwt;

namespace LibRdlCrossPlatformViewer
{

    public class ReportViewer : VBox
    {
        private Report _report;
        private Pages pages;
        public NeedPassword DataSourceReferencePassword = null;
        private Xwt.ScrollView scrollView;
        private Xwt.VBox vboxPages;
        private Xwt.HBox vboxToolMenu;
        private Xwt.VBox vboxContents;

        private Backend _defaultBackend = Backend.XwtWinforms;
        public Backend DefaultBackend
        {
            get { return _defaultBackend; }
            set { _defaultBackend = value; }
        }

        private string connstr_param_name = "connection_string";
        public string ConnectionStringParameterName
        {
            get { return connstr_param_name; }
            set { connstr_param_name = value; }
        }

        private string conntype_param_name = "connection_type";
        public string ConnectionTypeParameterName
        {
            get { return conntype_param_name; }
            set { conntype_param_name = value; }
        }

        private bool displayButtonMenuToolbar = false;
        public bool DisplayMenuToolBar
        {
            get { return displayButtonMenuToolbar; }
            set
            {
                vboxToolMenu.Visible = value;
                displayButtonMenuToolbar = value;
            }
        }

        public ListDictionary Parameters { get; private set; }

        bool show_errors;
        public bool ShowErrors
        {
            get
            {
                return show_errors;
            }
            set
            {
                show_errors = value;
            }
        }

        bool show_params;
        public bool ShowParameters
        {
            get
            {
                return show_params;
            }
            set
            {
                show_params = value;

            }
        }

        public Uri SourceFile { get; private set; }

        public string SourceRdl { get; set; }

        public fyiReporting.RDL.Report Report
        {
            get
            {
                return this._report;<commit_msg>#131 setting xwt viewer SourceRdl rebuilds report<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Xml;
using fyiReporting.RDL;
using Xwt;

namespace LibRdlCrossPlatformViewer
{

    public class ReportViewer : VBox
    {
        private Report _report;
        private Pages pages;
        public NeedPassword DataSourceReferencePassword = <PASSWORD>;
        private Xwt.ScrollView scrollView;
        private Xwt.VBox vboxPages;
        private Xwt.HBox vboxToolMenu;
        private Xwt.VBox vboxContents;

        private Backend _defaultBackend = Backend.XwtWinforms;
        public Backend DefaultBackend
        {
            get { return _defaultBackend; }
            set { _defaultBackend = value; }
        }

        private string connstr_param_name = "connection_string";
        public string ConnectionStringParameterName
        {
            get { return connstr_param_name; }
            set { connstr_param_name = value; }
        }

        private string conntype_param_name = "connection_type";
        public string ConnectionTypeParameterName
        {
            get { return conntype_param_name; }
            set { conntype_param_name = value; }
        }

        private bool displayButtonMenuToolbar = false;
        public bool DisplayMenuToolBar
        {
            get { return displayButtonMenuToolbar; }
            set
            {
                vboxToolMenu.Visible = value;
                displayButtonMenuToolbar = value;
            }
        }

        public ListDictionary Parameters { get; private set; }

        bool show_errors;
        public bool ShowErrors
        {
            get
            {
                return show_errors;
            }
            set
            {
                show_errors = value;
            }
        }

        bool show_params;
        public bool ShowParameters
        {
            get
            {
                return show_params;
            }
            set
            {
                show_params = value;

            }
        }

        public Uri SourceFile { get; private set; }

        private string _SourceRdl;
        public string SourceRdl
        {
            get
            {
                return _SourceRdl;
            }
            set
            {
                _SourceRdl = value;
                Rebuild();
            }
        }

        public fyiReporting.RDL.Report Report
        {
            get
            {
                return this._report;
{'fraction_non_alphanumeric': 0.0532845230831808, 'fraction_numerical': 0.0006101281269066504, 'mean_word_length': 1.4370664023785926, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3093410', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1201, 'n_words': 299}