This file is indexed.

/usr/include/Wt/WCssTheme 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2012 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WT_WCSS_THEME_H
#define WT_WCSS_THEME_H

#include <Wt/WTheme>

namespace Wt {

/*! \class WCssTheme Wt/WCssTheme Wt/WCssTheme
 *
 * CSS-based theme support. This implements the classic %Wt themes, which
 * were available before theme support was customized with the addition of
 * the WTheme class.
 *
 * The following table shows which style classes are applied by this theme.
 *
 * <table>
 *  <tr>
 *   <td rowspan="12">WAbstractItemView *</td>
 *   <td>.Wt-itemview</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-headerdiv</td>
 *   <td>the header container</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-header</td>
 *   <td>the header</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-header .Wt-label</td>
 *   <td>a header label</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-header .Wt-label</td>
 *   <td>a header label</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-tv-rh</td>
 *   <td>resize handle</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-tv-sh</td>
 *   <td>sort handle</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-tv-sh-none</td>
 *   <td>sort handle, unsorted</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-tv-sh-down</td>
 *   <td>sort handle, descending sort</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-tv-sh-up</td>
 *   <td>sort handle, ascending sort</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-selected</td>
 *   <td>selected item (or row)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-itemview .Wt-spacer</td>
 *   <td>spacer (briefly visible during scrolling)</td>
 *  </tr>
 *  <tr>
 *   <td>WAbstractSpinBox</td>
 *   <td>.Wt-spinbox</td>
 *   <td>(for the HTML4 implementation)</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="11">WCalendar *</td>
 *   <td>.Wt-cal</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal table.d1</td>
 *   <td>the table (single letter days)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal table.d3</td>
 *   <td>the table (three letter days)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal table.dlong</td>
 *   <td>the table (ful day names)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal th.caption</td>
 *   <td>a caption cell (containing month/year navigation)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal th</td>
 *   <td>week day header cell</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal td</td>
 *   <td>day cell</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal-oom</td>
 *   <td>out-of-month day</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal-oom</td>
 *   <td>out-of-range day (ray < bottom or day > top)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal-sel</td>
 *   <td>selected day</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-cal-now</td>
 *   <td>today</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="2">WDateEdit</td>
 *   <td>.Wt-dateedit</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-datepicker</td>
 *   <td>the popup</td>
 *  </tr>
 *  <tr>
 *   <td>WDatePicker</td>
 *   <td>.Wt-datepicker</td>
 *   <td>the popup</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="5">WDialog</td>
 *   <td>.Wt-dialog</td>
 *   <td>the dialog</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-dialog .closeicon</td>
 *   <td>the close icon in the titlebar</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-dialog .titlebar</td>
 *   <td>the titlebar</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-dialog .body</td>
 *   <td>the dialog body</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-dialog .footer</td>
 *   <td>the dialog footer</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="8">WMenuItem</td>
 *   <td>.item</td>
 *   <td>an unselected item</td>
 *  </tr>
 *  <tr>
 *   <td>.itemselected</td>
 *   <td>a selected item</td>
 *  </tr>
 *  <tr>
 *   <td>.item.Wt-closable</td>
 *   <td>a closable item </td>
 *  </tr>
 *  <tr>
 *   <td>.item.Wt-separator</td>
 *   <td>a separator item</td>
 *  </tr>
 *  <tr>
 *   <td>.item.Wt-sectheader</td>
 *   <td>a section header item</td>
 *  </tr>
 *  <tr>
 *   <td>.item .Wt-icon</td>
 *   <td>the item's icon</td>
 *  </tr>
 *  <tr>
 *   <td>.item .Wt-chkbox</td>
 *   <td>the item's checkbox</td>
 *  </tr>
 *  <tr>
 *   <td>.item .closeicon</td>
 *   <td>the item's close icon</td>
 *  </tr>
 *  <tr>
 *   <td>WMessageBox</td>
 *   <td>.Wt-dialog</td>
 *   <td>see supra (%WDialog)</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="3">WPanel</td>
 *   <td>.Wt-panel</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-panel .titlebar</td>
 *   <td>the titlebar</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-panel .body</td>
 *   <td>the body</td>
 *  </tr>
 *  <tr>
 *   <td>WPopupMenu</td>
 *   <td>.Wt-popupmenu</td>
 *   <td>the popup menu; for the items, see supra (%WMenuItem)</td>
 *  </tr>
 *  <tr>
 *   <td>WPopupWidget</td>
 *   <td>.Wt-outset</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td rowspan="3">WProgressBar</td>
 *   <td>.Wt-progressbar</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-progressbar .Wt-pgb-bar</td>
 *   <td>the bar</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-progressbar .Wt-pgb-label</td>
 *   <td>the value label</td>
 *  </tr>
 *  <tr>
 *   <td>WPushButton</td>
 *   <td>.Wt-btn</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td rowspan="6">WSlider *</td>
 *   <td>.Wt-slider-h <i>or</i> .Wt-slider-v</td>
 *   <td>for horizontal or vertical slider</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-slider-[hv] .Wt-slider-bg</td>
 *   <td>background element</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-slider-[hv] .fill</td>
 *   <td>fill to the current value</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-slider-[hv] .handle</td>
 *   <td>the slider handle</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-slider-[hv] .Wt-w</td>
 *   <td>an additional element for styling</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-slider-[hv] .Wt-e</td>
 *   <td>an additional element for styling</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="3">WSuggestionPopup</td>
 *   <td>.Wt-suggest</td>
 *   <td></td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-suggest li</td>
 *   <td>an item</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-suggest .active</td>
 *   <td>an active item</td>
 *  </tr>
 *  <tr>
 *   <td>WTabWidget</td>
 *   <td>.Wt-tabs</td>
 *   <td>the header, which is a WMenu</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="3">WTableView *</td>
 *   <td>.Wt-tableview</td>
 *   <td>see supra (%WAbstractItemView)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tableview .Wt-contents</td>
 *   <td>the contents area</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tableview .Wt-contents .Wt-tv-c</td>
 *   <td>a contents cell</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="10">WTreeNode *</td>
 *   <td>.Wt-tree</td>
 *   <td>a tree node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree.Wt-trunk</td>
 *   <td>a trunk node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree.Wt-end</td>
 *   <td>an end node (last node within parent)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree ul</td>
 *   <td>children list</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-ctrl</td>
 *   <td>collapse/expand control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-ctrl.expand</td>
 *   <td>expand control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-ctrl.collapse</td>
 *   <td>collapse control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-ctrl.noexpand</td>
 *   <td>an item that cannot be expanded</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-selected</td>
 *   <td>a selected node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-tree .Wt-label</td>
 *   <td>the label</td>
 *  </tr>
 *  <tr>
 *   <td rowspan="10">WTreeView *</td>
 *   <td>.Wt-treeview</td>
 *   <td>see supra (%WAbstractItemView)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview ul</td>
 *   <td>a node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview ul.Wt-tv-root</td>
 *   <td>the root node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-tv-row</td>
 *   <td>a row of additional cells</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-trunk</td>
 *   <td>a trunk node</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-end</td>
 *   <td>an end node (last node within parent)</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-ctrl</td>
 *   <td>collapse/expand control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-ctrl.expand</td>
 *   <td>expand control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-ctrl.collapse</td>
 *   <td>collapse control</td>
 *  </tr>
 *  <tr>
 *   <td>.Wt-treeview .Wt-ctrl.noexpand</td>
 *   <td>an item that cannot be expanded</td>
 *  </tr>
 * </table>
 *
 * <tt>*</tt> CSS selectors for these widgets are currently still
 * hard-coded in the widget itself.
 *
 * \sa WApplication::setTheme()
 */
class WT_API WCssTheme : public WTheme
{
public:
  /*! \brief Constructor.
   *
   * Creates a classic %Wt theme. %Wt comes with two CSS themes: "polished" and
   * default. For the bootstrap theme, use WBootstrapTheme.
   */
  WCssTheme(const std::string& name, WObject *parent = 0);

  virtual ~WCssTheme();

  virtual std::string name() const;

  /*! \brief Returns the stylesheets.
   *
   * Returns wt.css, plus on IE wt_ie.css, plus on IE6 wt_ie6.css. The
   * style sheets are located in the theme directory in the resources
   * folder.
   */
  virtual std::vector<WCssStyleSheet> styleSheets() const;

  virtual void apply(WWidget *widget, WWidget *child, int widgetRole) const;
  virtual void apply(WWidget *widget, DomElement& element, int elementRole)
    const;

  /*! \brief Returns a generic CSS class name for a disabled element.
   *
   * The CSS class Wt-disabled is applied to disabled classes.
   */
  virtual std::string disabledClass() const;

  /*! \brief Returns a generic CSS class name for an active element.
   *
   * The CSS class Wt-selected is applied to active classes.
   */
  virtual std::string activeClass() const;

  virtual std::string utilityCssClass(int utilityCssClassRole) const;

  /*! \brief Returns whether the theme allows for an anchor to be styled
   *         as a button.
   *
   * Returns false.
   */
  virtual bool canStyleAnchorAsButton() const;

  virtual void applyValidationStyle(WWidget *widget,
				    const Wt::WValidator::Result& validation,
				    WFlags<ValidationStyleFlag> styles) const;

  virtual bool canBorderBoxElement(const DomElement& element) const;

private:
  std::string name_;
};

}

#endif // WT_WCSS_THEME_H