1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  *   Licensed to the Apache Software Foundation (ASF) under one or more
12  *   contributor license agreements. See the NOTICE file distributed
13  *   with this work for additional information regarding copyright
14  *   ownership. The ASF licenses this file to you under the Apache
15  *   License, Version 2.0 (the "License"); you may not use this file
16  *   except in compliance with the License. You may obtain a copy of
17  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CAPTION_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_CAPTION_HXX
21 
22 #include <rtl/ustring.hxx>
23 #include <tools/globname.hxx>
24 #include <SwCapObjType.hxx>
25 #include <swdllapi.h>
26 
27 class SW_DLLPUBLIC InsCaptionOpt
28 {
29 private:
30     bool            m_bUseCaption;
31     SwCapObjType    m_eObjType;
32     SvGlobalName    m_aOleId;
33     OUString        m_sCategory;
34     sal_uInt16      m_nNumType;
35     OUString        m_sNumberSeparator;
36     OUString        m_sCaption;
37     sal_uInt16      m_nPos;
38     sal_uInt16      m_nLevel;
39     OUString        m_sSeparator;
40     OUString        m_sCharacterStyle;
41 
42     bool         m_bIgnoreSeqOpts;    // is not being saved
43     bool         m_bCopyAttributes;   //          -""-
44 
45 public:
46     InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = nullptr);
47 
UseCaption()48     bool&            UseCaption()                    { return m_bUseCaption; }
UseCaption() const49     bool             UseCaption() const              { return m_bUseCaption; }
50 
GetObjType() const51     SwCapObjType     GetObjType() const              { return m_eObjType; }
52 
GetOleId() const53     const SvGlobalName&  GetOleId() const                { return m_aOleId; }
54 
GetCategory() const55     const OUString&  GetCategory() const             { return m_sCategory; }
SetCategory(const OUString & rCat)56     void             SetCategory(const OUString& rCat) { m_sCategory = rCat; }
57 
GetNumType() const58     sal_uInt16           GetNumType() const              { return m_nNumType; }
SetNumType(const sal_uInt16 nNT)59     void             SetNumType(const sal_uInt16 nNT)    { m_nNumType = nNT; }
60 
GetNumSeparator() const61     const OUString&  GetNumSeparator() const { return m_sNumberSeparator; }
SetNumSeparator(const OUString & rSet)62     void                    SetNumSeparator(const OUString& rSet) {m_sNumberSeparator = rSet;}
63 
GetCaption() const64     const OUString&  GetCaption() const              { return m_sCaption; }
SetCaption(const OUString & rCap)65     void             SetCaption(const OUString& rCap)  { m_sCaption = rCap; }
66 
GetPos() const67     sal_uInt16           GetPos() const                  { return m_nPos; }
SetPos(const sal_uInt16 nP)68     void             SetPos(const sal_uInt16 nP)         { m_nPos = nP; }
69 
GetLevel() const70     sal_uInt16           GetLevel() const                { return m_nLevel; }
SetLevel(const sal_uInt16 nLvl)71     void             SetLevel(const sal_uInt16 nLvl)     { m_nLevel = nLvl; }
72 
GetSeparator() const73     const OUString&  GetSeparator() const                { return m_sSeparator; }
SetSeparator(const OUString & rSep)74     void             SetSeparator(const OUString& rSep)    { m_sSeparator = rSep; }
75 
GetCharacterStyle() const76     const OUString&         GetCharacterStyle() const { return m_sCharacterStyle; }
SetCharacterStyle(const OUString & rStyle)77     void                    SetCharacterStyle(const OUString& rStyle)
78                                     { m_sCharacterStyle = rStyle; }
79 
IgnoreSeqOpts()80     bool&            IgnoreSeqOpts()                 { return m_bIgnoreSeqOpts; }
IgnoreSeqOpts() const81     bool             IgnoreSeqOpts() const           { return m_bIgnoreSeqOpts; }
82 
CopyAttributes()83     bool&            CopyAttributes()                { return m_bCopyAttributes; }
CopyAttributes() const84     bool             CopyAttributes() const          { return m_bCopyAttributes; }
85 };
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
90