Ejemplo n.º 1
0
 public MarkupContainer ParseGlobal(string html, uint dwFlags, MarkupPointer pointerStart, MarkupPointer pointerFinish)
 {
     Interop.UserHGLOBAL hglobalHTML = new Interop.UserHGLOBAL();
     hglobalHTML.u = System.Runtime.InteropServices.Marshal.StringToBSTR(html);
     Interop.IMarkupPointer   ppPointerStart  = pointerStart.Native;
     Interop.IMarkupPointer   ppPointerFinish = pointerFinish.Native;
     Interop.IMarkupContainer ppContainerResult;
     ms.ParseGlobal(hglobalHTML, dwFlags, out ppContainerResult, ppPointerStart, ppPointerFinish);
     return(new MarkupContainer(ppContainerResult, editor));
 }
Ejemplo n.º 2
0
 public void InsertText(string pchText, int cch, MarkupPointer pointerTarget)
 {
     Interop.IMarkupPointer pPointerTarget = pointerTarget.Native;
     ms.InsertText(pchText, cch, pPointerTarget);
 }
Ejemplo n.º 3
0
 public void InsertText(string pchText, MarkupPointer pointerTarget)
 {
     InsertText(pchText, pchText.Length, pointerTarget);
 }
Ejemplo n.º 4
0
 public void Move(MarkupPointer pointerSourceStart, MarkupPointer pointerSourceFinish, MarkupPointer pointerTarget)
 {
     Interop.IMarkupPointer pPointerSourceStart  = pointerSourceStart.Native;
     Interop.IMarkupPointer pPointerSourceFinish = pointerSourceFinish.Native;
     Interop.IMarkupPointer pPointerTarget       = pointerTarget.Native;
     ms.Move(pPointerSourceStart, pPointerSourceFinish, pPointerTarget);
 }
Ejemplo n.º 5
0
 public void Remove(MarkupPointer pointerStart, MarkupPointer pointerFinish)
 {
     Interop.IMarkupPointer pPointerStart  = pointerStart.Native;
     Interop.IMarkupPointer pPointerFinish = pointerFinish.Native;
     ms.Remove(pPointerStart, pPointerFinish);
 }
Ejemplo n.º 6
0
 public void InsertElement(Interop.IHTMLElement pElementInsert, MarkupPointer pointerStart, MarkupPointer pointerFinish)
 {
     Interop.IMarkupPointer pPointerStart  = pointerStart.Native;
     Interop.IMarkupPointer pPointerFinish = pointerFinish.Native;
     ms.InsertElement(pElementInsert, pPointerStart, pPointerFinish);
 }
Ejemplo n.º 7
0
 public void ValidateElements(MarkupPointer pointerStart, MarkupPointer pointerFinish, MarkupPointer pointerTarget, ref MarkupPointer pointerStatus, out Interop.IHTMLElement ppElemFailBottom, out Interop.IHTMLElement ppElemFailTop)
 {
     Interop.IMarkupPointer pPointerStart  = pointerStart.Native;
     Interop.IMarkupPointer pPointerFinish = pointerFinish.Native;
     Interop.IMarkupPointer pPointerTarget = pointerTarget.Native;
     Interop.IMarkupPointer pPointerStatus = pointerStatus.Native;
     ms2.ValidateElements(pPointerStart, pPointerFinish, pPointerTarget, ref pPointerStatus, out ppElemFailBottom, out ppElemFailTop);
 }
Ejemplo n.º 8
0
 public void MovePointersToRange(HtmlTextRange range, MarkupPointer pointerStart, MarkupPointer pointerFinish)
 {
     Interop.IHTMLTxtRange  pIRange        = range.Native;
     Interop.IMarkupPointer pPointerStart  = pointerStart;
     Interop.IMarkupPointer pPointerFinish = pointerFinish;
     ms.MovePointersToRange(pIRange, pPointerStart, pPointerFinish);
 }
Ejemplo n.º 9
0
 public MarkupContainer ParseString(string pchHTML, uint dwFlags, MarkupPointer pointerStart, MarkupPointer pointerFinish)
 {
     Interop.IMarkupPointer   ppPointerStart  = pointerStart.Native;
     Interop.IMarkupPointer   ppPointerFinish = pointerFinish.Native;
     Interop.IMarkupContainer ppContainerResult;
     ms.ParseString(ref pchHTML, dwFlags, out ppContainerResult, ppPointerStart, ppPointerFinish);
     return(new MarkupContainer(ppContainerResult, editor));
 }
Ejemplo n.º 10
0
 public void PositionMarkupPointer(MarkupPointer markupPointer)
 {
     dp.PositionMarkupPointer(markupPointer.Native);
 }
Ejemplo n.º 11
0
 public void MoveToMarkupPointer(MarkupPointer pointer, DisplayPointer dispLineContext)
 {
     Interop.IMarkupPointer  pPointer         = pointer.Native;
     Interop.IDisplayPointer pDispLineContext = dispLineContext.Native;
     dp.MoveToMarkupPointer(pPointer, pDispLineContext);
 }
Ejemplo n.º 12
0
 public void MoveMarkupPointerToCaret(MarkupPointer markupPointer)
 {
     Interop.IMarkupPointer pIMarkupPointer = markupPointer.Native;
     cr.MoveMarkupPointerToCaret(pIMarkupPointer);
 }
Ejemplo n.º 13
0
 public void GetAndClearDirtyRange(uint dwCookie, MarkupPointer pointerBegin, MarkupPointer pointerEnd)
 {
     Interop.IMarkupPointer pIPointerBegin = pointerBegin.Native;
     Interop.IMarkupPointer pIPointerEnd   = pointerEnd.Native;
     mc.GetAndClearDirtyRange(dwCookie, pIPointerBegin, pIPointerEnd);
 }