public void CursorPosSetzenDurchMausAktion( XmlNode xmlNode, XMLCursorPositionen cursorPos, MausKlickAktionen aktion) { this.CursorPosSetzenDurchMausAktion(xmlNode, cursorPos, 0, aktion); }
protected override void WurdeAngeklickt(Point point, MausKlickAktionen aktion) { int num = 0; foreach (TextTeil item in this._textTeile) { if (item.Rechteck.Contains(point)) { num += Math.Min(item.Text.Length - 1, (int)((double)((float)(point.X - item.Rechteck.X) / XMLElement_TextNode._breiteProBuchstabe) + 0.5)); break; } num += item.Text.Length; } base._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(base._xmlNode, XMLCursorPositionen.CursorInnerhalbDesTextNodes, num, aktion); }
protected override void WurdeAngeklickt(Point point, MausKlickAktionen aktion) { int posInZeile = 0; foreach (TextTeil textTeil in this._textTeile) { if (textTeil.Rechteck.Contains(point)) { posInZeile += Math.Min(textTeil.Text.Length - 1, (int)((double)(point.X - textTeil.Rechteck.X) / (double)XMLElement_TextNode._breiteProBuchstabe + 0.5)); break; } posInZeile += textTeil.Text.Length; } this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorInnerhalbDesTextNodes, posInZeile, aktion); }
public void CursorPosSetzenDurchMausAktion( XmlNode xmlNode, XMLCursorPositionen cursorPos, int posInZeile, MausKlickAktionen aktion) { switch (aktion) { case MausKlickAktionen.MouseDown: this.BeideCursorPosSetzen(xmlNode, cursorPos, posInZeile); break; case MausKlickAktionen.MouseDownMove: case MausKlickAktionen.MouseUp: this.EndPos.CursorSetzen(xmlNode, cursorPos, posInZeile); break; } }
protected override void WurdeAngeklickt(Point point, MausKlickAktionen aktion) { if (this._pfeilBereichLinks.Contains(point)) { if (this._xmlNode.ChildNodes.Count > 0) { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode.FirstChild, XMLCursorPositionen.CursorVorDemNode, aktion); } else { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorInDemLeeremNode, aktion); } } else if (this._pfeilBereichRechts.Contains(point)) { if (this._xmlNode.ChildNodes.Count > 0) { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode.LastChild, XMLCursorPositionen.CursorHinterDemNode, aktion); } else { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorInDemLeeremNode, aktion); } } else if (this._tagBereichLinks.Contains(point)) { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorAufNodeSelbstVorderesTag, aktion); } else if (this._tagBereichRechts.Contains(point)) { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorAufNodeSelbstHinteresTag, aktion); } else { base.WurdeAngeklickt(point, aktion); } }
protected virtual void WurdeAngeklickt(Point point, MausKlickAktionen aktion) { this._xmlEditor.CursorRoh.CursorPosSetzenDurchMausAktion(this._xmlNode, XMLCursorPositionen.CursorAufNodeSelbstVorderesTag, aktion); }