This file is indexed.

/usr/include/Wt/WTableCell is in libwt-dev 3.3.4+dfsg-6ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WTABLECELL_H_
#define WTABLECELL_H_

#include <Wt/WContainerWidget>

namespace Wt {

class WTable;
class WTableRow;

/*! \class WTableCell Wt/WTableCell Wt/WTableCell
 *  \brief A container widget that represents a cell in a table.
 *
 * A WTable provides a table of %WTableCell container widgets. A
 * %WTableCell may overspan more than one grid location in the table,
 * by specifying a \link setRowSpan() rowSpan \endlink and \link
 * setColumnSpan() columnSpan \endlink. Table cells at overspanned
 * positions are hidden. You cannot directly create a %WTableCell,
 * instead, they are created automatically by a table.
 *
 * A %WTableCell acts as any other WContainerWidget, except that both
 * the vertical and horizontal alignment of contents may be specified
 * by setContentAlignment().
 *
 * <h3>CSS</h3>
 *
 * The widget corresponds to the HTML <tt>&lt;td&gt;</tt> or
 * <tt>&lt;th&gt;</tt> tag, depending on whether the cell is a plain
 * cell or a header cell. The widget does not provide styling, and can
 * be styled using inline or external CSS as appropriate.
 *
 * \sa WTable
 */
class WT_API WTableCell : public WContainerWidget
{
public:
  /*! \brief Create a table cell.
   */
  WTableCell();

  /*! \brief Sets the row span.
   *
   * The row span indicates how many table rows this WTableCell
   * overspans. By default, a WTableCell has a row span of 1, only
   * occupying its own grid cell. A row span greater than 1 indicates
   * that table cells below this one are overspanned.
   */
  void setRowSpan(int rowSpan);
  
  /*! \brief Returns the row span.
   *
   * \sa setRowSpan(int rowSpan)
   */
  int rowSpan() const { return rowSpan_; }

  /*! \brief Sets the column span.
   *
   * The column span indicates how many table columns this WTableCell
   * overspans. By default, a WTableCell has a column span of 1, only
   * occupying its own grid cell. A column span greater than 1 indicates
   * that table cells to the right of this one are overspanned.
   */
  void setColumnSpan(int colSpan);

  /*! \brief Returns the column span.
   *
   * \sa setColumnSpan(int colSpan)
   */
  int columnSpan() const { return columnSpan_; }

  /*! \brief Returns the row index of this cell.
   */
  int row() const;

  /*! \brief Returns the column index of this cell.
   */
  int column() const { return column_; }

  /*! \brief Returns the table containing this cell.
   */
  WTable *table() const;

  /*! \brief Returns the table row containing this cell.
   */
  WTableRow *tableRow() const;

  /*! \brief Returns the table column containing this cell.
   */
  WTableColumn *tableColumn() const;

  virtual bool isVisible() const;

private:
  WTableCell(WTableRow *row, int column);

  WTableRow *row_;
  int  column_;
  int  rowSpan_, columnSpan_;
  bool spanChanged_;

  friend class WTableRow;
  friend class WTable;

protected:
  virtual void           updateDom(DomElement& element, bool all);
  virtual DomElementType domElementType() const;
  virtual void           propagateRenderOk(bool deep);
};

}

#endif // WTEXT_H_