HtmlObjectMenu.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Windows.Forms;
  5. using FastReport.Design;
  6. using FastReport.Utils;
  7. using FastReport.Forms;
  8. namespace FastReport
  9. {
  10. /// <summary>
  11. /// The class introduces some menu items specific to the <b>TextObject</b>.
  12. /// </summary>
  13. public class HtmlObjectMenu : TextObjectBaseMenu
  14. {
  15. #region Fields
  16. private SelectedTextBaseObjects htmlObjects;
  17. #endregion
  18. /// <summary>
  19. /// Initializes a new instance of the <b>TextObjectMenu</b>
  20. /// class with default settings.
  21. /// </summary>
  22. /// <param name="designer">The reference to a report designer.</param>
  23. public HtmlObjectMenu(Designer designer) : base(designer)
  24. {
  25. htmlObjects = new SelectedTextBaseObjects(designer);
  26. htmlObjects.Update();
  27. MyRes res = new MyRes("ComponentMenu,HtmlObject");
  28. miAllowExpressions.BeginGroup = false;
  29. int insertPos = Items.IndexOf(miFormat) + 1;
  30. insertPos = Items.IndexOf(miAllowExpressions);
  31. bool enabled = htmlObjects.Enabled;
  32. HtmlObject obj = htmlObjects.First as HtmlObject;
  33. }
  34. }
  35. }