window_->Print(settings.silent, settings.print_background);
}
+void Window::PrintToPDF() {
+ window_->PrintToPDF();
+}
+
void Window::SetProgressBar(double progress) {
window_->SetProgressBar(progress);
}
.SetMethod("isWebViewFocused", &Window::IsWebViewFocused)
.SetMethod("capturePage", &Window::CapturePage)
.SetMethod("print", &Window::Print)
+ .SetMethod("printToPDF", &Window::PrintToPDF)
.SetMethod("setProgressBar", &Window::SetProgressBar)
.SetMethod("setOverlayIcon", &Window::SetOverlayIcon)
.SetMethod("_setMenu", &Window::SetMenu)
bool IsDocumentEdited();
void CapturePage(mate::Arguments* args);
void Print(mate::Arguments* args);
+ void PrintToPDF();
void SetProgressBar(double progress);
void SetOverlayIcon(const gfx::Image& overlay,
const std::string& description);
// Print current page.
virtual void Print(bool silent, bool print_background);
+ // Print current page as PDF.
+ virtual void PrintToPDF();
+
// Show popup dictionary.
virtual void ShowDefinitionForSelection();