Show total number of results for google driver too. Helps to know if my query resulte...
[beagle.git] / search / Tiles / Presentation.cs
blob65c551b2e4620b8b4f0404af6e3a91e10d43f321
1 using System;
2 using Mono.Unix;
4 namespace Search.Tiles {
6 public class PresentationActivator : TileActivator {
8 public PresentationActivator () : base ()
10 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.sun.xml.impress.template"));
11 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.sun.xml.impress"));
12 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.ms-powerpoint"));
14 // OO 2.0 formats
15 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.oasis.opendocument.presentation"));
16 AddSupportedFlavor (new HitFlavor (null, "File", "application/vnd.oasis.opendocument.presentation.template"));
19 public override Tile BuildTile (Beagle.Hit hit, Beagle.Query query)
21 return new Presentation (hit, query);
25 public class Presentation : TileFile {
27 public Presentation (Beagle.Hit hit, Beagle.Query query) : base (hit, query)
29 Group = TileGroup.Documents;
31 if (Hit ["fixme:slide-count"] != null) {
32 int count = Int32.Parse (Hit ["fixme:slide-count"]);
33 Description = String.Format (Catalog.GetPluralString ("{0} slide", "{0} slides", count), count);