hookup toolbars and toolbox so they are instantiated when xul sees those tags.

This commit is contained in:
pinkerton%netscape.com 1999-01-22 01:42:44 +00:00
parent 80f6a5a6d0
commit e959db5706
3 changed files with 30 additions and 0 deletions

View File

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL
#include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame);
else if (aTag == nsXULAtoms::toolbox) {
processChildren = PR_TRUE;
rv = NS_NewToolboxFrame(aNewFrame);
}
else if (aTag == nsXULAtoms::toolbar) {
processChildren = PR_TRUE;
rv = NS_NewToolbarFrame(aNewFrame);
}
}
// If we succeeded in creating a frame then initialize it, process its

View File

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL
#include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame);
else if (aTag == nsXULAtoms::toolbox) {
processChildren = PR_TRUE;
rv = NS_NewToolboxFrame(aNewFrame);
}
else if (aTag == nsXULAtoms::toolbar) {
processChildren = PR_TRUE;
rv = NS_NewToolbarFrame(aNewFrame);
}
}
// If we succeeded in creating a frame then initialize it, process its

View File

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL
#include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame);
else if (aTag == nsXULAtoms::toolbox) {
processChildren = PR_TRUE;
rv = NS_NewToolboxFrame(aNewFrame);
}
else if (aTag == nsXULAtoms::toolbar) {
processChildren = PR_TRUE;
rv = NS_NewToolbarFrame(aNewFrame);
}
}
// If we succeeded in creating a frame then initialize it, process its