LCOV - code coverage report
Current view: top level - sdext/source/presenter - PresenterPaintManager.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 1 0.0 %
Date: 2014-04-11 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPAINTMANAGER_HXX
      21             : #define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERPAINTMANAGER_HXX
      22             : 
      23             : #include <com/sun/star/awt/XWindow.hpp>
      24             : #include <com/sun/star/awt/XWindowPeer.hpp>
      25             : #include <com/sun/star/drawing/XPresenterHelper.hpp>
      26             : #include <rtl/ref.hxx>
      27             : #include <boost/function.hpp>
      28             : 
      29             : namespace sdext { namespace presenter {
      30             : 
      31             : class PresenterPaneContainer;
      32             : 
      33             : /** Synchronize painting of windows and canvases.  At the moment there is
      34             :     just some processing of invalidate calls.
      35             :     This could be extended to process incoming windowPaint() calls.
      36             : */
      37           0 : class PresenterPaintManager
      38             : {
      39             : public:
      40             :     /** Create paint manager with the window that is the top node in the
      41             :         local window hierarchy.
      42             :     */
      43             :     PresenterPaintManager (
      44             :         const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
      45             :         const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper,
      46             :         const rtl::Reference<PresenterPaneContainer>& rpPaneContainer);
      47             : 
      48             :     ::boost::function<void(const css::awt::Rectangle& rRepaintBox)>
      49             :         GetInvalidator (
      50             :             const css::uno::Reference<css::awt::XWindow>& rxWindow,
      51             :             const bool bSynchronous = false);
      52             : 
      53             :     /** Request a repaint of the whole window.
      54             :         @param rxWindow
      55             :             May be the parent window or one of its descendents.
      56             :     */
      57             :     void Invalidate (
      58             :         const css::uno::Reference<css::awt::XWindow>& rxWindow,
      59             :         const bool bSynchronous = false);
      60             :     void Invalidate (
      61             :         const css::uno::Reference<css::awt::XWindow>& rxWindow,
      62             :         const sal_Int16 nInvalidateFlags);
      63             : 
      64             :     /** Request a repaint of a part of a window.
      65             :         @param rxWindow
      66             :             May be the parent window or one of its descendents.
      67             :     */
      68             :     void Invalidate (
      69             :         const css::uno::Reference<css::awt::XWindow>& rxWindow,
      70             :         const css::awt::Rectangle& rRepaintBox,
      71             :         const bool bSynchronous = false);
      72             :     void Invalidate (
      73             :         const css::uno::Reference<css::awt::XWindow>& rxWindow,
      74             :         const css::awt::Rectangle& rRepaintBox,
      75             :         const sal_Int16 nInvalidateFlags);
      76             : 
      77             : private:
      78             :     css::uno::Reference<css::awt::XWindow> mxParentWindow;
      79             :     css::uno::Reference<css::awt::XWindowPeer> mxParentWindowPeer;
      80             :     css::uno::Reference<css::drawing::XPresenterHelper> mxPresenterHelper;
      81             :     ::rtl::Reference<PresenterPaneContainer> mpPaneContainer;
      82             : };
      83             : 
      84             : } }
      85             : 
      86             : #endif
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10