tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsITableCellLayout.h (997B)


      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 
      8 #include "nsQueryFrame.h"
      9 
     10 #define MAX_ROWSPAN 65534  // the cellmap can not handle more.
     11 #define MAX_COLSPAN \
     12  1000  // limit as IE and opera do.  If this ever changes,
     13        // change COL_SPAN_OFFSET/COL_SPAN_SHIFT accordingly.
     14 
     15 /**
     16 * nsITableCellLayout
     17 * interface for layout objects that act like table cells.
     18 * XXXbz This interface should really go away...
     19 *
     20 * @author  sclark
     21 */
     22 class nsITableCellLayout {
     23 public:
     24  NS_DECL_QUERYFRAME_TARGET(nsITableCellLayout)
     25 
     26  /** return the mapped cell's row and column indexes (starting at 0 for each)
     27   */
     28  NS_IMETHOD GetCellIndexes(int32_t& aRowIndex, int32_t& aColIndex) = 0;
     29 };
     30 
     31 #endif