LibreOffice Module svx (master) 1
viewcontactofsdrpage.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_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDRPAGE_HXX
21#define INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDRPAGE_HXX
22
23#include <sal/types.h>
25
26class SdrPage;
27
28namespace sdr::contact {
29
30class ViewContactOfSdrPage;
31
33{
35
36public:
37 explicit ViewContactOfPageSubObject(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
38 virtual ~ViewContactOfPageSubObject() override;
39
40 virtual ViewContact* GetParentContact() const override;
41 const SdrPage& getPage() const;
42};
43
45{
48
49public:
50 explicit ViewContactOfPageBackground(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
51 virtual ~ViewContactOfPageBackground() override;
52};
53
55{
58
59public:
60 explicit ViewContactOfPageShadow(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
61 virtual ~ViewContactOfPageShadow() override;
62};
63
65{
68
69public:
70 explicit ViewContactOfPageFill(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
71 virtual ~ViewContactOfPageFill() override;
72};
73
75{
78
79public:
80 explicit ViewContactOfMasterPage(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
81 virtual ~ViewContactOfMasterPage() override;
82};
83
85{
88
89public:
90 explicit ViewContactOfOuterPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
91 virtual ~ViewContactOfOuterPageBorder() override;
92};
93
95{
98
99public:
100 explicit ViewContactOfInnerPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
101 virtual ~ViewContactOfInnerPageBorder() override;
102};
103
112{
115
116public:
117 explicit ViewContactOfPageHierarchy(ViewContactOfSdrPage& rParentViewContactOfSdrPage);
118 virtual ~ViewContactOfPageHierarchy() override;
119
120 virtual sal_uInt32 GetObjectCount() const override;
121 virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const override;
122};
123
125{
126 bool mbFront : 1;
127
130
131public:
132 ViewContactOfGrid(ViewContactOfSdrPage& rParentViewContactOfSdrPage, bool bFront);
133 virtual ~ViewContactOfGrid() override;
134
135 bool getFront() const { return mbFront; }
136};
137
139{
140 bool mbFront : 1;
141
144
145public:
146 ViewContactOfHelplines(ViewContactOfSdrPage& rParentViewContactOfSdrPage, bool bFront);
147 virtual ~ViewContactOfHelplines() override;
148
149 bool getFront() const { return mbFront; }
150};
151
153{
154 // the owner of this ViewContact. Set from constructor and not
155 // to be changed in any way.
157
158 // helper viewContacts to build a clear paint hierarchy
170
171 // Create an Object-Specific ViewObjectContact, set ViewContact and
172 // ObjectContact. Always needs to return something. Default is to create
173 // a standard ViewObjectContact containing the given ObjectContact and *this
175
176public:
177 // access to SdrObject
179 {
180 return mrPage;
181 }
182
183 // basic constructor, used from SdrPage.
184 explicit ViewContactOfSdrPage(SdrPage& rObj);
185 virtual ~ViewContactOfSdrPage() override;
186
187 // Access to possible sub-hierarchy
188 virtual sal_uInt32 GetObjectCount() const override;
189 virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const override;
190
191 // React on changes of the object of this ViewContact
192 virtual void ActionChanged() override;
193
194private:
195 // This method is responsible for creating the graphical visualisation data
196 // ONLY based on model data
198};
199
200}
201
202#endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDRPAGE_HXX
203
204/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:379
ViewContactOfGrid(ViewContactOfSdrPage &rParentViewContactOfSdrPage, bool bFront)
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfHelplines(ViewContactOfSdrPage &rParentViewContactOfSdrPage, bool bFront)
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
ViewContactOfInnerPageBorder(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfMasterPage(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfOuterPageBorder(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
ViewContactOfPageBackground(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
ViewContactOfPageFill(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
This view contact corresponds with all SdrObject instances in a single SdrPage.
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
virtual sal_uInt32 GetObjectCount() const override
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
ViewContactOfPageHierarchy(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
ViewContactOfPageShadow(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfPageSubObject(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ViewContact * GetParentContact() const override
ViewContactOfMasterPage maViewContactOfMasterPage
ViewContactOfPageBackground maViewContactOfPageBackground
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
ViewContactOfInnerPageBorder maViewContactOfInnerPageBorder
virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const override
ViewContactOfPageShadow maViewContactOfPageShadow
ViewContactOfPageHierarchy maViewContactOfPageHierarchy
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfOuterPageBorder maViewContactOfOuterPageBorder
ViewContactOfHelplines maViewContactOfHelplinesFront
ViewContactOfHelplines maViewContactOfHelplinesBack
virtual sal_uInt32 GetObjectCount() const override
sal_Int32 nIndex