2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
2001-02-05 05:45:55 +03:00
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2001-02-05 05:45:55 +03:00
|
|
|
#include "nsBoxFrame.h"
|
2006-12-29 16:20:23 +03:00
|
|
|
|
|
|
|
class nsITreeBoxObject;
|
2001-02-05 05:45:55 +03:00
|
|
|
|
2005-10-27 01:46:39 +04:00
|
|
|
nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
|
2009-01-19 21:31:33 +03:00
|
|
|
nsStyleContext* aContext);
|
2002-01-10 17:16:05 +03:00
|
|
|
|
2017-05-02 04:50:16 +03:00
|
|
|
class nsTreeColFrame final : public nsBoxFrame
|
2001-02-05 05:45:55 +03:00
|
|
|
{
|
|
|
|
public:
|
2017-05-26 13:11:11 +03:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsTreeColFrame)
|
2009-09-12 20:49:24 +04:00
|
|
|
|
2015-01-06 12:27:56 +03:00
|
|
|
explicit nsTreeColFrame(nsStyleContext* aContext):
|
2017-05-26 13:11:11 +03:00
|
|
|
nsBoxFrame(aContext, kClassID) {}
|
2006-03-27 01:30:36 +04:00
|
|
|
|
2014-05-25 02:20:40 +04:00
|
|
|
virtual void Init(nsIContent* aContent,
|
|
|
|
nsContainerFrame* aParent,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsIFrame* aPrevInFlow) override;
|
2001-09-26 02:17:47 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
|
2004-05-14 17:58:00 +04:00
|
|
|
|
2013-02-14 15:12:27 +04:00
|
|
|
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2001-02-05 05:45:55 +03:00
|
|
|
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult AttributeChanged(int32_t aNameSpaceID,
|
2014-02-18 12:36:33 +04:00
|
|
|
nsIAtom* aAttribute,
|
2015-03-21 19:28:04 +03:00
|
|
|
int32_t aModType) override;
|
2001-03-06 05:27:50 +03:00
|
|
|
|
2016-04-21 07:28:32 +03:00
|
|
|
virtual void SetXULBounds(nsBoxLayoutState& aBoxLayoutState, const nsRect& aRect,
|
|
|
|
bool aRemoveOverflowArea = false) override;
|
2004-10-01 02:41:23 +04:00
|
|
|
|
2009-01-19 21:31:33 +03:00
|
|
|
friend nsIFrame* NS_NewTreeColFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext);
|
2001-03-06 05:27:50 +03:00
|
|
|
|
2001-02-05 05:45:55 +03:00
|
|
|
protected:
|
2002-03-29 05:46:01 +03:00
|
|
|
virtual ~nsTreeColFrame();
|
2001-02-05 05:45:55 +03:00
|
|
|
|
2006-12-29 16:20:23 +03:00
|
|
|
/**
|
2012-07-30 18:20:58 +04:00
|
|
|
* @return the tree box object of the tree this column belongs to, or nullptr.
|
2006-12-29 16:20:23 +03:00
|
|
|
*/
|
|
|
|
nsITreeBoxObject* GetTreeBoxObject();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Helper method that gets the nsITreeColumns object this column belongs to
|
|
|
|
* and calls InvalidateColumns() on it.
|
|
|
|
*/
|
2011-09-29 10:19:26 +04:00
|
|
|
void InvalidateColumns(bool aCanWalkFrameTree = true);
|
2004-05-14 17:58:00 +04:00
|
|
|
};
|