nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / caption.hxx
blobd762091b153e6aafbc014bc0000cbdd30c72b65c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CAPTION_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_CAPTION_HXX
22 #include <rtl/ustring.hxx>
23 #include <tools/globname.hxx>
24 #include <SwCapObjType.hxx>
25 #include <swdllapi.h>
27 class SW_DLLPUBLIC InsCaptionOpt
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;
42 bool m_bIgnoreSeqOpts; // is not being saved
43 bool m_bCopyAttributes; // -""-
45 public:
46 InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = nullptr);
48 bool& UseCaption() { return m_bUseCaption; }
49 bool UseCaption() const { return m_bUseCaption; }
51 SwCapObjType GetObjType() const { return m_eObjType; }
53 const SvGlobalName& GetOleId() const { return m_aOleId; }
55 const OUString& GetCategory() const { return m_sCategory; }
56 void SetCategory(const OUString& rCat) { m_sCategory = rCat; }
58 sal_uInt16 GetNumType() const { return m_nNumType; }
59 void SetNumType(const sal_uInt16 nNT) { m_nNumType = nNT; }
61 const OUString& GetNumSeparator() const { return m_sNumberSeparator; }
62 void SetNumSeparator(const OUString& rSet) {m_sNumberSeparator = rSet;}
64 const OUString& GetCaption() const { return m_sCaption; }
65 void SetCaption(const OUString& rCap) { m_sCaption = rCap; }
67 sal_uInt16 GetPos() const { return m_nPos; }
68 void SetPos(const sal_uInt16 nP) { m_nPos = nP; }
70 sal_uInt16 GetLevel() const { return m_nLevel; }
71 void SetLevel(const sal_uInt16 nLvl) { m_nLevel = nLvl; }
73 const OUString& GetSeparator() const { return m_sSeparator; }
74 void SetSeparator(const OUString& rSep) { m_sSeparator = rSep; }
76 const OUString& GetCharacterStyle() const { return m_sCharacterStyle; }
77 void SetCharacterStyle(const OUString& rStyle)
78 { m_sCharacterStyle = rStyle; }
80 bool& IgnoreSeqOpts() { return m_bIgnoreSeqOpts; }
81 bool IgnoreSeqOpts() const { return m_bIgnoreSeqOpts; }
83 bool& CopyAttributes() { return m_bCopyAttributes; }
84 bool CopyAttributes() const { return m_bCopyAttributes; }
87 #endif
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */