LibreOffice Module editeng (master) 1
outleeng.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#pragma once
20
21#include <editeng/outliner.hxx>
22#include <editeng/editeng.hxx>
23
24enum class SdrCompatibilityFlag;
25
26typedef std::vector<EENotify> NotifyList;
27
29{
31
32protected:
33
34 // derived from EditEngine. Allows Outliner objects to provide
35 // bullet access to the EditEngine.
36 virtual const SvxNumberFormat* GetNumberFormat( sal_Int32 nPara ) const override;
37
38public:
40 virtual ~OutlinerEditEng() override;
41
42 virtual void PaintingFirstLine(sal_Int32 nPara, const Point& rStartPos, const Point& rOrigin, Degree10 nOrientation, OutputDevice& rOutDev) override;
43
44 virtual void ParagraphInserted( sal_Int32 nNewParagraph ) override;
45 virtual void ParagraphDeleted( sal_Int32 nDeletedParagraph ) override;
46 virtual void ParagraphConnected( sal_Int32 nLeftParagraph, sal_Int32 nRightParagraph ) override;
47
48 virtual void DrawingText( const Point& rStartPos, const OUString& rText, sal_Int32 nTextStart,
49 sal_Int32 nTextLen, o3tl::span<const sal_Int32> pDXArray,
50 o3tl::span<const sal_Bool> pKashidaArray, const SvxFont& rFont,
51 sal_Int32 nPara, sal_uInt8 nRightToLeft,
52 const EEngineData::WrongSpellVector* pWrongSpellVector,
53 const SvxFieldData* pFieldData,
54 bool bEndOfLine,
55 bool bEndOfParagraph,
56 const css::lang::Locale* pLocale,
57 const Color& rOverlineColor,
58 const Color& rTextLineColor) override;
59
60 virtual void DrawingTab(
61 const Point& rStartPos, tools::Long nWidth, const OUString& rChar,
62 const SvxFont& rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft,
63 bool bEndOfLine,
64 bool bEndOfParagraph,
65 const Color& rOverlineColor,
66 const Color& rTextLineColor) override;
67
68 virtual void StyleSheetChanged( SfxStyleSheet* pStyle ) override;
69 virtual void ParaAttribsChanged( sal_Int32 nPara ) override;
70 virtual bool SpellNextDocument() override;
71 virtual OUString GetUndoComment( sal_uInt16 nUndoId ) const override;
72
73 // for text conversion
74 virtual bool ConvertNextDocument() override;
75
76 virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor, std::optional<FontLineStyle>& rFldLineStyle ) override;
77
78 virtual tools::Rectangle GetBulletArea( sal_Int32 nPara ) override;
79
81 std::optional<bool> GetCompatFlag(SdrCompatibilityFlag eFlag) const;
82
83 virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
84
85 // belongs into class Outliner, move there before incompatible update!
88};
89
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool ConvertNextDocument() override
Definition: outleeng.cxx:124
virtual void SetParaAttribs(sal_Int32 nPara, const SfxItemSet &rSet) override
Definition: outleeng.cxx:182
virtual void ParagraphConnected(sal_Int32 nLeftParagraph, sal_Int32 nRightParagraph) override
Definition: outleeng.cxx:96
virtual void ParaAttribsChanged(sal_Int32 nPara) override
Definition: outleeng.cxx:114
virtual OUString GetUndoComment(sal_uInt16 nUndoId) const override
Definition: outleeng.cxx:129
virtual OUString CalcFieldValue(const SvxFieldItem &rField, sal_Int32 nPara, sal_Int32 nPos, std::optional< Color > &rTxtColor, std::optional< Color > &rFldColor, std::optional< FontLineStyle > &rFldLineStyle) override
Definition: outleeng.cxx:177
virtual void ParagraphDeleted(sal_Int32 nDeletedParagraph) override
Definition: outleeng.cxx:89
NotifyList aNotifyCache
Definition: outleeng.hxx:87
virtual void ParagraphInserted(sal_Int32 nNewParagraph) override
Definition: outleeng.cxx:82
virtual ~OutlinerEditEng() override
Definition: outleeng.cxx:38
virtual void DrawingTab(const Point &rStartPos, tools::Long nWidth, const OUString &rChar, const SvxFont &rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color &rOverlineColor, const Color &rTextLineColor) override
Definition: outleeng.cxx:168
OutlinerEditEng(Outliner *pOwner, SfxItemPool *pPool)
Definition: outleeng.cxx:32
virtual bool SpellNextDocument() override
Definition: outleeng.cxx:119
virtual void StyleSheetChanged(SfxStyleSheet *pStyle) override
Definition: outleeng.cxx:109
virtual const SvxNumberFormat * GetNumberFormat(sal_Int32 nPara) const override
Definition: outleeng.cxx:53
virtual tools::Rectangle GetBulletArea(sal_Int32 nPara) override
Definition: outleeng.cxx:62
virtual void PaintingFirstLine(sal_Int32 nPara, const Point &rStartPos, const Point &rOrigin, Degree10 nOrientation, OutputDevice &rOutDev) override
Definition: outleeng.cxx:42
std::optional< bool > GetCompatFlag(SdrCompatibilityFlag eFlag) const
Definition: outleeng.cxx:73
virtual void DrawingText(const Point &rStartPos, const OUString &rText, sal_Int32 nTextStart, sal_Int32 nTextLen, o3tl::span< const sal_Int32 > pDXArray, o3tl::span< const sal_Bool > pKashidaArray, const SvxFont &rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, const EEngineData::WrongSpellVector *pWrongSpellVector, const SvxFieldData *pFieldData, bool bEndOfLine, bool bEndOfParagraph, const css::lang::Locale *pLocale, const Color &rOverlineColor, const Color &rTextLineColor) override
Definition: outleeng.cxx:153
Link< EENotify &, void > aOutlinerNotifyHdl
Definition: outleeng.hxx:86
Outliner * pOwner
Definition: outleeng.hxx:30
This item stores a field (SvxFieldData).
Definition: flditem.hxx:70
SdrCompatibilityFlag
std::vector< WrongSpellClass > WrongSpellVector
Definition: eedata.hxx:42
long Long
std::vector< EENotify > NotifyList
Definition: outleeng.hxx:24
unsigned char sal_uInt8