1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
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 {OUString(UNO_NAME_NUMBERING_RULES), EE_PARA_NUMBULLET, cppu::UnoType<css::container::XIndexReplace>::get(), 0, 0 }, \
70 {OUString(UNO_NAME_NUMBERING), EE_PARA_BULLETSTATE,cppu::UnoType<bool>::get(), 0, 0 }
72 #define SVX_UNOEDIT_OUTLINER_PROPERTIES \
73 SVX_UNOEDIT_NUMBERING_PROPERTIE, \
74 {OUString(UNO_NAME_NUMBERING_LEVEL), WID_NUMLEVEL, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
75 {OUString("NumberingStartValue"), WID_NUMBERINGSTARTVALUE, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
76 {OUString("ParaIsNumberingRestart"), WID_PARAISNUMBERINGRESTART, cppu::UnoType<bool>::get(), 0, 0 }
78 #define SVX_UNOEDIT_CHAR_PROPERTIES \
79 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT), EE_CHAR_FONTHEIGHT, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
80 { OUString("CharScaleWidth"), EE_CHAR_FONTWIDTH, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
81 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME), EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
82 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME),EE_CHAR_FONTINFO, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
83 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
84 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
85 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH), EE_CHAR_FONTINFO, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
86 { OUString(UNO_NAME_EDIT_CHAR_POSTURE), EE_CHAR_ITALIC, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
87 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT), EE_CHAR_WEIGHT, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
88 { OUString(UNO_NAME_EDIT_CHAR_LOCALE), EE_CHAR_LANGUAGE, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
89 { OUString(UNO_NAME_EDIT_CHAR_COLOR), EE_CHAR_COLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
90 { OUString("CharBackColor"), EE_CHAR_BKGCOLOR, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, \
91 { OUString("CharBackTransparent"), EE_CHAR_BKGCOLOR, ::cppu::UnoType<bool>::get(), 0, MID_GRAPHIC_TRANSPARENT }, \
92 { OUString(UNO_NAME_EDIT_CHAR_ESCAPEMENT), EE_CHAR_ESCAPEMENT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_ESC }, \
93 { OUString(UNO_NAME_EDIT_CHAR_UNDERLINE), EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
94 { OUString("CharUnderlineColor"), EE_CHAR_UNDERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
95 { OUString("CharUnderlineHasColor"), EE_CHAR_UNDERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
96 { OUString(UNO_NAME_EDIT_CHAR_OVERLINE), EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int16>::get(), 0, MID_TL_STYLE }, \
97 { OUString("CharOverlineColor"), EE_CHAR_OVERLINE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TL_COLOR }, \
98 { OUString("CharOverlineHasColor"), EE_CHAR_OVERLINE, cppu::UnoType<bool>::get(), 0, MID_TL_HASCOLOR } , \
99 { OUString(UNO_NAME_EDIT_CHAR_CROSSEDOUT), EE_CHAR_STRIKEOUT, cppu::UnoType<bool>::get(), 0, MID_CROSSED_OUT }, \
100 { OUString(UNO_NAME_EDIT_CHAR_STRIKEOUT), EE_CHAR_STRIKEOUT, ::cppu::UnoType<sal_Int16>::get(), 0, MID_CROSS_OUT}, \
101 { OUString(UNO_NAME_EDIT_CHAR_CASEMAP), EE_CHAR_CASEMAP, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, \
102 { OUString(UNO_NAME_EDIT_CHAR_SHADOWED), EE_CHAR_SHADOW, cppu::UnoType<bool>::get(), 0, 0 }, \
103 { OUString("CharContoured"), EE_CHAR_OUTLINE, cppu::UnoType<bool>::get(), 0, 0 }, \
104 { OUString("CharEscapementHeight"), EE_CHAR_ESCAPEMENT, cppu::UnoType<sal_Int8>::get(), 0, MID_ESC_HEIGHT },\
105 { OUString("CharAutoKerning"), EE_CHAR_PAIRKERNING,cppu::UnoType<bool>::get(), 0, 0 } , \
106 { OUString("CharKerning"), EE_CHAR_KERNING, ::cppu::UnoType<sal_Int16>::get() , 0, 0 }, \
107 { OUString("CharWordMode"), EE_CHAR_WLM, cppu::UnoType<bool>::get(), 0, 0 }, \
108 { OUString("CharEmphasis"), EE_CHAR_EMPHASISMARK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_EMPHASIS},\
109 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT_ASIAN), EE_CHAR_FONTHEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
110 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
111 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
112 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
113 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
114 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH_ASIAN), EE_CHAR_FONTINFO_CJK, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
115 { OUString(UNO_NAME_EDIT_CHAR_POSTURE_ASIAN), EE_CHAR_ITALIC_CJK, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
116 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT_ASIAN), EE_CHAR_WEIGHT_CJK, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
117 { OUString(UNO_NAME_EDIT_CHAR_LOCALE_ASIAN), EE_CHAR_LANGUAGE_CJK, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
118 { OUString(UNO_NAME_EDIT_CHAR_HEIGHT_COMPLEX), EE_CHAR_FONTHEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_FONTHEIGHT|CONVERT_TWIPS }, \
119 { OUString(UNO_NAME_EDIT_CHAR_FONTNAME_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_FAMILY_NAME },\
120 { OUString(UNO_NAME_EDIT_CHAR_FONTSTYLENAME_COMPLEX),EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<OUString>::get(), 0, MID_FONT_STYLE_NAME }, \
121 { OUString(UNO_NAME_EDIT_CHAR_FONTFAMILY_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_FAMILY }, \
122 { OUString(UNO_NAME_EDIT_CHAR_FONTCHARSET_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_CHAR_SET }, \
123 { OUString(UNO_NAME_EDIT_CHAR_FONTPITCH_COMPLEX), EE_CHAR_FONTINFO_CTL, ::cppu::UnoType<sal_Int16>::get(), 0, MID_FONT_PITCH }, \
124 { OUString(UNO_NAME_EDIT_CHAR_POSTURE_COMPLEX), EE_CHAR_ITALIC_CTL, ::cppu::UnoType<css::awt::FontSlant>::get(),0, MID_POSTURE }, \
125 { OUString(UNO_NAME_EDIT_CHAR_WEIGHT_COMPLEX), EE_CHAR_WEIGHT_CTL, cppu::UnoType<float>::get(), 0, MID_WEIGHT }, \
126 { OUString(UNO_NAME_EDIT_CHAR_LOCALE_COMPLEX), EE_CHAR_LANGUAGE_CTL, ::cppu::UnoType<css::lang::Locale>::get(),0, MID_LANG_LOCALE }, \
127 { OUString("CharRelief"), EE_CHAR_RELIEF, ::cppu::UnoType<sal_Int16>::get(), 0, MID_RELIEF }, \
128 { OUString("CharInteropGrabBag"), EE_CHAR_GRABBAG, cppu::UnoType<css::uno::Sequence<css::beans::PropertyValue >>::get(), 0, 0}
131 #define SVX_UNOEDIT_FONT_PROPERTIES \
132 {OUString(UNO_NAME_EDIT_FONT_DESCRIPTOR), WID_FONTDESC, cppu::UnoType<css::awt::FontDescriptor>::get(), 0, MID_FONT_FAMILY_NAME }
134 #define SVX_UNOEDIT_PARA_PROPERTIES \
135 {OUString(UNO_NAME_EDIT_PARA_ADJUST), EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_PARA_ADJUST }, \
136 {OUString(UNO_NAME_EDIT_PARA_BMARGIN), EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_LO_MARGIN, PropertyMoreFlags::METRIC_ITEM }, \
137 {OUString(UNO_NAME_EDIT_PARA_IS_HYPHEN), EE_PARA_HYPHENATE, ::cppu::UnoType<bool>::get(), 0, 0 }, \
138 {OUString(UNO_NAME_EDIT_PARA_LASTLINEADJ), EE_PARA_JUST, ::cppu::UnoType<sal_Int16>::get(), 0, MID_LAST_LINE_ADJUST }, \
139 {OUString(UNO_NAME_EDIT_PARA_LMARGIN), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_TXT_LMARGIN, PropertyMoreFlags::METRIC_ITEM }, \
140 {OUString(UNO_NAME_EDIT_PARA_LINESPACING), EE_PARA_SBL, cppu::UnoType<css::style::LineSpacing>::get(), 0, CONVERT_TWIPS}, \
141 {OUString(UNO_NAME_EDIT_PARA_RMARGIN), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_R_MARGIN, PropertyMoreFlags::METRIC_ITEM }, \
142 {OUString(UNO_NAME_EDIT_PARA_TAPSTOPS), EE_PARA_TABS, cppu::UnoType<css::uno::Sequence< css::style::TabStop >>::get(), 0, 0 }, \
143 {OUString(UNO_NAME_EDIT_PARA_TMARGIN), EE_PARA_ULSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_UP_MARGIN, PropertyMoreFlags::METRIC_ITEM },\
144 {OUString(UNO_NAME_EDIT_PARA_FIRST_LINE_INDENT), EE_PARA_LRSPACE, ::cppu::UnoType<sal_Int32>::get(), 0, MID_FIRST_LINE_INDENT, PropertyMoreFlags::METRIC_ITEM}, \
145 {OUString(UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION),EE_PARA_HANGINGPUNCTUATION, cppu::UnoType<bool>::get(), 0 ,0 }, \
146 {OUString(UNO_NAME_EDIT_PARA_IS_CHARACTER_DISTANCE), EE_PARA_ASIANCJKSPACING, cppu::UnoType<bool>::get(), 0 ,0 }, \
147 {OUString(UNO_NAME_EDIT_PARA_IS_FORBIDDEN_RULES), EE_PARA_FORBIDDENRULES, cppu::UnoType<bool>::get(), 0 ,0 },\
148 {OUString("WritingMode"), EE_PARA_WRITINGDIR, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }
153 EDITENG_DLLPUBLIC
void GetSelection( struct ESelection
& rSel
, SvxTextForwarder
const * pForwarder
) throw();
154 EDITENG_DLLPUBLIC
void CheckSelection( struct ESelection
& rSel
, SvxTextForwarder
const * pForwarder
) throw();
157 // This class implements a SvxEditSource and SvxTextForwarder and does
161 class SvxDummyTextSource
: public SvxEditSource
, public SvxTextForwarder
166 virtual ~SvxDummyTextSource() override
;
167 virtual std::unique_ptr
<SvxEditSource
> Clone() const override
;
168 virtual SvxTextForwarder
* GetTextForwarder() override
;
169 virtual void UpdateData() override
;
172 virtual sal_Int32
GetParagraphCount() const override
;
173 virtual sal_Int32
GetTextLen( sal_Int32 nParagraph
) const override
;
174 virtual OUString
GetText( const ESelection
& rSel
) const override
;
175 virtual SfxItemSet
GetAttribs( const ESelection
& rSel
, EditEngineAttribs nOnlyHardAttrib
= EditEngineAttribs::All
) const override
;
176 virtual SfxItemSet
GetParaAttribs( sal_Int32 nPara
) const override
;
177 virtual void SetParaAttribs( sal_Int32 nPara
, const SfxItemSet
& rSet
) override
;
178 virtual void RemoveAttribs( const ESelection
& rSelection
) override
;
179 virtual void GetPortions( sal_Int32 nPara
, std::vector
<sal_Int32
>& rList
) const override
;
181 SfxItemState
GetItemState( const ESelection
& rSel
, sal_uInt16 nWhich
) const override
;
182 SfxItemState
GetItemState( sal_Int32 nPara
, sal_uInt16 nWhich
) const override
;
184 virtual SfxItemPool
* GetPool() const override
;
186 virtual void QuickInsertText( const OUString
& rText
, const ESelection
& rSel
) override
;
187 virtual void QuickInsertField( const SvxFieldItem
& rFld
, const ESelection
& rSel
) override
;
188 virtual void QuickSetAttribs( const SfxItemSet
& rSet
, const ESelection
& rSel
) override
;
189 virtual void QuickInsertLineBreak( const ESelection
& rSel
) override
;
191 virtual OUString
CalcFieldValue( const SvxFieldItem
& rField
, sal_Int32 nPara
, sal_Int32 nPos
, boost::optional
<Color
>& rpTxtColor
, boost::optional
<Color
>& rpFldColor
) override
;
192 virtual void FieldClicked( const SvxFieldItem
& rField
, sal_Int32 nPara
, sal_Int32 nPos
) override
;
194 virtual bool IsValid() const override
;
196 virtual LanguageType
GetLanguage( sal_Int32
, sal_Int32
) const override
;
197 virtual sal_Int32
GetFieldCount( sal_Int32 nPara
) const override
;
198 virtual EFieldInfo
GetFieldInfo( sal_Int32 nPara
, sal_uInt16 nField
) const override
;
199 virtual EBulletInfo
GetBulletInfo( sal_Int32 nPara
) const override
;
200 virtual tools::Rectangle
GetCharBounds( sal_Int32 nPara
, sal_Int32 nIndex
) const override
;
201 virtual tools::Rectangle
GetParaBounds( sal_Int32 nPara
) const override
;
202 virtual MapMode
GetMapMode() const override
;
203 virtual OutputDevice
* GetRefDevice() const override
;
204 virtual bool GetIndexAtPoint( const Point
&, sal_Int32
& nPara
, sal_Int32
& nIndex
) const override
;
205 virtual bool GetWordIndices( sal_Int32 nPara
, sal_Int32 nIndex
, sal_Int32
& nStart
, sal_Int32
& nEnd
) const override
;
206 virtual bool GetAttributeRun( sal_Int32
& nStartIndex
, sal_Int32
& nEndIndex
, sal_Int32 nPara
, sal_Int32 nIndex
, bool bInCell
= false ) const override
;
207 virtual sal_Int32
GetLineCount( sal_Int32 nPara
) const override
;
208 virtual sal_Int32
GetLineLen( sal_Int32 nPara
, sal_Int32 nLine
) const override
;
209 virtual void GetLineBoundaries( /*out*/sal_Int32
&rStart
, /*out*/sal_Int32
&rEnd
, sal_Int32 nParagraph
, sal_Int32 nLine
) const override
;
210 virtual sal_Int32
GetLineNumberAtIndex( sal_Int32 nPara
, sal_Int32 nIndex
) const override
;
211 virtual bool Delete( const ESelection
& ) override
;
212 virtual bool InsertText( const OUString
&, const ESelection
& ) override
;
213 virtual bool QuickFormatDoc( bool bFull
= false ) override
;
214 virtual sal_Int16
GetDepth( sal_Int32 nPara
) const override
;
215 virtual bool SetDepth( sal_Int32 nPara
, sal_Int16 nNewDepth
) override
;
217 virtual const SfxItemSet
* GetEmptyItemSetPtr() override
;
219 // implementation functions for XParagraphAppend and XTextPortionAppend
220 virtual void AppendParagraph() override
;
221 virtual sal_Int32
AppendTextPortion( sal_Int32 nPara
, const OUString
&rText
, const SfxItemSet
&rSet
) override
;
223 virtual void CopyText(const SvxTextForwarder
& rSource
) override
;
226 namespace accessibility
228 class AccessibleEditableTextPara
;
232 class EDITENG_DLLPUBLIC SvxUnoTextRangeBase
: public css::text::XTextRange
,
233 public css::beans::XPropertySet
,
234 public css::beans::XMultiPropertySet
,
235 public css::beans::XMultiPropertyStates
,
236 public css::beans::XPropertyState
,
237 public css::lang::XServiceInfo
,
238 public css::text::XTextRangeCompare
,
239 public css::lang::XUnoTunnel
,
240 private osl::DebugBase
<SvxUnoTextRangeBase
>
243 friend class SvxUnoTextRangeEnumeration
;
244 friend class ::accessibility::AccessibleEditableTextPara
;
245 const SvxItemPropertySet
* mpPropSet
;
248 std::unique_ptr
<SvxEditSource
> mpEditSource
;
249 ESelection maSelection
;
251 /// @throws css::beans::UnknownPropertyException
252 /// @throws css::beans::PropertyVetoException
253 /// @throws css::lang::IllegalArgumentException
254 /// @throws css::lang::WrappedTargetException
255 /// @throws css::uno::RuntimeException
256 void _setPropertyValue( const OUString
& aPropertyName
, const css::uno::Any
& aValue
, sal_Int32 nPara
= -1 );
257 /// @throws css::beans::UnknownPropertyException
258 /// @throws css::lang::WrappedTargetException
259 /// @throws css::uno::RuntimeException
260 css::uno::Any
_getPropertyValue( const OUString
& PropertyName
, sal_Int32 nPara
= -1 );
262 /// @throws css::beans::PropertyVetoException
263 /// @throws css::lang::IllegalArgumentException
264 /// @throws css::lang::WrappedTargetException
265 /// @throws css::uno::RuntimeException
266 void _setPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
, const css::uno::Sequence
< css::uno::Any
>& aValues
, sal_Int32 nPara
= -1 );
267 /// @throws css::uno::RuntimeException
268 css::uno::Sequence
< css::uno::Any
> _getPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
, sal_Int32 nPara
= -1 );
270 /// @throws css::beans::UnknownPropertyException
271 /// @throws css::uno::RuntimeException
272 css::beans::PropertyState
_getPropertyState( const SfxItemPropertySimpleEntry
* pMap
, sal_Int32 nPara
= -1 );
273 /// @throws css::beans::UnknownPropertyException
274 /// @throws css::uno::RuntimeException
275 css::beans::PropertyState
_getPropertyState( const OUString
& PropertyName
, sal_Int32 nPara
= -1 );
276 /// @throws css::beans::UnknownPropertyException
277 /// @throws css::uno::RuntimeException
278 css::uno::Sequence
< css::beans::PropertyState
> _getPropertyStates( const css::uno::Sequence
< OUString
>& aPropertyName
, sal_Int32 nPara
= -1 );
279 // returns true if property found or false if unknown property
280 static bool _getOnePropertyStates(const SfxItemSet
* pSet
, const SfxItemPropertySimpleEntry
* pMap
, css::beans::PropertyState
& rState
);
282 /// @throws css::beans::UnknownPropertyException
283 /// @throws css::uno::RuntimeException
284 void _setPropertyToDefault( const OUString
& PropertyName
, sal_Int32 nPara
= -1 );
285 /// @throws css::beans::UnknownPropertyException
286 /// @throws css::uno::RuntimeException
287 void _setPropertyToDefault( SvxTextForwarder
* pForwarder
, const SfxItemPropertySimpleEntry
* pMap
, sal_Int32 nPara
);
288 void SetEditSource( SvxEditSource
* _pEditSource
) throw();
290 /// @throws css::beans::UnknownPropertyException
291 /// @throws css::uno::RuntimeException
292 void getPropertyValue( const SfxItemPropertySimpleEntry
* pMap
, css::uno::Any
& rAny
, const SfxItemSet
& rSet
);
293 /// @throws css::beans::UnknownPropertyException
294 /// @throws css::lang::IllegalArgumentException
295 void setPropertyValue( const SfxItemPropertySimpleEntry
* pMap
, const css::uno::Any
& rValue
, const ESelection
& rSelection
, const SfxItemSet
& rOldSet
, SfxItemSet
& rNewSet
);
297 SvxUnoTextRangeBase(const SvxItemPropertySet
* _pSet
);
298 SvxUnoTextRangeBase(const SvxEditSource
* pSource
, const SvxItemPropertySet
* _pSet
);
299 SvxUnoTextRangeBase(const SvxUnoTextRangeBase
& rRange
);
300 virtual ~SvxUnoTextRangeBase() throw();
304 const ESelection
& GetSelection() const throw()
306 const SvxTextForwarder
* pForwarder
= mpEditSource
? mpEditSource
->GetTextForwarder() : nullptr;
307 CheckSelection(const_cast<SvxUnoTextRangeBase
*>(this)->maSelection
, pForwarder
);
310 void SetSelection( const ESelection
& rSelection
) throw();
312 void CollapseToStart() throw();
313 void CollapseToEnd() throw();
314 bool IsCollapsed() throw();
315 bool GoLeft(sal_Int16 nCount
, bool Expand
) throw();
316 bool GoRight(sal_Int16 nCount
, bool Expand
) throw();
317 void GotoStart(bool Expand
) throw();
318 void GotoEnd(bool Expand
) throw();
320 //const SfxItemPropertyMapEntry* getPropertyMapEntries() const throw() { return maPropSet.getPropertyMapEntries(); }
321 const SvxItemPropertySet
* getPropertySet() const throw() { return mpPropSet
; }
322 SvxEditSource
* GetEditSource() const throw() { return mpEditSource
.get(); }
324 static bool SetPropertyValueHelper( const SfxItemPropertySimpleEntry
* pMap
, const css::uno::Any
& aValue
, SfxItemSet
& rNewSet
, const ESelection
* pSelection
= nullptr, SvxEditSource
* pEditSource
= nullptr );
325 /// @throws css::uno::RuntimeException
326 static bool GetPropertyValueHelper( SfxItemSet
const & rSet
, const SfxItemPropertySimpleEntry
* pMap
, css::uno::Any
& aAny
, const ESelection
* pSelection
= nullptr, SvxEditSource
* pEditSource
= nullptr );
328 void attachField( std::unique_ptr
<SvxFieldData
> pData
) throw();
330 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextRangeBase
)
332 // css::text::XTextRange
333 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
getStart() override
;
334 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
getEnd() override
;
335 virtual OUString SAL_CALL
getString() override
;
336 virtual void SAL_CALL
setString( const OUString
& aString
) override
;
338 // css::beans::XPropertySet
339 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo() override
;
340 virtual void SAL_CALL
setPropertyValue( const OUString
& aPropertyName
, const css::uno::Any
& aValue
) override
;
341 virtual css::uno::Any SAL_CALL
getPropertyValue( const OUString
& PropertyName
) override
;
342 virtual void SAL_CALL
addPropertyChangeListener( const OUString
& aPropertyName
, const css::uno::Reference
< css::beans::XPropertyChangeListener
>& xListener
) override
;
343 virtual void SAL_CALL
removePropertyChangeListener( const OUString
& aPropertyName
, const css::uno::Reference
< css::beans::XPropertyChangeListener
>& aListener
) override
;
344 virtual void SAL_CALL
addVetoableChangeListener( const OUString
& PropertyName
, const css::uno::Reference
< css::beans::XVetoableChangeListener
>& aListener
) override
;
345 virtual void SAL_CALL
removeVetoableChangeListener( const OUString
& PropertyName
, const css::uno::Reference
< css::beans::XVetoableChangeListener
>& aListener
) override
;
348 virtual void SAL_CALL
setPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
, const css::uno::Sequence
< css::uno::Any
>& aValues
) override
;
349 virtual css::uno::Sequence
< css::uno::Any
> SAL_CALL
getPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
) override
;
350 virtual void SAL_CALL
addPropertiesChangeListener( const css::uno::Sequence
< OUString
>& aPropertyNames
, const css::uno::Reference
< css::beans::XPropertiesChangeListener
>& xListener
) override
;
351 virtual void SAL_CALL
removePropertiesChangeListener( const css::uno::Reference
< css::beans::XPropertiesChangeListener
>& xListener
) override
;
352 virtual void SAL_CALL
firePropertiesChangeEvent( const css::uno::Sequence
< OUString
>& aPropertyNames
, const css::uno::Reference
< css::beans::XPropertiesChangeListener
>& xListener
) override
;
354 // css::beans::XPropertyState
355 virtual css::beans::PropertyState SAL_CALL
getPropertyState( const OUString
& PropertyName
) override
;
356 virtual css::uno::Sequence
< css::beans::PropertyState
> SAL_CALL
getPropertyStates( const css::uno::Sequence
< OUString
>& aPropertyName
) override
;
357 virtual void SAL_CALL
setPropertyToDefault( const OUString
& PropertyName
) override
;
358 virtual css::uno::Any SAL_CALL
getPropertyDefault( const OUString
& aPropertyName
) override
;
360 // css::beans::XMultiPropertyStates
361 //virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException);
362 virtual void SAL_CALL
setAllPropertiesToDefault() override
;
363 virtual void SAL_CALL
setPropertiesToDefault( const css::uno::Sequence
< OUString
>& aPropertyNames
) override
;
364 virtual css::uno::Sequence
< css::uno::Any
> SAL_CALL
getPropertyDefaults( const css::uno::Sequence
< OUString
>& aPropertyNames
) override
;
367 virtual ::sal_Int16 SAL_CALL
compareRegionStarts( const css::uno::Reference
< css::text::XTextRange
>& xR1
, const css::uno::Reference
< css::text::XTextRange
>& xR2
) override
;
368 virtual ::sal_Int16 SAL_CALL
compareRegionEnds( const css::uno::Reference
< css::text::XTextRange
>& xR1
, const css::uno::Reference
< css::text::XTextRange
>& xR2
) override
;
370 // css::lang::XServiceInfo
371 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) override
;
372 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() override
;
373 static css::uno::Sequence
< OUString
> getSupportedServiceNames_Static( );
377 class SvxUnoTextBase
;
378 class EDITENG_DLLPUBLIC SvxUnoTextRange
: public SvxUnoTextRangeBase
,
379 public css::lang::XTypeProvider
,
380 public ::cppu::OWeakAggObject
382 friend class SvxUnoTextRangeEnumeration
;
384 css::uno::Reference
< css::text::XText
> xParentText
;
388 SvxUnoTextRange(const SvxUnoTextBase
& rParent
, bool bPortion
= false);
389 virtual ~SvxUnoTextRange() throw() override
;
391 // css::uno::XInterface
392 virtual css::uno::Any SAL_CALL
queryAggregation( const css::uno::Type
& rType
) override
;
393 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& rType
) override
;
394 virtual void SAL_CALL
acquire() throw() override
;
395 virtual void SAL_CALL
release() throw() override
;
397 // css::text::XTextRange
398 virtual css::uno::Reference
< css::text::XText
> SAL_CALL
getText() override
;
400 // css::lang::XServiceInfo
401 virtual OUString SAL_CALL
getImplementationName() override
;
403 // css::lang::XTypeProvider
404 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( ) override
;
405 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) override
;
408 class EDITENG_DLLPUBLIC SvxUnoTextBase
: public SvxUnoTextRangeBase
,
409 public css::text::XTextAppend
,
410 public css::text::XTextCopy
,
411 public css::container::XEnumerationAccess
,
412 public css::text::XTextRangeMover
,
413 public css::lang::XTypeProvider
415 css::uno::Reference
< css::text::XText
> xParentText
;
418 SvxUnoTextBase(const SvxItemPropertySet
* _pSet
);
419 SvxUnoTextBase(const SvxEditSource
* pSource
, const SvxItemPropertySet
* _pSet
, css::uno::Reference
< css::text::XText
> const & xParent
);
420 SvxUnoTextBase(const SvxUnoTextBase
& rText
);
421 virtual ~SvxUnoTextBase() throw() override
;
424 UNO3_GETIMPLEMENTATION_DECL( SvxUnoTextBase
)
426 css::uno::Reference
< css::text::XTextCursor
> createTextCursorBySelection( const ESelection
& rSel
);
428 // css::uno::XInterface
429 /// @throws css::uno::RuntimeException
430 virtual css::uno::Any SAL_CALL
queryAggregation( const css::uno::Type
& rType
);
432 // css::text::XSimpleText
433 virtual css::uno::Reference
< css::text::XTextCursor
> SAL_CALL
createTextCursor( ) override
;
434 virtual css::uno::Reference
< css::text::XTextCursor
> SAL_CALL
createTextCursorByRange( const css::uno::Reference
< css::text::XTextRange
>& aTextPosition
) override
;
435 virtual void SAL_CALL
insertString( const css::uno::Reference
< css::text::XTextRange
>& xRange
, const OUString
& aString
, sal_Bool bAbsorb
) override
;
436 virtual void SAL_CALL
insertControlCharacter( const css::uno::Reference
< css::text::XTextRange
>& xRange
, sal_Int16 nControlCharacter
, sal_Bool bAbsorb
) override
;
439 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
;
440 virtual void SAL_CALL
removeTextContent( const css::uno::Reference
< css::text::XTextContent
>& xContent
) override
;
441 virtual OUString SAL_CALL
getString() override
;
442 virtual void SAL_CALL
setString( const OUString
& aString
) override
;
444 // css::text::XTextRange
445 virtual css::uno::Reference
< css::text::XText
> SAL_CALL
getText( ) override
;
446 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
getStart() override
;
447 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
getEnd() override
;
449 // css::container::XEnumerationAccess
450 virtual css::uno::Reference
< css::container::XEnumeration
> SAL_CALL
createEnumeration( ) override
;
452 // css::container::XElementAccess
453 virtual css::uno::Type SAL_CALL
getElementType( ) override
;
454 virtual sal_Bool SAL_CALL
hasElements( ) override
;
456 // css::text::XTextRangeMover
457 virtual void SAL_CALL
moveTextRange( const css::uno::Reference
< css::text::XTextRange
>& xRange
, sal_Int16 nParagraphs
) override
;
459 // css::text::XParagraphAppend (new import API)
460 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
finishParagraph( const css::uno::Sequence
< css::beans::PropertyValue
>& CharacterAndParagraphProperties
) override
;
461 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
;
463 // css::text::XTextPortionAppend (new import API)
464 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
appendTextPortion( const OUString
& Text
, const css::uno::Sequence
< css::beans::PropertyValue
>& CharacterAndParagraphProperties
) override
;
466 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
;
468 // css::text::XTextCopy
469 virtual void SAL_CALL
copyText( const css::uno::Reference
< css::text::XTextCopy
>& xSource
) override
;
471 // css::lang::XServiceInfo
472 virtual OUString SAL_CALL
getImplementationName() override
;
473 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) override
;
474 static css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames_Static( );
476 // css::lang::XTypeProvider
477 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( ) override
;
478 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) override
;
482 class EDITENG_DLLPUBLIC SvxUnoText
: public SvxUnoTextBase
,
483 public ::cppu::OWeakAggObject
486 SvxUnoText( const SvxItemPropertySet
* _pSet
) throw();
487 SvxUnoText( const SvxEditSource
* pSource
, const SvxItemPropertySet
* _pSet
, css::uno::Reference
< css::text::XText
> const & xParent
) throw();
488 SvxUnoText( const SvxUnoText
& rText
) throw();
489 virtual ~SvxUnoText() throw() override
;
492 static const css::uno::Sequence
< sal_Int8
> & getUnoTunnelId() throw();
493 virtual sal_Int64 SAL_CALL
getSomething( const css::uno::Sequence
< sal_Int8
>& aIdentifier
) override
;
495 // css::uno::XInterface
496 virtual css::uno::Any SAL_CALL
queryAggregation( const css::uno::Type
& rType
) override
;
497 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& rType
) override
;
498 virtual void SAL_CALL
acquire() throw() override
;
499 virtual void SAL_CALL
release() throw() override
;
501 // css::lang::XTypeProvider
502 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( ) override
;
503 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) override
;
507 class SvxUnoTextContent
: public SvxUnoTextRangeBase
,
508 public css::text::XTextContent
,
509 public css::container::XEnumerationAccess
,
510 public css::lang::XTypeProvider
,
511 public ::cppu::OWeakAggObject
513 friend class SvxUnoTextContentEnumeration
;
515 css::uno::Reference
< css::text::XText
> mxParentText
;
516 sal_Int32 mnParagraph
;
517 const SvxUnoTextBase
& mrParentText
;
520 ::osl::Mutex maDisposeContainerMutex
;
521 ::comphelper::OInterfaceContainerHelper2 maDisposeListeners
;
525 using SvxUnoTextRangeBase::setPropertyValue
;
526 using SvxUnoTextRangeBase::getPropertyValue
;
529 SvxUnoTextContent( const SvxUnoTextBase
& rText
, sal_Int32 nPara
) throw();
530 SvxUnoTextContent( const SvxUnoTextContent
& rContent
) throw();
531 virtual ~SvxUnoTextContent() throw() override
;
533 // css::uno::XInterface
534 virtual css::uno::Any SAL_CALL
queryAggregation( const css::uno::Type
& rType
) override
;
535 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& rType
) override
;
536 virtual void SAL_CALL
acquire() throw() override
;
537 virtual void SAL_CALL
release() throw() override
;
539 // css::text::XTextRange
540 virtual css::uno::Reference
< css::text::XText
> SAL_CALL
getText( ) override
;
542 // css::text::XTextContent -> css::lang::XComponent
543 virtual void SAL_CALL
attach( const css::uno::Reference
< css::text::XTextRange
>& xTextRange
) override
;
544 virtual css::uno::Reference
< css::text::XTextRange
> SAL_CALL
getAnchor( ) override
;
546 // css::lang::XComponent
547 virtual void SAL_CALL
dispose() override
;
548 virtual void SAL_CALL
addEventListener( const css::uno::Reference
< css::lang::XEventListener
>& xListener
) override
;
549 virtual void SAL_CALL
removeEventListener( const css::uno::Reference
< css::lang::XEventListener
>& aListener
) override
;
551 // css::container::XEnumerationAccess
552 virtual css::uno::Reference
< css::container::XEnumeration
> SAL_CALL
createEnumeration( ) override
;
554 // css::container::XElementAccess
555 virtual css::uno::Type SAL_CALL
getElementType() override
;
556 virtual sal_Bool SAL_CALL
hasElements() override
;
558 // css::beans::XPropertySet
559 virtual void SAL_CALL
setPropertyValue( const OUString
& aPropertyName
, const css::uno::Any
& aValue
) override
;
560 virtual css::uno::Any SAL_CALL
getPropertyValue( const OUString
& PropertyName
) override
;
563 virtual void SAL_CALL
setPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
, const css::uno::Sequence
< css::uno::Any
>& aValues
) override
;
564 virtual css::uno::Sequence
< css::uno::Any
> SAL_CALL
getPropertyValues( const css::uno::Sequence
< OUString
>& aPropertyNames
) override
;
566 // css::beans::XPropertyState
567 virtual css::beans::PropertyState SAL_CALL
getPropertyState( const OUString
& PropertyName
) override
;
568 virtual css::uno::Sequence
< css::beans::PropertyState
> SAL_CALL
getPropertyStates( const css::uno::Sequence
< OUString
>& aPropertyName
) override
;
569 virtual void SAL_CALL
setPropertyToDefault( const OUString
& PropertyName
) override
;
571 // css::lang::XServiceInfo
572 virtual OUString SAL_CALL
getImplementationName() override
;
573 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) override
;
575 // css::lang::XTypeProvider
576 virtual css::uno::Sequence
< css::uno::Type
> SAL_CALL
getTypes( ) override
;
577 virtual css::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) override
;
581 class SvxUnoTextContentEnumeration
: public ::cppu::WeakAggImplHelper1
< css::container::XEnumeration
>
584 css::uno::Reference
< css::text::XText
> mxParentText
;
585 std::unique_ptr
<SvxEditSource
> mpEditSource
;
586 sal_Int32 mnNextParagraph
;
587 const SvxUnoTextBase
& mrText
;
588 std::vector
< rtl::Reference
<SvxUnoTextContent
> > maContents
;
591 SvxUnoTextContentEnumeration( const SvxUnoTextBase
& _rText
, const ESelection
& rSel
) throw();
592 virtual ~SvxUnoTextContentEnumeration() throw() override
;
594 // css::container::XEnumeration
595 virtual sal_Bool SAL_CALL
hasMoreElements( ) override
;
596 virtual css::uno::Any SAL_CALL
nextElement( ) override
;
600 class SvxUnoTextRangeEnumeration
: public ::cppu::WeakAggImplHelper1
< css::container::XEnumeration
>
603 std::unique_ptr
<SvxEditSource
> mpEditSource
;
604 css::uno::Reference
< css::text::XText
> mxParentText
;
605 sal_Int32 mnParagraph
;
606 std::vector
< rtl::Reference
<SvxUnoTextRange
> > maPortions
;
607 sal_uInt16 mnNextPortion
;
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
625 css::uno::Reference
< css::text::XText
> mxParentText
;
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 EDITENG_DLLPUBLIC
const SfxItemPropertyMapEntry
* ImplGetSvxUnoOutlinerTextCursorPropertyMap();
668 EDITENG_DLLPUBLIC
const SvxItemPropertySet
* ImplGetSvxTextPortionSvxPropertySet();
669 EDITENG_DLLPUBLIC
const SfxItemPropertyMapEntry
* ImplGetSvxTextPortionPropertyMap();
673 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */