using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace FastReport.Web.Services
{
///
/// The interface that provides utilities for the Online Designer. Allows to get MsChart Template, component properties and report functions
///
///
/// The interface may change over time
///
public interface IDesignerUtilsService
{
///
/// Searches for a template by name and returns an XML string with that template
///
/// Name of the template. Like Blue, Black, etc.
/// Returns the XML string with the MsChart template. If the template is not found, it returns null
string GetMSChartTemplateXML(string templateName);
///
/// Returns JSON string of connection string properties.
///
/// The FastReport component whose properties you want to get. Like TextObject, PictureObject etc.
/// Returns JSON string with FastReport component properties. If the component is not found - returns null
string GetPropertiesJSON(string componentName);
///
/// Retrieves the report functions and returns them to string
///
/// Report, the functions of which are to be obtained
/// Returns a string with the report functions
string GetFunctions(Report report);
///
/// Returns the Online Designer configuration
///
/// WebReport configuration of which is to be returned
/// String in JSON format with configuration for Online Designer
string GetConfig(WebReport webReport);
string DesignerObjectPreview(WebReport webReport, string reportObj);
}
}