From 80fb93fe6c08f25a404ff2afa989fca246ac9efd Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 5 Jun 2012 00:22:16 -0400 Subject: 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 --- vcl/inc/vcl/syswin.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl/inc') 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 -- cgit