1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _CAPTION_HXX 24cdf0e10cSrcweir #define _CAPTION_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <tools/string.hxx> 27cdf0e10cSrcweir //#ifndef _STREAM_HXX //autogen 28cdf0e10cSrcweir //#include <tools/stream.hxx> 29cdf0e10cSrcweir //#endif 30cdf0e10cSrcweir #include <tools/globname.hxx> 31cdf0e10cSrcweir #include <SwCapObjType.hxx> 32cdf0e10cSrcweir #include "swdllapi.h" 33cdf0e10cSrcweir 34cdf0e10cSrcweir /*-------------------------------------------------------------------- 35cdf0e10cSrcweir Beschreibung: 36cdf0e10cSrcweir --------------------------------------------------------------------*/ 37cdf0e10cSrcweir 38cdf0e10cSrcweir class SW_DLLPUBLIC InsCaptionOpt 39cdf0e10cSrcweir { 40cdf0e10cSrcweir private: 41cdf0e10cSrcweir sal_Bool bUseCaption; 42cdf0e10cSrcweir SwCapObjType eObjType; 43cdf0e10cSrcweir SvGlobalName aOleId; 44cdf0e10cSrcweir String sCategory; 45cdf0e10cSrcweir sal_uInt16 nNumType; 46cdf0e10cSrcweir ::rtl::OUString sNumberSeparator; 47cdf0e10cSrcweir String sCaption; 48cdf0e10cSrcweir sal_uInt16 nPos; 49cdf0e10cSrcweir sal_uInt16 nLevel; 50cdf0e10cSrcweir // sal_Unicode cSeparator; 51cdf0e10cSrcweir String sSeparator; 52cdf0e10cSrcweir String sCharacterStyle; 53cdf0e10cSrcweir 54cdf0e10cSrcweir sal_Bool bIgnoreSeqOpts; // wird nicht gespeichert 55cdf0e10cSrcweir sal_Bool bCopyAttributes; // -""- 56cdf0e10cSrcweir 57cdf0e10cSrcweir public: 58cdf0e10cSrcweir InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = 0); 59cdf0e10cSrcweir InsCaptionOpt(const InsCaptionOpt&); 60cdf0e10cSrcweir ~InsCaptionOpt(); 61cdf0e10cSrcweir UseCaption()62cdf0e10cSrcweir inline sal_Bool& UseCaption() { return bUseCaption; } UseCaption() const63cdf0e10cSrcweir inline sal_Bool UseCaption() const { return bUseCaption; } 64cdf0e10cSrcweir GetObjType() const65cdf0e10cSrcweir inline SwCapObjType GetObjType() const { return eObjType; } SetObjType(const SwCapObjType eType)66cdf0e10cSrcweir inline void SetObjType(const SwCapObjType eType) { eObjType = eType; } 67cdf0e10cSrcweir GetOleId() const68cdf0e10cSrcweir inline const SvGlobalName& GetOleId() const { return aOleId; } SetOleId(const SvGlobalName & rId)69cdf0e10cSrcweir inline void SetOleId(const SvGlobalName &rId) { aOleId = rId; } 70cdf0e10cSrcweir GetCategory() const71cdf0e10cSrcweir inline const String& GetCategory() const { return sCategory; } SetCategory(const String & rCat)72cdf0e10cSrcweir inline void SetCategory(const String& rCat) { sCategory = rCat; } 73cdf0e10cSrcweir GetNumType() const74cdf0e10cSrcweir inline sal_uInt16 GetNumType() const { return nNumType; } SetNumType(const sal_uInt16 nNT)75cdf0e10cSrcweir inline void SetNumType(const sal_uInt16 nNT) { nNumType = nNT; } 76cdf0e10cSrcweir GetNumSeparator() const77cdf0e10cSrcweir const ::rtl::OUString& GetNumSeparator() const { return sNumberSeparator; } SetNumSeparator(const::rtl::OUString & rSet)78cdf0e10cSrcweir void SetNumSeparator(const ::rtl::OUString& rSet) {sNumberSeparator = rSet;} 79cdf0e10cSrcweir GetCaption() const80cdf0e10cSrcweir inline const String& GetCaption() const { return sCaption; } SetCaption(const String & rCap)81cdf0e10cSrcweir inline void SetCaption(const String& rCap) { sCaption = rCap; } 82cdf0e10cSrcweir GetPos() const83cdf0e10cSrcweir inline sal_uInt16 GetPos() const { return nPos; } SetPos(const sal_uInt16 nP)84cdf0e10cSrcweir inline void SetPos(const sal_uInt16 nP) { nPos = nP; } 85cdf0e10cSrcweir GetLevel() const86cdf0e10cSrcweir inline sal_uInt16 GetLevel() const { return nLevel; } SetLevel(const sal_uInt16 nLvl)87cdf0e10cSrcweir inline void SetLevel(const sal_uInt16 nLvl) { nLevel = nLvl; } 88cdf0e10cSrcweir 89cdf0e10cSrcweir // inline sal_Unicode GetSeparator() const { return cSeparator; } 90cdf0e10cSrcweir // inline void SetSeparator(const sal_Unicode cSep){ cSeparator = cSep; } GetSeparator() const91cdf0e10cSrcweir inline const String& GetSeparator() const { return sSeparator; } SetSeparator(const String & rSep)92cdf0e10cSrcweir inline void SetSeparator(const String& rSep) { sSeparator = rSep; } 93cdf0e10cSrcweir GetCharacterStyle() const94cdf0e10cSrcweir const String& GetCharacterStyle() const { return sCharacterStyle; } SetCharacterStyle(const String & rStyle)95cdf0e10cSrcweir void SetCharacterStyle(const String& rStyle) 96cdf0e10cSrcweir { sCharacterStyle = rStyle; } 97cdf0e10cSrcweir IgnoreSeqOpts()98cdf0e10cSrcweir inline sal_Bool& IgnoreSeqOpts() { return bIgnoreSeqOpts; } IgnoreSeqOpts() const99cdf0e10cSrcweir inline sal_Bool IgnoreSeqOpts() const { return bIgnoreSeqOpts; } 100cdf0e10cSrcweir CopyAttributes()101cdf0e10cSrcweir inline sal_Bool& CopyAttributes() { return bCopyAttributes; } CopyAttributes() const102cdf0e10cSrcweir inline sal_Bool CopyAttributes() const { return bCopyAttributes; } 103cdf0e10cSrcweir 104cdf0e10cSrcweir sal_Bool operator==( const InsCaptionOpt& rOpt ) const; 105cdf0e10cSrcweir InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt ); operator <(const InsCaptionOpt & rObj) const106cdf0e10cSrcweir inline sal_Bool operator< ( const InsCaptionOpt & rObj ) const 107cdf0e10cSrcweir { return aOleId < rObj.aOleId; } 108cdf0e10cSrcweir // friend SvStream& operator>>( SvStream& rIStream, InsCaptionOpt& rCapOpt ); 109cdf0e10cSrcweir // friend SvStream& operator<<( SvStream& rOStream, const InsCaptionOpt& rCapOpt ); 110cdf0e10cSrcweir }; 111cdf0e10cSrcweir 112cdf0e10cSrcweir #endif 113cdf0e10cSrcweir 114cdf0e10cSrcweir 115