LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SwXTextPortion Class Reference

#include <unoport.hxx>

Inheritance diagram for SwXTextPortion:
[legend]
Collaboration diagram for SwXTextPortion:
[legend]

Public Member Functions

 SwXTextPortion (const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > const &rParent, SwTextPortionType eType)
 
 SwXTextPortion (const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > const &rParent, SwFrameFormat &rFormat)
 
 SwXTextPortion (const SwUnoCursor *pPortionCursor, SwTextRuby const &rAttr, css::uno::Reference< css::text::XText > const &xParent, bool bIsEnd)
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getText () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd () override
 
virtual OUString SAL_CALL getString () override
 
virtual void SAL_CALL setString (const OUString &aString) 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
 
virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL getPropertyValuesTolerant (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > SAL_CALL getDirectPropertyValuesTolerant (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration (const OUString &aServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames () override
 
void SetRefMark (css::uno::Reference< css::text::XTextContent > const &xMark)
 
void SetTOXMark (css::uno::Reference< css::text::XTextContent > const &xMark)
 
void SetBookmark (css::uno::Reference< css::text::XTextContent > const &xMark)
 
void SetFootnote (css::uno::Reference< css::text::XFootnote > const &xNote)
 
void SetTextField (css::uno::Reference< css::text::XTextField > const &xField)
 
void SetMeta (css::uno::Reference< css::text::XTextContent > const &xMeta)
 
void SetCollapsed (bool bSet)
 
SwTextPortionType GetTextPortionType () const
 
SwUnoCursorGetCursor () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void Modify (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected Member Functions

void SetPropertyValues_Impl (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues)
 
css::uno::Sequence< css::uno::Any > GetPropertyValues_Impl (const css::uno::Sequence< OUString > &aPropertyNames)
 
void GetPropertyValue (css::uno::Any &rVal, const SfxItemPropertySimpleEntry &rEntry, SwUnoCursor *pUnoCursor, std::unique_ptr< SfxItemSet > &pSet)
 
css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > GetPropertyValuesTolerant_Impl (const css::uno::Sequence< OUString > &rPropertyNames, bool bDirectValuesOnly)
 
virtual ~SwXTextPortion () override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void init (const SwUnoCursor *pPortionCursor)
 

Private Attributes

const SfxItemPropertySetm_pPropSet
 
const css::uno::Reference< css::text::XText > m_xParentText
 
css::uno::Reference< css::text::XTextContent > m_xRefMark
 
css::uno::Reference< css::text::XTextContent > m_xTOXMark
 
css::uno::Reference< css::text::XTextContent > m_xBookmark
 
css::uno::Reference< css::text::XFootnote > m_xFootnote
 
css::uno::Reference< css::text::XTextField > m_xTextField
 
css::uno::Reference< css::text::XTextContent > m_xMeta
 
std::unique_ptr< css::uno::Any > m_pRubyText
 
std::unique_ptr< css::uno::Any > m_pRubyStyle
 
std::unique_ptr< css::uno::Any > m_pRubyAdjust
 
std::unique_ptr< css::uno::Any > m_pRubyIsAbove
 
std::unique_ptr< css::uno::Any > m_pRubyPosition
 
sw::UnoCursorPointer m_pUnoCursor
 
sw::WriterMultiListener m_aDepends
 
SwFrameFormatm_pFrameFormat
 
const SwTextPortionType m_ePortionType
 
bool m_bIsCollapsed
 

Detailed Description

Definition at line 79 of file unoport.hxx.

Constructor & Destructor Documentation

SwXTextPortion::~SwXTextPortion ( )
overrideprotectedvirtual
SwXTextPortion::SwXTextPortion ( const SwUnoCursor pPortionCursor,
css::uno::Reference< css::text::XText > const &  rParent,
SwTextPortionType  eType 
)
SwXTextPortion::SwXTextPortion ( const SwUnoCursor pPortionCursor,
css::uno::Reference< css::text::XText > const &  rParent,
SwFrameFormat rFormat 
)
SwXTextPortion::SwXTextPortion ( const SwUnoCursor pPortionCursor,
SwTextRuby const &  rAttr,
css::uno::Reference< css::text::XText > const &  xParent,
bool  bIsEnd 
)

Member Function Documentation

void SwXTextPortion::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 675 of file unoport.cxx.

void SwXTextPortion::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 689 of file unoport.cxx.

void SwXTextPortion::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 701 of file unoport.cxx.

uno::Reference< container::XEnumeration > SwXTextPortion::createContentEnumeration ( const OUString &  aServiceName)
overridevirtual
void SwXTextPortion::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 684 of file unoport.cxx.

uno::Sequence< OUString > SwXTextPortion::getAvailableServiceNames ( )
overridevirtual

Definition at line 802 of file unoport.cxx.

SwUnoCursor& SwXTextPortion::GetCursor ( ) const
inline
uno::Sequence< beans::GetDirectPropertyTolerantResult > SAL_CALL SwXTextPortion::getDirectPropertyValuesTolerant ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 569 of file unoport.cxx.

References GetPropertyValuesTolerant_Impl().

uno::Reference< text::XTextRange > SwXTextPortion::getEnd ( )
overridevirtual

Definition at line 154 of file unoport.cxx.

References SwPaM::End(), GetCursor(), and getText().

OUString SwXTextPortion::getImplementationName ( )
overridevirtual

Definition at line 807 of file unoport.cxx.

uno::Any SwXTextPortion::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

Definition at line 762 of file unoport.cxx.

References GetCursor(), SwUnoCursorHelper::GetPropertyDefault(), and m_pPropSet.

uno::Reference< beans::XPropertySetInfo > SwXTextPortion::getPropertySetInfo ( )
overridevirtual
beans::PropertyState SwXTextPortion::getPropertyState ( const OUString &  PropertyName)
overridevirtual
uno::Sequence< beans::PropertyState > SwXTextPortion::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual
void SwXTextPortion::GetPropertyValue ( css::uno::Any &  rVal,
const SfxItemPropertySimpleEntry rEntry,
SwUnoCursor pUnoCursor,
std::unique_ptr< SfxItemSet > &  pSet 
)
protected
uno::Any SwXTextPortion::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Reimplemented in SwXRedlinePortion.

Definition at line 400 of file unoport.cxx.

References GetPropertyValues_Impl().

Referenced by SwXRedlinePortion::getPropertyValue().

uno::Sequence< uno::Any > SwXTextPortion::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 455 of file unoport.cxx.

References cppu::getCaughtException(), and GetPropertyValues_Impl().

uno::Sequence< uno::Any > SwXTextPortion::GetPropertyValues_Impl ( const css::uno::Sequence< OUString > &  aPropertyNames)
protected
Exceptions
css::beans::UnknownPropertyException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 375 of file unoport.cxx.

References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), GetPropertyValue(), m_pPropSet, and nLength.

Referenced by getPropertyValue(), and getPropertyValues().

uno::Sequence< beans::GetPropertyTolerantResult > SAL_CALL SwXTextPortion::getPropertyValuesTolerant ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 551 of file unoport.cxx.

References GetPropertyValuesTolerant_Impl(), and i.

uno::Sequence< beans::GetDirectPropertyTolerantResult > SwXTextPortion::GetPropertyValuesTolerant_Impl ( const css::uno::Sequence< OUString > &  rPropertyNames,
bool  bDirectValuesOnly 
)
protected
sal_Int64 SwXTextPortion::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 791 of file unoport.cxx.

References getUnoTunnelId().

uno::Reference< text::XTextRange > SwXTextPortion::getStart ( )
overridevirtual

Definition at line 142 of file unoport.cxx.

References GetCursor(), getText(), and SwPaM::Start().

OUString SwXTextPortion::getString ( )
overridevirtual
uno::Sequence< OUString > SwXTextPortion::getSupportedServiceNames ( )
overridevirtual

Definition at line 817 of file unoport.cxx.

uno::Reference< text::XText > SwXTextPortion::getText ( )
overridevirtual

Definition at line 137 of file unoport.cxx.

References m_xParentText.

Referenced by getEnd(), and getStart().

SwTextPortionType SwXTextPortion::GetTextPortionType ( ) const
inline

Definition at line 228 of file unoport.hxx.

References m_ePortionType.

Referenced by getPropertyState(), and getPropertyStates().

const uno::Sequence< sal_Int8 > & SwXTextPortion::getUnoTunnelId ( )
static

Definition at line 786 of file unoport.cxx.

References sw::proofreadingiterator::get().

Referenced by SwXShape::attach(), and getSomething().

void SwXTextPortion::init ( const SwUnoCursor pPortionCursor)
private
void SwXTextPortion::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Definition at line 680 of file unoport.cxx.

void SwXTextPortion::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 696 of file unoport.cxx.

void SwXTextPortion::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 706 of file unoport.cxx.

void SwXTextPortion::SetBookmark ( css::uno::Reference< css::text::XTextContent > const &  xMark)
inline

Definition at line 214 of file unoport.hxx.

References m_xBookmark.

Referenced by lcl_ExportBookmark(), lcl_ExportFieldMark(), and lcl_ExportHints().

void SwXTextPortion::SetCollapsed ( bool  bSet)
inline
void SwXTextPortion::SetFootnote ( css::uno::Reference< css::text::XFootnote > const &  xNote)
inline

Definition at line 217 of file unoport.hxx.

References m_xFootnote.

Referenced by lcl_ExportHints().

void SwXTextPortion::SetMeta ( css::uno::Reference< css::text::XTextContent > const &  xMeta)
inline

Definition at line 223 of file unoport.hxx.

References m_xMeta.

Referenced by lcl_CreateMetaPortion().

void SwXTextPortion::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

Definition at line 753 of file unoport.cxx.

References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyToDefault().

void SwXTextPortion::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 207 of file unoport.cxx.

References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyValue().

void SwXTextPortion::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual

Definition at line 434 of file unoport.cxx.

References SetPropertyValues_Impl().

void SwXTextPortion::SetPropertyValues_Impl ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
protected
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 408 of file unoport.cxx.

References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), m_pPropSet, SfxItemPropertySimpleEntry::nFlags, and SwUnoCursorHelper::SetPropertyValues().

Referenced by setPropertyValues().

uno::Sequence< beans::SetPropertyTolerantFailed > SAL_CALL SwXTextPortion::setPropertyValuesTolerant ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual
void SwXTextPortion::SetRefMark ( css::uno::Reference< css::text::XTextContent > const &  xMark)
inline

Definition at line 208 of file unoport.hxx.

References m_xRefMark.

Referenced by lcl_CreateRefMarkPortion().

void SwXTextPortion::setString ( const OUString &  aString)
overridevirtual

Definition at line 183 of file unoport.cxx.

References GetCursor(), and SwUnoCursorHelper::SetString().

void SwXTextPortion::SetTextField ( css::uno::Reference< css::text::XTextField > const &  xField)
inline

Definition at line 220 of file unoport.hxx.

References m_xTextField.

Referenced by lcl_CreateMetaPortion(), lcl_ExportAnnotationStarts(), and lcl_ExportHints().

void SwXTextPortion::SetTOXMark ( css::uno::Reference< css::text::XTextContent > const &  xMark)
inline

Definition at line 211 of file unoport.hxx.

References m_xTOXMark.

Referenced by lcl_CreateTOXMarkPortion().

sal_Bool SwXTextPortion::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 812 of file unoport.cxx.

References cppu::supportsService().

void SwXTextPortion::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprotectedvirtual

Reimplemented from SwClient.

Definition at line 828 of file unoport.cxx.

References ClientModify(), sw::WriterMultiListener::IsListeningTo(), m_aDepends, and m_pFrameFormat.

Member Data Documentation

sw::WriterMultiListener SwXTextPortion::m_aDepends
private

Definition at line 116 of file unoport.hxx.

Referenced by SwClientNotify(), and ~SwXTextPortion().

bool SwXTextPortion::m_bIsCollapsed
private

Definition at line 120 of file unoport.hxx.

Referenced by GetPropertyValue().

const SwTextPortionType SwXTextPortion::m_ePortionType
private
SwFrameFormat* SwXTextPortion::m_pFrameFormat
private

Definition at line 117 of file unoport.hxx.

Referenced by createContentEnumeration(), and SwClientNotify().

const SfxItemPropertySet* SwXTextPortion::m_pPropSet
private
std::unique_ptr< css::uno::Any > SwXTextPortion::m_pRubyAdjust
private

Definition at line 111 of file unoport.hxx.

Referenced by GetPropertyValue().

std::unique_ptr< css::uno::Any > SwXTextPortion::m_pRubyIsAbove
private

Definition at line 112 of file unoport.hxx.

Referenced by GetPropertyValue().

std::unique_ptr< css::uno::Any > SwXTextPortion::m_pRubyPosition
private

Definition at line 113 of file unoport.hxx.

Referenced by GetPropertyValue().

std::unique_ptr< css::uno::Any > SwXTextPortion::m_pRubyStyle
private

Definition at line 110 of file unoport.hxx.

Referenced by GetPropertyValue().

std::unique_ptr< css::uno::Any > SwXTextPortion::m_pRubyText
private

Definition at line 109 of file unoport.hxx.

Referenced by GetPropertyValue().

sw::UnoCursorPointer SwXTextPortion::m_pUnoCursor
private

Definition at line 114 of file unoport.hxx.

Referenced by GetCursor(), init(), and ~SwXTextPortion().

css::uno::Reference< css::text::XTextContent > SwXTextPortion::m_xBookmark
private

Definition at line 102 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetBookmark().

css::uno::Reference< css::text::XFootnote > SwXTextPortion::m_xFootnote
private

Definition at line 104 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetFootnote().

css::uno::Reference< css::text::XTextContent > SwXTextPortion::m_xMeta
private

Definition at line 108 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetMeta().

const css::uno::Reference< css::text::XText > SwXTextPortion::m_xParentText
private

Definition at line 96 of file unoport.hxx.

Referenced by getText().

css::uno::Reference< css::text::XTextContent > SwXTextPortion::m_xRefMark
private

Definition at line 98 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetRefMark().

css::uno::Reference< css::text::XTextField > SwXTextPortion::m_xTextField
private

Definition at line 106 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetTextField().

css::uno::Reference< css::text::XTextContent > SwXTextPortion::m_xTOXMark
private

Definition at line 100 of file unoport.hxx.

Referenced by GetPropertyValue(), and SetTOXMark().


The documentation for this class was generated from the following files: