private void ButtonInCite_Snippet_Click(object sender, RoutedEventArgs e) { ButtonInCitePopup.Close(); { FeatureTrackingManager.Instance.UseFeature(Features.InCite_AddNewCitationSnippet_FromDocument); PDFDocumentCitingTools.CiteSnippetPDFDocument(false, pdf_renderer_control_stats.pdf_document); e.Handled = true; } }
void ButtonInCite_WordSeparate_Click(object sender, RoutedEventArgs e) { ButtonInCitePopup.Close(); { FeatureTrackingManager.Instance.UseFeature(Features.InCite_AddNewCitation_FromDocument); PDFDocumentCitingTools.CitePDFDocument(this.pdf_renderer_control_stats.pdf_document, true); e.Handled = true; } }
private void ButtonInCite_BibTeXKey_Click(object sender, RoutedEventArgs e) { ButtonInCitePopup.Close(); { if (!String.IsNullOrEmpty(pdf_renderer_control_stats.pdf_document.BibTexKey)) { string result = @"\cite{" + pdf_renderer_control_stats.pdf_document.BibTexKey + @"}"; ClipboardTools.SetText(result); StatusManager.Instance.UpdateStatus("CopyBibTeXKey", String.Format("Copied '{0}' to clipboard.", result)); } e.Handled = true; } }
private void ButtonInCite_Snippet_Click(object sender, RoutedEventArgs e) { ButtonInCitePopup.Close(); FeatureTrackingManager.Instance.UseFeature(Features.InCite_AddNewCitationSnippet_FromDocument); PDFDocument pdf_document = GetPDFDocument(); ASSERT.Test(pdf_document != null); if (pdf_document != null) { PDFDocumentCitingTools.CiteSnippetPDFDocument(false, pdf_document); } e.Handled = true; }