1*3334a7e6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*3334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*3334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*3334a7e6SAndrew Rist * distributed with this work for additional information 6*3334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*3334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*3334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 9*3334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 10*3334a7e6SAndrew Rist * 11*3334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*3334a7e6SAndrew Rist * 13*3334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*3334a7e6SAndrew Rist * software distributed under the License is distributed on an 15*3334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 17*3334a7e6SAndrew Rist * specific language governing permissions and limitations 18*3334a7e6SAndrew Rist * under the License. 19*3334a7e6SAndrew Rist * 20*3334a7e6SAndrew Rist *************************************************************/ 21*3334a7e6SAndrew Rist 22*3334a7e6SAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_PAGEITEM_HXX 24cdf0e10cSrcweir #define _SVX_PAGEITEM_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir // include --------------------------------------------------------------- 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <svl/poolitem.hxx> 29cdf0e10cSrcweir #include <tools/string.hxx> 30cdf0e10cSrcweir #include "svx/svxdllapi.h" 31cdf0e10cSrcweir 32cdf0e10cSrcweir 33cdf0e10cSrcweir /*-------------------------------------------------------------------- 34cdf0e10cSrcweir Beschreibung: SvxNumType 35cdf0e10cSrcweir --------------------------------------------------------------------*/ 36cdf0e10cSrcweir 37cdf0e10cSrcweir enum SvxNumType 38cdf0e10cSrcweir { 39cdf0e10cSrcweir SVX_CHARS_UPPER_LETTER, 40cdf0e10cSrcweir SVX_CHARS_LOWER_LETTER, 41cdf0e10cSrcweir SVX_ROMAN_UPPER, 42cdf0e10cSrcweir SVX_ROMAN_LOWER, 43cdf0e10cSrcweir SVX_ARABIC, 44cdf0e10cSrcweir SVX_NUMBER_NONE, 45cdf0e10cSrcweir SVX_CHAR_SPECIAL, 46cdf0e10cSrcweir SVX_PAGEDESC 47cdf0e10cSrcweir }; 48cdf0e10cSrcweir 49cdf0e10cSrcweir /*-------------------------------------------------------------------- 50cdf0e10cSrcweir Beschreibung: Benutzung der Seite 51cdf0e10cSrcweir --------------------------------------------------------------------*/ 52cdf0e10cSrcweir 53cdf0e10cSrcweir enum SvxPageUsage 54cdf0e10cSrcweir { 55cdf0e10cSrcweir SVX_PAGE_LEFT = 0x0001, 56cdf0e10cSrcweir SVX_PAGE_RIGHT = 0x0002, 57cdf0e10cSrcweir SVX_PAGE_ALL = 0x0003, 58cdf0e10cSrcweir SVX_PAGE_MIRROR = 0x0007, 59cdf0e10cSrcweir SVX_PAGE_HEADERSHARE = 0x0040, 60cdf0e10cSrcweir SVX_PAGE_FOOTERSHARE = 0x0080 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir /*-------------------------------------------------------------------- 64cdf0e10cSrcweir Beschreibung: Teile der Seitenbeschreibung 65cdf0e10cSrcweir --------------------------------------------------------------------*/ 66cdf0e10cSrcweir 67cdf0e10cSrcweir 68cdf0e10cSrcweir 69cdf0e10cSrcweir /* 70cdf0e10cSrcweir [Beschreibung] 71cdf0e10cSrcweir Dieses Item beschreibt ein Seiten-Attribut (Name der Vorlage, Numerierung, 72cdf0e10cSrcweir Portrait oder Landscape, Layout). 73cdf0e10cSrcweir */ 74cdf0e10cSrcweir 75cdf0e10cSrcweir class SVX_DLLPUBLIC SvxPageItem: public SfxPoolItem 76cdf0e10cSrcweir { 77cdf0e10cSrcweir private: 78cdf0e10cSrcweir String aDescName; // Name der Vorlage 79cdf0e10cSrcweir SvxNumType eNumType; // Numerierung 80cdf0e10cSrcweir sal_Bool bLandscape; // Portrait / Landscape 81cdf0e10cSrcweir sal_uInt16 eUse; // Layout 82cdf0e10cSrcweir 83cdf0e10cSrcweir public: 84cdf0e10cSrcweir 85cdf0e10cSrcweir TYPEINFO(); 86cdf0e10cSrcweir SvxPageItem( const sal_uInt16 nId ); 87cdf0e10cSrcweir SvxPageItem( const SvxPageItem& rItem ); 88cdf0e10cSrcweir 89cdf0e10cSrcweir virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 90cdf0e10cSrcweir virtual int operator==( const SfxPoolItem& ) const; 91cdf0e10cSrcweir 92cdf0e10cSrcweir virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 93cdf0e10cSrcweir SfxMapUnit eCoreMetric, 94cdf0e10cSrcweir SfxMapUnit ePresMetric, 95cdf0e10cSrcweir String &rText, const IntlWrapper * = 0 ) const; 96cdf0e10cSrcweir 97cdf0e10cSrcweir virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 98cdf0e10cSrcweir virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 99cdf0e10cSrcweir virtual SfxPoolItem* Create( SvStream&, sal_uInt16 ) const; 100cdf0e10cSrcweir virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const; 101cdf0e10cSrcweir 102cdf0e10cSrcweir // Ausrichtung GetPageUsage() const103cdf0e10cSrcweir sal_uInt16 GetPageUsage() const { return eUse; } SetPageUsage(sal_uInt16 eU)104cdf0e10cSrcweir void SetPageUsage(sal_uInt16 eU) { eUse= eU; } 105cdf0e10cSrcweir IsLandscape() const106cdf0e10cSrcweir sal_Bool IsLandscape() const { return bLandscape; } SetLandscape(sal_Bool bL)107cdf0e10cSrcweir void SetLandscape(sal_Bool bL) { bLandscape = bL; } 108cdf0e10cSrcweir 109cdf0e10cSrcweir // Numerierung GetNumType() const110cdf0e10cSrcweir SvxNumType GetNumType() const { return eNumType; } SetNumType(SvxNumType eNum)111cdf0e10cSrcweir void SetNumType(SvxNumType eNum) { eNumType = eNum; } 112cdf0e10cSrcweir 113cdf0e10cSrcweir // Name des Descriptors GetDescName() const114cdf0e10cSrcweir const String& GetDescName() const { return aDescName; } SetDescName(const String & rStr)115cdf0e10cSrcweir void SetDescName(const String& rStr) { aDescName = rStr; } 116cdf0e10cSrcweir }; 117cdf0e10cSrcweir 118cdf0e10cSrcweir 119cdf0e10cSrcweir 120cdf0e10cSrcweir /*-------------------------------------------------------------------- 121cdf0e10cSrcweir Beschreibung: Container fuer Header/Footer-Attribute 122cdf0e10cSrcweir --------------------------------------------------------------------*/ 123cdf0e10cSrcweir 124cdf0e10cSrcweir 125cdf0e10cSrcweir 126cdf0e10cSrcweir /* 127cdf0e10cSrcweir [Beschreibung] 128cdf0e10cSrcweir Dieses Item dient als Container fuer Header- und Footer-Attribute. 129cdf0e10cSrcweir */ 130cdf0e10cSrcweir 131cdf0e10cSrcweir class SVX_DLLPUBLIC SvxSetItem: public SfxSetItem 132cdf0e10cSrcweir { 133cdf0e10cSrcweir public: 134cdf0e10cSrcweir SvxSetItem( const sal_uInt16 nId, const SfxItemSet& rSet ); 135cdf0e10cSrcweir SvxSetItem( const SvxSetItem& rItem ); 136cdf0e10cSrcweir SvxSetItem( const sal_uInt16 nId, SfxItemSet* pSet ); 137cdf0e10cSrcweir 138cdf0e10cSrcweir virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 139cdf0e10cSrcweir 140cdf0e10cSrcweir virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 141cdf0e10cSrcweir SfxMapUnit eCoreMetric, 142cdf0e10cSrcweir SfxMapUnit ePresMetric, 143cdf0e10cSrcweir String &rText, const IntlWrapper * = 0 ) const; 144cdf0e10cSrcweir 145cdf0e10cSrcweir virtual SfxPoolItem* Create( SvStream&, sal_uInt16 nVersion ) const; 146cdf0e10cSrcweir virtual SvStream& Store( SvStream&, sal_uInt16 nItemVersion ) const; 147cdf0e10cSrcweir }; 148cdf0e10cSrcweir 149cdf0e10cSrcweir 150cdf0e10cSrcweir 151cdf0e10cSrcweir 152cdf0e10cSrcweir #endif 153cdf0e10cSrcweir 154