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