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"));
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 = ???