Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
77e8a680
Commit
77e8a680
authored
Aug 17, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTxtRange::put_text implementation.
parent
cfaf00fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
txtrange.c
dlls/mshtml/txtrange.c
+32
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
77e8a680
...
...
@@ -50,6 +50,8 @@
#define NS_ELEMENT_NODE 1
#define NS_DOCUMENT_NODE 9
#define MSHTML_E_NODOC 0x800a025c
typedef
struct
HTMLDOMNode
HTMLDOMNode
;
typedef
struct
ConnectionPoint
ConnectionPoint
;
typedef
struct
BSCallback
BSCallback
;
...
...
dlls/mshtml/txtrange.c
View file @
77e8a680
...
...
@@ -180,8 +180,38 @@ static HRESULT WINAPI HTMLTxtRange_get_htmlText(IHTMLTxtRange *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLTxtRange_put_text
(
IHTMLTxtRange
*
iface
,
BSTR
v
)
{
HTMLTxtRange
*
This
=
HTMLTXTRANGE_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsIDOMDocument
*
nsdoc
;
nsIDOMText
*
text_node
;
nsAString
text_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
if
(
!
This
->
doc
)
return
MSHTML_E_NODOC
;
nsres
=
nsIWebNavigation_GetDocument
(
This
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsAString_Init
(
&
text_str
,
v
);
nsres
=
nsIDOMDocument_CreateTextNode
(
nsdoc
,
&
text_str
,
&
text_node
);
nsAString_Finish
(
&
text_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateTextNode failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsres
=
nsIDOMRange_DeleteContents
(
This
->
nsrange
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"DeleteContents failed: %08x
\n
"
,
nsres
);
nsres
=
nsIDOMRange_InsertNode
(
This
->
nsrange
,
(
nsIDOMNode
*
)
text_node
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"InsertNode failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTxtRange_get_text
(
IHTMLTxtRange
*
iface
,
BSTR
*
p
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment