nss: upgrade to release 3.73
[LibreOffice.git] / include / editeng / unotext.hxx
blob86841fbb0d565e19215d3ccbfb3558c5762bbb86
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 .
20 #ifndef INCLUDED_EDITENG_UNOTEXT_HXX
21 #define INCLUDED_EDITENG_UNOTEXT_HXX
23 #include <memory>
24 #include <com/sun/star/text/XTextRange.hpp>
25 #include <com/sun/star/text/XTextContent.hpp>
26 #include <com/sun/star/container/XEnumerationAccess.hpp>
27 #include <com/sun/star/text/XTextRangeMover.hpp>
28 #include <com/sun/star/text/XTextCursor.hpp>
29 #include <com/sun/star/lang/XTypeProvider.hpp>
30 #include <com/sun/star/lang/XServiceInfo.hpp>
31 #include <com/sun/star/beans/XPropertySet.hpp>
32 #include <com/sun/star/beans/XPropertyState.hpp>
33 #include <com/sun/star/beans/XMultiPropertySet.hpp>
34 #include <com/sun/star/text/XTextRangeCompare.hpp>
35 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
36 #include <com/sun/star/text/XTextAppend.hpp>
37 #include <com/sun/star/text/XTextCopy.hpp>
38 #include <com/sun/star/container/XIndexReplace.hpp>
39 #include <com/sun/star/awt/FontSlant.hpp>
40 #include <com/sun/star/awt/FontDescriptor.hpp>
41 #include <com/sun/star/style/LineSpacing.hpp>
42 #include <com/sun/star/style/TabStop.hpp>
43 #include <com/sun/star/lang/XUnoTunnel.hpp>
44 #include <comphelper/interfacecontainer2.hxx>
45 #include <cppuhelper/implbase1.hxx>
46 #include <cppuhelper/weakagg.hxx>
47 #include <osl/diagnose.hxx>
48 #include <osl/mutex.hxx>
49 #include <comphelper/servicehelper.hxx>
50 #include <svl/itemset.hxx>
51 #include <svl/solar.hrc>
52 #include <editeng/editdata.hxx>
53 #include <editeng/unoedsrc.hxx>
54 #include <editeng/eeitem.hxx>
55 #include <editeng/editengdllapi.h>
56 #include <editeng/memberids.h>
58 class SvxItemPropertySet;
59 struct SfxItemPropertyMapEntry;
60 struct SfxItemPropertySimpleEntry;
62 #define WID_FONTDESC OWN_ATTR_VALUE_START
63 #define WID_NUMLEVEL OWN_ATTR_VALUE_START+1
64 #define WID_PORTIONTYPE OWN_ATTR_VALUE_START+2
65 #define WID_NUMBERINGSTARTVALUE OWN_ATTR_VALUE_START+3
66 #define WID_PARAISNUMBERINGRESTART OWN_ATTR_VALUE_START+4
68 #define SVX_UNOEDIT_NUMBERING_PROPERTIE \
69 {u"" UNO_NAME_NUMBERING_RULES, EE_PARA_NUMBULLET, cppu::UnoType<css::container::XIndexReplace>::get(), 0, 0 }, \
70 {u"" UNO_NAME_NUMBERING, EE_PARA_BULLETSTATE,cppu::UnoType<bool>::get(), 0, 0 }
72 #define SVX_UNOEDIT_OUTLINER_PROPERTIES \
73 SVX_UNOEDIT_NUMBERING_PROPERTIE, \
74 {u"" UNO_NAME_NUMBERING_LEVEL, WID_NUMLEVEL, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
75 {u"NumberingStartValue", WID_NUMBERINGSTARTVALUE, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
76 {u"ParaIsNumberingRestart", WID_PARAISNUMBERINGRESTART, cppu::UnoType<bool>::get(), 0, 0 }
78 #define SVX_UNOEDIT_CHAR_PROPERTIES \
79 { u"" UNO_NAME_EDIT_CHAR_HEIGHT, EE_CHAR_FONTHEIGHT, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
80 { u"CharScaleWidth", EE_CHAR_FONTWIDTH, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
81 { u"" UNO_NAME_EDIT_CHAR_FONTNAME, EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
82 { u"" UNO_NAME_EDIT_CHAR_FONTSTYLENAME,EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
83 { u"" UNO_NAME_EDIT_CHAR_FONTFAMILY, EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
84 { u"" UNO_NAME_EDIT_CHAR_FONTCHARSET, EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
85 { u"" UNO_NAME_EDIT_CHAR_FONTPITCH, EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
86 { u"" UNO_NAME_EDIT_CHAR_POSTURE, EE_CHAR_ITALIC, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
87 { u"" UNO_NAME_EDIT_CHAR_WEIGHT, EE_CHAR_WEIGHT, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
88 { u"" UNO_NAME_EDIT_CHAR_LOCALE, EE_CHAR_LANGUAGE, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
89 { u"" UNO_NAME_EDIT_CHAR_COLOR, EE_CHAR_COLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
90 { u"" UNO_NAME_EDIT_CHAR_TRANSPARENCE,EE_CHAR_COLOR, ::cppu::UnoType<sal_Int16>::get(), 0, MID_COLOR_ALPHA }, \
91 { u"CharBackColor", EE_CHAR_BKGCOLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
92 { u"CharBackTransparent", EE_CHAR_BKGCOLOR, ::cppu::UnoType<bool>::get(), 0, MID_GRAPHIC_TRANSPARENT }, \
93 { u"" UNO_NAME_EDIT_CHAR_ESCAPEMENT, EE_CHAR_ESCAPEMENT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_ESC }, \
94 { u"" UNO_NAME_EDIT_CHAR_UNDERLINE, EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
95 { u"CharUnderlineColor", EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
96 { u"CharUnderlineHasColor", EE_CHAR_UNDERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
97 { u"" UNO_NAME_EDIT_CHAR_OVERLINE, EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
98 { u"CharOverlineColor", EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
99 { u"CharOverlineHasColor", EE_CHAR_OVERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
100 { u"" UNO_NAME_EDIT_CHAR_CROSSEDOUT, EE_CHAR_STRIKEOUT, cppu::UnoType<bool>::get(), 0, MID_CROSSED_OUT }, \
101 { u"" UNO_NAME_EDIT_CHAR_STRIKEOUT, EE_CHAR_STRIKEOUT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_CROSS_OUT}, \
102 { u"" UNO_NAME_EDIT_CHAR_CASEMAP, EE_CHAR_CASEMAP, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
103 { u"" UNO_NAME_EDIT_CHAR_SHADOWED, EE_CHAR_SHADOW, cppu::UnoType<bool>::get(), 0, 0 }, \
104 { u"CharContoured", EE_CHAR_OUTLINE, cppu::UnoType<bool>::get(), 0, 0 }, \
105 { u"CharEscapementHeight", EE_CHAR_ESCAPEMENT, cppu::UnoType<sal_Int8>::get(), 0, MID_ESC_HEIGHT },\
106 { u"CharAutoKerning", EE_CHAR_PAIRKERNING,cppu::UnoType<bool>::get(), 0, 0 } , \
107 { u"CharKerning", EE_CHAR_KERNING, ::cppu::UnoType<sal_Int16>::get() , 0, 0 }, \
108 { u"CharWordMode", EE_CHAR_WLM, cppu::UnoType<bool>::get(), 0, 0 }, \
109 { u"CharEmphasis", EE_CHAR_EMPHASISMARK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_EMPHASIS},\
110 { u"" UNO_NAME_EDIT_CHAR_HEIGHT_ASIAN, EE_CHAR_FONTHEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
111 { u"" UNO_NAME_EDIT_CHAR_FONTNAME_ASIAN, EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
112 { u"" UNO_NAME_EDIT_CHAR_FONTSTYLENAME_ASIAN, EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
113 { u"" UNO_NAME_EDIT_CHAR_FONTFAMILY_ASIAN, EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
114 { u"" UNO_NAME_EDIT_CHAR_FONTCHARSET_ASIAN, EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
115 { u"" UNO_NAME_EDIT_CHAR_FONTPITCH_ASIAN, EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
116 { u"" UNO_NAME_EDIT_CHAR_POSTURE_ASIAN, EE_CHAR_ITALIC_CJK, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
117 { u"" UNO_NAME_EDIT_CHAR_WEIGHT_ASIAN, EE_CHAR_WEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
118 { u"" UNO_NAME_EDIT_CHAR_LOCALE_ASIAN, EE_CHAR_LANGUAGE_CJK, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
119 { u"" UNO_NAME_EDIT_CHAR_HEIGHT_COMPLEX, EE_CHAR_FONTHEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
120 { u"" UNO_NAME_EDIT_CHAR_FONTNAME_COMPLEX, EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
121 { u"" UNO_NAME_EDIT_CHAR_FONTSTYLENAME_COMPLEX,EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
122 { u"" UNO_NAME_EDIT_CHAR_FONTFAMILY_COMPLEX, EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
123 { u"" UNO_NAME_EDIT_CHAR_FONTCHARSET_COMPLEX, EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
124 { u"" UNO_NAME_EDIT_CHAR_FONTPITCH_COMPLEX, EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
125 { u"" UNO_NAME_EDIT_CHAR_POSTURE_COMPLEX, EE_CHAR_ITALIC_CTL, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
126 { u"" UNO_NAME_EDIT_CHAR_WEIGHT_COMPLEX, EE_CHAR_WEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
127 { u"" UNO_NAME_EDIT_CHAR_LOCALE_COMPLEX, EE_CHAR_LANGUAGE_CTL, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
128 { u"CharRelief", EE_CHAR_RELIEF, ::cppu::UnoType<sal_Int16>::get(), 0, MID_RELIEF }, \
129 { u"CharInteropGrabBag", EE_CHAR_GRABBAG, cppu::UnoType<css::uno::Sequence<css::beans::PropertyValue >>::get(), 0, 0}
132 #define SVX_UNOEDIT_FONT_PROPERTIES \
133 {u"" UNO_NAME_EDIT_FONT_DESCRIPTOR, WID_FONTDESC, cppu::UnoType<css::awt::FontDescriptor>::get(), 0, MID_FONT_FAMILY_NAME }
135 #define SVX_UNOEDIT_PARA_PROPERTIES \
136 {u"" UNO_NAME_EDIT_PARA_ADJUST, EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_PARA_ADJUST }, \
137 {u"" UNO_NAME_EDIT_PARA_BMARGIN, EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_LO_MARGIN, PropertyMoreFlags::METRIC_ITEM }, \
138 {u"" UNO_NAME_EDIT_PARA_IS_HYPHEN, EE_PARA_HYPHENATE, ::cppu::UnoType<bool>::get(), 0, 0 }, \
139 {u"ParaHyphenationNoCaps", EE_PARA_HYPHENATE_NO_CAPS, ::cppu::UnoType<bool>::get(), 0, 0 }, \
140 {u"" UNO_NAME_EDIT_PARA_LASTLINEADJ, EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_LAST_LINE_ADJUST }, \
141 {u"" UNO_NAME_EDIT_PARA_LMARGIN, EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TXT_LMARGIN, PropertyMoreFlags::METRIC_ITEM }, \
142 {u"" UNO_NAME_EDIT_PARA_LINESPACING, EE_PARA_SBL, cppu::UnoType<css::style::LineSpacing>::get(), 0, CONVERT_TWIPS}, \
143 {u"" UNO_NAME_EDIT_PARA_RMARGIN, EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_R_MARGIN, PropertyMoreFlags::METRIC_ITEM }, \
144 {u"" UNO_NAME_EDIT_PARA_TAPSTOPS, EE_PARA_TABS, cppu::UnoType<css::uno::Sequence< css::style::TabStop >>::get(), 0, 0 }, \
145 {u"" UNO_NAME_EDIT_PARA_TMARGIN, EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_UP_MARGIN, PropertyMoreFlags::METRIC_ITEM },\
146 {u"" UNO_NAME_EDIT_PARA_FIRST_LINE_INDENT, EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_FIRST_LINE_INDENT, PropertyMoreFlags::METRIC_ITEM}, \
147 {u"" UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION,EE_PARA_HANGINGPUNCTUATION, cppu::UnoType<bool>::get(), 0 ,0 }, \
148 {u"" UNO_NAME_EDIT_PARA_IS_CHARACTER_DISTANCE, EE_PARA_ASIANCJKSPACING, cppu::UnoType<bool>::get(), 0 ,0 }, \
149 {u"" UNO_NAME_EDIT_PARA_IS_FORBIDDEN_RULES, EE_PARA_FORBIDDENRULES, cppu::UnoType<bool>::get(), 0 ,0 },\
150 {u"WritingMode", EE_PARA_WRITINGDIR, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }
152 class SvxFieldItem;
153 class SvxFieldData;
155 EDITENG_DLLPUBLIC void GetSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw();
156 EDITENG_DLLPUBLIC void CheckSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw();
159 // This class implements a SvxEditSource and SvxTextForwarder and does
160 // nothing otherwise
163 class SvxDummyTextSource final : public SvxEditSource, public SvxTextForwarder
165 public:
167 // SvxEditSource
168 virtual ~SvxDummyTextSource() override;
169 virtual std::unique_ptr<SvxEditSource> Clone() const override;
170 virtual SvxTextForwarder* GetTextForwarder() override;
171 virtual void UpdateData() override;
173 // SvxTextForwarder
174 virtual sal_Int32 GetParagraphCount() const override;
175 virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const override;
176 virtual OUString GetText( const ESelection& rSel ) const override;
177 virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs::All ) const override;
178 virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
179 virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
180 virtual void RemoveAttribs( const ESelection& rSelection ) override;
181 virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
183 SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override;
184 SfxItemState GetItemState( sal_Int32 nPara, sal_uInt16 nWhich ) const override;
186 virtual SfxItemPool* GetPool() const override;
188 virtual void QuickInsertText( const OUString& rText, const ESelection& rSel ) override;
189 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) override;
190 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) override;
191 virtual void QuickInsertLineBreak( const ESelection& rSel ) override;
193 virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rpTxtColor, std::optional<Color>& rpFldColor ) override;
194 virtual void FieldClicked( const SvxFieldItem& rField ) override;
196 virtual bool IsValid() const override;
198 virtual LanguageType GetLanguage( sal_Int32, sal_Int32 ) const override;
199 virtual sal_Int32 GetFieldCount( sal_Int32 nPara ) const override;
200 virtual EFieldInfo GetFieldInfo( sal_Int32 nPara, sal_uInt16 nField ) const override;
201 virtual EBulletInfo GetBulletInfo( sal_Int32 nPara ) const override;
202 virtual tools::Rectangle GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex ) const override;
203 virtual tools::Rectangle GetParaBounds( sal_Int32 nPara ) const override;
204 virtual MapMode GetMapMode() const override;
205 virtual OutputDevice* GetRefDevice() const override;
206 virtual bool GetIndexAtPoint( const Point&, sal_Int32& nPara, sal_Int32& nIndex ) const override;
207 virtual bool GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal_Int32& nStart, sal_Int32& nEnd ) const override;
208 virtual bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell = false ) const override;
209 virtual sal_Int32 GetLineCount( sal_Int32 nPara ) const override;
210 virtual sal_Int32 GetLineLen( sal_Int32 nPara, sal_Int32 nLine ) const override;
211 virtual void GetLineBoundaries( /*out*/sal_Int32 &rStart, /*out*/sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine ) const override;
212 virtual sal_Int32 GetLineNumberAtIndex( sal_Int32 nPara, sal_Int32 nIndex ) const override;
213 virtual bool Delete( const ESelection& ) override;
214 virtual bool InsertText( const OUString&, const ESelection& ) override;
215 virtual bool QuickFormatDoc( bool bFull = false ) override;
216 virtual sal_Int16 GetDepth( sal_Int32 nPara ) const override;
217 virtual bool SetDepth( sal_Int32 nPara, sal_Int16 nNewDepth ) override;
219 virtual const SfxItemSet* GetEmptyItemSetPtr() override;
221 // implementation functions for XParagraphAppend and XTextPortionAppend
222 virtual void AppendParagraph() override;
223 virtual sal_Int32 AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet ) override;
224 //XTextCopy
225 virtual void CopyText(const SvxTextForwarder& rSource) override;
228 namespace accessibility
230 class AccessibleEditableTextPara;
234 class EDITENG_DLLPUBLIC SvxUnoTextRangeBase : public css::text::XTextRange,
235 public css::beans::XPropertySet,
236 public css::beans::XMultiPropertySet,
237 public css::beans::XMultiPropertyStates,
238 public css::beans::XPropertyState,
239 public css::lang::XServiceInfo,
240 public css::text::XTextRangeCompare,
241 public css::lang::XUnoTunnel,
242 private osl::DebugBase<SvxUnoTextRangeBase>
245 friend class SvxUnoTextRangeEnumeration;
246 friend class ::accessibility::AccessibleEditableTextPara;
247 const SvxItemPropertySet* mpPropSet;
249 protected:
250 std::unique_ptr<SvxEditSource> mpEditSource;
251 ESelection maSelection;
253 /// @throws css::beans::UnknownPropertyException
254 /// @throws css::beans::PropertyVetoException
255 /// @throws css::lang::IllegalArgumentException
256 /// @throws css::lang::WrappedTargetException
257 /// @throws css::uno::RuntimeException
258 void _setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue, sal_Int32 nPara = -1 );
259 /// @throws css::beans::UnknownPropertyException
260 /// @throws css::lang::WrappedTargetException
261 /// @throws css::uno::RuntimeException
262 css::uno::Any _getPropertyValue( const OUString& PropertyName, sal_Int32 nPara = -1 );
264 /// @throws css::beans::PropertyVetoException
265 /// @throws css::lang::IllegalArgumentException
266 /// @throws css::lang::WrappedTargetException
267 /// @throws css::uno::RuntimeException
268 void _setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues, sal_Int32 nPara = -1 );
269 /// @throws css::uno::RuntimeException
270 css::uno::Sequence< css::uno::Any > _getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, sal_Int32 nPara = -1 );
272 /// @throws css::beans::UnknownPropertyException
273 /// @throws css::uno::RuntimeException
274 css::beans::PropertyState _getPropertyState( const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara = -1 );
275 /// @throws css::beans::UnknownPropertyException
276 /// @throws css::uno::RuntimeException
277 css::beans::PropertyState _getPropertyState( const OUString& PropertyName, sal_Int32 nPara = -1 );
278 /// @throws css::beans::UnknownPropertyException
279 /// @throws css::uno::RuntimeException
280 css::uno::Sequence< css::beans::PropertyState > _getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName, sal_Int32 nPara = -1 );
281 // returns true if property found or false if unknown property
282 static bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, css::beans::PropertyState& rState);
284 /// @throws css::beans::UnknownPropertyException
285 /// @throws css::uno::RuntimeException
286 void _setPropertyToDefault( const OUString& PropertyName, sal_Int32 nPara = -1 );
287 /// @throws css::beans::UnknownPropertyException
288 /// @throws css::uno::RuntimeException
289 void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara );
290 void SetEditSource( SvxEditSource* _pEditSource ) throw();
292 /// @throws css::beans::UnknownPropertyException
293 /// @throws css::uno::RuntimeException
294 void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, css::uno::Any& rAny, const SfxItemSet& rSet );
295 /// @throws css::beans::UnknownPropertyException
296 /// @throws css::lang::IllegalArgumentException
297 void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet );
299 SvxUnoTextRangeBase(const SvxItemPropertySet* _pSet);
300 SvxUnoTextRangeBase(const SvxEditSource* pSource, const SvxItemPropertySet* _pSet);
301 SvxUnoTextRangeBase(const SvxUnoTextRangeBase& rRange);
302 virtual ~SvxUnoTextRangeBase() throw();
304 public:
305 // Internal
306 const ESelection& GetSelection() const throw()
308 const SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : nullptr;
309 CheckSelection(const_cast<SvxUnoTextRangeBase*>(this)->maSelection, pForwarder);
310 return maSelection;
312 void SetSelection( const ESelection& rSelection ) throw();
314 void CollapseToStart() throw();
315 void CollapseToEnd() throw();
316 bool IsCollapsed() throw();
317 bool GoLeft(sal_Int16 nCount, bool Expand) throw();
318 bool GoRight(sal_Int16 nCount, bool Expand) throw();
319 void GotoStart(bool Expand) throw();
320 void GotoEnd(bool Expand) throw();
322 //const SfxItemPropertyMapEntry* getPropertyMapEntries() const throw() { return maPropSet.getPropertyMapEntries(); }
323 const SvxItemPropertySet* getPropertySet() const throw() { return mpPropSet; }
324 SvxEditSource* GetEditSource() const throw() { return mpEditSource.get(); }
326 static bool SetPropertyValueHelper( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& aValue, SfxItemSet& rNewSet, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
327 /// @throws css::uno::RuntimeException
328 static bool GetPropertyValueHelper( SfxItemSet const & rSet, const SfxItemPropertySimpleEntry* pMap, css::uno::Any& aAny, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
330 void attachField( std::unique_ptr<SvxFieldData> pData ) throw();
332 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextRangeBase )
334 // css::text::XTextRange
335 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
336 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
337 virtual OUString SAL_CALL getString() override;
338 virtual void SAL_CALL setString( const OUString& aString ) override;
340 // css::beans::XPropertySet
341 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
342 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
343 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
344 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
345 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
346 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
347 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
349 // XMultiPropertySet
350 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
351 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
352 virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
353 virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
354 virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
356 // css::beans::XPropertyState
357 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
358 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
359 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
360 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
362 // css::beans::XMultiPropertyStates
363 //virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException);
364 virtual void SAL_CALL setAllPropertiesToDefault() override;
365 virtual void SAL_CALL setPropertiesToDefault( const css::uno::Sequence< OUString >& aPropertyNames ) override;
366 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults( const css::uno::Sequence< OUString >& aPropertyNames ) override;
368 // XTextRangeCompare
369 virtual ::sal_Int16 SAL_CALL compareRegionStarts( const css::uno::Reference< css::text::XTextRange >& xR1, const css::uno::Reference< css::text::XTextRange >& xR2 ) override;
370 virtual ::sal_Int16 SAL_CALL compareRegionEnds( const css::uno::Reference< css::text::XTextRange >& xR1, const css::uno::Reference< css::text::XTextRange >& xR2 ) override;
372 // css::lang::XServiceInfo
373 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
374 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
375 static css::uno::Sequence< OUString > getSupportedServiceNames_Static( );
379 class SvxUnoTextBase;
380 class EDITENG_DLLPUBLIC SvxUnoTextRange final : public SvxUnoTextRangeBase,
381 public css::lang::XTypeProvider,
382 public ::cppu::OWeakAggObject
384 friend class SvxUnoTextRangeEnumeration;
385 private:
386 css::uno::Reference< css::text::XText > xParentText;
387 bool mbPortion;
389 public:
390 SvxUnoTextRange(const SvxUnoTextBase& rParent, bool bPortion = false);
391 virtual ~SvxUnoTextRange() throw() override;
393 // css::uno::XInterface
394 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
395 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
396 virtual void SAL_CALL acquire() throw() override;
397 virtual void SAL_CALL release() throw() override;
399 // css::text::XTextRange
400 virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override;
402 // css::lang::XServiceInfo
403 virtual OUString SAL_CALL getImplementationName() override;
405 // css::lang::XTypeProvider
406 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
407 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
410 class EDITENG_DLLPUBLIC SvxUnoTextBase : public SvxUnoTextRangeBase,
411 public css::text::XTextAppend,
412 public css::text::XTextCopy,
413 public css::container::XEnumerationAccess,
414 public css::text::XTextRangeMover,
415 public css::lang::XTypeProvider
417 css::uno::Reference< css::text::XText > xParentText;
419 protected:
420 SvxUnoTextBase(const SvxItemPropertySet* _pSet);
421 SvxUnoTextBase(const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent);
422 SvxUnoTextBase(const SvxUnoTextBase& rText);
423 virtual ~SvxUnoTextBase() throw() override;
425 public:
426 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextBase )
428 css::uno::Reference< css::text::XTextCursor > createTextCursorBySelection( const ESelection& rSel );
430 // css::uno::XInterface
431 /// @throws css::uno::RuntimeException
432 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType );
434 // css::text::XSimpleText
435 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor( ) override;
436 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange( const css::uno::Reference< css::text::XTextRange >& aTextPosition ) override;
437 virtual void SAL_CALL insertString( const css::uno::Reference< css::text::XTextRange >& xRange, const OUString& aString, sal_Bool bAbsorb ) override;
438 virtual void SAL_CALL insertControlCharacter( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb ) override;
440 // css::text::XText
441 virtual void SAL_CALL insertTextContent( const css::uno::Reference< css::text::XTextRange >& xRange, const css::uno::Reference< css::text::XTextContent >& xContent, sal_Bool bAbsorb ) override;
442 virtual void SAL_CALL removeTextContent( const css::uno::Reference< css::text::XTextContent >& xContent ) override;
443 virtual OUString SAL_CALL getString() override;
444 virtual void SAL_CALL setString( const OUString& aString ) override;
446 // css::text::XTextRange
447 virtual css::uno::Reference< css::text::XText > SAL_CALL getText( ) override;
448 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
449 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
451 // css::container::XEnumerationAccess
452 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
454 // css::container::XElementAccess
455 virtual css::uno::Type SAL_CALL getElementType( ) override;
456 virtual sal_Bool SAL_CALL hasElements( ) override;
458 // css::text::XTextRangeMover
459 virtual void SAL_CALL moveTextRange( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Int16 nParagraphs ) override;
461 // css::text::XParagraphAppend (new import API)
462 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraph( const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties ) override;
463 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraphInsert( const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange >& xInsertPosition ) override;
465 // css::text::XTextPortionAppend (new import API)
466 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextPortion( const OUString& Text, const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties ) override;
468 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextPortion( const OUString& Text, const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange>& rTextRange ) override;
470 // css::text::XTextCopy
471 virtual void SAL_CALL copyText( const css::uno::Reference< css::text::XTextCopy >& xSource ) override;
473 // css::lang::XServiceInfo
474 virtual OUString SAL_CALL getImplementationName() override;
475 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
476 static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( );
478 // css::lang::XTypeProvider
479 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
480 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
484 class EDITENG_DLLPUBLIC SvxUnoText : public SvxUnoTextBase,
485 public ::cppu::OWeakAggObject
487 public:
488 SvxUnoText( const SvxItemPropertySet* _pSet ) throw();
489 SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent ) throw();
490 SvxUnoText( const SvxUnoText& rText ) throw();
491 virtual ~SvxUnoText() throw() override;
493 // Internal
494 static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
495 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
497 // css::uno::XInterface
498 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
499 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
500 virtual void SAL_CALL acquire() throw() override;
501 virtual void SAL_CALL release() throw() override;
503 // css::lang::XTypeProvider
504 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
505 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
509 class SvxUnoTextContent final : public SvxUnoTextRangeBase,
510 public css::text::XTextContent,
511 public css::container::XEnumerationAccess,
512 public css::lang::XTypeProvider,
513 public ::cppu::OWeakAggObject
515 friend class SvxUnoTextContentEnumeration;
516 private:
517 css::uno::Reference< css::text::XText > mxParentText;
518 sal_Int32 mnParagraph;
519 const SvxUnoTextBase& mrParentText;
521 // for xComponent
522 ::osl::Mutex maDisposeContainerMutex;
523 ::comphelper::OInterfaceContainerHelper2 maDisposeListeners;
524 bool mbDisposing;
526 protected:
527 using SvxUnoTextRangeBase::setPropertyValue;
528 using SvxUnoTextRangeBase::getPropertyValue;
530 public:
531 SvxUnoTextContent( const SvxUnoTextBase& rText, sal_Int32 nPara ) throw();
532 SvxUnoTextContent( const SvxUnoTextContent& rContent ) throw();
533 virtual ~SvxUnoTextContent() throw() override;
535 // css::uno::XInterface
536 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
537 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
538 virtual void SAL_CALL acquire() throw() override;
539 virtual void SAL_CALL release() throw() override;
541 // css::text::XTextRange
542 virtual css::uno::Reference< css::text::XText > SAL_CALL getText( ) override;
544 // css::text::XTextContent -> css::lang::XComponent
545 virtual void SAL_CALL attach( const css::uno::Reference< css::text::XTextRange >& xTextRange ) override;
546 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor( ) override;
548 // css::lang::XComponent
549 virtual void SAL_CALL dispose() override;
550 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
551 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
553 // css::container::XEnumerationAccess
554 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
556 // css::container::XElementAccess
557 virtual css::uno::Type SAL_CALL getElementType() override;
558 virtual sal_Bool SAL_CALL hasElements() override;
560 // css::beans::XPropertySet
561 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
562 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
564 // XMultiPropertySet
565 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
566 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
568 // css::beans::XPropertyState
569 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
570 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
571 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
573 // css::lang::XServiceInfo
574 virtual OUString SAL_CALL getImplementationName() override;
575 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
577 // css::lang::XTypeProvider
578 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
579 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
583 class SvxUnoTextContentEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
585 private:
586 css::uno::Reference< css::text::XText > mxParentText;
587 std::unique_ptr<SvxEditSource> mpEditSource;
588 sal_Int32 mnNextParagraph;
589 std::vector< rtl::Reference<SvxUnoTextContent> > maContents;
591 public:
592 SvxUnoTextContentEnumeration( const SvxUnoTextBase& _rText, const ESelection& rSel ) throw();
593 virtual ~SvxUnoTextContentEnumeration() throw() override;
595 // css::container::XEnumeration
596 virtual sal_Bool SAL_CALL hasMoreElements( ) override;
597 virtual css::uno::Any SAL_CALL nextElement( ) override;
601 class SvxUnoTextRangeEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
603 private:
604 std::unique_ptr<SvxEditSource> mpEditSource;
605 css::uno::Reference< css::text::XText > mxParentText;
606 std::vector< rtl::Reference<SvxUnoTextRange> > maPortions;
607 sal_uInt16 mnNextPortion;
609 public:
610 SvxUnoTextRangeEnumeration(const SvxUnoTextBase& rText, sal_Int32 nPara, const ESelection& rSel);
611 virtual ~SvxUnoTextRangeEnumeration() throw() override;
613 // css::container::XEnumeration
614 virtual sal_Bool SAL_CALL hasMoreElements( ) override;
615 virtual css::uno::Any SAL_CALL nextElement( ) override;
619 class EDITENG_DLLPUBLIC SvxUnoTextCursor : public SvxUnoTextRangeBase,
620 public css::text::XTextCursor,
621 public css::lang::XTypeProvider,
622 public ::cppu::OWeakAggObject
624 private:
625 css::uno::Reference< css::text::XText > mxParentText;
627 public:
628 SvxUnoTextCursor( const SvxUnoTextBase& rText ) throw();
629 SvxUnoTextCursor( const SvxUnoTextCursor& rCursor ) throw();
630 virtual ~SvxUnoTextCursor() throw() override;
632 // css::uno::XInterface
633 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
634 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
635 virtual void SAL_CALL acquire() throw() override;
636 virtual void SAL_CALL release() throw() override;
638 // css::text::XTextRange
639 virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override;
640 virtual OUString SAL_CALL getString() override;
641 virtual void SAL_CALL setString( const OUString& aString ) override;
642 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
643 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
645 // css::text::XTextCursor -> css::text::XTextRange
646 virtual void SAL_CALL collapseToStart( ) override;
647 virtual void SAL_CALL collapseToEnd( ) override;
648 virtual sal_Bool SAL_CALL isCollapsed( ) override;
649 virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) override;
650 virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) override;
651 virtual void SAL_CALL gotoStart( sal_Bool bExpand ) override;
652 virtual void SAL_CALL gotoEnd( sal_Bool bExpand ) override;
653 virtual void SAL_CALL gotoRange( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Bool bExpand ) override;
655 // css::lang::XServiceInfo
656 virtual OUString SAL_CALL getImplementationName() override;
657 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
658 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
660 // css::lang::XTypeProvider
661 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
662 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
666 EDITENG_DLLPUBLIC const SvxItemPropertySet* ImplGetSvxUnoOutlinerTextCursorSvxPropertySet();
667 const SfxItemPropertyMapEntry* ImplGetSvxUnoOutlinerTextCursorPropertyMap();
668 const SvxItemPropertySet* ImplGetSvxTextPortionSvxPropertySet();
669 const SfxItemPropertyMapEntry* ImplGetSvxTextPortionPropertyMap();
671 #endif
673 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */