LibreOffice Module sw (master) 1
|
#include <unoport.hxx>
Public Member Functions | |
SwXTextPortion (const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > xParent, SwTextPortionType eType) | |
SwXTextPortion (const SwUnoCursor *pPortionCursor, css::uno::Reference< css::text::XText > xParent, SwFrameFormat &rFormat) | |
SwXTextPortion (const SwUnoCursor *pPortionCursor, SwTextRuby const &rAttr, css::uno::Reference< css::text::XText > 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 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 | SetLineBreak (css::uno::Reference< css::text::XTextContent > const &xLineBreak) |
void | SetContentControl (const css::uno::Reference< css::text::XTextContent > &xContentControl) |
void | SetCollapsed (bool bSet) |
SwTextPortionType | GetTextPortionType () const |
SwUnoCursor & | GetCursor () const |
Public Member Functions inherited from SvtListener | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
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 SfxItemPropertyMapEntry &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 | Notify (const SfxHint &rHint) override |
Private Member Functions | |
void | init (const SwUnoCursor *pPortionCursor) |
Private Attributes | |
const SfxItemPropertySet * | m_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 |
css::uno::Reference< css::text::XTextContent > | m_xLineBreak |
css::uno::Reference< css::text::XTextContent > | m_xContentControl |
std::optional< css::uno::Any > | m_oRubyText |
std::optional< css::uno::Any > | m_oRubyStyle |
std::optional< css::uno::Any > | m_oRubyAdjust |
std::optional< css::uno::Any > | m_oRubyIsAbove |
std::optional< css::uno::Any > | m_oRubyPosition |
sw::UnoCursorPointer | m_pUnoCursor |
SwFrameFormat * | m_pFrameFormat |
const SwTextPortionType | m_ePortionType |
bool | m_bIsCollapsed |
bool | m_bIsListAutoFormat |
Expose the paragraph's RES_PARATR_LIST_AUTOFMT, not the char props of the underlying (empty) text. More... | |
Definition at line 82 of file unoport.hxx.
|
overrideprotectedvirtual |
Definition at line 135 of file unoport.cxx.
References SvtListener::EndListeningAll(), m_pUnoCursor, and sw::UnoCursorPointer::reset().
SwXTextPortion::SwXTextPortion | ( | const SwUnoCursor * | pPortionCursor, |
css::uno::Reference< css::text::XText > | xParent, | ||
SwTextPortionType | eType | ||
) |
SwXTextPortion::SwXTextPortion | ( | const SwUnoCursor * | pPortionCursor, |
css::uno::Reference< css::text::XText > | xParent, | ||
SwFrameFormat & | rFormat | ||
) |
SwXTextPortion::SwXTextPortion | ( | const SwUnoCursor * | pPortionCursor, |
SwTextRuby const & | rAttr, | ||
css::uno::Reference< css::text::XText > | xParent, | ||
bool | bIsEnd | ||
) |
|
overridevirtual |
Definition at line 733 of file unoport.cxx.
|
overridevirtual |
Definition at line 747 of file unoport.cxx.
|
overridevirtual |
Definition at line 759 of file unoport.cxx.
|
overridevirtual |
Definition at line 831 of file unoport.cxx.
References SwXParaFrameEnumeration::Create(), GetCursor(), m_pFrameFormat, and PARAFRAME_PORTION_CHAR.
|
overridevirtual |
Definition at line 742 of file unoport.cxx.
|
overridevirtual |
Definition at line 839 of file unoport.cxx.
|
inline |
Definition at line 242 of file unoport.hxx.
References m_pUnoCursor.
Referenced by createContentEnumeration(), getEnd(), getPropertyDefault(), getPropertyState(), getPropertyStates(), SwXRedlinePortion::getPropertyValue(), GetPropertyValues_Impl(), GetPropertyValuesTolerant_Impl(), getStart(), getString(), setPropertyToDefault(), setPropertyValue(), SetPropertyValues_Impl(), setPropertyValuesTolerant(), setString(), and SwXRedlinePortion::Validate().
|
overridevirtual |
Definition at line 608 of file unoport.cxx.
References GetPropertyValuesTolerant_Impl().
|
overridevirtual |
Definition at line 159 of file unoport.cxx.
References SwPaM::End(), GetCursor(), and getText().
|
overridevirtual |
Definition at line 844 of file unoport.cxx.
|
overridevirtual |
Definition at line 820 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyDefault(), and m_pPropSet.
|
overridevirtual |
PropertySetInfo for text portion extensions
PropertySetInfo for redline portions
Definition at line 197 of file unoport.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), m_ePortionType, PORTION_REDLINE_END, PORTION_REDLINE_START, PROPERTY_MAP_REDLINE_PORTION, and PROPERTY_MAP_TEXTPORTION_EXTENSIONS.
|
overridevirtual |
Definition at line 769 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyState(), GetTextPortionType(), m_pPropSet, and PORTION_RUBY_START.
|
overridevirtual |
Definition at line 788 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyStates(), GetTextPortionType(), m_pPropSet, PORTION_RUBY_START, and SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION.
|
overridevirtual |
Reimplemented in SwXRedlinePortion.
Definition at line 437 of file unoport.cxx.
References GetPropertyValues_Impl().
Referenced by SwXRedlinePortion::getPropertyValue().
|
protected |
Definition at line 223 of file unoport.cxx.
References ANNOTATION, FN_UNO_BOOKMARK, FN_UNO_CONTENT_CONTROL, FN_UNO_CONTROL_CHARACTER, FN_UNO_DOCUMENT_INDEX_MARK, FN_UNO_FOOTNOTE, FN_UNO_IS_COLLAPSED, FN_UNO_IS_START, FN_UNO_LINEBREAK, FN_UNO_META, FN_UNO_REFERENCE_MARK, FN_UNO_TEXT_FIELD, FN_UNO_TEXT_PORTION_TYPE, FOOTNOTE, FRAME, SwTextNode::GetAttr(), SwDoc::GetAttrPool(), SwUnoCursorHelper::GetCursorAttr(), SwUnoCursorHelper::getCursorPropertyValue(), SwPaM::GetDoc(), SwPaM::GetPointNode(), SfxItemPropertySet::getPropertyValue(), SwNode::GetTextNode(), LINEBREAK, m_bIsCollapsed, m_bIsListAutoFormat, m_ePortionType, m_oRubyAdjust, m_oRubyIsAbove, m_oRubyPosition, m_oRubyStyle, m_oRubyText, m_pPropSet, m_xBookmark, m_xContentControl, m_xFootnote, m_xLineBreak, m_xMeta, m_xRefMark, m_xTextField, m_xTOXMark, MID_RUBY_ABOVE, MID_RUBY_ADJUST, MID_RUBY_CHARSTYLE, MID_RUBY_POSITION, MID_RUBY_TEXT, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, PORTION_ANNOTATION, PORTION_ANNOTATION_END, PORTION_BOOKMARK_END, PORTION_BOOKMARK_START, PORTION_CONTENT_CONTROL, PORTION_FIELD, PORTION_FIELD_END, PORTION_FIELD_SEP, PORTION_FIELD_START, PORTION_FIELD_START_END, PORTION_FOOTNOTE, PORTION_FRAME, PORTION_LINEBREAK, PORTION_META, PORTION_REDLINE_END, PORTION_REDLINE_START, PORTION_REFMARK_END, PORTION_REFMARK_START, PORTION_RUBY_END, PORTION_RUBY_START, PORTION_SOFT_PAGEBREAK, PORTION_TEXT, PORTION_TOXMARK_END, PORTION_TOXMARK_START, REDLINE, RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_PARATR_LIST_AUTOFMT(), RES_TXTATR_CJK_RUBY(), RES_UNKNOWNATR_CONTAINER(), RUBY, TEXT, TEXTFIELD, u, UNO_NAME_BOOKMARK, UNO_NAME_CONTENT_CONTROL, UNO_NAME_DOCUMENT_INDEX_MARK, UNO_NAME_META, and UNO_NAME_REFERENCE_MARK.
Referenced by GetPropertyValues_Impl(), and GetPropertyValuesTolerant_Impl().
|
overridevirtual |
Definition at line 497 of file unoport.cxx.
References cppu::getCaughtException(), and GetPropertyValues_Impl().
|
protected |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 412 of file unoport.cxx.
References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), GetPropertyValue(), m_pPropSet, nLength, and pValues.
Referenced by getPropertyValue(), and getPropertyValues().
|
overridevirtual |
Definition at line 593 of file unoport.cxx.
References GetPropertyValuesTolerant_Impl().
|
protected |
css::uno::RuntimeException |
Definition at line 615 of file unoport.cxx.
References a, comphelper::containerToSequence(), SwTextNode::GetAttr(), SfxItemPropertyMap::getByName(), cppu::getCaughtException(), GetCursor(), SwPaM::GetPointNode(), SfxItemPropertySet::getPropertyMap(), SfxItemPropertySet::getPropertyState(), SwUnoCursorHelper::GetPropertyStates(), GetPropertyValue(), SwNode::GetTextNode(), i, m_bIsListAutoFormat, m_ePortionType, m_pPropSet, SfxItemPropertyMapEntry::nWID, PORTION_RUBY_START, RES_PARATR_LIST_AUTOFMT(), RES_TXTATR_CJK_RUBY(), SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION_TOLERANT, and TOOLS_WARN_EXCEPTION.
Referenced by getDirectPropertyValuesTolerant(), and getPropertyValuesTolerant().
|
overridevirtual |
Definition at line 147 of file unoport.cxx.
References GetCursor(), getText(), and SwPaM::Start().
|
overridevirtual |
Definition at line 171 of file unoport.cxx.
References SwPaM::End(), ExpandFootnote, SwPosition::GetContentIndex(), GetCursor(), SwTextNode::GetExpandText(), SwPaM::GetPointNode(), SwNode::GetTextNode(), and SwPaM::Start().
|
overridevirtual |
Definition at line 854 of file unoport.cxx.
|
overridevirtual |
Definition at line 142 of file unoport.cxx.
References m_xParentText.
Referenced by getEnd(), and getStart().
|
inline |
Definition at line 240 of file unoport.hxx.
References m_ePortionType.
Referenced by getPropertyState(), and getPropertyStates().
|
private |
Definition at line 53 of file unoport.cxx.
References SwDoc::CreateUnoCursor(), SwPaM::GetDoc(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), m_pUnoCursor, and SwPaM::SetMark().
|
overrideprotectedvirtual |
Reimplemented from SvtListener.
Definition at line 865 of file unoport.cxx.
References SfxHint::GetId(), and m_pFrameFormat.
|
overridevirtual |
Definition at line 738 of file unoport.cxx.
|
overridevirtual |
Definition at line 754 of file unoport.cxx.
|
overridevirtual |
Definition at line 764 of file unoport.cxx.
|
inline |
Definition at line 216 of file unoport.hxx.
References m_xBookmark.
|
inline |
Definition at line 238 of file unoport.hxx.
References m_bIsCollapsed.
Referenced by SwXRedlinePortion::SwXRedlinePortion().
|
inline |
Definition at line 233 of file unoport.hxx.
References m_xContentControl.
|
inline |
Definition at line 219 of file unoport.hxx.
References m_xFootnote.
|
inline |
Definition at line 228 of file unoport.hxx.
References m_xLineBreak.
|
inline |
Definition at line 225 of file unoport.hxx.
References m_xMeta.
|
overridevirtual |
Definition at line 811 of file unoport.cxx.
References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyToDefault().
|
overridevirtual |
Definition at line 213 of file unoport.cxx.
References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyValue().
|
overridevirtual |
Definition at line 476 of file unoport.cxx.
References SetPropertyValues_Impl().
|
protected |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 445 of file unoport.cxx.
References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), m_pPropSet, SfxItemPropertyMapEntry::nFlags, pValues, and SwUnoCursorHelper::SetPropertyValues().
Referenced by setPropertyValues().
|
overridevirtual |
Definition at line 525 of file unoport.cxx.
References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), i, m_pPropSet, SfxItemPropertyMapEntry::nFlags, SwUnoCursorHelper::SetPropertyValue(), and TOOLS_WARN_EXCEPTION.
|
inline |
Definition at line 210 of file unoport.hxx.
References m_xRefMark.
|
overridevirtual |
Definition at line 189 of file unoport.cxx.
References GetCursor(), and SwUnoCursorHelper::SetString().
|
inline |
Definition at line 222 of file unoport.hxx.
References m_xTextField.
|
inline |
Definition at line 213 of file unoport.hxx.
References m_xTOXMark.
|
overridevirtual |
Definition at line 849 of file unoport.cxx.
References cppu::supportsService().
|
private |
Definition at line 123 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetCollapsed().
|
private |
Expose the paragraph's RES_PARATR_LIST_AUTOFMT, not the char props of the underlying (empty) text.
Definition at line 127 of file unoport.hxx.
Referenced by GetPropertyValue(), and GetPropertyValuesTolerant_Impl().
|
private |
Definition at line 121 of file unoport.hxx.
Referenced by getPropertySetInfo(), GetPropertyValue(), GetPropertyValuesTolerant_Impl(), and GetTextPortionType().
|
private |
Definition at line 115 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 116 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 117 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 114 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 113 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 120 of file unoport.hxx.
Referenced by createContentEnumeration(), and Notify().
|
private |
Definition at line 96 of file unoport.hxx.
Referenced by getPropertyDefault(), getPropertyState(), getPropertyStates(), GetPropertyValue(), GetPropertyValues_Impl(), GetPropertyValuesTolerant_Impl(), setPropertyToDefault(), setPropertyValue(), SetPropertyValues_Impl(), and setPropertyValuesTolerant().
|
private |
Definition at line 118 of file unoport.hxx.
Referenced by GetCursor(), init(), and ~SwXTextPortion().
|
private |
Definition at line 104 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetBookmark().
|
private |
Definition at line 112 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetContentControl().
|
private |
Definition at line 106 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetFootnote().
|
private |
Definition at line 111 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetLineBreak().
|
private |
Definition at line 110 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetMeta().
|
private |
Definition at line 98 of file unoport.hxx.
Referenced by getText().
|
private |
Definition at line 100 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetRefMark().
|
private |
Definition at line 108 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetTextField().
|
private |
Definition at line 102 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetTOXMark().