Home COM GDI+ WebBrowser Data Access

IMarkupServices Interface

 

IID_IMarkupServices

{3050F4A0-98B5-11CF-BB82-00AA00BDCE0B}

 

 

This interface, along with the IMarkupPointer interface, allows the contents of the page to be programmatically manipulated from your C++ program.

 

Documentation: IMarkupServices Interface

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IMarkupServices Methods

Description

CreateMarkupPointer

Creates an instance of the IMarkupPointer object.

CreateMarkupContainer

Creates an instance of the IMarkupContainer object.

CreateElement

Creates an element with the specified tag.

CloneElement

Creates a duplicate of an element.

InsertElement

Inserts an element between the target pointers.

RemoveElement

Removes the given element without removing the content contained within it.

Remove

Removes content between two pointers.

Copy

Copies the specified text between markers to a target location.

Move

Moves content between two pointers to a destination specified by a third pointer.

InsertText

Inserts text at the given pointer.

ParseString

Creates an IMarkupContainer that contains the results of parsing the contents of a string.

ParseGlobal

Creates an instance of the element object for the specified tag.

IsScopedElement

Undocumented.

GetElementTagId

Retrieves an element's tag identifier (ID).

GetTagIDForName

Retrieves the tag ID of the element, given its name.

GetNameForTagID

Retrieves the name of the element, given its tag ID.

MovePointersToRange

Positions pointers at the edges of an existing range.

MoveRangeToPointers

Positions the beginning and end of a text range at the positions of two markup pointers.

BeginUndoUnit

Marks the beginning of a reversible unit of work.

EndUndoUnit

Marks the end of a reversible unit of work.

 

CreateMarkupPointer

 

FUNCTION IMarkupServices_CreateMarkupPointer ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppPointer AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IMarkupServices_CreateMarkupPointer (pthis, ppPointer) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

CreateMarkupContainer

 

FUNCTION IMarkupServices_CreateMarkupContainer ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppMarkupContainer AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IMarkupServices_CreateMarkupContainer (pthis, ppMarkupContainer) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

CreateElement

 

FUNCTION IMarkupServices_CreateElement ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL tagID AS LONG _
, BYVAL strAttributes AS STRING _
, BYREF ppElement AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  strAttributes = UCODE$(strAttributes) & $NUL
  CALL DWORD @@pthis[5] USING IMarkupServices_CreateElement (pthis, tagID, strAttributes, ppElement) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

CloneElement

 

FUNCTION IMarkupServices_CloneElement ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pElemCloneThis AS DWORD _
, BYREF ppElementTheClone AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING IMarkupServices_CloneElement (pthis, pElemCloneThis, ppElementTheClone) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

InsertElement

 

FUNCTION IMarkupServices_InsertElement ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pElementInsert AS DWORD _
, BYVAL pPointerStart AS DWORD _
, BYVAL pPointerFinish AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING IMarkupServices_InsertElement (pthis, pElementInsert, pPointerStart, pPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

RemoveElement

 

FUNCTION IMarkupServices_RemoveElement ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pElementRemove AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[8] USING IMarkupServices_RemoveElement (pthis, pElementRemove) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Remove

 

FUNCTION IMarkupServices_Remove ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pPointerStart AS DWORD _
, BYVAL pPointerFinish AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING IMarkupServices_Remove (pthis, pPointerStart, pPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Copy

 

FUNCTION IMarkupServices_Copy ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pPointerSourceStart AS DWORD _
, BYVAL pPointerSourceFinish AS DWORD _
, BYVAL pPointerTarget AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[10] USING IMarkupServices_Copy (pthis, pPointerSourceStart, pPointerSourceFinish, pPointerTarget) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Move

 

FUNCTION IMarkupServices_Move ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pPointerSourceStart AS DWORD _
, BYVAL pPointerSourceFinish AS DWORD _
, BYVAL pPointerTarget AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[11] USING IMarkupServices_Move (pthis, pPointerSourceStart, pPointerSourceFinish, pPointerTarget) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

InsertText

 

FUNCTION IMarkupServices_InsertText ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strText AS STRING _
, BYVAL cch AS LONG _
, BYVAL pPointerTarget AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strText = UCODE$(strText) & $NUL
  CALL DWORD @@pthis[12] USING IMarkupServices_InsertText (pthis, strText, cch, pPointerTarget) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ParseString

 

FUNCTION IMarkupServices_ParseString ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strHTML AS STRING _
, BYVAL dwFlags AS DWORD _
, BYREF ppContainerResult AS DWORD _
, BYVAL ppPointerStart AS DWORD _
, BYVAL ppPointerFinish AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strHTML = UCASE$(strHTML) & $NUL
  CALL DWORD @@pthis[13] USING IMarkupServices_ParseString (pthis, strHTML, dwFlags, ppContainerResult, ppPointerStart, ppPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ParseGlobal

 

FUNCTION IMarkupServices_ParseGlobal ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL hglobalHTML AS DWORD _
, BYVAL dwFlags AS DWORD _
, BYREF ppContainerResult AS DWORD _
, BYVAL ppPointerStart AS DWORD _
, BYVAL ppPointerFinish AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[14] USING IMarkupServices_ParseGlobal (pthis, hglobalHTML, dwFlags, ppContainerResult, ppPointerStart, ppPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

IsScopedElement

 

FUNCTION IMarkupServices_IsScopedElement ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pElement AS DWORD _
, BYREF pfScoped AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[15] USING IMarkupServices_IsScopedElement (pthis, pElement, pfScoped) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetElementTagId

 

FUNCTION IMarkupServices_GetElementTagId ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pElement AS DWORD _
, BYREF ptagId AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[16] USING IMarkupServices_GetElementTagId (pthis, pElement, ptagId) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetTagIDForName

 

FUNCTION IMarkupServices_GetTagIDForName ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL bstrName AS STRING _
, BYREF ptagId AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[17] USING IMarkupServices_GetTagIDForName (pthis, bstrName, ptagId) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetNameForTagID

 

FUNCTION IMarkupServices_GetNameForTagID ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL tagId AS LONG _
, BYREF pbstrName AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[18] USING IMarkupServices_GetNameForTagID (pthis, tagId, pbstrName) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

MovePointersToRange

 

FUNCTION IMarkupServices_MovePointersToRange ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pIRange AS DWORD _
, BYVAL pPointerStart AS DWORD _
, BYVAL pPointerFinish AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[19] USING IMarkupServices_MovePointersToRange (pthis, pIRange, pPointerStart, pPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

MoveRangeToPointers

 

FUNCTION IMarkupServices_MoveRangeToPointers ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pPointerStart AS DWORD _
, BYVAL pPointerFinish AS DWORD _
, BYVAL pIRange AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[20] USING IMarkupServices_MoveRangeToPointers (pthis, pIRange, pPointerStart, pPointerFinish) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

BeginUndoUnit

 

FUNCTION IMarkupServices_BeginUndoUnit ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strTitle AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strTitle = UCODE$(strTitle) & $NUL
  CALL DWORD @@pthis[21] USING IMarkupServices_BeginUndoUnit (pthis, strTitle) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

EndUndoUnit

 

FUNCTION IMarkupServices_EndUndoUnit ( _
  BYVAL pthis AS DWORD PTR _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[22] USING IMarkupServices_EndUndoUnit (pthis) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:00:44 +0200