LibreOffice Module sdext (master)  1
PresenterPaintManager.hxx
Go to the documentation of this file.
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 
28 #include <functional>
29 
31 
32 namespace sdext { namespace presenter {
33 
34 class PresenterPaneContainer;
35 
41 {
42 public:
47  const css::uno::Reference<css::awt::XWindow>& rxParentWindow,
48  const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper,
49  const rtl::Reference<PresenterPaneContainer>& rpPaneContainer);
50 
51  ::std::function<void (const css::awt::Rectangle& rRepaintBox)>
53  const css::uno::Reference<css::awt::XWindow>& rxWindow);
54 
59  void Invalidate (
60  const css::uno::Reference<css::awt::XWindow>& rxWindow);
61  void Invalidate (
62  const css::uno::Reference<css::awt::XWindow>& rxWindow,
63  const sal_Int16 nInvalidateFlags);
64 
69  void Invalidate (
70  const css::uno::Reference<css::awt::XWindow>& rxWindow,
71  const css::awt::Rectangle& rRepaintBox,
72  const bool bSynchronous = false);
73  void Invalidate (
74  const css::uno::Reference<css::awt::XWindow>& rxWindow,
75  const css::awt::Rectangle& rRepaintBox,
76  const sal_Int16 nInvalidateFlags);
77 
78 private:
79  css::uno::Reference<css::awt::XWindow> mxParentWindow;
80  css::uno::Reference<css::awt::XWindowPeer> mxParentWindowPeer;
81  css::uno::Reference<css::drawing::XPresenterHelper> mxPresenterHelper;
83 };
84 
85 } }
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::rtl::Reference< PresenterPaneContainer > mpPaneContainer
Synchronize painting of windows and canvases.
css::uno::Reference< css::awt::XWindowPeer > mxParentWindowPeer
void Invalidate(const css::uno::Reference< css::awt::XWindow > &rxWindow)
Request a repaint of the whole window.
css::uno::Reference< css::awt::XWindow > mxParentWindow
::std::function< void(const css::awt::Rectangle &rRepaintBox)> GetInvalidator(const css::uno::Reference< css::awt::XWindow > &rxWindow)
css::uno::Reference< css::drawing::XPresenterHelper > mxPresenterHelper
PresenterPaintManager(const css::uno::Reference< css::awt::XWindow > &rxParentWindow, const css::uno::Reference< css::drawing::XPresenterHelper > &rxPresenterHelper, const rtl::Reference< PresenterPaneContainer > &rpPaneContainer)
Create paint manager with the window that is the top node in the local window hierarchy.