bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svx / sdrpagewindow.hxx
blobb95daf0b5afe399a9f49f10ad2a8cb203e499acd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVX_SDRPAGEWINDOW_HXX
21 #define INCLUDED_SVX_SDRPAGEWINDOW_HXX
23 #include <basegfx/range/b2irectangle.hxx>
24 #include <svx/svdtypes.hxx>
25 #include <svx/svxdllapi.h>
26 #include <memory>
28 namespace com::sun::star::awt { class XControlContainer; }
29 namespace com::sun::star::uno { template <class interface_type> class Reference; }
30 namespace rtl { template <class reference_type> class Reference; }
31 namespace sdr { namespace overlay { class OverlayManager; } }
32 namespace vcl { class Region; }
34 namespace sdr
36 namespace contact
38 class ObjectContact;
39 class ViewObjectContactRedirector;
43 namespace basegfx { class B2DRange; }
45 class SdrPaintWindow;
46 class SdrPageView;
48 class SVX_DLLPUBLIC SdrPageWindow
50 struct Impl;
52 std::unique_ptr<Impl> mpImpl;
54 SdrPageWindow( const SdrPageWindow& ) = delete;
55 SdrPageWindow& operator= ( const SdrPageWindow& ) = delete;
57 public:
58 SdrPageWindow(SdrPageView& rNewPageView, SdrPaintWindow& rPaintWindow);
59 ~SdrPageWindow();
61 // data read accesses
62 SdrPageView& GetPageView() const;
63 SdrPaintWindow& GetPaintWindow() const;
64 const SdrPaintWindow* GetOriginalPaintWindow() const;
65 css::uno::Reference<css::awt::XControlContainer> const & GetControlContainer( bool _bCreateIfNecessary = true ) const;
67 // OVERLAYMANAGER
68 rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const;
70 // #i72752# allow patcing SdrPaintWindow from SdrPageView::DrawLayer if needed
71 void patchPaintWindow(SdrPaintWindow& rPaintWindow);
72 void unpatchPaintWindow();
74 // the repaint method. For migration from pPaintProc, use one more parameter
75 void PrePaint();
76 void PrepareRedraw(const vcl::Region& rReg);
77 void RedrawAll( sdr::contact::ViewObjectContactRedirector* pRedirector );
78 void RedrawLayer( const SdrLayerID* pId, sdr::contact::ViewObjectContactRedirector* pRedirector, basegfx::B2IRectangle const*);
80 // Invalidate call, used from ObjectContact(OfPageView) in InvalidatePartOfView(...)
81 void InvalidatePageWindow(const basegfx::B2DRange& rRange);
83 // #110094# ObjectContact section
84 const sdr::contact::ObjectContact& GetObjectContact() const;
85 sdr::contact::ObjectContact& GetObjectContact();
86 /// determines whether there already exists an ObjectContact
87 bool HasObjectContact() const;
89 // #i26631#
90 void ResetObjectContact();
92 /** sets all elements in the view which support a design and a alive mode into the given mode
94 void SetDesignMode( bool _bDesignMode ) const;
97 #endif // INCLUDED_SVX_SDRPAGEWINDOW_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */