Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f0649f37
Commit
f0649f37
authored
May 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
May 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTxtRange::get_htmlText implementation.
parent
573d612d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
nsiface.idl
dlls/mshtml/nsiface.idl
+9
-1
txtrange.c
dlls/mshtml/txtrange.c
+32
-2
No files found.
dlls/mshtml/nsiface.idl
View file @
f0649f37
...
...
@@ -97,7 +97,6 @@ typedef nsISupports nsIDOMNamedNodeMap;
typedef nsISupports nsIDOMAttr;
typedef nsISupports nsIDOMDocumentType;
typedef nsISupports nsIDOMDOMImplementation;
typedef nsISupports nsIDOMDocumentFragment;
typedef nsISupports nsIDOMComment;
typedef nsISupports nsIDOMCDATASection;
typedef nsISupports nsIDOMProcessingInstruction;
...
...
@@ -588,6 +587,15 @@ interface nsIDOMText : nsIDOMCharacterData
[
object,
uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
/* NOT_FROZEN */
]
interface nsIDOMDocumentFragment : nsIDOMNode
{
}
[
object,
uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
/* FROZEN */
]
...
...
dlls/mshtml/txtrange.c
View file @
f0649f37
...
...
@@ -138,8 +138,38 @@ static HRESULT WINAPI HTMLTxtRange_Invoke(IHTMLTxtRange *iface, DISPID dispIdMem
static
HRESULT
WINAPI
HTMLTxtRange_get_htmlText
(
IHTMLTxtRange
*
iface
,
BSTR
*
p
)
{
HTMLTxtRange
*
This
=
HTMLTXTRANGE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
NULL
;
if
(
This
->
nsrange
)
{
nsIDOMDocumentFragment
*
fragment
;
nsresult
nsres
;
nsres
=
nsIDOMRange_CloneContents
(
This
->
nsrange
,
&
fragment
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
nstext
;
nsAString
nsstr
;
nsAString_Init
(
&
nsstr
,
NULL
);
nsnode_to_nsstring
((
nsIDOMNode
*
)
fragment
,
&
nsstr
);
nsIDOMDocumentFragment_Release
(
fragment
);
nsAString_GetData
(
&
nsstr
,
&
nstext
,
NULL
);
*
p
=
SysAllocString
(
nstext
);
nsAString_Finish
(
&
nsstr
);
}
}
if
(
!*
p
)
{
const
WCHAR
emptyW
[]
=
{
0
};
*
p
=
SysAllocString
(
emptyW
);
}
TRACE
(
"return %s
\n
"
,
debugstr_w
(
*
p
));
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTxtRange_put_text
(
IHTMLTxtRange
*
iface
,
BSTR
v
)
...
...
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