1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 29 #define _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 30 31 #include <svx/sdr/contact/viewobjectcontact.hxx> 32 33 ////////////////////////////////////////////////////////////////////////////// 34 // predeclarations 35 36 class SdrPage; 37 38 ////////////////////////////////////////////////////////////////////////////// 39 40 namespace sdr 41 { 42 namespace contact 43 { 44 class SVX_DLLPUBLIC ViewObjectContactOfPageSubObject : public ViewObjectContact 45 { 46 protected: 47 const SdrPage& getPage() const; 48 49 public: 50 ViewObjectContactOfPageSubObject(ObjectContact& rObjectContact, ViewContact& rViewContact); 51 virtual ~ViewObjectContactOfPageSubObject(); 52 53 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 54 virtual bool isPrimitiveGhosted(const DisplayInfo& rDisplayInfo) const; 55 }; 56 } // end of namespace contact 57 } // end of namespace sdr 58 59 ////////////////////////////////////////////////////////////////////////////// 60 61 namespace sdr 62 { 63 namespace contact 64 { 65 class SVX_DLLPUBLIC ViewObjectContactOfPageBackground : public ViewObjectContactOfPageSubObject 66 { 67 protected: 68 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 69 70 public: 71 ViewObjectContactOfPageBackground(ObjectContact& rObjectContact, ViewContact& rViewContact); 72 virtual ~ViewObjectContactOfPageBackground(); 73 74 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 75 }; 76 } // end of namespace contact 77 } // end of namespace sdr 78 79 ////////////////////////////////////////////////////////////////////////////// 80 81 namespace sdr 82 { 83 namespace contact 84 { 85 class SVX_DLLPUBLIC ViewObjectContactOfMasterPage : public ViewObjectContactOfPageSubObject 86 { 87 protected: 88 public: 89 ViewObjectContactOfMasterPage(ObjectContact& rObjectContact, ViewContact& rViewContact); 90 virtual ~ViewObjectContactOfMasterPage(); 91 92 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 93 }; 94 } // end of namespace contact 95 } // end of namespace sdr 96 97 ////////////////////////////////////////////////////////////////////////////// 98 99 namespace sdr 100 { 101 namespace contact 102 { 103 class SVX_DLLPUBLIC ViewObjectContactOfPageFill : public ViewObjectContactOfPageSubObject 104 { 105 protected: 106 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 107 108 public: 109 ViewObjectContactOfPageFill(ObjectContact& rObjectContact, ViewContact& rViewContact); 110 virtual ~ViewObjectContactOfPageFill(); 111 112 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 113 }; 114 } // end of namespace contact 115 } // end of namespace sdr 116 117 ////////////////////////////////////////////////////////////////////////////// 118 119 namespace sdr 120 { 121 namespace contact 122 { 123 class SVX_DLLPUBLIC ViewObjectContactOfPageShadow : public ViewObjectContactOfPageSubObject 124 { 125 public: 126 ViewObjectContactOfPageShadow(ObjectContact& rObjectContact, ViewContact& rViewContact); 127 virtual ~ViewObjectContactOfPageShadow(); 128 129 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 130 }; 131 } // end of namespace contact 132 } // end of namespace sdr 133 134 ////////////////////////////////////////////////////////////////////////////// 135 136 namespace sdr 137 { 138 namespace contact 139 { 140 class SVX_DLLPUBLIC ViewObjectContactOfOuterPageBorder : public ViewObjectContactOfPageSubObject 141 { 142 public: 143 ViewObjectContactOfOuterPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); 144 virtual ~ViewObjectContactOfOuterPageBorder(); 145 146 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 147 }; 148 } // end of namespace contact 149 } // end of namespace sdr 150 151 ////////////////////////////////////////////////////////////////////////////// 152 153 namespace sdr 154 { 155 namespace contact 156 { 157 class SVX_DLLPUBLIC ViewObjectContactOfInnerPageBorder : public ViewObjectContactOfPageSubObject 158 { 159 public: 160 ViewObjectContactOfInnerPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); 161 virtual ~ViewObjectContactOfInnerPageBorder(); 162 163 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 164 }; 165 } // end of namespace contact 166 } // end of namespace sdr 167 168 ////////////////////////////////////////////////////////////////////////////// 169 170 namespace sdr 171 { 172 namespace contact 173 { 174 class SVX_DLLPUBLIC ViewObjectContactOfPageHierarchy : public ViewObjectContactOfPageSubObject 175 { 176 public: 177 ViewObjectContactOfPageHierarchy(ObjectContact& rObjectContact, ViewContact& rViewContact); 178 virtual ~ViewObjectContactOfPageHierarchy(); 179 180 virtual drawinglayer::primitive2d::Primitive2DSequence getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo) const; 181 }; 182 } // end of namespace contact 183 } // end of namespace sdr 184 185 ////////////////////////////////////////////////////////////////////////////// 186 187 namespace sdr 188 { 189 namespace contact 190 { 191 class SVX_DLLPUBLIC ViewObjectContactOfPageGrid : public ViewObjectContactOfPageSubObject 192 { 193 protected: 194 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 195 196 public: 197 ViewObjectContactOfPageGrid(ObjectContact& rObjectContact, ViewContact& rViewContact); 198 virtual ~ViewObjectContactOfPageGrid(); 199 200 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 201 }; 202 } // end of namespace contact 203 } // end of namespace sdr 204 205 ////////////////////////////////////////////////////////////////////////////// 206 207 namespace sdr 208 { 209 namespace contact 210 { 211 class SVX_DLLPUBLIC ViewObjectContactOfPageHelplines : public ViewObjectContactOfPageSubObject 212 { 213 protected: 214 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 215 216 public: 217 ViewObjectContactOfPageHelplines(ObjectContact& rObjectContact, ViewContact& rViewContact); 218 virtual ~ViewObjectContactOfPageHelplines(); 219 220 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 221 }; 222 } // end of namespace contact 223 } // end of namespace sdr 224 225 ////////////////////////////////////////////////////////////////////////////// 226 227 namespace sdr 228 { 229 namespace contact 230 { 231 class SVX_DLLPUBLIC ViewObjectContactOfSdrPage : public ViewObjectContact 232 { 233 public: 234 ViewObjectContactOfSdrPage(ObjectContact& rObjectContact, ViewContact& rViewContact); 235 virtual ~ViewObjectContactOfSdrPage(); 236 237 virtual drawinglayer::primitive2d::Primitive2DSequence getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo) const; 238 }; 239 } // end of namespace contact 240 } // end of namespace sdr 241 242 ////////////////////////////////////////////////////////////////////////////// 243 244 #endif //_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 245 246 // eof 247