20#ifndef INCLUDED_SW_INC_UNOTEXT_HXX
21#define INCLUDED_SW_INC_UNOTEXT_HXX
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/text/XTextCopy.hpp>
25#include <com/sun/star/text/XTextRangeCompare.hpp>
26#include <com/sun/star/text/XRelativeTextContentInsert.hpp>
27#include <com/sun/star/text/XRelativeTextContentRemove.hpp>
28#include <com/sun/star/text/XTextAppendAndConvert.hpp>
45 :
public css::lang::XTypeProvider
46 ,
public css::beans::XPropertySet
47 ,
public css::text::XTextAppendAndConvert
48 ,
public css::text::XTextCopy
49 ,
public css::text::XTextRangeCompare
50 ,
public css::text::XRelativeTextContentInsert
51 ,
public css::text::XRelativeTextContentRemove
59 virtual void PrepareForAttach(
60 css::uno::Reference< css::text::XTextRange > & xRange,
64 virtual bool CheckForOwnMemberMeta(
65 const SwPaM & rPam,
const bool bAbsorb);
71 void SetDoc(
SwDoc *
const pDoc);
82 const SwDoc* GetDoc()
const;
86 virtual css::uno::Reference< css::text::XTextCursor >
91 const css::uno::Type& rType)
override;
94 virtual css::uno::Sequence< css::uno::Type >
95 SAL_CALL getTypes()
override;
98 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
99 getPropertySetInfo()
override;
101 const OUString& rPropertyName,
102 const css::uno::Any& rValue)
override;
104 const OUString& rPropertyName)
override;
105 virtual void SAL_CALL addPropertyChangeListener(
106 const OUString& rPropertyName,
107 const css::uno::Reference<
108 css::beans::XPropertyChangeListener >& xListener)
override;
109 virtual void SAL_CALL removePropertyChangeListener(
110 const OUString& rPropertyName,
111 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener)
override;
112 virtual void SAL_CALL addVetoableChangeListener(
113 const OUString& rPropertyName,
114 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
115 virtual void SAL_CALL removeVetoableChangeListener(
116 const OUString& rPropertyName,
117 const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener)
override;
120 virtual css::uno::Reference< css::text::XText >
121 SAL_CALL getText()
override;
122 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart()
override;
123 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd()
override;
124 virtual OUString SAL_CALL
getString()
override;
125 virtual void SAL_CALL setString(
const OUString& rString)
override;
128 virtual void SAL_CALL insertString(
129 const css::uno::Reference< css::text::XTextRange > & xRange,
130 const OUString& aString,
sal_Bool bAbsorb)
override;
131 virtual void SAL_CALL insertControlCharacter(
132 const css::uno::Reference< css::text::XTextRange > & xRange,
133 sal_Int16 nControlCharacter,
sal_Bool bAbsorb)
override;
136 virtual void SAL_CALL insertTextContent(
137 const css::uno::Reference< css::text::XTextRange > & xRange,
138 const css::uno::Reference< css::text::XTextContent > & xContent,
140 virtual void SAL_CALL removeTextContent(
141 const css::uno::Reference< css::text::XTextContent > & xContent)
override;
144 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
146 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
147 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
148 finishParagraphInsert(
149 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
150 const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
override;
153 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
155 const OUString& rText,
156 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
158 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
160 const OUString& rText,
161 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
162 const css::uno::Reference< css::text::XTextRange >& rTextRange)
override;
165 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
167 const css::uno::Reference< css::text::XTextContent >& xTextContent,
168 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties)
override;
169 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
170 insertTextContentWithProperties(
171 const css::uno::Reference< css::text::XTextContent >& xTextContent,
172 const css::uno::Sequence< css::beans::PropertyValue >& rCharacterAndParagraphProperties,
173 const css::uno::Reference< css::text::XTextRange >& xInsertPosition)
override;
176 virtual css::uno::Reference< css::text::XTextContent > SAL_CALL
178 const css::uno::Reference< css::text::XTextRange >& xStart,
179 const css::uno::Reference< css::text::XTextRange >& xEnd,
180 const css::uno::Sequence< css::beans::PropertyValue >& xFrameProperties)
override;
181 virtual css::uno::Reference<
182 css::text::XTextTable > SAL_CALL
188 css::text::XTextRange > > > >
const&
193 css::beans::PropertyValue > > >
const&
197 css::beans::PropertyValue > >
const&
200 css::beans::PropertyValue >
const&
201 rTableProperties)
override;
204 virtual void SAL_CALL copyText(
205 const css::uno::Reference< css::text::XTextCopy >& xSource )
override;
208 sal_Int16 SAL_CALL compareRegionStarts(
209 const css::uno::Reference< css::text::XTextRange >& xR1,
210 const css::uno::Reference< css::text::XTextRange >& xR2)
override;
211 sal_Int16 SAL_CALL compareRegionEnds(
212 const css::uno::Reference< css::text::XTextRange >& xR1,
213 const css::uno::Reference< css::text::XTextRange >& xR2)
override;
216 virtual void SAL_CALL insertTextContentBefore(
217 const css::uno::Reference< css::text::XTextContent>& xNewContent,
218 const css::uno::Reference< css::text::XTextContent>& xSuccessor)
override;
219 virtual void SAL_CALL insertTextContentAfter(
220 const css::uno::Reference< css::text::XTextContent>& xNewContent,
221 const css::uno::Reference< css::text::XTextContent>& xPredecessor)
override;
224 virtual void SAL_CALL removeTextContentBefore(
225 const css::uno::Reference< css::text::XTextContent>& xSuccessor)
override;
226 virtual void SAL_CALL removeTextContentAfter(
227 const css::uno::Reference< css::text::XTextContent>& xPredecessor)
override;
PaM is Point and Mark: a selection of the document model.
Starts a section of nodes in the document model.
::sw::UnoImplPtr< Impl > m_pImpl
static SwNode * GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
OUString getString(const Any &_rAny)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.