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
Родитель 44f108dc2c
Коммит 6864fb136f
3 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL #ifdef INCLUDE_XUL
#include "nsXULAtoms.h" #include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif #endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID); static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame); rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget) else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame); 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 // If we succeeded in creating a frame then initialize it, process its

Просмотреть файл

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL #ifdef INCLUDE_XUL
#include "nsXULAtoms.h" #include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif #endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID); static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame); rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget) else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame); 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 // If we succeeded in creating a frame then initialize it, process its

Просмотреть файл

@ -48,6 +48,8 @@
#ifdef INCLUDE_XUL #ifdef INCLUDE_XUL
#include "nsXULAtoms.h" #include "nsXULAtoms.h"
#include "nsToolboxFrame.h"
#include "nsToolbarFrame.h"
#endif #endif
static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID); static NS_DEFINE_IID(kIHTMLStyleSheetIID, NS_IHTML_STYLE_SHEET_IID);
@ -1849,6 +1851,14 @@ HTMLStyleSheetImpl::ConstructXULFrame(nsIPresContext* aPresContext,
rv = NS_NewTextControlFrame(aNewFrame); rv = NS_NewTextControlFrame(aNewFrame);
else if (aTag == nsXULAtoms::widget) else if (aTag == nsXULAtoms::widget)
rv = NS_NewObjectFrame(aNewFrame); 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 // If we succeeded in creating a frame then initialize it, process its