1*c45d927aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c45d927aSAndrew Rist * distributed with this work for additional information 6*c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9*c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10*c45d927aSAndrew Rist * 11*c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c45d927aSAndrew Rist * 13*c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c45d927aSAndrew Rist * software distributed under the License is distributed on an 15*c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17*c45d927aSAndrew Rist * specific language governing permissions and limitations 18*c45d927aSAndrew Rist * under the License. 19*c45d927aSAndrew Rist * 20*c45d927aSAndrew Rist *************************************************************/ 21*c45d927aSAndrew Rist 22*c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SD_FRAMEWORK_FULL_SCREEN_PANE_HXX 25cdf0e10cSrcweir #define SD_FRAMEWORK_FULL_SCREEN_PANE_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "FrameWindowPane.hxx" 28cdf0e10cSrcweir #include <com/sun/star/frame/XLayoutManager.hpp> 29cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp> 30cdf0e10cSrcweir #include <vcl/vclevent.hxx> 31cdf0e10cSrcweir #include <boost/scoped_ptr.hpp> 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace css = ::com::sun::star; 34cdf0e10cSrcweir 35cdf0e10cSrcweir class WorkWindow; 36cdf0e10cSrcweir 37cdf0e10cSrcweir namespace sd { class ViewShellBase; } 38cdf0e10cSrcweir 39cdf0e10cSrcweir namespace sd { namespace framework { 40cdf0e10cSrcweir 41cdf0e10cSrcweir /** The full screen pane creates a pane that covers the complete application 42cdf0e10cSrcweir window, i.e. that hides menu bar, tool bars, status bars. 43cdf0e10cSrcweir */ 44cdf0e10cSrcweir class FullScreenPane 45cdf0e10cSrcweir : public FrameWindowPane 46cdf0e10cSrcweir { 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir /** Create a new full screen pane. 49cdf0e10cSrcweir @param rxComponentContext 50cdf0e10cSrcweir Used for creating a new canvas. 51cdf0e10cSrcweir @param rxPaneId 52cdf0e10cSrcweir The resource id of the new pane. 53cdf0e10cSrcweir @param pViewShellWindow 54cdf0e10cSrcweir The top-level parent of this window is used to obtain title and 55cdf0e10cSrcweir icon for the new top-level window. 56cdf0e10cSrcweir */ 57cdf0e10cSrcweir FullScreenPane ( 58cdf0e10cSrcweir const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext, 59cdf0e10cSrcweir const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId, 60cdf0e10cSrcweir const ::Window* pViewShellWindow); 61cdf0e10cSrcweir virtual ~FullScreenPane (void) throw(); 62cdf0e10cSrcweir 63cdf0e10cSrcweir virtual void SAL_CALL disposing (void); 64cdf0e10cSrcweir 65cdf0e10cSrcweir //----- XPane ------------------------------------------------------------- 66cdf0e10cSrcweir 67cdf0e10cSrcweir virtual sal_Bool SAL_CALL isVisible (void) 68cdf0e10cSrcweir throw (cssu::RuntimeException); 69cdf0e10cSrcweir 70cdf0e10cSrcweir virtual void SAL_CALL setVisible (sal_Bool bIsVisible) 71cdf0e10cSrcweir throw (cssu::RuntimeException); 72cdf0e10cSrcweir 73cdf0e10cSrcweir virtual cssu::Reference<css::accessibility::XAccessible> SAL_CALL getAccessible (void) 74cdf0e10cSrcweir throw (cssu::RuntimeException); 75cdf0e10cSrcweir 76cdf0e10cSrcweir virtual void SAL_CALL setAccessible ( 77cdf0e10cSrcweir const cssu::Reference<css::accessibility::XAccessible>& rxAccessible) 78cdf0e10cSrcweir throw (cssu::RuntimeException); 79cdf0e10cSrcweir 80cdf0e10cSrcweir 81cdf0e10cSrcweir //------------------------------------------------------------------------- 82cdf0e10cSrcweir 83cdf0e10cSrcweir DECL_LINK(WindowEventHandler, VclWindowEvent*); 84cdf0e10cSrcweir 85cdf0e10cSrcweir protected: 86cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference<com::sun::star::rendering::XCanvas> 87cdf0e10cSrcweir CreateCanvas (void) 88cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 89cdf0e10cSrcweir 90cdf0e10cSrcweir private: 91cdf0e10cSrcweir css::uno::Reference<css::uno::XComponentContext> mxComponentContext; 92cdf0e10cSrcweir ::boost::scoped_ptr<WorkWindow> mpWorkWindow; 93cdf0e10cSrcweir 94cdf0e10cSrcweir void ExtractArguments ( 95cdf0e10cSrcweir const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId, 96cdf0e10cSrcweir sal_Int32& rnScreenNumberReturnValue); 97cdf0e10cSrcweir }; 98cdf0e10cSrcweir 99cdf0e10cSrcweir } } // end of namespace sd::framework 100cdf0e10cSrcweir 101cdf0e10cSrcweir #endif 102