| 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_VIEWOBJECTCONTACTOFSDRPAGE_HXX |
| 21 |
#define INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX |
| 22 |
|
| 23 |
#include <svx/sdr/contact/viewobjectcontact.hxx> |
| 24 |
|
| 25 |
class SdrPage; |
| 26 |
|
| 27 |
namespace sdr::contact |
| 28 |
{ |
| 29 |
class ViewObjectContactOfPageSubObject : public ViewObjectContact |
| 30 |
{ |
| 31 |
protected: |
| 32 |
const SdrPage& getPage() const; |
| 33 |
|
| 34 |
public: |
| 35 |
ViewObjectContactOfPageSubObject(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 36 |
virtual ~ViewObjectContactOfPageSubObject() override; |
| 37 |
|
| 38 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 39 |
virtual bool isPrimitiveGhosted(const DisplayInfo& rDisplayInfo) const override; |
| 40 |
}; |
| 41 |
|
| 42 |
} // end of namespace sdr::contact |
| 43 |
|
| 44 |
namespace sdr::contact |
| 45 |
{ |
| 46 |
class ViewObjectContactOfPageBackground final : public ViewObjectContactOfPageSubObject |
| 47 |
{ |
| 48 |
virtual void createPrimitive2DSequence(const DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const override; |
| 49 |
|
| 50 |
public: |
| 51 |
ViewObjectContactOfPageBackground(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 52 |
virtual ~ViewObjectContactOfPageBackground() override; |
| 53 |
|
| 54 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 55 |
}; |
| 56 |
|
| 57 |
} // end of namespace sdr::contact |
| 58 |
|
| 59 |
namespace sdr::contact |
| 60 |
{ |
| 61 |
class ViewObjectContactOfMasterPage final : public ViewObjectContactOfPageSubObject |
| 62 |
{ |
| 63 |
protected: |
| 64 |
public: |
| 65 |
ViewObjectContactOfMasterPage(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 66 |
virtual ~ViewObjectContactOfMasterPage() override; |
| 67 |
|
| 68 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 69 |
}; |
| 70 |
} // end of namespace sdr::contact |
| 71 |
|
| 72 |
namespace sdr::contact |
| 73 |
{ |
| 74 |
class ViewObjectContactOfPageFill final : public ViewObjectContactOfPageSubObject |
| 75 |
{ |
| 76 |
virtual void createPrimitive2DSequence(const DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const override; |
| 77 |
|
| 78 |
public: |
| 79 |
ViewObjectContactOfPageFill(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 80 |
virtual ~ViewObjectContactOfPageFill() override; |
| 81 |
|
| 82 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 83 |
}; |
| 84 |
} // end of namespace sdr::contact |
| 85 |
|
| 86 |
namespace sdr::contact |
| 87 |
{ |
| 88 |
class ViewObjectContactOfPageShadow final : public ViewObjectContactOfPageSubObject |
| 89 |
{ |
| 90 |
public: |
| 91 |
ViewObjectContactOfPageShadow(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 92 |
virtual ~ViewObjectContactOfPageShadow() override; |
| 93 |
|
| 94 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 95 |
}; |
| 96 |
} // end of namespace sdr::contact |
| 97 |
|
| 98 |
namespace sdr::contact |
| 99 |
{ |
| 100 |
class ViewObjectContactOfOuterPageBorder final : public ViewObjectContactOfPageSubObject |
| 101 |
{ |
| 102 |
public: |
| 103 |
ViewObjectContactOfOuterPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 104 |
virtual ~ViewObjectContactOfOuterPageBorder() override; |
| 105 |
|
| 106 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 107 |
}; |
| 108 |
} // end of namespace sdr::contact |
| 109 |
|
| 110 |
namespace sdr::contact |
| 111 |
{ |
| 112 |
class ViewObjectContactOfInnerPageBorder final : public ViewObjectContactOfPageSubObject |
| 113 |
{ |
| 114 |
public: |
| 115 |
ViewObjectContactOfInnerPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 116 |
virtual ~ViewObjectContactOfInnerPageBorder() override; |
| 117 |
|
| 118 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 119 |
}; |
| 120 |
} // end of namespace sdr::contact |
| 121 |
|
| 122 |
namespace sdr::contact |
| 123 |
{ |
| 124 |
class ViewObjectContactOfPageHierarchy final : public ViewObjectContactOfPageSubObject |
| 125 |
{ |
| 126 |
public: |
| 127 |
ViewObjectContactOfPageHierarchy(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 128 |
virtual ~ViewObjectContactOfPageHierarchy() override; |
| 129 |
|
| 130 |
virtual void getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor ) const override; |
| 131 |
}; |
| 132 |
} // end of namespace sdr::contact |
| 133 |
|
| 134 |
namespace sdr::contact |
| 135 |
{ |
| 136 |
class ViewObjectContactOfPageGrid final : public ViewObjectContactOfPageSubObject |
| 137 |
{ |
| 138 |
virtual void createPrimitive2DSequence(const DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const override; |
| 139 |
|
| 140 |
public: |
| 141 |
ViewObjectContactOfPageGrid(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 142 |
virtual ~ViewObjectContactOfPageGrid() override; |
| 143 |
|
| 144 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 145 |
}; |
| 146 |
} // end of namespace sdr::contact |
| 147 |
|
| 148 |
namespace sdr::contact |
| 149 |
{ |
| 150 |
class ViewObjectContactOfPageHelplines final : public ViewObjectContactOfPageSubObject |
| 151 |
{ |
| 152 |
virtual void createPrimitive2DSequence(const DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const override; |
| 153 |
|
| 154 |
public: |
| 155 |
ViewObjectContactOfPageHelplines(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 156 |
virtual ~ViewObjectContactOfPageHelplines() override; |
| 157 |
|
| 158 |
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const override; |
| 159 |
}; |
| 160 |
} // end of namespace sdr::contact |
| 161 |
|
| 162 |
namespace sdr::contact |
| 163 |
{ |
| 164 |
class ViewObjectContactOfSdrPage final : public ViewObjectContact |
| 165 |
{ |
| 166 |
public: |
| 167 |
ViewObjectContactOfSdrPage(ObjectContact& rObjectContact, ViewContact& rViewContact); |
| 168 |
virtual ~ViewObjectContactOfSdrPage() override; |
| 169 |
|
| 170 |
virtual void getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor ) const override; |
| 171 |
}; |
| 172 |
} // end of namespace sdr::contact |
| 173 |
|
| 174 |
#endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX |
| 175 |
|
| 176 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |