1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX
21 #define INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX
23 #include <sal/types.h>
24 #include <svx/sdr/contact/viewcontact.hxx>
25 #include <svx/sdrmasterpagedescriptor.hxx>
31 namespace sdr::contact
33 class ViewContactOfMasterPageDescriptor final
: public ViewContact
35 // the owner of this ViewContact. Set from constructor and not
36 // to be changed in any way.
37 sdr::MasterPageDescriptor
& mrMasterPageDescriptor
;
39 // Create an Object-Specific ViewObjectContact
40 virtual ViewObjectContact
& CreateObjectSpecificViewObjectContact(ObjectContact
& rObjectContact
) override
;
42 // This method is responsible for creating the graphical visualisation data
43 virtual void createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor
& rVisitor
) const override
;
47 explicit ViewContactOfMasterPageDescriptor(sdr::MasterPageDescriptor
& rDescriptor
);
50 virtual ~ViewContactOfMasterPageDescriptor() override
;
52 // access to MasterPageDescriptor
53 sdr::MasterPageDescriptor
& GetMasterPageDescriptor() const
55 return mrMasterPageDescriptor
;
58 // Access to possible sub-hierarchy and parent
59 virtual sal_uInt32
GetObjectCount() const override
;
60 virtual ViewContact
& GetViewContact(sal_uInt32 nIndex
) const override
;
61 virtual ViewContact
* GetParentContact() const override
;
64 } // end of namespace sdr::contact
66 #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */