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 _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX
21 #define _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX
23 #include <svx/sdr/contact/viewobjectcontact.hxx>
25 //////////////////////////////////////////////////////////////////////////////
30 //////////////////////////////////////////////////////////////////////////////
36 class SVX_DLLPUBLIC ViewObjectContactOfPageSubObject
: public ViewObjectContact
39 const SdrPage
& getPage() const;
42 ViewObjectContactOfPageSubObject(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
43 virtual ~ViewObjectContactOfPageSubObject();
45 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
46 virtual bool isPrimitiveGhosted(const DisplayInfo
& rDisplayInfo
) const;
48 } // end of namespace contact
49 } // end of namespace sdr
51 //////////////////////////////////////////////////////////////////////////////
57 class SVX_DLLPUBLIC ViewObjectContactOfPageBackground
: public ViewObjectContactOfPageSubObject
60 virtual drawinglayer::primitive2d::Primitive2DSequence
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const;
63 ViewObjectContactOfPageBackground(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
64 virtual ~ViewObjectContactOfPageBackground();
66 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
68 } // end of namespace contact
69 } // end of namespace sdr
71 //////////////////////////////////////////////////////////////////////////////
77 class SVX_DLLPUBLIC ViewObjectContactOfMasterPage
: public ViewObjectContactOfPageSubObject
81 ViewObjectContactOfMasterPage(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
82 virtual ~ViewObjectContactOfMasterPage();
84 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
86 } // end of namespace contact
87 } // end of namespace sdr
89 //////////////////////////////////////////////////////////////////////////////
95 class SVX_DLLPUBLIC ViewObjectContactOfPageFill
: public ViewObjectContactOfPageSubObject
98 virtual drawinglayer::primitive2d::Primitive2DSequence
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const;
101 ViewObjectContactOfPageFill(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
102 virtual ~ViewObjectContactOfPageFill();
104 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
106 } // end of namespace contact
107 } // end of namespace sdr
109 //////////////////////////////////////////////////////////////////////////////
115 class SVX_DLLPUBLIC ViewObjectContactOfPageShadow
: public ViewObjectContactOfPageSubObject
118 ViewObjectContactOfPageShadow(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
119 virtual ~ViewObjectContactOfPageShadow();
121 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
123 } // end of namespace contact
124 } // end of namespace sdr
126 //////////////////////////////////////////////////////////////////////////////
132 class SVX_DLLPUBLIC ViewObjectContactOfOuterPageBorder
: public ViewObjectContactOfPageSubObject
135 ViewObjectContactOfOuterPageBorder(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
136 virtual ~ViewObjectContactOfOuterPageBorder();
138 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
140 } // end of namespace contact
141 } // end of namespace sdr
143 //////////////////////////////////////////////////////////////////////////////
149 class SVX_DLLPUBLIC ViewObjectContactOfInnerPageBorder
: public ViewObjectContactOfPageSubObject
152 ViewObjectContactOfInnerPageBorder(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
153 virtual ~ViewObjectContactOfInnerPageBorder();
155 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
157 } // end of namespace contact
158 } // end of namespace sdr
160 //////////////////////////////////////////////////////////////////////////////
166 class SVX_DLLPUBLIC ViewObjectContactOfPageHierarchy
: public ViewObjectContactOfPageSubObject
169 ViewObjectContactOfPageHierarchy(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
170 virtual ~ViewObjectContactOfPageHierarchy();
172 virtual drawinglayer::primitive2d::Primitive2DSequence
getPrimitive2DSequenceHierarchy(DisplayInfo
& rDisplayInfo
) const;
174 } // end of namespace contact
175 } // end of namespace sdr
177 //////////////////////////////////////////////////////////////////////////////
183 class SVX_DLLPUBLIC ViewObjectContactOfPageGrid
: public ViewObjectContactOfPageSubObject
186 virtual drawinglayer::primitive2d::Primitive2DSequence
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const;
189 ViewObjectContactOfPageGrid(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
190 virtual ~ViewObjectContactOfPageGrid();
192 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
194 } // end of namespace contact
195 } // end of namespace sdr
197 //////////////////////////////////////////////////////////////////////////////
203 class SVX_DLLPUBLIC ViewObjectContactOfPageHelplines
: public ViewObjectContactOfPageSubObject
206 virtual drawinglayer::primitive2d::Primitive2DSequence
createPrimitive2DSequence(const DisplayInfo
& rDisplayInfo
) const;
209 ViewObjectContactOfPageHelplines(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
210 virtual ~ViewObjectContactOfPageHelplines();
212 virtual bool isPrimitiveVisible(const DisplayInfo
& rDisplayInfo
) const;
214 } // end of namespace contact
215 } // end of namespace sdr
217 //////////////////////////////////////////////////////////////////////////////
223 class SVX_DLLPUBLIC ViewObjectContactOfSdrPage
: public ViewObjectContact
226 ViewObjectContactOfSdrPage(ObjectContact
& rObjectContact
, ViewContact
& rViewContact
);
227 virtual ~ViewObjectContactOfSdrPage();
229 virtual drawinglayer::primitive2d::Primitive2DSequence
getPrimitive2DSequenceHierarchy(DisplayInfo
& rDisplayInfo
) const;
231 } // end of namespace contact
232 } // end of namespace sdr
234 //////////////////////////////////////////////////////////////////////////////
236 #endif //_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX
238 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */