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 _SV_WALL2_HXX 25 #define _SV_WALL2_HXX 26 27 #include <vcl/wall.hxx> 28 29 class ImplWallpaper 30 { 31 friend class Wallpaper; 32 33 private: 34 Color maColor; 35 BitmapEx* mpBitmap; 36 Gradient* mpGradient; 37 Rectangle* mpRect; 38 WallpaperStyle meStyle; 39 sal_uLong mnRefCount; 40 BitmapEx* mpCache; 41 42 friend SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper ); 43 friend SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper ); 44 45 public: 46 ImplWallpaper(); 47 ImplWallpaper( const ImplWallpaper& rImplWallpaper ); 48 ~ImplWallpaper(); 49 50 void ImplSetCachedBitmap( BitmapEx& rBmp ); ImplGetCachedBitmap()51 const BitmapEx* ImplGetCachedBitmap() { return mpCache; } 52 void ImplReleaseCachedBitmap(); 53 }; 54 55 56 #endif // _SV_WALL2_HXX 57