Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-02-14 16:45:38 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-02-15 21:29:49 +0400
commitca26fcafad15b1351e830ee28faef4b90b07ea22 (patch)
tree7c87b05599a69521b6ec8661771e139a0b3c1c88 /AppDelegate.cs
parent7eed46755720bfbc7028a4f7aec624a58c8b0b8c (diff)
[macdoc] Delegate printing to the current document and correctly limit it to the webview
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r--AppDelegate.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index fff1a9f..d06f2a5 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -121,6 +121,11 @@ namespace macdoc
}
IntPtr selOpenDocumentWithContentsOfURLDisplayError_ = new Selector ("openDocumentWithContentsOfURL:display:error:").Handle;
+
+ partial void HandlePrint (NSObject sender)
+ {
+ controller.CurrentDocument.PrintDocument (sender);
+ }
}
}