2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsBoxFrame.h"
|
|
|
|
|
|
|
|
class nsITreeBoxObject;
|
|
|
|
|
|
|
|
nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
|
2009-01-19 10:31:33 -08:00
|
|
|
nsStyleContext* aContext);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
class nsTreeColFrame : public nsBoxFrame
|
|
|
|
{
|
|
|
|
public:
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
nsTreeColFrame(nsIPresShell* aPresShell,
|
2009-01-19 10:31:33 -08:00
|
|
|
nsStyleContext* aContext):
|
|
|
|
nsBoxFrame(aPresShell, aContext) {}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-19 18:47:48 -07:00
|
|
|
virtual void Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-02-14 03:12:27 -08:00
|
|
|
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
NS_IMETHOD AttributeChanged(int32_t aNameSpaceID,
|
2007-03-22 10:30:00 -07:00
|
|
|
nsIAtom* aAttribute,
|
2012-09-14 09:10:08 -07:00
|
|
|
int32_t aModType) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
virtual void SetBounds(nsBoxLayoutState& aBoxLayoutState, const nsRect& aRect,
|
2012-09-14 09:10:08 -07:00
|
|
|
bool aRemoveOverflowArea = false) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-01-19 10:31:33 -08:00
|
|
|
friend nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~nsTreeColFrame();
|
|
|
|
|
|
|
|
/**
|
2012-07-30 07:20:58 -07:00
|
|
|
* @return the tree box object of the tree this column belongs to, or nullptr.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
nsITreeBoxObject* GetTreeBoxObject();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Helper method that gets the nsITreeColumns object this column belongs to
|
|
|
|
* and calls InvalidateColumns() on it.
|
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
void InvalidateColumns(bool aCanWalkFrameTree = true);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|