michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsTreeBoxObject_h___ michael@0: #define nsTreeBoxObject_h___ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsBoxObject.h" michael@0: #include "nsITreeView.h" michael@0: #include "nsITreeBoxObject.h" michael@0: michael@0: class nsTreeBodyFrame; michael@0: michael@0: class nsTreeBoxObject : public nsITreeBoxObject, public nsBoxObject michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS_INHERITED michael@0: NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsTreeBoxObject, nsBoxObject) michael@0: NS_DECL_NSITREEBOXOBJECT michael@0: michael@0: nsTreeBoxObject(); michael@0: ~nsTreeBoxObject(); michael@0: michael@0: nsTreeBodyFrame* GetTreeBody(bool aFlushLayout = false); michael@0: nsTreeBodyFrame* GetCachedTreeBody() { return mTreeBody; } michael@0: michael@0: //NS_PIBOXOBJECT interfaces michael@0: virtual void Clear() MOZ_OVERRIDE; michael@0: virtual void ClearCachedValues() MOZ_OVERRIDE; michael@0: michael@0: protected: michael@0: nsTreeBodyFrame* mTreeBody; michael@0: nsCOMPtr mView; michael@0: }; michael@0: michael@0: #endif