/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* factory functions for rendering object classes */ #ifndef nsHTMLParts_h___ #define nsHTMLParts_h___ #include "nscore.h" #include "nsFrameState.h" #include "nsISupports.h" class nsAtom; class nsCheckboxRadioFrame; class nsComboboxControlFrame; class nsContainerFrame; class nsIChannel; class nsIContent; class nsIFragmentContentSink; class nsIFrame; class nsIHTMLContentSink; class nsIURI; class nsListControlFrame; class nsNodeInfoManager; class nsTableColFrame; namespace mozilla { class ComputedStyle; class PresShell; class PrintedSheetFrame; class ViewportFrame; namespace dom { class Document; } } // namespace mozilla // Factory methods for creating html layout objects // Create a frame that supports "display: block" layout behavior class nsBlockFrame; nsBlockFrame* NS_NewBlockFrame(mozilla::PresShell* aPresShell, mozilla::ComputedStyle* aStyle); // Special Generated Content Node. It contains text taken from an // attribute of its *grandparent* content node. nsresult NS_NewAttributeContent(nsNodeInfoManager* aNodeInfoManager, int32_t aNameSpaceID, nsAtom* aAttrName, nsAtom* aFallback, nsIContent** aResult); // Create a basic area frame but the GetFrameForPoint is overridden to always // return the option frame // By default, area frames will extend // their height to cover any children that "stick out". nsContainerFrame* NS_NewSelectsAreaFrame(mozilla::PresShell* aPresShell, mozilla::ComputedStyle* aStyle); nsIFrame* NS_NewBRFrame(mozilla::PresShell* aPresShell, mozilla::ComputedStyle* aStyle); nsIFrame* NS_NewCommentFrame(mozilla::PresShell* aPresShell, mozilla::ComputedStyle* aStyle); // and