19#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOPORT_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_UNOPORT_HXX
25#include <com/sun/star/beans/XPropertySet.hpp>
26#include <com/sun/star/text/XTextRange.hpp>
27#include <com/sun/star/container/XEnumeration.hpp>
28#include <com/sun/star/container/XContentEnumerationAccess.hpp>
29#include <com/sun/star/beans/XPropertyState.hpp>
30#include <com/sun/star/beans/XMultiPropertySet.hpp>
31#include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
32#include <com/sun/star/lang/XServiceInfo.hpp>
50 css::uno::Reference< css::text::XTextRange > >
84 css::beans::XTolerantMultiPropertySet,
85 css::beans::XMultiPropertySet,
86 css::beans::XPropertySet,
87 css::text::XTextRange,
88 css::beans::XPropertyState,
89 css::container::XContentEnumerationAccess,
90 css::lang::XServiceInfo
97 const css::uno::Reference< css::text::XText >
99 css::uno::Reference< css::text::XTextContent >
101 css::uno::Reference< css::text::XTextContent >
103 css::uno::Reference< css::text::XTextContent >
105 css::uno::Reference< css::text::XFootnote >
107 css::uno::Reference< css::text::XTextField >
109 css::uno::Reference< css::text::XTextContent >
138 const css::uno::Sequence< OUString >& aPropertyNames,
139 const css::uno::Sequence< css::uno::Any >& aValues );
144 const css::uno::Sequence< OUString >& aPropertyNames );
151 const css::uno::Sequence< OUString >& rPropertyNames,
bool bDirectValuesOnly );
164 css::uno::Reference< css::text::XText > xParent,
168 virtual css::uno::Reference< css::text::XText > SAL_CALL
getText()
override;
169 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getStart()
override;
170 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getEnd()
override;
171 virtual OUString SAL_CALL
getString()
override;
172 virtual void SAL_CALL
setString(
const OUString& aString)
override;
175 virtual css::uno::Sequence< css::beans::SetPropertyTolerantFailed > SAL_CALL
setPropertyValuesTolerant(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Sequence< css::uno::Any >& aValues )
override;
176 virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL
getPropertyValuesTolerant(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
177 virtual css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > SAL_CALL
getDirectPropertyValuesTolerant(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
180 virtual void SAL_CALL
setPropertyValues(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Sequence< css::uno::Any >& aValues )
override;
181 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
getPropertyValues(
const css::uno::Sequence< OUString >& aPropertyNames )
override;
182 virtual void SAL_CALL
addPropertiesChangeListener(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
184 virtual void SAL_CALL
firePropertiesChangeEvent(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener )
override;
187 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
188 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
189 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
190 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
191 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
192 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
193 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
196 virtual css::beans::PropertyState SAL_CALL
getPropertyState(
const OUString& PropertyName )
override;
197 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override;
199 virtual css::uno::Any SAL_CALL
getPropertyDefault(
const OUString& aPropertyName )
override;
207 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createContentEnumeration(
const OUString& aServiceName)
override;
210 void SetRefMark( css::uno::Reference< css::text::XTextContent >
const & xMark)
213 void SetTOXMark( css::uno::Reference< css::text::XTextContent >
const & xMark)
216 void SetBookmark( css::uno::Reference< css::text::XTextContent >
const & xMark)
219 void SetFootnote( css::uno::Reference< css::text::XFootnote >
const & xNote)
222 void SetTextField( css::uno::Reference< css::text::XTextField>
const & xField)
225 void SetMeta( css::uno::Reference< css::text::XTextContent >
const & xMeta)
228 void SetLineBreak(css::uno::Reference<css::text::XTextContent>
const& xLineBreak)
247 :
public ::cppu::WeakImplHelper
248 < css::container::XEnumeration
249 , css::lang::XServiceInfo
260 css::uno::Reference< css::text::XText >
const & xParent,
261 const sal_Int32 nStart,
const sal_Int32 nEnd,
bool bOnlyTextFields =
false );
268 virtual css::uno::Any SAL_CALL
nextElement()
override;
273 virtual css::uno::Sequence< OUString > SAL_CALL
292 css::uno::Reference< css::text::XText >
const& xParent,
293 bool const bIsStart);
297 std::u16string_view PropertyName,
SwRangeRedline const& rRedline);
302 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
307 const OUString& rPropertyName)
override;
PaM is Point and Mark: a selection of the document model.
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
SwXRedlinePortion(SwRangeRedline const &rRedline, SwUnoCursor const *pPortionCursor, css::uno::Reference< css::text::XText > const &xParent, bool const bIsStart)
static css::uno::Any GetPropertyValue(std::u16string_view PropertyName, SwRangeRedline const &rRedline)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
static css::uno::Sequence< css::beans::PropertyValue > CreateRedlineProperties(SwRangeRedline const &rRedline, bool const bIsStart)
virtual ~SwXRedlinePortion() override
SwRangeRedline const & m_rRedline
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL nextElement() override
SwXTextPortionEnumeration(SwPaM &rParaCursor, css::uno::Reference< css::text::XText > const &xParent, const sal_Int32 nStart, const sal_Int32 nEnd, bool bOnlyTextFields=false)
TextRangeList_t m_Portions
virtual sal_Bool SAL_CALL hasMoreElements() override
virtual ~SwXTextPortionEnumeration() override
sw::UnoCursorPointer m_pUnoCursor
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SetMeta(css::uno::Reference< css::text::XTextContent > const &xMeta)
const SwTextPortionType m_ePortionType
virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL getPropertyValuesTolerant(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
SwUnoCursor & GetCursor() const
SwTextPortionType GetTextPortionType() const
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
css::uno::Reference< css::text::XTextContent > m_xRefMark
void init(const SwUnoCursor *pPortionCursor)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
void SetContentControl(const css::uno::Reference< css::text::XTextContent > &xContentControl)
SwFrameFormat * m_pFrameFormat
std::optional< css::uno::Any > m_oRubyPosition
css::uno::Reference< css::text::XTextContent > m_xBookmark
css::uno::Reference< css::text::XTextContent > m_xMeta
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
SwXTextPortion(const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > xParent, SwFrameFormat &rFormat)
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Sequence< css::beans::SetPropertyTolerantFailed > SAL_CALL setPropertyValuesTolerant(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
css::uno::Reference< css::text::XTextContent > m_xTOXMark
bool m_bIsListAutoFormat
Expose the paragraph's RES_PARATR_LIST_AUTOFMT, not the char props of the underlying (empty) text.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SwXTextPortion(const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > xParent, SwTextPortionType eType)
virtual OUString SAL_CALL getImplementationName() override
void GetPropertyValue(css::uno::Any &rVal, const SfxItemPropertyMapEntry &rEntry, SwUnoCursor *pUnoCursor, std::unique_ptr< SfxItemSet > &pSet)
const css::uno::Reference< css::text::XText > m_xParentText
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
css::uno::Reference< css::text::XTextContent > m_xLineBreak
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
void SetFootnote(css::uno::Reference< css::text::XFootnote > const &xNote)
void SetRefMark(css::uno::Reference< css::text::XTextContent > const &xMark)
virtual OUString SAL_CALL getString() override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
void SetCollapsed(bool bSet)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
void SetLineBreak(css::uno::Reference< css::text::XTextContent > const &xLineBreak)
std::optional< css::uno::Any > m_oRubyAdjust
std::optional< css::uno::Any > m_oRubyIsAbove
css::uno::Reference< css::text::XFootnote > m_xFootnote
void SetTextField(css::uno::Reference< css::text::XTextField > const &xField)
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
SwXTextPortion(const SwUnoCursor *pPortionCursor, SwTextRuby const &rAttr, css::uno::Reference< css::text::XText > xParent, bool bIsEnd)
std::optional< css::uno::Any > m_oRubyStyle
css::uno::Reference< css::text::XTextField > m_xTextField
virtual void SAL_CALL setString(const OUString &aString) override
const SfxItemPropertySet * m_pPropSet
void SetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues)
void SetBookmark(css::uno::Reference< css::text::XTextContent > const &xMark)
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl(const css::uno::Sequence< OUString > &aPropertyNames)
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > GetPropertyValuesTolerant_Impl(const css::uno::Sequence< OUString > &rPropertyNames, bool bDirectValuesOnly)
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > SAL_CALL getDirectPropertyValuesTolerant(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual void Notify(const SfxHint &rHint) override
virtual ~SwXTextPortion() override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration(const OUString &aServiceName) override
std::optional< css::uno::Any > m_oRubyText
css::uno::Reference< css::text::XTextContent > m_xContentControl
sw::UnoCursorPointer m_pUnoCursor
void SetTOXMark(css::uno::Reference< css::text::XTextContent > const &xMark)
std::deque< css::uno::Reference< css::text::XTextRange > > TextRangeList_t
std::deque< css::uno::Reference< css::text::XTextRange > > TextRangeList_t
@ PORTION_CONTENT_CONTROL
@ PORTION_FIELD_START_END