LibreOffice Module sw (master) 1
|
#include <unotextrange.hxx>
Classes | |
class | Impl |
Public Types | |
enum | RangePosition { RANGE_IN_TEXT , RANGE_IN_CELL , RANGE_IS_TABLE , RANGE_IS_SECTION } |
Public Member Functions | |
SwXTextRange (SwPaM const &rPam, const css::uno::Reference< css::text::XText > &xParent, const enum RangePosition eRange=RANGE_IN_TEXT) | |
SwXTextRange (SwTableFormat &rTableFormat) | |
SwXTextRange (SwSectionFormat &rSectionFormat) | |
const SwDoc & | GetDoc () const |
SwDoc & | GetDoc () |
bool | GetPositions (SwPaM &rToFill, ::sw::TextRangeMode eMode=::sw::TextRangeMode::RequireTextNode) const |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &rPropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &rPropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &rPropertyNames) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &rPropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &rPropertyName) override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createContentEnumeration (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getAvailableServiceNames () override |
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 &rString) override |
virtual void SAL_CALL | makeRedline (const OUString &rRedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) override |
Static Public Member Functions | |
static rtl::Reference< SwXTextRange > | CreateXTextRange (SwDoc &rDoc, const SwPosition &rPos, const SwPosition *const pMark) |
Private Member Functions | |
void | SetPositions (SwPaM const &rPam) |
void | DeleteAndInsert (std::u16string_view aText, ::sw::DeleteAndInsertMode eMode) |
void | Invalidate () |
virtual | ~SwXTextRange () override |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Friends | |
class | SwXText |
Definition at line 87 of file unotextrange.hxx.
Enumerator | |
---|---|
RANGE_IN_TEXT | |
RANGE_IN_CELL | |
RANGE_IS_TABLE | |
RANGE_IS_SECTION |
Definition at line 109 of file unotextrange.hxx.
|
overrideprivatevirtual |
Definition at line 758 of file unoobj2.cxx.
SwXTextRange::SwXTextRange | ( | SwPaM const & | rPam, |
const css::uno::Reference< css::text::XText > & | xParent, | ||
const enum RangePosition | eRange = RANGE_IN_TEXT |
||
) |
References getImplementationName(), getPropertyValue(), getString(), getSupportedServiceNames(), setPropertyValue(), and supportsService().
Referenced by CreateXTextRange(), getEnd(), and getStart().
SwXTextRange::SwXTextRange | ( | SwTableFormat & | rTableFormat | ) |
Definition at line 740 of file unoobj2.cxx.
References SwTable::FindTable(), SwTable::GetTableNode(), and SetPositions().
SwXTextRange::SwXTextRange | ( | SwSectionFormat & | rSectionFormat | ) |
Definition at line 751 of file unoobj2.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1454 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1470 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1347 of file unoobj2.cxx.
References SwXParaFrameEnumeration::Create(), GetDoc(), GetPositions(), m_pImpl, and PARAFRAME_PORTION_TEXTRANGE.
|
overridevirtual |
Definition at line 1371 of file unoobj2.cxx.
References SwXParagraphEnumeration::Create(), GetDoc(), GetPositions(), getText(), m_pImpl, RANGE_IN_CELL, Selection, and SelectionInTable.
|
static |
Definition at line 1221 of file unoobj2.cxx.
References sw::CreateParentXText(), SwDoc::CreateUnoCursor(), RANGE_IN_CELL, RANGE_IN_TEXT, and SwXTextRange().
Referenced by SwXFlatParagraph::changeAttributes(), SwXFlatParagraph::changeText(), SwXTextView::createTextRangeByPixelPosition(), SwTextPaintInfo::DrawCSDFHighlighting(), SwFormatLineBreak::GetAnchor(), SwXShape::getAnchor(), SwXBookmark::getAnchor(), SwXContentControl::getAnchor(), SwXTextField::getAnchor(), SwXDocumentIndex::getAnchor(), SwXMeta::getAnchor(), SwXReferenceMark::getAnchor(), SwXTextSection::getAnchor(), SwFormatFootnote::getAnchor(), SwXFieldmark::GetCommand(), SwXTextViewCursor::getEnd(), SwSpellDialogChildWindow::GetNextWrongSentence(), SwXShape::getPropertyValue(), SwXRedline::getPropertyValue(), SwVbaContentControl::getRange(), SwXFieldmark::GetResult(), SwXTextViewCursor::getStart(), SwDoc::HasParagraphDirectFormatting(), SwView::InsertMedium(), lcl_FillTextRange(), SwVbaFormField::Range(), SwDOCXReader::Read(), XMLReader::Read(), SwAccessibleParagraph::replaceText(), SwTextFrame::SmartTagScan(), SwXMLImport::startDocument(), sw::sidebar::UpdateTree(), and SwPasteContext::~SwPasteContext().
|
private |
css::uno::RuntimeException |
Definition at line 798 of file unoobj2.cxx.
References ArtificialSelection, SwPosition::Assign(), Default, DeleteTable(), SwUnoCursorHelper::DocInsertStringSplitCR(), eMode, end, fnMoveBackward, fnMoveForward, GetDoc(), SwPosition::GetNode(), SwPaM::GetPoint(), GetPositions(), SwTableNode::GetTable(), SwNode::GetTableNode(), GoInContent(), SwPaM::HasMark(), i, INSERT, SwNode::IsEndNode(), SwNode::IsSectionNode(), SwNode::IsTextNode(), SwCursor::Left(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, RANGE_IS_TABLE, SwUnoCursorHelper::SelectPam(), SwPaM::SetMark(), SetPositions(), start, and SwNode::StartOfSectionNode().
Referenced by SwXText::insertString(), and setString().
|
overridevirtual |
Definition at line 1406 of file unoobj2.cxx.
SwDoc & SwXTextRange::GetDoc | ( | ) |
Definition at line 767 of file unoobj2.cxx.
References m_pImpl.
const SwDoc & SwXTextRange::GetDoc | ( | ) | const |
Definition at line 762 of file unoobj2.cxx.
References m_pImpl.
Referenced by SwXAutoTextEntry::applyTo(), SwXTextTable::attach(), SwXTextField::attach(), SwXFootnote::attach(), SwXDocumentIndex::attach(), SwXDocumentIndexMark::attach(), SwXReferenceMark::attach(), SwXTextSection::attach(), SwXMeta::AttachImpl(), SwXContentControl::AttachImpl(), SwXBookmark::attachToRangeEx(), createContentEnumeration(), createEnumeration(), DeleteAndInsert(), getPropertyDefault(), getPropertyState(), getPropertyStates(), getPropertyValue(), getString(), SwXTextViewCursor::gotoRange(), lcl_CopySelToDoc(), lcl_GetDocViaTunnel(), makeRedline(), setPropertyToDefault(), setPropertyValue(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1395 of file unoobj2.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 992 of file unoobj2.cxx.
References fnMoveBackward, sw::mark::IMark::GetMarkEnd(), SwPosition::GetNode(), SwPaM::GetPoint(), getText(), GoInContent(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, RANGE_IS_TABLE, and SwXTextRange().
|
overridevirtual |
Definition at line 903 of file unoobj2.cxx.
bool SwXTextRange::GetPositions | ( | SwPaM & | rToFill, |
::sw::TextRangeMode | eMode = ::sw::TextRangeMode::RequireTextNode |
||
) | const |
Definition at line 1050 of file unoobj2.cxx.
References SwPosition::Assign(), SwPosition::AssignEndIndex(), SwPaM::DeleteMark(), eMode, SwNode::EndOfSectionNode(), SwNode::FindTableNode(), fnMoveBackward, fnMoveForward, SwPosition::GetContentNode(), SwPaM::GetMark(), sw::mark::IMark::GetMarkPos(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwNodeIndex::GetNodes(), sw::mark::IMark::GetOtherMarkPos(), SwPaM::GetPoint(), GoInContent(), SwNodes::IsDocNodes(), sw::mark::IMark::IsExpanded(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, and SwPaM::SetMark().
Referenced by SwXAutoTextEntry::applyTo(), createContentEnumeration(), createEnumeration(), DeleteAndInsert(), SwXTextDocument::FindAny(), getPropertyDefault(), getPropertyState(), getPropertyStates(), getPropertyValue(), getString(), SwXTextCursor::gotoRange(), SwXTextViewCursor::gotoRange(), SwXText::insertString(), lcl_CopySelToDoc(), makeRedline(), setPropertyToDefault(), setPropertyValue(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1530 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyDefault(), and m_pImpl.
|
overridevirtual |
Definition at line 1413 of file unoobj2.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1486 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyState(), and m_pImpl.
|
overridevirtual |
Definition at line 1501 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyStates(), and m_pImpl.
|
overridevirtual |
Definition at line 1439 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyValue(), and m_pImpl.
|
overridevirtual |
Definition at line 955 of file unoobj2.cxx.
References SwNode::EndOfSectionNode(), fnMoveForward, sw::mark::IMark::GetMarkStart(), SwPosition::GetNode(), SwPaM::GetPoint(), getText(), GoInContent(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, RANGE_IS_TABLE, and SwXTextRange().
|
overridevirtual |
Definition at line 1028 of file unoobj2.cxx.
References sw::AllowNonTextNode, GetDoc(), GetPositions(), SwUnoCursorHelper::GetTextFromPam(), and SwPaM::HasMark().
Referenced by SwXAutoTextGroup::insertNewByName().
|
overridevirtual |
Definition at line 914 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 928 of file unoobj2.cxx.
References sw::CreateParentXText(), SwTable::FindTable(), SwTable::GetTableNode(), m_pImpl, RANGE_IS_SECTION, and RANGE_IS_TABLE.
Referenced by createEnumeration(), getEnd(), and getStart().
|
overridevirtual |
Definition at line 1400 of file unoobj2.cxx.
|
private |
Definition at line 772 of file unoobj2.cxx.
References m_pImpl.
Referenced by SwXText::convertToTextFrame().
|
overridevirtual |
Definition at line 1545 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::makeRedline().
|
overridevirtual |
Definition at line 1462 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1478 of file unoobj2.cxx.
|
private |
Definition at line 777 of file unoobj2.cxx.
References m_pImpl, IDocumentMarkAccess::makeMark(), sw::mark::New, and IDocumentMarkAccess::UNO_BOOKMARK.
Referenced by DeleteAndInsert(), SwXText::insertControlCharacter(), and SwXTextRange().
|
overridevirtual |
Definition at line 1515 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::SetPropertyToDefault().
|
overridevirtual |
Definition at line 1423 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::SetPropertyValue().
|
overridevirtual |
Definition at line 1043 of file unoobj2.cxx.
References sw::Default, and DeleteAndInsert().
|
overridevirtual |
Definition at line 908 of file unoobj2.cxx.
References cppu::supportsService().
|
friend |
Definition at line 93 of file unotextrange.hxx.
|
private |
Definition at line 96 of file unotextrange.hxx.
Referenced by createContentEnumeration(), createEnumeration(), DeleteAndInsert(), GetDoc(), getEnd(), GetPositions(), getPropertyDefault(), getPropertySetInfo(), getPropertyState(), getPropertyStates(), getPropertyValue(), getStart(), getText(), Invalidate(), makeRedline(), SetPositions(), setPropertyToDefault(), and setPropertyValue().