/src/mozilla-central/layout/xul/nsXULLabelFrame.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | /* derived class of nsBlockFrame used for xul:label elements */ |
8 | | |
9 | | #ifndef nsXULLabelFrame_h_ |
10 | | #define nsXULLabelFrame_h_ |
11 | | |
12 | | #include "mozilla/Attributes.h" |
13 | | #include "nsBlockFrame.h" |
14 | | |
15 | | class nsXULLabelFrame final : public nsBlockFrame |
16 | | { |
17 | | public: |
18 | | NS_DECL_FRAMEARENA_HELPERS(nsXULLabelFrame) |
19 | | |
20 | | friend nsIFrame* NS_NewXULLabelFrame(nsIPresShell* aPresShell, |
21 | | ComputedStyle* aStyle); |
22 | | |
23 | | // nsIFrame |
24 | | virtual void Init(nsIContent* aContent, |
25 | | nsContainerFrame* aParent, |
26 | | nsIFrame* aPrevInFlow) override; |
27 | | |
28 | | virtual void DestroyFrom(nsIFrame* aDestructRoot, PostDestroyData& aPostDestroyData) override; |
29 | | |
30 | | virtual nsresult AttributeChanged(int32_t aNameSpaceID, |
31 | | nsAtom* aAttribute, |
32 | | int32_t aModType) override; |
33 | | |
34 | | #ifdef DEBUG_FRAME_DUMP |
35 | | virtual nsresult GetFrameName(nsAString& aResult) const override; |
36 | | #endif |
37 | | |
38 | | protected: |
39 | | explicit nsXULLabelFrame(ComputedStyle* aStyle) |
40 | | : nsBlockFrame(aStyle, kClassID) |
41 | 0 | {} |
42 | | |
43 | | nsresult RegUnregAccessKey(bool aDoReg); |
44 | | }; |
45 | | |
46 | | nsIFrame* |
47 | | NS_NewXULLabelFrame(nsIPresShell* aPresShell, mozilla::ComputedStyle* aStyle); |
48 | | |
49 | | #endif /* !defined(nsXULLabelFrame_h_) */ |