20 #ifndef INCLUDED_SW_INC_UNOTEXT_HXX
21 #define INCLUDED_SW_INC_UNOTEXT_HXX
23 #include <com/sun/star/lang/XUnoTunnel.hpp>
24 #include <com/sun/star/beans/XPropertySet.hpp>
25 #include <com/sun/star/text/XTextCopy.hpp>
26 #include <com/sun/star/text/XTextRangeCompare.hpp>
27 #include <com/sun/star/text/XRelativeTextContentInsert.hpp>
28 #include <com/sun/star/text/XRelativeTextContentRemove.hpp>
29 #include <com/sun/star/text/XTextAppendAndConvert.hpp>
45 :
public css::lang::XTypeProvider
46 ,
public css::lang::XUnoTunnel
47 ,
public css::beans::XPropertySet
48 ,
public css::text::XTextAppendAndConvert
49 ,
public css::text::XTextCopy
50 ,
public css::text::XTextRangeCompare
51 ,
public css::text::XRelativeTextContentInsert
52 ,
public css::text::XRelativeTextContentRemove
61 css::uno::Reference< css::text::XTextRange > & xRange,
66 const SwPaM & rPam,
const bool bAbsorb);
87 virtual css::uno::Reference< css::text::XTextCursor >
92 const css::uno::Type& rType)
override;
95 virtual css::uno::Sequence< css::uno::Type >
102 const css::uno::Sequence< sal_Int8 >& rIdentifier)
override;
105 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
108 const OUString& rPropertyName,
109 const css::uno::Any& rValue)
override;
111 const OUString& rPropertyName)
override;
113 const OUString& rPropertyName,
114 const css::uno::Reference<
115 css::beans::XPropertyChangeListener >& xListener)
override;
117 const OUString& rPropertyName,
118 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
120 const OUString& rPropertyName,
121 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
123 const OUString& rPropertyName,
124 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
127 virtual css::uno::Reference< css::text::XText >
129 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getStart()
override;
130 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getEnd()
override;
131 virtual OUString SAL_CALL
getString()
override;
132 virtual void SAL_CALL
setString(
const OUString& rString)
override;
136 const css::uno::Reference< css::text::XTextRange > & xRange,
137 const OUString& aString,
sal_Bool bAbsorb)
override;
139 const css::uno::Reference< css::text::XTextRange > & xRange,
140 sal_Int16 nControlCharacter,
sal_Bool bAbsorb)
override;
144 const css::uno::Reference< css::text::XTextRange > & xRange,
145 const css::uno::Reference< css::text::XTextContent > & xContent,
148 const css::uno::Reference< css::text::XTextContent > & xContent)
override;
151 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
153 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
154 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
156 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
157 const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
override;
160 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
162 const OUString& rText,
163 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
165 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
167 const OUString& rText,
168 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
169 const css::uno::Reference< css::text::XTextRange >& rTextRange)
override;
172 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
174 const css::uno::Reference< css::text::XTextContent >& xTextContent,
175 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
176 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
178 const css::uno::Reference< css::text::XTextContent >& xTextContent,
179 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
180 const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
override;
183 virtual css::uno::Reference< css::text::XTextContent > SAL_CALL
185 const css::uno::Reference< css::text::XTextRange >& xStart,
186 const css::uno::Reference< css::text::XTextRange >& xEnd,
187 const css::uno::Sequence< css::beans::PropertyValue >& xFrameProperties)
override;
188 virtual css::uno::Reference<
189 css::text::XTextTable > SAL_CALL
195 css::text::XTextRange > > > >
const&
200 css::beans::PropertyValue > > >
const&
204 css::beans::PropertyValue > >
const&
207 css::beans::PropertyValue >
const&
208 rTableProperties)
override;
212 const css::uno::Reference< css::text::XTextCopy >& xSource )
override;
216 const css::uno::Reference< css::text::XTextRange >& xR1,
217 const css::uno::Reference< css::text::XTextRange >& xR2)
override;
219 const css::uno::Reference< css::text::XTextRange >& xR1,
220 const css::uno::Reference< css::text::XTextRange >& xR2)
override;
224 const css::uno::Reference< css::text::XTextContent>& xNewContent,
225 const css::uno::Reference< css::text::XTextContent>& xSuccessor)
override;
227 const css::uno::Reference< css::text::XTextContent>& xNewContent,
228 const css::uno::Reference< css::text::XTextContent>& xPredecessor)
override;
232 const css::uno::Reference< css::text::XTextContent>& xSuccessor)
override;
234 const css::uno::Reference< css::text::XTextContent>& xPredecessor)
override;
237 #endif // INCLUDED_SW_INC_UNOTEXT_HXX
Starts a section of nodes in the document model.
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
void SetDoc(SwDoc *const pDoc)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraphInsert(const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override
sal_Int16 SAL_CALL compareRegionEnds(const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
::sw::UnoImplPtr< Impl > m_pImpl
sal_Int16 SAL_CALL compareRegionStarts(const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
virtual css::uno::Reference< css::text::XTextTable > SAL_CALL convertToTable(css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::text::XTextRange > > > > const &rTableRanges, css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > > const &rCellProperties, css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > const &rRowProperties, css::uno::Sequence< css::beans::PropertyValue > const &rTableProperties) override
virtual void SAL_CALL insertControlCharacter(const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
virtual const SwStartNode * GetStartNode() const
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextContent(const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
exports com.sun.star. text
PaM is Point and Mark: a selection of the document model.
virtual OUString SAL_CALL getString() override
virtual void SAL_CALL copyText(const css::uno::Reference< css::text::XTextCopy > &xSource) override
virtual void SAL_CALL insertTextContentAfter(const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xPredecessor) override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rIdentifier) override
virtual void PrepareForAttach(css::uno::Reference< css::text::XTextRange > &xRange, SwPaM const &rPam)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Reference< css::text::XTextCursor > CreateCursor()
virtual void SAL_CALL removeTextContentAfter(const css::uno::Reference< css::text::XTextContent > &xPredecessor) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual bool CheckForOwnMemberMeta(const SwPaM &rPam, const bool bAbsorb)
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL appendTextPortion(const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
const SwDoc * GetDoc() const
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL finishParagraph(const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual void SAL_CALL removeTextContent(const css::uno::Reference< css::text::XTextContent > &xContent) override
virtual void SAL_CALL insertString(const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
SwXText(SwDoc *const pDoc, const CursorType eType)
virtual void SAL_CALL removeTextContentBefore(const css::uno::Reference< css::text::XTextContent > &xSuccessor) override
virtual css::uno::Reference< css::text::XTextContent > SAL_CALL convertToTextFrame(const css::uno::Reference< css::text::XTextRange > &xStart, const css::uno::Reference< css::text::XTextRange > &xEnd, const css::uno::Sequence< css::beans::PropertyValue > &xFrameProperties) override
virtual void SAL_CALL setString(const OUString &rString) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextContentWithProperties(const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override
virtual void SAL_CALL insertTextContentBefore(const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xSuccessor) override
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
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL insertTextPortion(const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &rTextRange) override