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_VIEWOBJECTCONTACTOFSDRPAGE_HXX
21 #define INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX
23 #include <svx/sdr/contact/viewobjectcontact.hxx>
31 class SVX_DLLPUBLIC ViewObjectContactOfPageSubObject
: public ViewObjectContact
34 const SdrPage
& getPage() const;
37 ViewObjectContactOfPageSubObject(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
38 virtual ~ViewObjectContactOfPageSubObject() override
;
40 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
41 virtual bool isPrimitiveGhosted(const DisplayInfo
& rDisplayInfo
) const override
;
43 } // end of namespace contact
44 } // end of namespace sdr
50 class SVX_DLLPUBLIC ViewObjectContactOfPageBackground
: public ViewObjectContactOfPageSubObject
53 virtual drawinglayer::primitive2d::Primitive2DContainer
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const override
;
56 ViewObjectContactOfPageBackground(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
57 virtual ~ViewObjectContactOfPageBackground() override
;
59 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
61 } // end of namespace contact
62 } // end of namespace sdr
68 class SVX_DLLPUBLIC ViewObjectContactOfMasterPage
: public ViewObjectContactOfPageSubObject
72 ViewObjectContactOfMasterPage(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
73 virtual ~ViewObjectContactOfMasterPage() override
;
75 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
77 } // end of namespace contact
78 } // end of namespace sdr
84 class SVX_DLLPUBLIC ViewObjectContactOfPageFill
: public ViewObjectContactOfPageSubObject
87 virtual drawinglayer::primitive2d::Primitive2DContainer
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const override
;
90 ViewObjectContactOfPageFill(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
91 virtual ~ViewObjectContactOfPageFill() override
;
93 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
95 } // end of namespace contact
96 } // end of namespace sdr
102 class SVX_DLLPUBLIC ViewObjectContactOfPageShadow
: public ViewObjectContactOfPageSubObject
105 ViewObjectContactOfPageShadow(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
106 virtual ~ViewObjectContactOfPageShadow() override
;
108 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
110 } // end of namespace contact
111 } // end of namespace sdr
117 class SVX_DLLPUBLIC ViewObjectContactOfOuterPageBorder
: public ViewObjectContactOfPageSubObject
120 ViewObjectContactOfOuterPageBorder(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
121 virtual ~ViewObjectContactOfOuterPageBorder() override
;
123 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
125 } // end of namespace contact
126 } // end of namespace sdr
132 class SVX_DLLPUBLIC ViewObjectContactOfInnerPageBorder
: public ViewObjectContactOfPageSubObject
135 ViewObjectContactOfInnerPageBorder(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
136 virtual ~ViewObjectContactOfInnerPageBorder() override
;
138 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
140 } // end of namespace contact
141 } // end of namespace sdr
147 class SVX_DLLPUBLIC ViewObjectContactOfPageHierarchy
: public ViewObjectContactOfPageSubObject
150 ViewObjectContactOfPageHierarchy(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
151 virtual ~ViewObjectContactOfPageHierarchy() override
;
153 virtual drawinglayer::primitive2d::Primitive2DContainer
getPrimitive2DSequenceHierarchy(DisplayInfo
& rDisplayInfo
) const override
;
155 } // end of namespace contact
156 } // end of namespace sdr
162 class SVX_DLLPUBLIC ViewObjectContactOfPageGrid
: public ViewObjectContactOfPageSubObject
165 virtual drawinglayer::primitive2d::Primitive2DContainer
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const override
;
168 ViewObjectContactOfPageGrid(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
169 virtual ~ViewObjectContactOfPageGrid() override
;
171 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
173 } // end of namespace contact
174 } // end of namespace sdr
180 class SVX_DLLPUBLIC ViewObjectContactOfPageHelplines
: public ViewObjectContactOfPageSubObject
183 virtual drawinglayer::primitive2d::Primitive2DContainer
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const override
;
186 ViewObjectContactOfPageHelplines(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
187 virtual ~ViewObjectContactOfPageHelplines() override
;
189 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const override
;
191 } // end of namespace contact
192 } // end of namespace sdr
198 class SVX_DLLPUBLIC ViewObjectContactOfSdrPage
: public ViewObjectContact
201 ViewObjectContactOfSdrPage(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
202 virtual ~ViewObjectContactOfSdrPage() override
;
204 virtual drawinglayer::primitive2d::Primitive2DContainer
getPrimitive2DSequenceHierarchy(DisplayInfo
& rDisplayInfo
) const override
;
206 } // end of namespace contact
207 } // end of namespace sdr
209 #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX
211 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */