diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-02-14 16:45:38 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-02-15 21:29:49 +0400 |
commit | ca26fcafad15b1351e830ee28faef4b90b07ea22 (patch) | |
tree | 7c87b05599a69521b6ec8661771e139a0b3c1c88 /AppDelegate.cs | |
parent | 7eed46755720bfbc7028a4f7aec624a58c8b0b8c (diff) |
[macdoc] Delegate printing to the current document and correctly limit it to the webview
Diffstat (limited to 'AppDelegate.cs')
-rw-r--r-- | AppDelegate.cs | 5 |
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); + } } } |