LibreOffice Module sw (master) 1
ftninfo.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_INC_FTNINFO_HXX
20#define INCLUDED_SW_INC_FTNINFO_HXX
21
22#include <rtl/ustring.hxx>
23#include "swdllapi.h"
24#include "calbck.hxx"
25#include <editeng/numitem.hxx>
26
28class SwPageDesc;
29class SwCharFormat;
30class SwDoc;
31
33{
39 OUString m_sPrefix;
40 OUString m_sSuffix;
41protected:
43 virtual void SwClientNotify( const SwModify&, const SfxHint&) override;
44
45public:
48
49 void ChgPageDesc(SwPageDesc* pDesc);
50 SwPageDesc* GetPageDesc(SwDoc& rDoc) const;
51 bool KnowsPageDesc() const;
52 bool DependsOn(const SwPageDesc*) const;
53
54 void SetFootnoteTextColl(SwTextFormatColl& rColl);
55 SwTextFormatColl* GetFootnoteTextColl() const { return m_pTextFormatColl; } // can be 0.
56
57 SwCharFormat* GetCharFormat(SwDoc &rDoc) const;
58 void SetCharFormat( SwCharFormat* );
59
60 SwCharFormat* GetAnchorCharFormat(SwDoc &rDoc) const;
61 void SetAnchorCharFormat(SwCharFormat*);
62 SwCharFormat* GetCurrentCharFormat(const bool bAnchor) const;
63
65 bool operator==( const SwEndNoteInfo &rInf ) const;
66
69
70 const OUString& GetPrefix() const { return m_sPrefix; }
71 const OUString& GetSuffix() const { return m_sSuffix; }
72
73 void SetPrefix(const OUString& rSet) { m_sPrefix = rSet; }
74 void SetSuffix(const OUString& rSet) { m_sSuffix = rSet; }
75 void UpdateFormatOrAttr();
76};
77
79{
80 // Momentarily only PAGE and CHAPTER. CHAPTER == document-endnotes.
83};
84
85enum SwFootnoteNum : unsigned
86{
88};
89
91{
92 using SwEndNoteInfo::operator ==;
93
94public:
95 OUString m_aQuoVadis;
96 OUString m_aErgoSum;
99
101
102 bool operator==( const SwFootnoteInfo &rInf ) const;
103
106};
107
108#endif
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Represents the style of a text portion.
Definition: charfmt.hxx:27
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:120
Definition: doc.hxx:192
void SetPrefix(const OUString &rSet)
Definition: ftninfo.hxx:73
OUString m_sPrefix
Definition: ftninfo.hxx:39
bool m_bEndNote
Definition: ftninfo.hxx:42
SwCharFormat * m_pCharFormat
Definition: ftninfo.hxx:37
const OUString & GetPrefix() const
Definition: ftninfo.hxx:70
sw::WriterMultiListener m_aDepends
Definition: ftninfo.hxx:34
void SetSuffix(const OUString &rSet)
Definition: ftninfo.hxx:74
OUString m_sSuffix
Definition: ftninfo.hxx:40
SwCharFormat * m_pAnchorFormat
Definition: ftninfo.hxx:38
sal_uInt16 m_nFootnoteOffset
Definition: ftninfo.hxx:47
const OUString & GetSuffix() const
Definition: ftninfo.hxx:71
SvxNumberType m_aFormat
Definition: ftninfo.hxx:46
SwTextFormatColl * m_pTextFormatColl
Definition: ftninfo.hxx:35
SwTextFormatColl * GetFootnoteTextColl() const
Definition: ftninfo.hxx:55
SwPageDesc * m_pPageDesc
Definition: ftninfo.hxx:36
OUString m_aErgoSum
Definition: ftninfo.hxx:96
SwFootnoteNum m_eNum
Definition: ftninfo.hxx:98
SwFootnotePos m_ePos
Definition: ftninfo.hxx:97
OUString m_aQuoVadis
Definition: ftninfo.hxx:95
Represents the style of a paragraph.
Definition: fmtcol.hxx:59
WriterListener & operator=(WriterListener const &)=delete
SwFootnoteNum
Definition: ftninfo.hxx:86
@ FTNNUM_PAGE
Definition: ftninfo.hxx:87
@ FTNNUM_DOC
Definition: ftninfo.hxx:87
@ FTNNUM_CHAPTER
Definition: ftninfo.hxx:87
SwFootnotePos
Definition: ftninfo.hxx:79
@ FTNPOS_CHAPTER
Definition: ftninfo.hxx:82
@ FTNPOS_PAGE
Definition: ftninfo.hxx:81
static SfxItemSet & rSet
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)