LibreOffice Module sw (master)
1
|
#include <unoport.hxx>
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 |
SwUnoCursor & | GetCursor () const |
![]() | |
SvtListener () | |
SvtListener (const SvtListener &r) | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
bool | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Query (QueryBase &rQuery) 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 | 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 |
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 |
SwFrameFormat * | m_pFrameFormat |
const SwTextPortionType | m_ePortionType |
bool | m_bIsCollapsed |
Definition at line 80 of file unoport.hxx.
|
overrideprotectedvirtual |
Definition at line 124 of file unoport.cxx.
References SvtListener::EndListeningAll(), m_pUnoCursor, and sw::UnoCursorPointer::reset().
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 | ||
) |
|
overridevirtual |
Definition at line 669 of file unoport.cxx.
|
overridevirtual |
Definition at line 683 of file unoport.cxx.
|
overridevirtual |
Definition at line 695 of file unoport.cxx.
|
overridevirtual |
Definition at line 767 of file unoport.cxx.
References SwXParaFrameEnumeration::Create(), GetCursor(), m_pFrameFormat, and PARAFRAME_PORTION_CHAR.
|
overridevirtual |
Definition at line 678 of file unoport.cxx.
|
overridevirtual |
Definition at line 794 of file unoport.cxx.
|
inline |
Definition at line 229 of file unoport.hxx.
References m_pUnoCursor.
Referenced by SwXShape::attach(), createContentEnumeration(), getEnd(), getPropertyDefault(), getPropertyState(), getPropertyStates(), SwXRedlinePortion::getPropertyValue(), GetPropertyValues_Impl(), GetPropertyValuesTolerant_Impl(), getStart(), getString(), setPropertyToDefault(), setPropertyValue(), SetPropertyValues_Impl(), setPropertyValuesTolerant(), setString(), SwXRedlinePortion::Validate(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 563 of file unoport.cxx.
References GetPropertyValuesTolerant_Impl().
|
overridevirtual |
Definition at line 148 of file unoport.cxx.
References SwPaM::End(), GetCursor(), and getText().
|
overridevirtual |
Definition at line 799 of file unoport.cxx.
|
overridevirtual |
Definition at line 756 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyDefault(), and m_pPropSet.
|
overridevirtual |
PropertySetInfo for text portion extensions
PropertySetInfo for redline portions
Definition at line 185 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 705 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyState(), GetTextPortionType(), m_pPropSet, and PORTION_RUBY_START.
|
overridevirtual |
Definition at line 724 of file unoport.cxx.
References GetCursor(), SwUnoCursorHelper::GetPropertyStates(), GetTextPortionType(), m_pPropSet, PORTION_RUBY_START, and SW_PROPERTY_STATE_CALLER_SWX_TEXT_PORTION.
|
protected |
Definition at line 211 of file unoport.cxx.
References FN_UNO_BOOKMARK, FN_UNO_CONTROL_CHARACTER, FN_UNO_DOCUMENT_INDEX_MARK, FN_UNO_FOOTNOTE, FN_UNO_IS_COLLAPSED, FN_UNO_IS_START, FN_UNO_META, FN_UNO_REFERENCE_MARK, FN_UNO_TEXT_FIELD, FN_UNO_TEXT_PORTION_TYPE, SwDoc::GetAttrPool(), SwUnoCursorHelper::GetCursorAttr(), SwUnoCursorHelper::getCursorPropertyValue(), SwPaM::GetDoc(), SfxItemPropertySet::getPropertyValue(), m_bIsCollapsed, m_ePortionType, m_pPropSet, m_pRubyAdjust, m_pRubyIsAbove, m_pRubyPosition, m_pRubyStyle, m_pRubyText, m_xBookmark, m_xFootnote, m_xMeta, m_xRefMark, m_xTextField, m_xTOXMark, MID_RUBY_ABOVE, MID_RUBY_ADJUST, MID_RUBY_CHARSTYLE, MID_RUBY_POSITION, MID_RUBY_TEXT, SfxItemPropertySimpleEntry::nMemberId, SfxItemPropertySimpleEntry::nWID, PORTION_ANNOTATION, PORTION_ANNOTATION_END, PORTION_BOOKMARK_END, PORTION_BOOKMARK_START, PORTION_FIELD, PORTION_FIELD_END, PORTION_FIELD_SEP, PORTION_FIELD_START, PORTION_FIELD_START_END, PORTION_FOOTNOTE, PORTION_FRAME, 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, RES_CHRATR_BEGIN(), RES_FRMATR_END(), RES_TXTATR_CJK_RUBY(), RES_UNKNOWNATR_CONTAINER(), UNO_NAME_BOOKMARK, UNO_NAME_DOCUMENT_INDEX_MARK, UNO_NAME_META, and UNO_NAME_REFERENCE_MARK.
Referenced by GetPropertyValues_Impl(), and GetPropertyValuesTolerant_Impl().
|
overridevirtual |
Reimplemented in SwXRedlinePortion.
Definition at line 397 of file unoport.cxx.
References GetPropertyValues_Impl().
Referenced by SwXRedlinePortion::getPropertyValue().
|
overridevirtual |
Definition at line 452 of file unoport.cxx.
References cppu::getCaughtException(), and GetPropertyValues_Impl().
|
protected |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Definition at line 372 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 548 of file unoport.cxx.
References GetPropertyValuesTolerant_Impl().
|
protected |
css::uno::RuntimeException |
Definition at line 570 of file unoport.cxx.
References a, comphelper::containerToSequence(), SfxItemPropertyMap::getByName(), cppu::getCaughtException(), GetCursor(), SfxItemPropertySet::getPropertyMap(), SwUnoCursorHelper::GetPropertyStates(), GetPropertyValue(), i, m_ePortionType, m_pPropSet, SfxItemPropertySimpleEntry::nWID, PORTION_RUBY_START, 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 785 of file unoport.cxx.
|
overridevirtual |
Definition at line 136 of file unoport.cxx.
References GetCursor(), getText(), and SwPaM::Start().
|
overridevirtual |
Definition at line 160 of file unoport.cxx.
References SwPaM::End(), GetCursor(), SwTextNode::GetExpandText(), SwIndex::GetIndex(), SwPaM::GetNode(), SwNode::GetTextNode(), SwPosition::nContent, and SwPaM::Start().
|
overridevirtual |
Definition at line 809 of file unoport.cxx.
|
overridevirtual |
Definition at line 131 of file unoport.cxx.
References m_xParentText.
Referenced by getEnd(), and getStart().
|
inline |
Definition at line 227 of file unoport.hxx.
References m_ePortionType.
Referenced by getPropertyState(), and getPropertyStates().
|
static |
Definition at line 780 of file unoport.cxx.
References sw::proofreadingiterator::get().
Referenced by SwXShape::attach().
|
private |
Definition at line 52 of file unoport.cxx.
References SwDoc::CreateUnoCursor(), SwPaM::GetDoc(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), m_pUnoCursor, and SwPaM::SetMark().
Reimplemented from SvtListener.
Definition at line 820 of file unoport.cxx.
References SfxHint::GetId(), and m_pFrameFormat.
|
overridevirtual |
Definition at line 674 of file unoport.cxx.
|
overridevirtual |
Definition at line 690 of file unoport.cxx.
|
overridevirtual |
Definition at line 700 of file unoport.cxx.
|
inline |
Definition at line 213 of file unoport.hxx.
References m_xBookmark.
Referenced by lcl_ExportBookmark(), lcl_ExportFieldMark(), and lcl_ExportHints().
|
inline |
Definition at line 225 of file unoport.hxx.
Referenced by lcl_CreateRefMarkPortion(), lcl_CreateTOXMarkPortion(), lcl_ExportBookmark(), lcl_InsertRubyPortion(), and SwXRedlinePortion::SwXRedlinePortion().
|
inline |
Definition at line 216 of file unoport.hxx.
References m_xFootnote.
Referenced by lcl_ExportHints().
|
inline |
Definition at line 222 of file unoport.hxx.
References m_xMeta.
Referenced by lcl_CreateMetaPortion().
|
overridevirtual |
Definition at line 747 of file unoport.cxx.
References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyToDefault().
|
overridevirtual |
Definition at line 201 of file unoport.cxx.
References GetCursor(), m_pPropSet, and SwUnoCursorHelper::SetPropertyValue().
|
overridevirtual |
Definition at line 431 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 405 of file unoport.cxx.
References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), m_pPropSet, SfxItemPropertySimpleEntry::nFlags, pValues, and SwUnoCursorHelper::SetPropertyValues().
Referenced by setPropertyValues().
|
overridevirtual |
Definition at line 480 of file unoport.cxx.
References SfxItemPropertyMap::getByName(), GetCursor(), SfxItemPropertySet::getPropertyMap(), i, m_pPropSet, SfxItemPropertySimpleEntry::nFlags, SwUnoCursorHelper::SetPropertyValue(), and TOOLS_WARN_EXCEPTION.
|
inline |
Definition at line 207 of file unoport.hxx.
References m_xRefMark.
Referenced by lcl_CreateRefMarkPortion().
|
overridevirtual |
Definition at line 177 of file unoport.cxx.
References GetCursor(), and SwUnoCursorHelper::SetString().
|
inline |
Definition at line 219 of file unoport.hxx.
References m_xTextField.
Referenced by lcl_CreateMetaPortion(), lcl_ExportAnnotationStarts(), and lcl_ExportHints().
|
inline |
Definition at line 210 of file unoport.hxx.
References m_xTOXMark.
Referenced by lcl_CreateTOXMarkPortion().
|
overridevirtual |
Definition at line 804 of file unoport.cxx.
References cppu::supportsService().
|
private |
Definition at line 120 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 118 of file unoport.hxx.
Referenced by getPropertySetInfo(), GetPropertyValue(), GetPropertyValuesTolerant_Impl(), and GetTextPortionType().
|
private |
Definition at line 117 of file unoport.hxx.
Referenced by createContentEnumeration(), and Notify().
|
private |
Definition at line 95 of file unoport.hxx.
Referenced by getPropertyDefault(), getPropertyState(), getPropertyStates(), GetPropertyValue(), GetPropertyValues_Impl(), GetPropertyValuesTolerant_Impl(), setPropertyToDefault(), setPropertyValue(), SetPropertyValues_Impl(), and setPropertyValuesTolerant().
|
private |
Definition at line 112 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 113 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 114 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 111 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 110 of file unoport.hxx.
Referenced by GetPropertyValue().
|
private |
Definition at line 115 of file unoport.hxx.
Referenced by GetCursor(), init(), and ~SwXTextPortion().
|
private |
Definition at line 103 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetBookmark().
|
private |
Definition at line 105 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetFootnote().
|
private |
Definition at line 109 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetMeta().
|
private |
Definition at line 97 of file unoport.hxx.
Referenced by getText().
|
private |
Definition at line 99 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetRefMark().
|
private |
Definition at line 107 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetTextField().
|
private |
Definition at line 101 of file unoport.hxx.
Referenced by GetPropertyValue(), and SetTOXMark().