Show total number of results for google driver too. Helps to know if my query resulte...
[beagle.git] / search / Tiles / Spreadsheet.cs
blob1d92f9d350fbe90b2936438d6aa72e6455a0ec64
1 using System;
2 using Mono.Posix;
4 namespace Search.Tiles {
6 public class SpreadsheetActivator : TileActivator {
8 public SpreadsheetActivator () : base ()
10 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.sun.xml.calc"));
11 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.sun.xml.calc.template"));
12 AddSupportedFlavor (new HitFlavor (null, "File", "application/excel"));
13 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.ms-excel"));
14 AddSupportedFlavor (new HitFlavor (null, "File", "application/x-excel"));
15 AddSupportedFlavor (new HitFlavor (null, "File", "application/x-msexcel"));
16 AddSupportedFlavor (new HitFlavor (null, "File", "application/x-gnumeric"));
17 AddSupportedFlavor (new HitFlavor (null, "File", "text/spreadsheet"));
19 // OO 2.0 formats
20 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.oasis.opendocument.spreadsheet"));
21 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.oasis.opendocument.spreadsheet.template"));
24 public override Tile BuildTile (Beagle.Hit hit, Beagle.Query query)
26 return new Spreadsheet (hit, query);
30 public class Spreadsheet : TileFile {
32 public Spreadsheet (Beagle.Hit hit, Beagle.Query query) : base (hit, query)
34 Group = TileGroup.Documents;
36 // FIXME: Description = ???