1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 25 #define _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 26 27 #include <svx/sdr/contact/viewobjectcontact.hxx> 28 29 ////////////////////////////////////////////////////////////////////////////// 30 // predeclarations 31 32 class SdrPage; 33 34 ////////////////////////////////////////////////////////////////////////////// 35 36 namespace sdr 37 { 38 namespace contact 39 { 40 class SVX_DLLPUBLIC ViewObjectContactOfPageSubObject : public ViewObjectContact 41 { 42 protected: 43 const SdrPage& getPage() const; 44 45 public: 46 ViewObjectContactOfPageSubObject(ObjectContact& rObjectContact, ViewContact& rViewContact); 47 virtual ~ViewObjectContactOfPageSubObject(); 48 49 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 50 virtual bool isPrimitiveGhosted(const DisplayInfo& rDisplayInfo) const; 51 }; 52 } // end of namespace contact 53 } // end of namespace sdr 54 55 ////////////////////////////////////////////////////////////////////////////// 56 57 namespace sdr 58 { 59 namespace contact 60 { 61 class SVX_DLLPUBLIC ViewObjectContactOfPageBackground : public ViewObjectContactOfPageSubObject 62 { 63 protected: 64 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 65 66 public: 67 ViewObjectContactOfPageBackground(ObjectContact& rObjectContact, ViewContact& rViewContact); 68 virtual ~ViewObjectContactOfPageBackground(); 69 70 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 71 }; 72 } // end of namespace contact 73 } // end of namespace sdr 74 75 ////////////////////////////////////////////////////////////////////////////// 76 77 namespace sdr 78 { 79 namespace contact 80 { 81 class SVX_DLLPUBLIC ViewObjectContactOfMasterPage : public ViewObjectContactOfPageSubObject 82 { 83 protected: 84 public: 85 ViewObjectContactOfMasterPage(ObjectContact& rObjectContact, ViewContact& rViewContact); 86 virtual ~ViewObjectContactOfMasterPage(); 87 88 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 89 }; 90 } // end of namespace contact 91 } // end of namespace sdr 92 93 ////////////////////////////////////////////////////////////////////////////// 94 95 namespace sdr 96 { 97 namespace contact 98 { 99 class SVX_DLLPUBLIC ViewObjectContactOfPageFill : public ViewObjectContactOfPageSubObject 100 { 101 protected: 102 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 103 104 public: 105 ViewObjectContactOfPageFill(ObjectContact& rObjectContact, ViewContact& rViewContact); 106 virtual ~ViewObjectContactOfPageFill(); 107 108 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 109 }; 110 } // end of namespace contact 111 } // end of namespace sdr 112 113 ////////////////////////////////////////////////////////////////////////////// 114 115 namespace sdr 116 { 117 namespace contact 118 { 119 class SVX_DLLPUBLIC ViewObjectContactOfPageShadow : public ViewObjectContactOfPageSubObject 120 { 121 public: 122 ViewObjectContactOfPageShadow(ObjectContact& rObjectContact, ViewContact& rViewContact); 123 virtual ~ViewObjectContactOfPageShadow(); 124 125 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 126 }; 127 } // end of namespace contact 128 } // end of namespace sdr 129 130 ////////////////////////////////////////////////////////////////////////////// 131 132 namespace sdr 133 { 134 namespace contact 135 { 136 class SVX_DLLPUBLIC ViewObjectContactOfOuterPageBorder : public ViewObjectContactOfPageSubObject 137 { 138 public: 139 ViewObjectContactOfOuterPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); 140 virtual ~ViewObjectContactOfOuterPageBorder(); 141 142 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 143 }; 144 } // end of namespace contact 145 } // end of namespace sdr 146 147 ////////////////////////////////////////////////////////////////////////////// 148 149 namespace sdr 150 { 151 namespace contact 152 { 153 class SVX_DLLPUBLIC ViewObjectContactOfInnerPageBorder : public ViewObjectContactOfPageSubObject 154 { 155 public: 156 ViewObjectContactOfInnerPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact); 157 virtual ~ViewObjectContactOfInnerPageBorder(); 158 159 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 160 }; 161 } // end of namespace contact 162 } // end of namespace sdr 163 164 ////////////////////////////////////////////////////////////////////////////// 165 166 namespace sdr 167 { 168 namespace contact 169 { 170 class SVX_DLLPUBLIC ViewObjectContactOfPageHierarchy : public ViewObjectContactOfPageSubObject 171 { 172 public: 173 ViewObjectContactOfPageHierarchy(ObjectContact& rObjectContact, ViewContact& rViewContact); 174 virtual ~ViewObjectContactOfPageHierarchy(); 175 176 virtual drawinglayer::primitive2d::Primitive2DSequence getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo) const; 177 }; 178 } // end of namespace contact 179 } // end of namespace sdr 180 181 ////////////////////////////////////////////////////////////////////////////// 182 183 namespace sdr 184 { 185 namespace contact 186 { 187 class SVX_DLLPUBLIC ViewObjectContactOfPageGrid : public ViewObjectContactOfPageSubObject 188 { 189 protected: 190 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 191 192 public: 193 ViewObjectContactOfPageGrid(ObjectContact& rObjectContact, ViewContact& rViewContact); 194 virtual ~ViewObjectContactOfPageGrid(); 195 196 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 197 }; 198 } // end of namespace contact 199 } // end of namespace sdr 200 201 ////////////////////////////////////////////////////////////////////////////// 202 203 namespace sdr 204 { 205 namespace contact 206 { 207 class SVX_DLLPUBLIC ViewObjectContactOfPageHelplines : public ViewObjectContactOfPageSubObject 208 { 209 protected: 210 virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const; 211 212 public: 213 ViewObjectContactOfPageHelplines(ObjectContact& rObjectContact, ViewContact& rViewContact); 214 virtual ~ViewObjectContactOfPageHelplines(); 215 216 virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const; 217 }; 218 } // end of namespace contact 219 } // end of namespace sdr 220 221 ////////////////////////////////////////////////////////////////////////////// 222 223 namespace sdr 224 { 225 namespace contact 226 { 227 class SVX_DLLPUBLIC ViewObjectContactOfSdrPage : public ViewObjectContact 228 { 229 public: 230 ViewObjectContactOfSdrPage(ObjectContact& rObjectContact, ViewContact& rViewContact); 231 virtual ~ViewObjectContactOfSdrPage(); 232 233 virtual drawinglayer::primitive2d::Primitive2DSequence getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInfo) const; 234 }; 235 } // end of namespace contact 236 } // end of namespace sdr 237 238 ////////////////////////////////////////////////////////////////////////////// 239 240 #endif //_SDR_CONTACT_VIEWOBJECTCONTACTOFSDRPAGE_HXX 241 242 // eof 243