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
bf9155db
Commit
bf9155db
authored
Sep 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store nsIDOMHTMLTableElement in HTMLTable.
parent
0769ebc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
htmltable.c
dlls/mshtml/htmltable.c
+10
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+47
-0
No files found.
dlls/mshtml/htmltable.c
View file @
bf9155db
...
...
@@ -37,6 +37,7 @@ typedef struct {
const
IHTMLTableVtbl
*
lpHTMLTableVtbl
;
ConnectionPoint
cp
;
nsIDOMHTMLTableElement
*
nstable
;
}
HTMLTable
;
#define HTMLTABLE(x) ((IHTMLTable*) &(x)->lpHTMLTableVtbl)
...
...
@@ -529,6 +530,10 @@ static HRESULT HTMLTable_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
static
void
HTMLTable_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLTable
*
This
=
HTMLTABLE_NODE_THIS
(
iface
);
if
(
This
->
nstable
)
nsIDOMHTMLTableElement_Release
(
This
->
nstable
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
...
...
@@ -558,6 +563,7 @@ static dispex_static_data_t HTMLTable_dispex = {
HTMLElement
*
HTMLTable_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLTable
*
ret
=
heap_alloc_zero
(
sizeof
(
HTMLTable
));
nsresult
nsres
;
ret
->
element
.
node
.
vtbl
=
&
HTMLTableImplVtbl
;
ret
->
lpHTMLTableVtbl
=
&
HTMLTableVtbl
;
...
...
@@ -567,5 +573,9 @@ HTMLElement *HTMLTable_Create(nsIDOMHTMLElement *nselem)
ConnectionPoint_Init
(
&
ret
->
cp
,
&
ret
->
element
.
cp_container
,
&
DIID_HTMLTableEvents
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLTableElement
,
(
void
**
)
&
ret
->
nstable
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not get nsIDOMHTMLTableElement iface: %08x
\n
"
,
nsres
);
return
&
ret
->
element
;
}
dlls/mshtml/nsiface.idl
View file @
bf9155db
...
...
@@ -125,6 +125,8 @@ typedef nsISupports nsIAtom;
typedef nsISupports nsISupportsArray;
typedef nsISupports nsIContentFilter;
typedef nsISupports nsIDOMMediaList;
typedef nsISupports nsIDOMHTMLTableCaptionElement;
typedef nsISupports nsIDOMHTMLTableSectionElement;
[
object,
...
...
@@ -1299,6 +1301,7 @@ interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
object,
uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
local
/* FROZEN */
]
interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
{
...
...
@@ -1330,6 +1333,50 @@ interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
[
object,
uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
local
/* FROZEN */
]
interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
{
nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
nsresult GetRows(nsIDOMHTMLCollection **aRows);
nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
nsresult GetAlign(nsAString *aAlign);
nsresult SetAlign(const nsAString *aAlign);
nsresult GetBgColor(nsAString *aBgColor);
nsresult SetBgColor(const nsAString *aBgColor);
nsresult GetBorder(nsAString *aBorder);
nsresult SetBorder(const nsAString *aBorder);
nsresult GetCellPadding(nsAString *aCellPadding);
nsresult SetCellPadding(const nsAString *aCellPadding);
nsresult GetCellSpacing(nsAString *aCellSpacing);
nsresult SetCellSpacing(const nsAString *aCellSpacing);
nsresult GetFrame(nsAString *aFrame);
nsresult SetFrame(const nsAString *aFrame);
nsresult GetRules(nsAString *aRules);
nsresult SetRules(const nsAString *aRules);
nsresult GetSummary(nsAString *aSummary);
nsresult SetSummary(const nsAString *aSummary);
nsresult GetWidth(nsAString *aWidth);
nsresult SetWidth(const nsAString *aWidth);
nsresult CreateTHead(nsIDOMHTMLElement **_retval);
nsresult DeleteTHead();
nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
nsresult DeleteTFoot();
nsresult CreateCaption(nsIDOMHTMLElement **_retval);
nsresult DeleteCaption();
nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
nsresult DeleteRow(PRInt32 index);
}
[
object,
uuid(94928ab3-8b63-11d3-989d-001083010e9b),
local
/* FROZEN */
...
...
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