Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / editeng / unotext.hxx
blob70be94f6965d812b1d83e6cf4d9d33cf07c496b9
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/container/XNameContainer.hpp>
25 #include <com/sun/star/text/XTextRange.hpp>
26 #include <com/sun/star/text/XText.hpp>
27 #include <com/sun/star/text/XTextContent.hpp>
28 #include <com/sun/star/container/XEnumerationAccess.hpp>
29 #include <com/sun/star/text/XTextRangeMover.hpp>
30 #include <com/sun/star/text/XTextCursor.hpp>
31 #include <com/sun/star/lang/XTypeProvider.hpp>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
33 #include <com/sun/star/beans/PropertyAttribute.hpp>
34 #include <com/sun/star/beans/XPropertySet.hpp>
35 #include <com/sun/star/beans/XPropertyState.hpp>
36 #include <com/sun/star/beans/XMultiPropertySet.hpp>
37 #include <com/sun/star/text/XTextRangeCompare.hpp>
38 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
39 #include <com/sun/star/text/XTextAppend.hpp>
40 #include <com/sun/star/text/XTextCopy.hpp>
41 #include <com/sun/star/text/XTextField.hpp>
42 #include <com/sun/star/container/XIndexReplace.hpp>
43 #include <com/sun/star/awt/FontSlant.hpp>
44 #include <com/sun/star/awt/FontDescriptor.hpp>
45 #include <com/sun/star/style/LineSpacing.hpp>
46 #include <com/sun/star/style/TabStop.hpp>
47 #include <com/sun/star/lang/XUnoTunnel.hpp>
48 #include <comphelper/interfacecontainer2.hxx>
49 #include <cppuhelper/implbase1.hxx>
50 #include <cppuhelper/weakagg.hxx>
51 #include <osl/diagnose.hxx>
52 #include <osl/mutex.hxx>
53 #include <comphelper/servicehelper.hxx>
54 #include <tools/link.hxx>
55 #include <svl/itemprop.hxx>
56 #include <svl/itemset.hxx>
57 #include <svl/solar.hrc>
58 #include <editeng/editdata.hxx>
59 #include <editeng/unoedsrc.hxx>
60 #include <editeng/eeitem.hxx>
61 #include <editeng/editengdllapi.h>
62 #include <editeng/memberids.hrc>
64 class SvxItemPropertySet;
66 #define WID_FONTDESC OWN_ATTR_VALUE_START
67 #define WID_NUMLEVEL OWN_ATTR_VALUE_START+1
68 #define WID_PORTIONTYPE OWN_ATTR_VALUE_START+2
69 #define WID_NUMBERINGSTARTVALUE OWN_ATTR_VALUE_START+3
70 #define WID_PARAISNUMBERINGRESTART OWN_ATTR_VALUE_START+4
72 #define SVX_UNOEDIT_NUMBERING_PROPERTIE \
73 {OUString(UNO_NAME_NUMBERING_RULES), EE_PARA_NUMBULLET, cppu::UnoType<css::container::XIndexReplace>::get(), 0, 0 }, \
74 {OUString(UNO_NAME_NUMBERING), EE_PARA_BULLETSTATE,cppu::UnoType<bool>::get(), 0, 0 }
76 #define SVX_UNOEDIT_OUTLINER_PROPERTIES \
77 SVX_UNOEDIT_NUMBERING_PROPERTIE, \
78 {OUString(UNO_NAME_NUMBERING_LEVEL), WID_NUMLEVEL, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
79 {OUString("NumberingStartValue"), WID_NUMBERINGSTARTVALUE, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
80 {OUString("ParaIsNumberingRestart"), WID_PARAISNUMBERINGRESTART, cppu::UnoType<bool>::get(), 0, 0 }
82 #define SVX_UNOEDIT_CHAR_PROPERTIES \
83 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT), EE_CHAR_FONTHEIGHT, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
84 { OUString("CharScaleWidth"), EE_CHAR_FONTWIDTH, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
85 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME), EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
86 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME),EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
87 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
88 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
89 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
90 { OUString(UNO_NAME_EDIT_CHAR_POSTURE), EE_CHAR_ITALIC, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
91 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT), EE_CHAR_WEIGHT, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
92 { OUString(UNO_NAME_EDIT_CHAR_LOCALE), EE_CHAR_LANGUAGE, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
93 { OUString(UNO_NAME_EDIT_CHAR_COLOR), EE_CHAR_COLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
94 { OUString("CharBackColor"), EE_CHAR_BKGCOLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
95 { OUString("CharBackTransparent"), EE_CHAR_BKGCOLOR, ::cppu::UnoType<bool>::get(), 0, MID_GRAPHIC_TRANSPARENT }, \
96 { OUString(UNO_NAME_EDIT_CHAR_ESCAPEMENT), EE_CHAR_ESCAPEMENT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_ESC }, \
97 { OUString(UNO_NAME_EDIT_CHAR_UNDERLINE), EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
98 { OUString("CharUnderlineColor"), EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
99 { OUString("CharUnderlineHasColor"), EE_CHAR_UNDERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
100 { OUString(UNO_NAME_EDIT_CHAR_OVERLINE), EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
101 { OUString("CharOverlineColor"), EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
102 { OUString("CharOverlineHasColor"), EE_CHAR_OVERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
103 { OUString(UNO_NAME_EDIT_CHAR_CROSSEDOUT), EE_CHAR_STRIKEOUT, cppu::UnoType<bool>::get(), 0, MID_CROSSED_OUT }, \
104 { OUString(UNO_NAME_EDIT_CHAR_STRIKEOUT), EE_CHAR_STRIKEOUT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_CROSS_OUT}, \
105 { OUString(UNO_NAME_EDIT_CHAR_CASEMAP), EE_CHAR_CASEMAP, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
106 { OUString(UNO_NAME_EDIT_CHAR_SHADOWED), EE_CHAR_SHADOW, cppu::UnoType<bool>::get(), 0, 0 }, \
107 { OUString("CharContoured"), EE_CHAR_OUTLINE, cppu::UnoType<bool>::get(), 0, 0 }, \
108 { OUString("CharEscapementHeight"), EE_CHAR_ESCAPEMENT, cppu::UnoType<sal_Int8>::get(), 0, MID_ESC_HEIGHT },\
109 { OUString("CharAutoKerning"), EE_CHAR_PAIRKERNING,cppu::UnoType<bool>::get(), 0, 0 } , \
110 { OUString("CharKerning"), EE_CHAR_KERNING, ::cppu::UnoType<sal_Int16>::get() , 0, 0 }, \
111 { OUString("CharWordMode"), EE_CHAR_WLM, cppu::UnoType<bool>::get(), 0, 0 }, \
112 { OUString("CharEmphasis"), EE_CHAR_EMPHASISMARK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_EMPHASIS},\
113 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT_ASIAN), EE_CHAR_FONTHEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
114 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
115 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
116 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
117 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
118 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
119 { OUString(UNO_NAME_EDIT_CHAR_POSTURE_ASIAN), EE_CHAR_ITALIC_CJK, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
120 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT_ASIAN), EE_CHAR_WEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
121 { OUString(UNO_NAME_EDIT_CHAR_LOCALE_ASIAN), EE_CHAR_LANGUAGE_CJK, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
122 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT_COMPLEX), EE_CHAR_FONTHEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
123 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
124 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME_COMPLEX),EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
125 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
126 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
127 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
128 { OUString(UNO_NAME_EDIT_CHAR_POSTURE_COMPLEX), EE_CHAR_ITALIC_CTL, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
129 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT_COMPLEX), EE_CHAR_WEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
130 { OUString(UNO_NAME_EDIT_CHAR_LOCALE_COMPLEX), EE_CHAR_LANGUAGE_CTL, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
131 { OUString("CharRelief"), EE_CHAR_RELIEF, ::cppu::UnoType<sal_Int16>::get(), 0, MID_RELIEF }, \
132 { OUString("CharInteropGrabBag"), EE_CHAR_GRABBAG, cppu::UnoType<css::uno::Sequence<css::beans::PropertyValue >>::get(), 0, 0}
135 #define SVX_UNOEDIT_FONT_PROPERTIES \
136 {OUString(UNO_NAME_EDIT_FONT_DESCRIPTOR), WID_FONTDESC, cppu::UnoType<css::awt::FontDescriptor>::get(), 0, MID_FONT_FAMILY_NAME }
138 #define SVX_UNOEDIT_PARA_PROPERTIES \
139 {OUString(UNO_NAME_EDIT_PARA_ADJUST), EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_PARA_ADJUST }, \
140 {OUString(UNO_NAME_EDIT_PARA_BMARGIN), EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_LO_MARGIN|SFX_METRIC_ITEM }, \
141 {OUString(UNO_NAME_EDIT_PARA_IS_HYPHEN), EE_PARA_HYPHENATE, cppu::UnoType<bool>::get(), 0, 0 }, \
142 {OUString(UNO_NAME_EDIT_PARA_LASTLINEADJ), EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_LAST_LINE_ADJUST }, \
143 {OUString(UNO_NAME_EDIT_PARA_LMARGIN), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TXT_LMARGIN|SFX_METRIC_ITEM }, \
144 {OUString(UNO_NAME_EDIT_PARA_LINESPACING), EE_PARA_SBL, cppu::UnoType<css::style::LineSpacing>::get(), 0, CONVERT_TWIPS}, \
145 {OUString(UNO_NAME_EDIT_PARA_RMARGIN), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_R_MARGIN|SFX_METRIC_ITEM }, \
146 {OUString(UNO_NAME_EDIT_PARA_TAPSTOPS), EE_PARA_TABS, cppu::UnoType<css::uno::Sequence< css::style::TabStop >>::get(), 0, 0 }, \
147 {OUString(UNO_NAME_EDIT_PARA_TMARGIN), EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_UP_MARGIN|SFX_METRIC_ITEM },\
148 {OUString(UNO_NAME_EDIT_PARA_FIRST_LINE_INDENT), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_FIRST_LINE_INDENT|SFX_METRIC_ITEM}, \
149 {OUString(UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION),EE_PARA_HANGINGPUNCTUATION, cppu::UnoType<bool>::get(), 0 ,0 }, \
150 {OUString(UNO_NAME_EDIT_PARA_IS_CHARACTER_DISTANCE), EE_PARA_ASIANCJKSPACING, cppu::UnoType<bool>::get(), 0 ,0 }, \
151 {OUString(UNO_NAME_EDIT_PARA_IS_FORBIDDEN_RULES), EE_PARA_FORBIDDENRULES, cppu::UnoType<bool>::get(), 0 ,0 },\
152 {OUString("WritingMode"), EE_PARA_WRITINGDIR, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }
154 class SvxEditSource;
155 class SvxTextForwarder;
156 class SvxFieldItem;
157 class SvxTextEditSource;
158 class SvxFieldData;
159 struct ESelection;
161 EDITENG_DLLPUBLIC void GetSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw();
162 EDITENG_DLLPUBLIC void CheckSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw();
165 // This class implements a SvxEditSource and SvxTextForwarder and does
166 // nothing otherwise
169 class SvxDummyTextSource : public SvxEditSource, public SvxTextForwarder
171 public:
173 // SvxEditSource
174 virtual ~SvxDummyTextSource() override;
175 virtual SvxEditSource* Clone() const override;
176 virtual SvxTextForwarder* GetTextForwarder() override;
177 virtual void UpdateData() override;
179 // SvxTextForwarder
180 virtual sal_Int32 GetParagraphCount() const override;
181 virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const override;
182 virtual OUString GetText( const ESelection& rSel ) const override;
183 virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs::All ) const override;
184 virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
185 virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
186 virtual void RemoveAttribs( const ESelection& rSelection ) override;
187 virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
189 SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override;
190 SfxItemState GetItemState( sal_Int32 nPara, sal_uInt16 nWhich ) const override;
192 virtual SfxItemPool* GetPool() const override;
194 virtual void QuickInsertText( const OUString& rText, const ESelection& rSel ) override;
195 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) override;
196 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) override;
197 virtual void QuickInsertLineBreak( const ESelection& rSel ) override;
199 virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rpTxtColor, Color*& rpFldColor ) override;
200 virtual void FieldClicked( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos ) override;
202 virtual bool IsValid() const override;
204 virtual LanguageType GetLanguage( sal_Int32, sal_Int32 ) const override;
205 virtual sal_Int32 GetFieldCount( sal_Int32 nPara ) const override;
206 virtual EFieldInfo GetFieldInfo( sal_Int32 nPara, sal_uInt16 nField ) const override;
207 virtual EBulletInfo GetBulletInfo( sal_Int32 nPara ) const override;
208 virtual tools::Rectangle GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex ) const override;
209 virtual tools::Rectangle GetParaBounds( sal_Int32 nPara ) const override;
210 virtual MapMode GetMapMode() const override;
211 virtual OutputDevice* GetRefDevice() const override;
212 virtual bool GetIndexAtPoint( const Point&, sal_Int32& nPara, sal_Int32& nIndex ) const override;
213 virtual bool GetWordIndices( sal_Int32 nPara, sal_Int32 nIndex, sal_Int32& nStart, sal_Int32& nEnd ) const override;
214 virtual bool GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell = false ) const override;
215 virtual sal_Int32 GetLineCount( sal_Int32 nPara ) const override;
216 virtual sal_Int32 GetLineLen( sal_Int32 nPara, sal_Int32 nLine ) const override;
217 virtual void GetLineBoundaries( /*out*/sal_Int32 &rStart, /*out*/sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine ) const override;
218 virtual sal_Int32 GetLineNumberAtIndex( sal_Int32 nPara, sal_Int32 nIndex ) const override;
219 virtual bool Delete( const ESelection& ) override;
220 virtual bool InsertText( const OUString&, const ESelection& ) override;
221 virtual bool QuickFormatDoc( bool bFull = false ) override;
222 virtual sal_Int16 GetDepth( sal_Int32 nPara ) const override;
223 virtual bool SetDepth( sal_Int32 nPara, sal_Int16 nNewDepth ) override;
225 virtual const SfxItemSet* GetEmptyItemSetPtr() override;
227 // implementation functions for XParagraphAppend and XTextPortionAppend
228 virtual void AppendParagraph() override;
229 virtual sal_Int32 AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet ) override;
230 //XTextCopy
231 virtual void CopyText(const SvxTextForwarder& rSource) override;
234 namespace accessibility
236 class AccessibleEditableTextPara;
240 class EDITENG_DLLPUBLIC SvxUnoTextRangeBase : public css::text::XTextRange,
241 public css::beans::XPropertySet,
242 public css::beans::XMultiPropertySet,
243 public css::beans::XMultiPropertyStates,
244 public css::beans::XPropertyState,
245 public css::lang::XServiceInfo,
246 public css::text::XTextRangeCompare,
247 public css::lang::XUnoTunnel,
248 private osl::DebugBase<SvxUnoTextRangeBase>
251 friend class SvxUnoTextRangeEnumeration;
252 friend class ::accessibility::AccessibleEditableTextPara;
254 protected:
255 SvxEditSource* mpEditSource;
256 ESelection maSelection;
257 const SvxItemPropertySet* mpPropSet;
259 /// @throws css::beans::UnknownPropertyException
260 /// @throws css::beans::PropertyVetoException
261 /// @throws css::lang::IllegalArgumentException
262 /// @throws css::lang::WrappedTargetException
263 /// @throws css::uno::RuntimeException
264 void SAL_CALL _setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue, sal_Int32 nPara = -1 );
265 /// @throws css::beans::UnknownPropertyException
266 /// @throws css::lang::WrappedTargetException
267 /// @throws css::uno::RuntimeException
268 css::uno::Any SAL_CALL _getPropertyValue( const OUString& PropertyName, sal_Int32 nPara = -1 );
270 /// @throws css::beans::PropertyVetoException
271 /// @throws css::lang::IllegalArgumentException
272 /// @throws css::lang::WrappedTargetException
273 /// @throws css::uno::RuntimeException
274 void SAL_CALL _setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues, sal_Int32 nPara = -1 );
275 /// @throws css::uno::RuntimeException
276 css::uno::Sequence< css::uno::Any > SAL_CALL _getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, sal_Int32 nPara = -1 );
278 /// @throws css::beans::UnknownPropertyException
279 /// @throws css::uno::RuntimeException
280 css::beans::PropertyState SAL_CALL _getPropertyState( const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara = -1 );
281 /// @throws css::beans::UnknownPropertyException
282 /// @throws css::uno::RuntimeException
283 css::beans::PropertyState SAL_CALL _getPropertyState( const OUString& PropertyName, sal_Int32 nPara = -1 );
284 /// @throws css::beans::UnknownPropertyException
285 /// @throws css::uno::RuntimeException
286 css::uno::Sequence< css::beans::PropertyState > SAL_CALL _getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName, sal_Int32 nPara = -1 );
287 // returns true if property found or false if unknown property
288 static bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, css::beans::PropertyState& rState);
290 /// @throws css::beans::UnknownPropertyException
291 /// @throws css::uno::RuntimeException
292 void SAL_CALL _setPropertyToDefault( const OUString& PropertyName, sal_Int32 nPara = -1 );
293 /// @throws css::beans::UnknownPropertyException
294 /// @throws css::uno::RuntimeException
295 void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara );
296 void SetEditSource( SvxEditSource* _pEditSource ) throw();
298 /// @throws css::beans::UnknownPropertyException
299 /// @throws css::uno::RuntimeException
300 void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, css::uno::Any& rAny, const SfxItemSet& rSet );
301 /// @throws css::beans::UnknownPropertyException
302 /// @throws css::lang::IllegalArgumentException
303 void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet );
305 SvxUnoTextRangeBase( const SvxItemPropertySet* _pSet ) throw();
306 SvxUnoTextRangeBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet ) throw();
307 SvxUnoTextRangeBase( const SvxUnoTextRangeBase& rRange ) throw();
308 virtual ~SvxUnoTextRangeBase() throw();
310 public:
311 // Internal
312 const ESelection& GetSelection() const throw() { CheckSelection( const_cast<SvxUnoTextRangeBase*>(this)->maSelection, mpEditSource->GetTextForwarder() ); return maSelection; };
313 void SetSelection( const ESelection& rSelection ) throw();
315 void CollapseToStart() throw();
316 void CollapseToEnd() throw();
317 bool IsCollapsed() throw();
318 bool GoLeft(sal_Int16 nCount, bool Expand) throw();
319 bool GoRight(sal_Int16 nCount, bool Expand) throw();
320 void GotoStart(bool Expand) throw();
321 void GotoEnd(bool Expand) throw();
323 //const SfxItemPropertyMapEntry* getPropertyMapEntries() const throw() { return maPropSet.getPropertyMapEntries(); }
324 const SvxItemPropertySet* getPropertySet() const throw() { return mpPropSet; }
325 SvxEditSource* GetEditSource() const throw() { return mpEditSource; }
327 static bool SetPropertyValueHelper( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& aValue, SfxItemSet& rNewSet, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
328 /// @throws css::uno::RuntimeException
329 static bool GetPropertyValueHelper( SfxItemSet& rSet, const SfxItemPropertySimpleEntry* pMap, css::uno::Any& aAny, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
331 void attachField( const SvxFieldData* pData ) throw();
333 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextRangeBase )
335 // css::text::XTextRange
336 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
337 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
338 virtual OUString SAL_CALL getString() override;
339 virtual void SAL_CALL setString( const OUString& aString ) override;
341 // css::beans::XPropertySet
342 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
343 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
344 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
345 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
346 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
347 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
348 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
350 // XMultiPropertySet
351 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
352 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
353 virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
354 virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
355 virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
357 // css::beans::XPropertyState
358 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
359 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
360 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
361 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
363 // css::beans::XMultiPropertyStates
364 //virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException);
365 virtual void SAL_CALL setAllPropertiesToDefault() override;
366 virtual void SAL_CALL setPropertiesToDefault( const css::uno::Sequence< OUString >& aPropertyNames ) override;
367 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults( const css::uno::Sequence< OUString >& aPropertyNames ) override;
369 // XTextRangeCompare
370 virtual ::sal_Int16 SAL_CALL compareRegionStarts( const css::uno::Reference< css::text::XTextRange >& xR1, const css::uno::Reference< css::text::XTextRange >& xR2 ) override;
371 virtual ::sal_Int16 SAL_CALL compareRegionEnds( const css::uno::Reference< css::text::XTextRange >& xR1, const css::uno::Reference< css::text::XTextRange >& xR2 ) override;
373 // css::lang::XServiceInfo
374 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
375 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
376 static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( );
380 class SvxUnoTextBase;
381 class EDITENG_DLLPUBLIC SvxUnoTextRange : public SvxUnoTextRangeBase,
382 public css::lang::XTypeProvider,
383 public ::cppu::OWeakAggObject
385 friend class SvxUnoTextRangeEnumeration;
386 private:
387 css::uno::Reference< css::text::XText > xParentText;
388 bool mbPortion;
390 public:
391 SvxUnoTextRange( const SvxUnoTextBase& rParent, bool bPortion = false ) throw();
392 virtual ~SvxUnoTextRange() throw() override;
394 // css::uno::XInterface
395 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
396 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
397 virtual void SAL_CALL acquire() throw() override;
398 virtual void SAL_CALL release() throw() override;
400 // css::text::XTextRange
401 virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override;
403 // css::lang::XServiceInfo
404 virtual OUString SAL_CALL getImplementationName() override;
406 // css::lang::XTypeProvider
407 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
408 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
411 class EDITENG_DLLPUBLIC SvxUnoTextBase : public SvxUnoTextRangeBase,
412 public css::text::XTextAppend,
413 public css::text::XTextCopy,
414 public css::container::XEnumerationAccess,
415 public css::text::XTextRangeMover,
416 public css::lang::XTypeProvider
418 protected:
419 css::uno::Reference< css::text::XText > xParentText;
421 SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw();
422 SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent ) throw();
423 SvxUnoTextBase( const SvxUnoTextBase& rText ) throw();
424 virtual ~SvxUnoTextBase() throw() override;
426 public:
427 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextBase )
429 css::uno::Reference< css::text::XTextCursor > createTextCursorBySelection( const ESelection& rSel );
431 // css::uno::XInterface
432 /// @throws css::uno::RuntimeException
433 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType );
435 // css::text::XSimpleText
436 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor( ) override;
437 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange( const css::uno::Reference< css::text::XTextRange >& aTextPosition ) override;
438 virtual void SAL_CALL insertString( const css::uno::Reference< css::text::XTextRange >& xRange, const OUString& aString, sal_Bool bAbsorb ) override;
439 virtual void SAL_CALL insertControlCharacter( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb ) override;
441 // css::text::XText
442 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;
443 virtual void SAL_CALL removeTextContent( const css::uno::Reference< css::text::XTextContent >& xContent ) override;
444 virtual OUString SAL_CALL getString() override;
445 virtual void SAL_CALL setString( const OUString& aString ) override;
447 // css::text::XTextRange
448 virtual css::uno::Reference< css::text::XText > SAL_CALL getText( ) override;
449 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
450 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
452 // css::container::XEnumerationAccess
453 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
455 // css::container::XElementAccess
456 virtual css::uno::Type SAL_CALL getElementType( ) override;
457 virtual sal_Bool SAL_CALL hasElements( ) override;
459 // css::text::XTextRangeMover
460 virtual void SAL_CALL moveTextRange( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Int16 nParagraphs ) override;
462 // css::text::XParagraphAppend (new import API)
463 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraph( const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties ) override;
464 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;
466 // css::text::XTextPortionAppend (new import API)
467 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextPortion( const OUString& Text, const css::uno::Sequence< css::beans::PropertyValue >& CharacterAndParagraphProperties ) override;
469 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;
471 // css::text::XTextCopy
472 virtual void SAL_CALL copyText( const css::uno::Reference< css::text::XTextCopy >& xSource ) override;
474 // css::lang::XServiceInfo
475 virtual OUString SAL_CALL getImplementationName() override;
476 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
477 static css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static( );
479 // css::lang::XTypeProvider
480 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
481 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
485 class EDITENG_DLLPUBLIC SvxUnoText : public SvxUnoTextBase,
486 public ::cppu::OWeakAggObject
488 public:
489 SvxUnoText( const SvxItemPropertySet* _pSet ) throw();
490 SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent ) throw();
491 SvxUnoText( const SvxUnoText& rText ) throw();
492 virtual ~SvxUnoText() throw() override;
494 // Internal
495 static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
496 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
498 // css::uno::XInterface
499 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
500 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
501 virtual void SAL_CALL acquire() throw() override;
502 virtual void SAL_CALL release() throw() override;
504 // css::lang::XTypeProvider
505 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
506 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
510 class SvxUnoTextContentEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
512 private:
513 css::uno::Reference< css::text::XText > mxParentText;
514 std::unique_ptr<SvxEditSource> mpEditSource;
515 sal_Int32 mnNextParagraph;
516 const SvxUnoTextBase& mrText;
518 public:
519 SvxUnoTextContentEnumeration( const SvxUnoTextBase& _rText ) throw();
520 virtual ~SvxUnoTextContentEnumeration() throw() override;
522 // css::container::XEnumeration
523 virtual sal_Bool SAL_CALL hasMoreElements( ) override;
524 virtual css::uno::Any SAL_CALL nextElement( ) override;
528 class SvxUnoTextContent : public SvxUnoTextRangeBase,
529 public css::text::XTextContent,
530 public css::container::XEnumerationAccess,
531 public css::lang::XTypeProvider,
532 public ::cppu::OWeakAggObject
534 friend class SvxUnoTextContentEnumeration;
535 private:
536 css::uno::Reference< css::text::XText > mxParentText;
537 sal_Int32 mnParagraph;
538 const SvxUnoTextBase& mrParentText;
540 // for xComponent
541 ::osl::Mutex maDisposeContainerMutex;
542 ::comphelper::OInterfaceContainerHelper2 maDisposeListeners;
543 bool mbDisposing;
545 protected:
546 using SvxUnoTextRangeBase::setPropertyValue;
547 using SvxUnoTextRangeBase::getPropertyValue;
549 public:
550 SvxUnoTextContent( const SvxUnoTextBase& rText, sal_Int32 nPara ) throw();
551 SvxUnoTextContent( const SvxUnoTextContent& rContent ) throw();
552 virtual ~SvxUnoTextContent() throw() override;
554 // css::uno::XInterface
555 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
556 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
557 virtual void SAL_CALL acquire() throw() override;
558 virtual void SAL_CALL release() throw() override;
560 // css::text::XTextRange
561 virtual css::uno::Reference< css::text::XText > SAL_CALL getText( ) override;
563 // css::text::XTextContent -> css::lang::XComponent
564 virtual void SAL_CALL attach( const css::uno::Reference< css::text::XTextRange >& xTextRange ) override;
565 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor( ) override;
567 // css::lang::XComponent
568 virtual void SAL_CALL dispose() override;
569 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
570 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
572 // css::container::XEnumerationAccess
573 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration( ) override;
575 // css::container::XElementAccess
576 virtual css::uno::Type SAL_CALL getElementType() override;
577 virtual sal_Bool SAL_CALL hasElements() override;
579 // css::beans::XPropertySet
580 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
581 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
583 // XMultiPropertySet
584 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
585 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
587 // css::beans::XPropertyState
588 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
589 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
590 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
592 // css::lang::XServiceInfo
593 virtual OUString SAL_CALL getImplementationName() override;
594 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
596 // css::lang::XTypeProvider
597 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
598 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
602 class SvxUnoTextRangeEnumeration : public ::cppu::WeakAggImplHelper1< css::container::XEnumeration >
604 private:
605 SvxEditSource* mpEditSource;
606 css::uno::Reference< css::text::XText > mxParentText;
607 const SvxUnoTextBase& mrParentText;
608 sal_Int32 mnParagraph;
609 std::vector<sal_Int32>* mpPortions;
610 sal_uInt16 mnNextPortion;
612 public:
613 SvxUnoTextRangeEnumeration( const SvxUnoTextBase& rText, sal_Int32 nPara ) throw();
614 virtual ~SvxUnoTextRangeEnumeration() throw() override;
616 // css::container::XEnumeration
617 virtual sal_Bool SAL_CALL hasMoreElements( ) override;
618 virtual css::uno::Any SAL_CALL nextElement( ) override;
622 class EDITENG_DLLPUBLIC SvxUnoTextCursor : public SvxUnoTextRangeBase,
623 public css::text::XTextCursor,
624 public css::lang::XTypeProvider,
625 public ::cppu::OWeakAggObject
627 private:
628 css::uno::Reference< css::text::XText > mxParentText;
630 public:
631 SvxUnoTextCursor( const SvxUnoTextBase& rText ) throw();
632 SvxUnoTextCursor( const SvxUnoTextCursor& rCursor ) throw();
633 virtual ~SvxUnoTextCursor() throw() override;
635 // css::uno::XInterface
636 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
637 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
638 virtual void SAL_CALL acquire() throw() override;
639 virtual void SAL_CALL release() throw() override;
641 // css::text::XTextRange
642 virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override;
643 virtual OUString SAL_CALL getString() override;
644 virtual void SAL_CALL setString( const OUString& aString ) override;
645 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override;
646 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override;
648 // css::text::XTextCursor -> css::text::XTextRange
649 virtual void SAL_CALL collapseToStart( ) override;
650 virtual void SAL_CALL collapseToEnd( ) override;
651 virtual sal_Bool SAL_CALL isCollapsed( ) override;
652 virtual sal_Bool SAL_CALL goLeft( sal_Int16 nCount, sal_Bool bExpand ) override;
653 virtual sal_Bool SAL_CALL goRight( sal_Int16 nCount, sal_Bool bExpand ) override;
654 virtual void SAL_CALL gotoStart( sal_Bool bExpand ) override;
655 virtual void SAL_CALL gotoEnd( sal_Bool bExpand ) override;
656 virtual void SAL_CALL gotoRange( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Bool bExpand ) override;
658 // css::lang::XServiceInfo
659 virtual OUString SAL_CALL getImplementationName() override;
660 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
661 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
663 // css::lang::XTypeProvider
664 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
665 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
669 EDITENG_DLLPUBLIC const SvxItemPropertySet* ImplGetSvxUnoOutlinerTextCursorSvxPropertySet();
670 EDITENG_DLLPUBLIC const SfxItemPropertyMapEntry* ImplGetSvxUnoOutlinerTextCursorPropertyMap();
671 EDITENG_DLLPUBLIC const SvxItemPropertySet* ImplGetSvxTextPortionSvxPropertySet();
672 EDITENG_DLLPUBLIC const SfxItemPropertyMapEntry* ImplGetSvxTextPortionPropertyMap();
674 #endif
676 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */