nsITableCellLayout.h 981 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsITableCellLayout_h__
  6. #define nsITableCellLayout_h__
  7. #include "nsQueryFrame.h"
  8. #define MAX_ROWSPAN 65534 // the cellmap can not handle more.
  9. #define MAX_COLSPAN 1000 // limit as IE and opera do. If this ever changes,
  10. // change COL_SPAN_OFFSET/COL_SPAN_SHIFT accordingly.
  11. /**
  12. * nsITableCellLayout
  13. * interface for layout objects that act like table cells.
  14. * XXX: This interface should really go away...
  15. *
  16. * @author sclark
  17. */
  18. class nsITableCellLayout
  19. {
  20. public:
  21. NS_DECL_QUERYFRAME_TARGET(nsITableCellLayout)
  22. /** return the mapped cell's row and column indexes (starting at 0 for each) */
  23. NS_IMETHOD GetCellIndexes(int32_t &aRowIndex, int32_t &aColIndex)=0;
  24. };
  25. #endif