xref: /aoo4110/main/svx/inc/svx/viewlayoutitem.hxx (revision b1cdbd2c)
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 _SVX_VIEWLAYOUTITEM_HXX
24 #define _SVX_VIEWLAYOUTITEM_HXX
25 
26 #include <svl/intitem.hxx>
27 #ifndef _SVX_SVXIDS_HRC
28 #include <svx/svxids.hrc>
29 #endif
30 #include "svx/svxdllapi.h"
31 
32 //-------------------------------------------------------------------------
33 
34 class SVX_DLLPUBLIC SvxViewLayoutItem: public SfxUInt16Item
35 {
36     bool                    mbBookMode;
37 
38 public:
39 	TYPEINFO();
40 
41     SvxViewLayoutItem( sal_uInt16 nColumns = 0, bool bBookMode = false, sal_uInt16 nWhich = SID_ATTR_VIEWLAYOUT );
42     SvxViewLayoutItem( const SvxViewLayoutItem& );
43     ~SvxViewLayoutItem();
44 
SetBookMode(bool bNew)45     void                    SetBookMode( bool bNew ) {mbBookMode = bNew; }
IsBookMode() const46     bool                    IsBookMode() const {return mbBookMode; }
47 
48     // "pure virtual Methoden" vom SfxPoolItem
49     virtual int             operator==( const SfxPoolItem& ) const;
50     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
51     virtual SfxPoolItem*    Create( SvStream& rStrm, sal_uInt16 nVersion ) const;                       // leer
52     virtual SvStream&       Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const;                   // leer
53     virtual sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; // leer
54     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );   // leer
55 };
56 
57 //------------------------------------------------------------------------
58 
59 #endif
60