Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _CAPTION_HXX
29 : : #define _CAPTION_HXX
30 : :
31 : : #include <tools/string.hxx>
32 : : #include <tools/globname.hxx>
33 : : #include <SwCapObjType.hxx>
34 : : #include "swdllapi.h"
35 : :
36 : : class SW_DLLPUBLIC InsCaptionOpt
37 : : {
38 : : private:
39 : : sal_Bool bUseCaption;
40 : : SwCapObjType eObjType;
41 : : SvGlobalName aOleId;
42 : : String sCategory;
43 : : sal_uInt16 nNumType;
44 : : ::rtl::OUString sNumberSeparator;
45 : : String sCaption;
46 : : sal_uInt16 nPos;
47 : : sal_uInt16 nLevel;
48 : : String sSeparator;
49 : : String sCharacterStyle;
50 : :
51 : : sal_Bool bIgnoreSeqOpts; // is not being saved
52 : : sal_Bool bCopyAttributes; // -""-
53 : :
54 : : public:
55 : : InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = 0);
56 : : InsCaptionOpt(const InsCaptionOpt&);
57 : : ~InsCaptionOpt();
58 : :
59 : 657 : inline sal_Bool& UseCaption() { return bUseCaption; }
60 : 0 : inline sal_Bool UseCaption() const { return bUseCaption; }
61 : :
62 : 0 : inline SwCapObjType GetObjType() const { return eObjType; }
63 : : inline void SetObjType(const SwCapObjType eType) { eObjType = eType; }
64 : :
65 : 0 : inline const SvGlobalName& GetOleId() const { return aOleId; }
66 : : inline void SetOleId(const SvGlobalName &rId) { aOleId = rId; }
67 : :
68 : 0 : inline const String& GetCategory() const { return sCategory; }
69 : 657 : inline void SetCategory(const String& rCat) { sCategory = rCat; }
70 : :
71 : 0 : inline sal_uInt16 GetNumType() const { return nNumType; }
72 : 657 : inline void SetNumType(const sal_uInt16 nNT) { nNumType = nNT; }
73 : :
74 : 0 : const ::rtl::OUString& GetNumSeparator() const { return sNumberSeparator; }
75 : 657 : void SetNumSeparator(const ::rtl::OUString& rSet) {sNumberSeparator = rSet;}
76 : :
77 : 0 : inline const String& GetCaption() const { return sCaption; }
78 : 657 : inline void SetCaption(const String& rCap) { sCaption = rCap; }
79 : :
80 : 0 : inline sal_uInt16 GetPos() const { return nPos; }
81 : 657 : inline void SetPos(const sal_uInt16 nP) { nPos = nP; }
82 : :
83 : 0 : inline sal_uInt16 GetLevel() const { return nLevel; }
84 : 657 : inline void SetLevel(const sal_uInt16 nLvl) { nLevel = nLvl; }
85 : :
86 : 0 : inline const String& GetSeparator() const { return sSeparator; }
87 : 657 : inline void SetSeparator(const String& rSep) { sSeparator = rSep; }
88 : :
89 : 0 : const String& GetCharacterStyle() const { return sCharacterStyle; }
90 : 0 : void SetCharacterStyle(const String& rStyle)
91 : 0 : { sCharacterStyle = rStyle; }
92 : :
93 : 0 : inline sal_Bool& IgnoreSeqOpts() { return bIgnoreSeqOpts; }
94 : 0 : inline sal_Bool IgnoreSeqOpts() const { return bIgnoreSeqOpts; }
95 : :
96 : 0 : inline sal_Bool& CopyAttributes() { return bCopyAttributes; }
97 : 0 : inline sal_Bool CopyAttributes() const { return bCopyAttributes; }
98 : :
99 : : sal_Bool operator==( const InsCaptionOpt& rOpt ) const;
100 : : InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt );
101 : : inline sal_Bool operator< ( const InsCaptionOpt & rObj ) const
102 : : { return aOleId < rObj.aOleId; }
103 : : };
104 : :
105 : : #endif
106 : :
107 : :
108 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|