RichObject.DesignExt.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing.Design;
  5. using System.Windows.Forms;
  6. using System.ComponentModel;
  7. using System.Drawing;
  8. using System.Drawing.Imaging;
  9. using System.Drawing.Text;
  10. using System.IO;
  11. using FastReport.TypeEditors;
  12. using FastReport.Utils;
  13. using FastReport.Code;
  14. using FastReport.Controls;
  15. using FastReport.Forms;
  16. namespace FastReport
  17. {
  18. partial class RichObject : IHasEditor
  19. {
  20. #region Public Methods
  21. internal void DrawDesign(FRPaintEventArgs e)
  22. {
  23. DrawMarkers(e);
  24. }
  25. /// <inheritdoc/>
  26. public bool InvokeEditor()
  27. {
  28. using (RichEditorForm form = new RichEditorForm(this))
  29. {
  30. if (form.ShowDialog() == DialogResult.OK)
  31. {
  32. actualTextStart = 0;
  33. actualTextLength = 0;
  34. return true;
  35. }
  36. }
  37. return false;
  38. }
  39. /// <inheritdoc/>
  40. public override SmartTagBase GetSmartTag()
  41. {
  42. return new RichObjectSmartTag(this);
  43. }
  44. /// <inheritdoc/>
  45. public override ContextMenuBase GetContextMenu()
  46. {
  47. return new TextObjectBaseMenu(Report.Designer);
  48. }
  49. #endregion
  50. }
  51. }