Beispiel #1
0
 public override OpenWOPIDocument ViewDocument(string source, OpenWOPIAccessToken accessToken, bool loadMetadata = false)
 {
     VisioDocument doc = new VisioDocument(source, accessToken, OpenWOPIProofKey.ReadFromConfiguration(OpenWOPIClientConfiguration.Current));
     if (loadMetadata)
         doc.CheckFileInfo();
     doc.GetFile();
     string t = doc.ExtractThumbnail();
     doc.ConvertEMFToPng(t, 200);
     return doc;
 }
Beispiel #2
0
        public override OpenWOPIDocument ViewDocument(string source, OpenWOPIAccessToken accessToken, bool loadMetadata = false)
        {
            OpenWOPITextDocument doc = new OpenWOPITextDocument(source, accessToken, OpenWOPIProofKey.ReadFromConfiguration(OpenWOPIClientConfiguration.Current));

            if (loadMetadata)
            {
                doc.CheckFileInfo();
            }
            doc.GetFile();
            return(doc);
        }
Beispiel #3
0
 public ActionResult Preview(OpenWOPIAccessToken accessToken)
 {
     return(View(new GpxModel().ViewDocument(SourceFile, accessToken, true)));
 }
        public ActionResult Edit(OpenWOPIAccessToken accessToken)
        {
            TextAppModel model = new TextAppModel();

            return(View(model.ViewDocument(SourceFile, accessToken, true)));
        }
Beispiel #5
0
 public GpxDocument(string source, OpenWOPIAccessToken accessToken, OpenWOPIProofKey proofKey) : base(source, accessToken, proofKey)
 {
 }
Beispiel #6
0
 public abstract OpenWOPIDocument ViewDocument(string source, OpenWOPIAccessToken accessToken, bool loadMetadata = false);