diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 00:22:16 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-06-05 12:16:24 -0400 |
commit | 80fb93fe6c08f25a404ff2afa989fca246ac9efd (patch) | |
tree | aad95dd4c2b914065fa9050ca98a1098ccce2344 /vcl/inc | |
parent | 1227601d74ecddb06dcbe69e260aa32835900ed3 (diff) |
Intercept the window close event and end the preview when clicking 'x'.
This is to prevent the preview window from closing the whole document
when pressing the window frame's 'x' button. Instead, pressing the 'x'
will end the preview mode and bring it back to the normal Calc window.
Change-Id: If4d42928784e3e05bc6357d811a1954efb221f01
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/syswin.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/vcl/syswin.hxx b/vcl/inc/vcl/syswin.hxx index 7370280c53d1..4ca02c4b5c99 100644 --- a/vcl/inc/vcl/syswin.hxx +++ b/vcl/inc/vcl/syswin.hxx @@ -271,6 +271,9 @@ public: void SetScreenNumber( unsigned int nNewScreen ); void SetApplicationID( const rtl::OUString &rApplicationID ); + + void SetCloseHdl(const Link& rLink); + const Link& GetCloseHdl() const; }; #endif // _SV_SYSWIN_HXX |