MHTExportForm.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System.Windows.Forms;
  2. using FastReport.Export;
  3. using FastReport.Export.Mht;
  4. using FastReport.Utils;
  5. namespace FastReport.Forms
  6. {
  7. /// <summary>
  8. /// Form for <see cref="MHTExport"/>.
  9. /// For internal use only.
  10. /// </summary>
  11. public partial class MHTExportForm : BaseExportForm
  12. {
  13. /// <inheritdoc/>
  14. public override void Init(ExportBase export)
  15. {
  16. base.Init(export);
  17. MHTExport MHTExport = Export as MHTExport;
  18. cbWysiwyg.Checked = MHTExport.Wysiwyg;
  19. cbPictures.Checked = MHTExport.Pictures;
  20. }
  21. /// <inheritdoc/>
  22. protected override void Done()
  23. {
  24. base.Done();
  25. MHTExport MHTExport = Export as MHTExport;
  26. MHTExport.Wysiwyg = cbWysiwyg.Checked;
  27. MHTExport.Pictures = cbPictures.Checked;
  28. }
  29. /// <inheritdoc/>
  30. public override void Localize()
  31. {
  32. base.Localize();
  33. MyRes res = new MyRes("Export,Mht");
  34. Text = res.Get("");
  35. res = new MyRes("Export,Misc");
  36. gbOptions.Text = res.Get("Options");
  37. cbWysiwyg.Text = res.Get("Wysiwyg");
  38. cbPictures.Text = res.Get("Pictures");
  39. }
  40. /// <summary>
  41. /// Initializes a new instance of the <see cref="MHTExportForm"/> class.
  42. /// </summary>
  43. public MHTExportForm()
  44. {
  45. InitializeComponent();
  46. }
  47. }
  48. }