20#ifndef INCLUDED_SW_INC_UNOPARAGRAPH_HXX
21#define INCLUDED_SW_INC_UNOPARAGRAPH_HXX
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/beans/XPropertyState.hpp>
28#include <com/sun/star/beans/XMultiPropertySet.hpp>
29#include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
30#include <com/sun/star/container/XEnumerationAccess.hpp>
31#include <com/sun/star/container/XContentEnumerationAccess.hpp>
32#include <com/sun/star/text/XTextContent.hpp>
33#include <com/sun/star/text/XTextRange.hpp>
49typedef ::cppu::ImplInheritanceHelper
51, css::lang::XServiceInfo
52, css::beans::XPropertySet
53, css::beans::XPropertyState
54, css::beans::XMultiPropertySet
55, css::beans::XTolerantMultiPropertySet
56, css::container::XEnumerationAccess
57, css::container::XContentEnumerationAccess
58, css::text::XTextContent
59, css::text::XTextRange
73 SwXParagraph(css::uno::Reference< css::text::XText >
const & xParent,
75 const sal_Int32 nSelStart,
const sal_Int32 nSelEnd);
84 css::uno::Reference< css::text::XText>
85 const& xParentText =
nullptr,
86 const sal_Int32 nSelStart = -1,
const sal_Int32 nSelEnd = - 1);
97 virtual css::uno::Reference< css::frame::XModel >
103 const OUString& rServiceName)
override;
104 virtual css::uno::Sequence< OUString > SAL_CALL
108 virtual void SAL_CALL
dispose()
override;
110 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
112 const css::uno::Reference< css::lang::XEventListener > & xListener)
override;
115 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
118 const OUString& rPropertyName,
119 const css::uno::Any& rValue)
override;
121 const OUString& rPropertyName)
override;
123 const OUString& rPropertyName,
124 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
126 const OUString& rPropertyName,
127 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
129 const OUString& rPropertyName,
130 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
132 const OUString& rPropertyName,
133 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
136 virtual css::beans::PropertyState SAL_CALL
138 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL
140 const css::uno::Sequence< OUString >& rPropertyNames)
override;
142 const OUString& rPropertyName)
override;
144 const OUString& rPropertyName)
override;
148 const css::uno::Sequence< OUString >& rPropertyNames,
149 const css::uno::Sequence< css::uno::Any >& rValues)
override;
150 virtual css::uno::Sequence< css::uno::Any >
152 const css::uno::Sequence< OUString >& rPropertyNames)
override;
154 const css::uno::Sequence< OUString >& rPropertyNames,
155 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener)
override;
157 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener)
override;
159 const css::uno::Sequence< OUString >& rPropertyNames,
160 const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener)
override;
163 virtual css::uno::Sequence< css::beans::SetPropertyTolerantFailed > SAL_CALL
165 const css::uno::Sequence< OUString >& rPropertyNames,
166 const css::uno::Sequence< css::uno::Any >& rValues)
override;
167 virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL
169 const css::uno::Sequence< OUString >& rPropertyNames)
override;
170 virtual css::uno::Sequence<
171 css::beans::GetDirectPropertyTolerantResult > SAL_CALL
173 const css::uno::Sequence< OUString >& rPropertyNames)
override;
180 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
184 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
186 virtual css::uno::Sequence< OUString > SAL_CALL
190 virtual void SAL_CALL
attach(
191 const css::uno::Reference< css::text::XTextRange > & xTextRange)
override;
192 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getAnchor()
override;
195 virtual css::uno::Reference< css::text::XText >
197 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getStart()
override;
198 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getEnd()
override;
199 virtual OUString SAL_CALL
getString()
override;
200 virtual void SAL_CALL
setString(
const OUString& rString)
override;
211 css::uno::Reference< css::text::XText >
const & xParent,
212 const std::shared_ptr<SwUnoCursor>& pCursor,
PaM is Point and Mark: a selection of the document model.
Starts a section of nodes in the document model.
SwTableBox is one table cell in the document model.
SwTextNode is a paragraph in the document model.
virtual css::uno::Reference< css::frame::XModel > GetModel() override
virtual void SAL_CALL setString(const OUString &rString) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual ~SwXParagraph() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setPropertyToDefault(const OUString &rPropertyName) override
void attachToText(SwXText &rParent, SwTextNode &rTextNode)
for SwXText
virtual OUString SAL_CALL getString() override
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
bool SelectPaM(SwPaM &rPaM)
make rPaM select the paragraph
virtual ::sfx2::Metadatable * GetCoreObject() override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
::sw::UnoImplPtr< Impl > m_pImpl
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration(const OUString &rServiceName) override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL getPropertyValuesTolerant(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
const SwTextNode * GetTextNode() const
virtual sal_Bool SAL_CALL hasElements() override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &rPropertyName) override
SwXParagraph(css::uno::Reference< css::text::XText > const &xParent, SwTextNode &rTextNode, const sal_Int32 nSelStart, const sal_Int32 nSelEnd)
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
bool IsDescriptor() const
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual css::uno::Sequence< css::beans::SetPropertyTolerantFailed > SAL_CALL setPropertyValuesTolerant(const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rValues) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &rPropertyName) override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
static rtl::Reference< SwXParagraph > CreateXParagraph(SwDoc &rDoc, SwTextNode *pTextNode, css::uno::Reference< css::text::XText > const &xParentText=nullptr, const sal_Int32 nSelStart=-1, const sal_Int32 nSelEnd=- 1)
virtual css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > SAL_CALL getDirectPropertyValuesTolerant(const css::uno::Sequence< OUString > &rPropertyNames) override
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rValues) override
rtl::Reference< SwXTextPortionEnumeration > createTextFieldsEnumeration()
tries to return less data, but may return more than just text fields
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
static rtl::Reference< SwXParagraphEnumeration > Create(css::uno::Reference< css::text::XText > const &xParent, const std::shared_ptr< SwUnoCursor > &pCursor, const CursorType eType, SwTableBox const *const pTableBox=nullptr)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
::cppu::ImplInheritanceHelper< ::sfx2::MetadatableMixin, css::lang::XServiceInfo, css::beans::XPropertySet, css::beans::XPropertyState, css::beans::XMultiPropertySet, css::beans::XTolerantMultiPropertySet, css::container::XEnumerationAccess, css::container::XContentEnumerationAccess, css::text::XTextContent, css::text::XTextRange > SwXParagraph_Base