Added a tab control widget.

git-svn-id: svn://10.0.0.236/trunk@28561 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
evaughan%netscape.com
1999-04-21 22:46:15 +00:00
parent 92a896f017
commit 8bd7a72b5b
18 changed files with 1259 additions and 203 deletions

View File

@@ -74,6 +74,12 @@
#include "nsTreeIndentationFrame.h"
#include "nsTreeCellFrame.h"
nsresult
NS_NewTabFrame ( nsIFrame*& aNewFrame );
nsresult
NS_NewDeckFrame ( nsIFrame*& aNewFrame );
nsresult
NS_NewProgressMeterFrame ( nsIFrame*& aNewFrame );
@@ -1578,7 +1584,11 @@ nsCSSFrameConstructor::TableIsValidCellContent(nsIPresContext* aPresContext,
(nsXULAtoms::treeindentation == tag.get()) ||
(nsXULAtoms::toolbox == tag.get()) ||
(nsXULAtoms::toolbar == tag.get()) ||
(nsXULAtoms::box == tag.get()) ||
(nsXULAtoms::deck == tag.get()) ||
(nsXULAtoms::tabcontrol == tag.get()) ||
(nsXULAtoms::tabbox == tag.get()) ||
(nsXULAtoms::tabpanel == tag.get()) ||
(nsXULAtoms::tabpage == tag.get()) ||
(nsXULAtoms::progressmeter == tag.get() )) {
return PR_TRUE;
}
@@ -2650,7 +2660,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
// End of PROGRESS METER CONSTRUCTION logic
// BOX CONSTRUCTION
else if (aTag == nsXULAtoms::box) {
else if (aTag == nsXULAtoms::box || aTag == nsXULAtoms::tabbox || aTag == nsXULAtoms::tabpage || aTag == nsXULAtoms::tabcontrol) {
processChildren = PR_TRUE;
isReplaced = PR_TRUE;
rv = NS_NewBoxFrame(newFrame);
@@ -2665,6 +2675,22 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
}
// End of TITLED BUTTON CONSTRUCTION logic
// DECK CONSTRUCTION
else if (aTag == nsXULAtoms::deck || aTag == nsXULAtoms::tabpanel) {
processChildren = PR_TRUE;
isReplaced = PR_TRUE;
rv = NS_NewDeckFrame(newFrame);
}
// End of DECK CONSTRUCTION logic
// TAB CONSTRUCTION
else if (aTag == nsXULAtoms::tab) {
processChildren = PR_TRUE;
isReplaced = PR_TRUE;
rv = NS_NewTabFrame(newFrame);
}
// End of TAB CONSTRUCTION logic
}
// If we succeeded in creating a frame then initialize it, process its