LibreOffice Module sw (master)
1
|
#include <unotextrange.hxx>
Classes | |
class | Impl |
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 sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) override |
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 css::uno::Reference< css::text::XTextRange > | CreateXTextRange (SwDoc &rDoc, const SwPosition &rPos, const SwPosition *const pMark) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Types | |
enum | RangePosition { RANGE_IN_TEXT, RANGE_IN_CELL, RANGE_IS_TABLE, RANGE_IS_SECTION } |
Private Member Functions | |
void | SetPositions (SwPaM const &rPam) |
void | DeleteAndInsert (const OUString &rText, const bool bForceExpandHints) |
void | Invalidate () |
virtual | ~SwXTextRange () override |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Friends | |
class | SwXText |
Definition at line 88 of file unotextrange.hxx.
|
private |
Enumerator | |
---|---|
RANGE_IN_TEXT | |
RANGE_IN_CELL | |
RANGE_IS_TABLE | |
RANGE_IS_SECTION |
Definition at line 99 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 |
||
) |
Referenced by CreateXTextRange(), getEnd(), and getStart().
SwXTextRange::SwXTextRange | ( | SwTableFormat & | rTableFormat | ) |
Definition at line 739 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 1437 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1453 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1330 of file unoobj2.cxx.
References SwXParaFrameEnumeration::Create(), GetDoc(), GetPositions(), m_pImpl, and PARAFRAME_PORTION_TEXTRANGE.
|
overridevirtual |
Definition at line 1354 of file unoobj2.cxx.
References SwXParagraphEnumeration::Create(), GetDoc(), GetPositions(), getText(), m_pImpl, RANGE_IN_CELL, Selection, and SelectionInTable.
|
static |
Definition at line 1203 of file unoobj2.cxx.
References sw::CreateParentXText(), SwDoc::CreateUnoCursor(), RANGE_IN_CELL, RANGE_IN_TEXT, and SwXTextRange().
Referenced by SwXFlatParagraph::changeAttributes(), SwXFlatParagraph::changeText(), SwFormatFootnote::getAnchor(), SwXReferenceMark::getAnchor(), SwXDocumentIndex::getAnchor(), SwXFrame::getAnchor(), SwXBookmark::getAnchor(), SwXTextSection::getAnchor(), SwXMeta::getAnchor(), SwXTextField::getAnchor(), SwXShape::getAnchor(), SwXFieldmark::GetCommand(), SwXTextViewCursor::getEnd(), SwSpellDialogChildWindow::GetNextWrongSentence(), SwXRedline::getPropertyValue(), SwXShape::getPropertyValue(), SwXFieldmark::GetResult(), SwXTextViewCursor::getStart(), SwView::InsertMedium(), SwXMLTableContext::InsertTableSection(), lcl_FillTextRange(), SwDOCXReader::Read(), XMLReader::Read(), SwAccessibleParagraph::replaceText(), SwTextFrame::SmartTagScan(), SwXMLImport::startDocument(), sw::sidebar::UpdateTree(), and SwPasteContext::~SwPasteContext().
|
private |
css::uno::RuntimeException |
Definition at line 797 of file unoobj2.cxx.
References assert(), DeleteTable(), SwUnoCursorHelper::DocInsertStringSplitCR(), end, SwNode::EndOfSectionNode(), fnMoveBackward, fnMoveForward, GetDoc(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), GetPositions(), SwTableNode::GetTable(), SwNode::GetTableNode(), GoInContent(), SwPaM::HasMark(), i, INSERT, SwCursor::Left(), m_pImpl, SwPaM::Move(), SwPosition::nNode, RANGE_IS_SECTION, RANGE_IS_TABLE, SwUnoCursorHelper::SelectPam(), SwPaM::SetMark(), SetPositions(), and SwNode::StartOfSectionNode().
Referenced by SwXText::insertString(), and setString().
|
overridevirtual |
Definition at line 1389 of file unoobj2.cxx.
const SwDoc & SwXTextRange::GetDoc | ( | ) | const |
Definition at line 762 of file unoobj2.cxx.
References m_pImpl.
Referenced by SwXAutoTextEntry::applyTo(), SwXReferenceMark::attach(), SwXFootnote::attach(), SwXDocumentIndex::attach(), SwXTextSection::attach(), SwXTextField::attach(), SwXDocumentIndexMark::attach(), SwXShape::attach(), SwXTextTable::attach(), SwXMeta::AttachImpl(), SwXFrame::attachToRange(), SwXBookmark::attachToRangeEx(), SwXTextMarkup::commitTextRangeMarkup(), createContentEnumeration(), createEnumeration(), DeleteAndInsert(), getPropertyDefault(), getPropertyState(), getPropertyStates(), getPropertyValue(), getString(), SwXTextViewCursor::gotoRange(), lcl_CopySelToDoc(), lcl_GetDocViaTunnel(), makeRedline(), setPropertyToDefault(), setPropertyValue(), and sw::XTextRangeToSwPaM().
SwDoc & SwXTextRange::GetDoc | ( | ) |
Definition at line 767 of file unoobj2.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1378 of file unoobj2.cxx.
References cppu::UnoType< class >::get().
|
overridevirtual |
Definition at line 1001 of file unoobj2.cxx.
References assert(), fnMoveBackward, sw::mark::IMark::GetMarkEnd(), getText(), GoInContent(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, RANGE_IS_TABLE, and SwXTextRange().
|
overridevirtual |
Definition at line 918 of file unoobj2.cxx.
bool SwXTextRange::GetPositions | ( | SwPaM & | rToFill, |
::sw::TextRangeMode | eMode = ::sw::TextRangeMode::RequireTextNode |
||
) | const |
Definition at line 1059 of file unoobj2.cxx.
References sw::AllowNonTextNode, assert(), SwIndex::Assign(), SwPaM::DeleteMark(), SwNode::EndOfSectionNode(), SwNode::GetContentNode(), SwPaM::GetMark(), sw::mark::IMark::GetMarkPos(), SwNodeIndex::GetNode(), sw::mark::IMark::GetOtherMarkPos(), SwPaM::GetPoint(), sw::mark::IMark::IsExpanded(), SwContentNode::Len(), m_pImpl, SwPosition::nContent, SwPosition::nNode, RANGE_IS_SECTION, and SwPaM::SetMark().
Referenced by SwXAutoTextEntry::applyTo(), createContentEnumeration(), createEnumeration(), DeleteAndInsert(), SwXTextDocument::FindAny(), getPropertyDefault(), getPropertyState(), getPropertyStates(), getPropertyValue(), getString(), SwXTextViewCursor::gotoRange(), SwXTextCursor::gotoRange(), SwXText::insertString(), lcl_CopySelToDoc(), makeRedline(), setPropertyToDefault(), setPropertyValue(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1513 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyDefault(), and m_pImpl.
|
overridevirtual |
Definition at line 1396 of file unoobj2.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1469 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyState(), and m_pImpl.
|
overridevirtual |
Definition at line 1484 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyStates(), and m_pImpl.
|
overridevirtual |
Definition at line 1422 of file unoobj2.cxx.
References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyValue(), and m_pImpl.
|
overridevirtual |
Definition at line 912 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 964 of file unoobj2.cxx.
References assert(), fnMoveForward, sw::mark::IMark::GetMarkStart(), getText(), GoInContent(), m_pImpl, SwPaM::Move(), RANGE_IS_SECTION, RANGE_IS_TABLE, and SwXTextRange().
|
overridevirtual |
Definition at line 1037 of file unoobj2.cxx.
References sw::AllowNonTextNode, GetDoc(), GetPositions(), SwUnoCursorHelper::GetTextFromPam(), and SwPaM::HasMark().
Referenced by SwXAutoTextGroup::insertNewByName().
|
overridevirtual |
Definition at line 929 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 943 of file unoobj2.cxx.
References sw::CreateParentXText(), SwTable::FindTable(), SwTable::GetTableNode(), m_pImpl, and RANGE_IS_TABLE.
Referenced by createEnumeration(), getEnd(), and getStart().
|
static |
Definition at line 905 of file unoobj2.cxx.
References sw::proofreadingiterator::get().
Referenced by SwXAutoTextEntry::applyTo(), SwXTextField::attach(), SwXShape::attach(), SwXTextTable::attach(), SwXFrame::attachToRange(), SwXTextMarkup::commitTextRangeMarkup(), SwXTextDocument::FindAny(), SwXTextViewCursor::gotoRange(), and SwXAutoTextGroup::insertNewByName().
|
overridevirtual |
Definition at line 1383 of file unoobj2.cxx.
|
private |
Definition at line 772 of file unoobj2.cxx.
References m_pImpl.
Referenced by SwXText::convertToTextFrame().
|
overridevirtual |
Definition at line 1528 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::makeRedline().
|
overridevirtual |
Definition at line 1445 of file unoobj2.cxx.
|
overridevirtual |
Definition at line 1461 of file unoobj2.cxx.
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 1498 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::SetPropertyToDefault().
|
overridevirtual |
Definition at line 1406 of file unoobj2.cxx.
References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::SetPropertyValue().
|
overridevirtual |
Definition at line 1052 of file unoobj2.cxx.
References DeleteAndInsert().
|
overridevirtual |
Definition at line 923 of file unoobj2.cxx.
References cppu::supportsService().
|
friend |
Definition at line 94 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().