/src/libreoffice/svx/inc/sdr/contact/viewcontactofmasterpagedescriptor.hxx
Line | Count | Source |
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_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX |
21 | | #define INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX |
22 | | |
23 | | #include <sal/types.h> |
24 | | #include <svx/sdr/contact/viewcontact.hxx> |
25 | | #include <svx/sdrmasterpagedescriptor.hxx> |
26 | | |
27 | | namespace sdr::contact |
28 | | { |
29 | | class ViewContactOfMasterPageDescriptor final : public ViewContact |
30 | | { |
31 | | // the owner of this ViewContact. Set from constructor and not |
32 | | // to be changed in any way. |
33 | | sdr::MasterPageDescriptor& mrMasterPageDescriptor; |
34 | | |
35 | | // Create an Object-Specific ViewObjectContact |
36 | | virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) override; |
37 | | |
38 | | // This method is responsible for creating the graphical visualisation data |
39 | | virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const override; |
40 | | |
41 | | public: |
42 | | // basic constructor |
43 | | explicit ViewContactOfMasterPageDescriptor(sdr::MasterPageDescriptor& rDescriptor); |
44 | | |
45 | | // The destructor. |
46 | | virtual ~ViewContactOfMasterPageDescriptor() override; |
47 | | |
48 | | // access to MasterPageDescriptor |
49 | | sdr::MasterPageDescriptor& GetMasterPageDescriptor() const |
50 | 0 | { |
51 | 0 | return mrMasterPageDescriptor; |
52 | 0 | } |
53 | | |
54 | | // Access to possible sub-hierarchy and parent |
55 | | virtual sal_uInt32 GetObjectCount() const override; |
56 | | virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const override; |
57 | | virtual ViewContact* GetParentContact() const override; |
58 | | }; |
59 | | |
60 | | } // end of namespace sdr::contact |
61 | | |
62 | | #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX |
63 | | |
64 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |