This file is indexed.

/usr/include/Wt/Ext/DateField is in libwtext-dev 3.3.0-1build1.

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
// 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 EXT_DATEFIELD_H_
#define EXT_DATEFIELD_H_

#include <Wt/Ext/LineEdit>

namespace Wt {

  class WDate;

  namespace Ext {

/*! \class DateField Wt/Ext/DateField Wt/Ext/DateField
 *  \brief A form field for conveniently editing a date using a calendar popup.
 *
 * You can \link FormField::setValidator() set\endlink a
 * WDateValidator to specify in more detail the valid range, and the
 * client-side validation messages. When using a WDateValidator,
 * however, make sure to use the same \link
 * WDateValidator::setFormat() date format\endlink as the \link
 * setFormat() format\endlink used by the field.
 *
 * Here is a snapshot taken on 01/09/2007 (shown as today), and with
 * current value 12/09/2007 currently selected.
 * \image html ExtDateField-1.png "DateField"
 *
 * \sa Calendar, WDatePicker
 *
 * \ingroup ext
 */
class WT_EXT_API DateField : public LineEdit
{
public:
  /*! \brief Create a new date field.
   */
  DateField(WContainerWidget *parent = 0);

  /*! \brief Set the date format.
   *
   * The syntax of the format string is the same as used by
   * WDate::toString(const WString&).
   *
   * The default value is 'dd/MM/yyyy'.
   *
   * \sa format()
   */
  void setFormat(const WString& format);

  /*! \brief Return the date format.
   *
   * \sa setFormat()
   */
  const WString& format() const { return format_; }

  /*! \brief Set the date value.
   */
  void setDate(const WDate& date);

  /*! \brief Return the date value.
   *
   * When the date could not be parsed, an invalid date is returned
   * (for which WDate::isValid() returns false).
   */
  WDate date() const;

protected:
  virtual void createConfig(std::ostream& config);

private:
  WString format_;

  virtual std::string createJS(DomElement *inContainer);
};

  }
}

#endif // EXT_DATEFIELD_H_