xref: /AOO41X/main/svl/inc/svl/cntwall.hxx (revision 39a19a47feaddbaa21988da8c7bf801707fd3d48)
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 #ifndef _CNTWALL_HXX
24 #define _CNTWALL_HXX
25 
26 #include "svl/svldllapi.h"
27 
28 #ifndef SHL_HXX
29 #include <tools/shl.hxx>
30 #endif
31 #include <tools/rtti.hxx>
32 #include <tools/color.hxx>
33 #include <svl/poolitem.hxx>
34 
35 class SvStream;
36 
37 class SVL_DLLPUBLIC CntWallpaperItem : public SfxPoolItem
38 {
39 private:
40     UniString               _aURL;
41     Color                   _nColor;
42     sal_uInt16                  _nStyle;
43 
44 public:
45                             TYPEINFO();
46 
47                             CntWallpaperItem( sal_uInt16 nWhich );
48                             CntWallpaperItem( sal_uInt16 nWhich, SvStream& rStream, sal_uInt16 nVersion );
49                             CntWallpaperItem( const CntWallpaperItem& rCpy );
50                             ~CntWallpaperItem();
51 
52     virtual sal_uInt16 GetVersion(sal_uInt16) const;
53 
54     virtual int             operator==( const SfxPoolItem& ) const;
55     virtual SfxPoolItem*    Create( SvStream&, sal_uInt16 nItemVersion ) const;
56     virtual SvStream&       Store( SvStream&, sal_uInt16 nItemVersion ) const;
57     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
58 
59     virtual sal_Bool            QueryValue( com::sun::star::uno::Any& rVal,
60                                         sal_uInt8 nMemberId = 0 ) const;
61     virtual sal_Bool            PutValue  ( const com::sun::star::uno::Any& rVal,
62                                         sal_uInt8 nMemberId = 0 );
63 
SetBitmapURL(const UniString & rURL)64     void                    SetBitmapURL( const UniString& rURL ) { _aURL = rURL; }
SetColor(Color nColor)65     void                    SetColor( Color nColor ) { _nColor = nColor; }
SetStyle(sal_uInt16 nStyle)66     void                    SetStyle( sal_uInt16 nStyle ) { _nStyle = nStyle; }
67 
GetBitmapURL() const68     const UniString&        GetBitmapURL() const { return _aURL; }
GetColor() const69     Color                   GetColor() const { return _nColor; }
GetStyle() const70     sal_uInt16                  GetStyle() const { return _nStyle; }
71 };
72 
73 ////////////////////////////////////////////////////////////////////////////////
74 
75 #endif // _CNTWALL_HXX
76 
77