Line data Source code
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 : class SfxItemSet;
28 : class Bitmap;
29 : class MapMode;
30 :
31 : namespace sdr
32 : {
33 : namespace contact
34 : {
35 : class ViewContactOfMasterPageDescriptor : public ViewContact
36 : {
37 : protected:
38 : // the owner of this ViewContact. Set from constructor and not
39 : // to be changed in any way.
40 : sdr::MasterPageDescriptor& mrMasterPageDescriptor;
41 :
42 : // Create a Object-Specific ViewObjectContact
43 : virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) SAL_OVERRIDE;
44 :
45 : // This method is responsible for creating the graphical visualisation data
46 : virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const SAL_OVERRIDE;
47 :
48 : public:
49 : // basic constructor
50 : explicit ViewContactOfMasterPageDescriptor(sdr::MasterPageDescriptor& rDescriptor);
51 :
52 : // The destructor.
53 : virtual ~ViewContactOfMasterPageDescriptor();
54 :
55 : // access to MasterPageDescriptor
56 3267 : sdr::MasterPageDescriptor& GetMasterPageDescriptor() const
57 : {
58 3267 : return mrMasterPageDescriptor;
59 : }
60 :
61 : // Access to possible sub-hierarchy and parent
62 : virtual sal_uInt32 GetObjectCount() const SAL_OVERRIDE;
63 : virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const SAL_OVERRIDE;
64 : virtual ViewContact* GetParentContact() const SAL_OVERRIDE;
65 : };
66 : } // end of namespace contact
67 : } // end of namespace sdr
68 :
69 : #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFMASTERPAGEDESCRIPTOR_HXX
70 :
71 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|