LibreOffice Module sw (master) 1
caption.hxx
Go to the documentation of this file.
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
28{
29private:
33 OUString m_sCategory;
34 sal_uInt16 m_nNumType;
36 OUString m_sCaption;
37 sal_uInt16 m_nPos;
38 sal_uInt16 m_nLevel;
39 OUString m_sSeparator;
41
42 bool m_bIgnoreSeqOpts; // is not being saved
43 bool m_bCopyAttributes; // -""-
44
45public:
46 InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = nullptr);
47
48 bool& UseCaption() { return m_bUseCaption; }
49 bool UseCaption() const { return m_bUseCaption; }
50
51 SwCapObjType GetObjType() const { return m_eObjType; }
52
53 const SvGlobalName& GetOleId() const { return m_aOleId; }
54
55 const OUString& GetCategory() const { return m_sCategory; }
56 void SetCategory(const OUString& rCat) { m_sCategory = rCat; }
57
58 sal_uInt16 GetNumType() const { return m_nNumType; }
59 void SetNumType(const sal_uInt16 nNT) { m_nNumType = nNT; }
60
61 const OUString& GetNumSeparator() const { return m_sNumberSeparator; }
62 void SetNumSeparator(const OUString& rSet) {m_sNumberSeparator = rSet;}
63
64 const OUString& GetCaption() const { return m_sCaption; }
65 void SetCaption(const OUString& rCap) { m_sCaption = rCap; }
66
67 sal_uInt16 GetPos() const { return m_nPos; }
68 void SetPos(const sal_uInt16 nP) { m_nPos = nP; }
69
70 sal_uInt16 GetLevel() const { return m_nLevel; }
71 void SetLevel(const sal_uInt16 nLvl) { m_nLevel = nLvl; }
72
73 const OUString& GetSeparator() const { return m_sSeparator; }
74 void SetSeparator(const OUString& rSep) { m_sSeparator = rSep; }
75
76 const OUString& GetCharacterStyle() const { return m_sCharacterStyle; }
77 void SetCharacterStyle(const OUString& rStyle)
78 { m_sCharacterStyle = rStyle; }
79
80 bool& IgnoreSeqOpts() { return m_bIgnoreSeqOpts; }
81 bool IgnoreSeqOpts() const { return m_bIgnoreSeqOpts; }
82
83 bool& CopyAttributes() { return m_bCopyAttributes; }
84 bool CopyAttributes() const { return m_bCopyAttributes; }
85};
86
87#endif
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 m_nLevel
SwCapObjType
@ FRAME_CAP
OUString m_sNumberSeparator
Definition: caption.hxx:35
void SetCategory(const OUString &rCat)
Definition: caption.hxx:56
const OUString & GetCategory() const
Definition: caption.hxx:55
sal_uInt16 m_nLevel
Definition: caption.hxx:38
SwCapObjType m_eObjType
Definition: caption.hxx:31
bool m_bUseCaption
Definition: caption.hxx:30
OUString m_sSeparator
Definition: caption.hxx:39
OUString m_sCaption
Definition: caption.hxx:36
void SetNumType(const sal_uInt16 nNT)
Definition: caption.hxx:59
void SetLevel(const sal_uInt16 nLvl)
Definition: caption.hxx:71
const OUString & GetNumSeparator() const
Definition: caption.hxx:61
bool m_bCopyAttributes
Definition: caption.hxx:43
sal_uInt16 GetPos() const
Definition: caption.hxx:67
bool IgnoreSeqOpts() const
Definition: caption.hxx:81
bool & UseCaption()
Definition: caption.hxx:48
const OUString & GetCharacterStyle() const
Definition: caption.hxx:76
bool UseCaption() const
Definition: caption.hxx:49
bool CopyAttributes() const
Definition: caption.hxx:84
sal_uInt16 GetNumType() const
Definition: caption.hxx:58
sal_uInt16 m_nNumType
Definition: caption.hxx:34
SvGlobalName m_aOleId
Definition: caption.hxx:32
bool & CopyAttributes()
Definition: caption.hxx:83
void SetCaption(const OUString &rCap)
Definition: caption.hxx:65
const OUString & GetCaption() const
Definition: caption.hxx:64
void SetSeparator(const OUString &rSep)
Definition: caption.hxx:74
OUString m_sCategory
Definition: caption.hxx:33
void SetPos(const sal_uInt16 nP)
Definition: caption.hxx:68
OUString m_sCharacterStyle
Definition: caption.hxx:40
const SvGlobalName & GetOleId() const
Definition: caption.hxx:53
const OUString & GetSeparator() const
Definition: caption.hxx:73
SwCapObjType GetObjType() const
Definition: caption.hxx:51
sal_uInt16 m_nPos
Definition: caption.hxx:37
void SetCharacterStyle(const OUString &rStyle)
Definition: caption.hxx:77
bool & IgnoreSeqOpts()
Definition: caption.hxx:80
sal_uInt16 GetLevel() const
Definition: caption.hxx:70
void SetNumSeparator(const OUString &rSet)
Definition: caption.hxx:62
bool m_bIgnoreSeqOpts
Definition: caption.hxx:42
size_t m_nPos
static SfxItemSet & rSet
#define SW_DLLPUBLIC
Definition: swdllapi.h:28