LibreOffice Module sw (master)  1
DocumentDrawModelManager.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_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
22 
24 #include <svx/svdtypes.hxx>
25 #include <memory>
26 #include <drawdoc.hxx>
27 
28 class SdrPageView;
29 class SwDoc;
30 
31 namespace sw
32 {
33 
35 {
36 public:
37 
38  DocumentDrawModelManager( SwDoc& i_rSwdoc );
39 
40  void InitDrawModel();
41  void ReleaseDrawModel();
42  void DrawNotifyUndoHdl();
43 
44  //IDocumentDrawModelAccess
45  virtual const SwDrawModel* GetDrawModel() const override;
46  virtual SwDrawModel* GetDrawModel() override;
47  virtual SwDrawModel* MakeDrawModel_() override;
48  virtual SwDrawModel* GetOrCreateDrawModel() override;
49  virtual SdrLayerID GetHeavenId() const override;
50  virtual SdrLayerID GetHellId() const override;
51  virtual SdrLayerID GetControlsId() const override;
52  virtual SdrLayerID GetInvisibleHeavenId() const override;
53  virtual SdrLayerID GetInvisibleHellId() const override;
54  virtual SdrLayerID GetInvisibleControlsId() const override;
55 
56  virtual void NotifyInvisibleLayers( SdrPageView& _rSdrPageView ) override;
57 
58  virtual bool IsVisibleLayerId( SdrLayerID _nLayerId ) const override;
59 
60  virtual SdrLayerID GetInvisibleLayerIdByVisibleOne( SdrLayerID _nVisibleLayerId ) override;
61 
62  virtual bool Search(const SwPaM& rPaM, const SvxSearchItem& rSearchItem) override;
63 
64 private:
65 
68 
70 
71  std::unique_ptr<SwDrawModel> mpDrawModel;
72 
84 };
85 
86 }
87 
88 #endif
89 
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool IsVisibleLayerId(SdrLayerID _nLayerId) const override
method to determine, if a layer ID belongs to the visible ones.
Definition: doc.hxx:185
virtual void NotifyInvisibleLayers(SdrPageView &_rSdrPageView) override
method to notify drawing page view about the invisible layers
Dialog to specify the properties of date form field.
virtual SwDrawModel * GetOrCreateDrawModel() override
virtual SdrLayerID GetInvisibleHeavenId() const override
std::unique_ptr< SwDrawModel > mpDrawModel
virtual SdrLayerID GetHellId() const override
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
virtual SdrLayerID GetControlsId() const override
virtual SdrLayerID GetInvisibleHellId() const override
SdrLayerID mnHeaven
Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the ver...
virtual const SwDrawModel * GetDrawModel() const override
Draw Model and id accessors.
virtual SdrLayerID GetInvisibleLayerIdByVisibleOne(SdrLayerID _nVisibleLayerId) override
method to determine, if the corresponding invisible layer ID for a visible one.
virtual bool Search(const SwPaM &rPaM, const SvxSearchItem &rSearchItem) override
Searches text in shapes anchored inside rPaM.
virtual SwDrawModel * MakeDrawModel_() override
virtual SdrLayerID GetHeavenId() const override
DocumentDrawModelManager & operator=(DocumentDrawModelManager const &)=delete
virtual SdrLayerID GetInvisibleControlsId() const override