123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- using System;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Drawing;
- using FastReport.Utils;
- using FastReport.Controls;
- namespace FastReport.Table
- {
- partial class TableCell
- {
- #region Properties
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public override AnchorStyles Anchor
- {
- get { return base.Anchor; }
- set { base.Anchor = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public override DockStyle Dock
- {
- get { return base.Dock; }
- set { base.Dock = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new bool CanGrow
- {
- get { return base.CanGrow; }
- set { base.CanGrow = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new bool CanShrink
- {
- get { return base.CanShrink; }
- set { base.CanShrink = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new bool GrowToBottom
- {
- get { return base.GrowToBottom; }
- set { base.GrowToBottom = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new bool AutoWidth
- {
- get { return base.AutoWidth; }
- set { base.AutoWidth = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new Duplicates Duplicates
- {
- get { return base.Duplicates; }
- set { base.Duplicates = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public new ShiftMode ShiftMode
- {
- get { return base.ShiftMode; }
- set { base.ShiftMode = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public override float Left
- {
- get { return base.Left; }
- set { base.Left = value; }
- }
- /// <summary>
- /// This property is not relevant to this class.
- /// </summary>
- [Browsable(false)]
- public override float Top
- {
- get { return base.Top; }
- set { base.Top = value; }
- }
- #endregion
- #region Public Methods
- /// <inheritdoc/>
- public override void HandleMouseHover(FRMouseEventArgs e)
- {
- if (PointInObject(new PointF(e.x, e.y)))
- e.handled = true;
- }
- /// <inheritdoc/>
- public override bool PointInObject(PointF point)
- {
- return base.PointInObject(point) && !Table.IsInsideSpan(this);
- }
- /// <inheritdoc/>
- public override void HandleMouseDown(FRMouseEventArgs e)
- {
- // do nothing
- }
- /// <inheritdoc/>
- public override void HandleMouseMove(FRMouseEventArgs e)
- {
- // do nothing
- }
- /// <inheritdoc/>
- public override void HandleMouseUp(FRMouseEventArgs e)
- {
- // do nothing
- }
- /// <inheritdoc/>
- public override void HandleDragOver(FRMouseEventArgs e)
- {
- // do nothing
- }
- /// <inheritdoc/>
- public override void HandleDragDrop(FRMouseEventArgs e)
- {
- // do nothing
- }
- /// <inheritdoc/>
- public override void HandleDoubleClick()
- {
- Table.HandleCellDoubleClick(this);
- }
- /// <inheritdoc/>
- public override ContextMenuBase GetContextMenu()
- {
- return Table.GetCellContextMenu(this);
- }
- /// <inheritdoc/>
- public override SmartTagBase GetSmartTag()
- {
- return Table.GetCellSmartTag(this);
- }
- /// <inheritdoc/>
- public override void SelectionChanged()
- {
- base.SelectionChanged();
- if (Parent != null)
- Parent.SelectionChanged();
- }
- /// <inheritdoc/>
- public override string GetDisplayText()
- {
- string defaultText = base.GetDisplayText();
- if (IsDesigning && Table != null)
- return Table.GetCellDisplayText(this, defaultText);
- return defaultText;
- }
- /// <inheritdoc/>
- public override void ProvideCustomItems(DataTreeView tree)
- {
- base.ProvideCustomItems(tree);
- if (Table != null)
- Table.ProvideCustomItems(this, tree);
- }
- #endregion
- }
- }
|