Add Marathi autocorrect
[LibreOffice.git] / sw / source / uibase / inc / caption.hxx
blob15f7b21d6f30f11f82248d839b6985aaa811f697
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 #pragma once
21 #include <rtl/ustring.hxx>
22 #include <tools/globname.hxx>
23 #include <SwCapObjType.hxx>
24 #include <swdllapi.h>
26 class SW_DLLPUBLIC InsCaptionOpt
28 private:
29 bool m_bUseCaption;
30 SwCapObjType m_eObjType;
31 SvGlobalName m_aOleId;
32 OUString m_sCategory;
33 sal_uInt16 m_nNumType;
34 OUString m_sNumberSeparator;
35 OUString m_sCaption;
36 sal_uInt16 m_nPos;
37 sal_uInt16 m_nLevel;
38 OUString m_sSeparator;
39 OUString m_sCharacterStyle;
41 bool m_bIgnoreSeqOpts; // is not being saved
42 bool m_bCopyAttributes; // -""-
44 public:
45 InsCaptionOpt(const SwCapObjType eType = FRAME_CAP, const SvGlobalName* pOleId = nullptr);
47 bool& UseCaption() { return m_bUseCaption; }
48 bool UseCaption() const { return m_bUseCaption; }
50 SwCapObjType GetObjType() const { return m_eObjType; }
52 const SvGlobalName& GetOleId() const { return m_aOleId; }
54 const OUString& GetCategory() const { return m_sCategory; }
55 void SetCategory(const OUString& rCat) { m_sCategory = rCat; }
57 sal_uInt16 GetNumType() const { return m_nNumType; }
58 void SetNumType(const sal_uInt16 nNT) { m_nNumType = nNT; }
60 const OUString& GetNumSeparator() const { return m_sNumberSeparator; }
61 void SetNumSeparator(const OUString& rSet) {m_sNumberSeparator = rSet;}
63 const OUString& GetCaption() const { return m_sCaption; }
64 void SetCaption(const OUString& rCap) { m_sCaption = rCap; }
66 sal_uInt16 GetPos() const { return m_nPos; }
67 void SetPos(const sal_uInt16 nP) { m_nPos = nP; }
69 sal_uInt16 GetLevel() const { return m_nLevel; }
70 void SetLevel(const sal_uInt16 nLvl) { m_nLevel = nLvl; }
72 const OUString& GetSeparator() const { return m_sSeparator; }
73 void SetSeparator(const OUString& rSep) { m_sSeparator = rSep; }
75 const OUString& GetCharacterStyle() const { return m_sCharacterStyle; }
76 void SetCharacterStyle(const OUString& rStyle)
77 { m_sCharacterStyle = rStyle; }
79 bool& IgnoreSeqOpts() { return m_bIgnoreSeqOpts; }
80 bool IgnoreSeqOpts() const { return m_bIgnoreSeqOpts; }
82 bool& CopyAttributes() { return m_bCopyAttributes; }
83 bool CopyAttributes() const { return m_bCopyAttributes; }
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */