using System.Windows.Forms;
using FastReport.Export;
using FastReport.Export.Svg;
using FastReport.Utils;
namespace FastReport.Forms
{
///
/// Form for .
/// For internal use only.
///
public partial class SVGExportForm : BaseExportForm
{
///
public override void Init(ExportBase export)
{
base.Init(export);
SVGExport SVGExport = Export as SVGExport;
comboBox1.SelectedIndex = (int)SVGExport.ImageFormat;
cbEmbdImgs.Checked = SVGExport.EmbedPictures;
cbToMultipleFiles.Checked = SVGExport.HasMultipleFiles;
}
///
protected override void Done()
{
base.Done();
SVGExport SVGExport = Export as SVGExport;
SVGExport.ImageFormat = (SVGImageFormat)comboBox1.SelectedIndex;
SVGExport.EmbedPictures = cbEmbdImgs.Checked;
SVGExport.HasMultipleFiles = cbToMultipleFiles.Checked;
}
///
public override void Localize()
{
base.Localize();
MyRes res = new MyRes("Export,SVG");
Text = res.Get("");
cbEmbdImgs.Text = res.Get("EmbPic");
res = new MyRes("Export,Misc");
gbOptions.Text = res.Get("Options");
lblImageFormat.Text = res.Get("Pictures");
cbToMultipleFiles.Text = res.Get("ToMultipleFiles");
}
///
/// Initializes a new instance of the class.
///
public SVGExportForm()
{
InitializeComponent();
}
}
}