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: #ifndef nsITableCellLayout_h__ michael@0: #define nsITableCellLayout_h__ michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: /** michael@0: * nsITableCellLayout michael@0: * interface for layout objects that act like table cells. michael@0: * michael@0: * @author sclark michael@0: */ michael@0: class nsITableCellLayout michael@0: { michael@0: public: michael@0: michael@0: NS_DECL_QUERYFRAME_TARGET(nsITableCellLayout) michael@0: michael@0: /** return the mapped cell's row and column indexes (starting at 0 for each) */ michael@0: NS_IMETHOD GetCellIndexes(int32_t &aRowIndex, int32_t &aColIndex)=0; michael@0: michael@0: /** return the mapped cell's row index (starting at 0 for the first row) */ michael@0: virtual nsresult GetRowIndex(int32_t &aRowIndex) const = 0; michael@0: michael@0: /** return the mapped cell's column index (starting at 0 for the first column) */ michael@0: virtual nsresult GetColIndex(int32_t &aColIndex) const = 0; michael@0: }; michael@0: michael@0: #endif michael@0: michael@0: michael@0: