1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/tables/nsITableCellLayout.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef nsITableCellLayout_h__ 1.9 +#define nsITableCellLayout_h__ 1.10 + 1.11 +#include "nsQueryFrame.h" 1.12 + 1.13 +/** 1.14 + * nsITableCellLayout 1.15 + * interface for layout objects that act like table cells. 1.16 + * 1.17 + * @author sclark 1.18 + */ 1.19 +class nsITableCellLayout 1.20 +{ 1.21 +public: 1.22 + 1.23 + NS_DECL_QUERYFRAME_TARGET(nsITableCellLayout) 1.24 + 1.25 + /** return the mapped cell's row and column indexes (starting at 0 for each) */ 1.26 + NS_IMETHOD GetCellIndexes(int32_t &aRowIndex, int32_t &aColIndex)=0; 1.27 + 1.28 + /** return the mapped cell's row index (starting at 0 for the first row) */ 1.29 + virtual nsresult GetRowIndex(int32_t &aRowIndex) const = 0; 1.30 + 1.31 + /** return the mapped cell's column index (starting at 0 for the first column) */ 1.32 + virtual nsresult GetColIndex(int32_t &aColIndex) const = 0; 1.33 +}; 1.34 + 1.35 +#endif 1.36 + 1.37 + 1.38 +