LibreOffice Module sw (master)
1
|
#include <unotext.hxx>
Classes | |
class | Impl |
Public Member Functions | |
virtual const SwStartNode * | GetStartNode () const |
SwXText (SwDoc *const pDoc, const CursorType eType) | |
const SwDoc * | GetDoc () const |
SwDoc * | GetDoc () |
virtual css::uno::Reference< css::text::XTextCursor > | CreateCursor () |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) 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::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 | insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override |
virtual void SAL_CALL | insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override |
virtual void SAL_CALL | insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override |
virtual void SAL_CALL | removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | finishParagraph (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | finishParagraphInsert (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | appendTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | insertTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &rTextRange) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | appendTextContent (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | insertTextContentWithProperties (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override |
virtual css::uno::Reference< css::text::XTextContent > SAL_CALL | convertToTextFrame (const css::uno::Reference< css::text::XTextRange > &xStart, const css::uno::Reference< css::text::XTextRange > &xEnd, const css::uno::Sequence< css::beans::PropertyValue > &xFrameProperties) override |
virtual css::uno::Reference< css::text::XTextTable > SAL_CALL | convertToTable (css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::text::XTextRange > > > > const &rTableRanges, css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > > const &rCellProperties, css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > const &rRowProperties, css::uno::Sequence< css::beans::PropertyValue > const &rTableProperties) override |
virtual void SAL_CALL | copyText (const css::uno::Reference< css::text::XTextCopy > &xSource) override |
sal_Int16 SAL_CALL | compareRegionStarts (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override |
sal_Int16 SAL_CALL | compareRegionEnds (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override |
virtual void SAL_CALL | insertTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xSuccessor) override |
virtual void SAL_CALL | insertTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xPredecessor) override |
virtual void SAL_CALL | removeTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xSuccessor) override |
virtual void SAL_CALL | removeTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xPredecessor) override |
Static Public Member Functions | |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Member Functions | |
bool | IsValid () const |
void | Invalidate () |
void | SetDoc (SwDoc *const pDoc) |
virtual | ~SwXText () |
Private Member Functions | |
virtual void | PrepareForAttach (css::uno::Reference< css::text::XTextRange > &xRange, SwPaM const &rPam) |
virtual bool | CheckForOwnMemberMeta (const SwPaM &rPam, const bool bAbsorb) |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Definition at line 44 of file unotext.hxx.
|
protectedvirtual |
Definition at line 131 of file unotext.cxx.
SwXText::SwXText | ( | SwDoc *const | pDoc, |
const CursorType | eType | ||
) |
Definition at line 126 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1164 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1180 of file unotext.cxx.
|
overridevirtual |
Definition at line 1480 of file unotext.cxx.
References getEnd(), and insertTextContentWithProperties().
|
overridevirtual |
Definition at line 1407 of file unotext.cxx.
References getEnd(), and insertTextPortion().
|
privatevirtual |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Definition at line 167 of file unotext.cxx.
Referenced by insertControlCharacter(), insertString(), and insertTextContent().
|
override |
Definition at line 1077 of file unotext.cxx.
References m_pImpl.
|
override |
Definition at line 1060 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2084 of file unotext.cxx.
References SwXTextTable::CreateXTextTable(), SwTable::FindTable(), SwTable::GetFrameFormat(), SwXTextTable::GetFrameFormat(), getLength(), IDocumentRedlineAccess::IsShowChanges(), IsValid(), lcl_ApplyCellProperties(), lcl_ApplyRowProperties(), lcl_GetLeftPos(), lcl_MergeCells(), m_pImpl, SAL_WARN, and SAL_WARN_IF.
|
overridevirtual |
Definition at line 1508 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), SwXTextFrame::attach(), SwXTextFrame::createTextCursor(), SwXTextFrame::CreateXTextFrame(), SwPaM::DeleteMark(), IDocumentContentOperations::DelFullPara(), END, SwPaM::End(), SwNode::EndOfSectionNode(), SwFrameFormat::FindSdrObject(), SwNode::FindSttNodeByType(), SwNode::FindTableNode(), fnMoveForward, fnParaEnd, fnParaStart, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), GetDoc(), SwXFrame::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFormat::GetName(), SwPaM::GetNode(), SwXTextCursor::GetPaM(), SwPaM::GetPoint(), GetStartNode(), SwStartNode::GetStartNodeType(), SwNode::GetTextNode(), GoCurrPara(), GoInContent(), i, SwXTextRange::Invalidate(), isGraphicNode(), SwNode::IsSectionNode(), IsValid(), m_pImpl, SwPosition::nNode, SwFormatAnchor::SetAnchor(), SwPaM::SetMark(), SwXFrame::setName(), SwXFrame::SetSelection(), sMessage, START, SwPaM::Start(), SwNode::StartOfSectionNode(), SwFlyStartNode, SwTableBoxStartNode, and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 2209 of file unotext.cxx.
References OTextCursorHelper::GetPaM(), GetStartNode(), and m_pImpl.
|
virtual |
css::uno::RuntimeException |
Reimplemented in SwXTextFrame, SwXHeadFootText, SwXCell, and SwXFootnote.
Definition at line 179 of file unotext.cxx.
References GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), IsValid(), and m_pImpl.
Referenced by SwXText::Impl::CheckForOwnMember(), getEnd(), getStart(), getString(), insertTextPortion(), setString(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1212 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1221 of file unotext.cxx.
References m_pImpl.
const SwDoc * SwXText::GetDoc | ( | ) | const |
Definition at line 135 of file unotext.cxx.
References m_pImpl.
Referenced by SwXAutoTextEntry::applyTo(), SwXShape::attach(), convertToTextFrame(), CreateCursor(), SwXRedlineText::createEnumeration(), SwXBodyText::createEnumeration(), SwXRedline::createEnumeration(), SwXFootnote::createEnumeration(), SwXCell::createEnumeration(), SwXHeadFootText::createEnumeration(), SwXTextFrame::createEnumeration(), SwXBodyText::CreateTextCursor(), SwXRedlineText::createTextCursor(), SwXRedline::createTextCursor(), SwXCell::createTextCursor(), SwXFootnote::createTextCursor(), SwXHeadFootText::createTextCursor(), SwXTextFrame::createTextCursor(), SwXBodyText::createTextCursorByRange(), SwXCell::createTextCursorByRange(), SwXFootnote::createTextCursorByRange(), SwXHeadFootText::createTextCursorByRange(), SwXTextFrame::createTextCursorByRange(), SwXFootnote::dispose(), SwXFootnote::getAnchor(), SwXFootnote::Impl::GetFootnoteFormat(), SwXCell::GetForcedNumericalValue(), getPropertyValue(), GetStartNode(), insertControlCharacter(), insertString(), insertTextContent(), insertTextContentAfter(), insertTextContentBefore(), insertTextContentWithProperties(), removeTextContentAfter(), removeTextContentBefore(), SwXCell::setFormula(), SwXFootnote::setLabel(), setString(), and sw_setValue().
SwDoc * SwXText::GetDoc | ( | ) |
Definition at line 139 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 879 of file unotext.cxx.
References cInvalidObject, and CreateCursor().
Referenced by appendTextContent(), and appendTextPortion().
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1094 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1111 of file unotext.cxx.
References SwXRedlinePortion::CreateRedlineProperties(), SwNode::EndOfSectionIndex(), FN_UNO_REDLINE_NODE_END, GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), IDocumentRedlineAccess::GetRedlineTable(), GetStartNode(), IsValid(), m_pImpl, SwPosition::nNode, SfxItemPropertySimpleEntry::nWID, SwRedlineTable::size(), and SwPaM::Start().
Referenced by SwXFootnote::getPropertyValue(), SwXCell::getPropertyValue(), and SwXTextFrame::getPropertyValue().
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXCell, and SwXFootnote.
Definition at line 1206 of file unotext.cxx.
Referenced by SwXFootnote::getSomething(), SwXCell::getSomething(), and SwXTextFrame::getSomething().
|
overridevirtual |
Definition at line 863 of file unotext.cxx.
References cInvalidObject, and CreateCursor().
Referenced by SwXAutoTextEntry::applyTo().
|
virtual |
Reimplemented in SwXTextFrame, SwXHeadFootText, SwXCell, SwXFootnote, and SwXRedlineText.
Definition at line 173 of file unotext.cxx.
References GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), and SwNode::StartOfSectionNode().
Referenced by convertToTextFrame(), copyText(), getPropertyValue(), insertString(), insertTextContent(), and setString().
|
overridevirtual |
Definition at line 894 of file unotext.cxx.
References CreateCursor(), and SAL_WARN.
Referenced by SwXCell::GetAny(), SwXCell::getError(), SwXCell::GetForcedNumericalValue(), and SwXCell::getValue().
|
overridevirtual |
Reimplemented in SwXTextFrame.
Definition at line 853 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXHeadFootText, SwXCell, SwXRedline, SwXFootnote, SwXBodyText, and SwXRedlineText.
Definition at line 265 of file unotext.cxx.
References cppu::UnoType< class >::get().
Referenced by SwXRedlineText::getTypes(), SwXBodyText::getTypes(), SwXFootnote::getTypes(), SwXRedline::getTypes(), SwXCell::getTypes(), SwXHeadFootText::getTypes(), and SwXTextFrame::getTypes().
|
static |
Definition at line 1200 of file unotext.cxx.
References sw::proofreadingiterator::get().
Referenced by SwXAutoTextEntry::applyTo(), SwXShape::attach(), SwXMLExport::getDoc(), and SwXMLImport::getDoc().
|
overridevirtual |
Definition at line 392 of file unotext.cxx.
References CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, CheckForOwnMemberMeta(), SwPaM::DeleteMark(), EMPTYEXPAND, FORCEHINTEXPAND, GetDoc(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), m_pImpl, SwPosition::nNode, SwUnoCursorHelper::SelectPam(), SwPaM::SetMark(), SwXTextRange::SetPositions(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
! scan for CR characters and inserting the paragraph breaks ! has to be done in the called function. ! Implemented in SwXTextRange::DeleteAndInsert
Definition at line 286 of file unotext.cxx.
References CheckForOwnMemberMeta(), SwXTextCursor::DeleteAndInsert(), SwXTextRange::DeleteAndInsert(), SwUnoCursorHelper::DocInsertStringSplitCR(), cppu::getCaughtException(), GetDoc(), SwPaM::GetNode(), SwXTextRange::GetPositions(), GetStartNode(), m_pImpl, Meta, SwPaM::Start(), and SwNode::StartOfSectionNode().
|
overridevirtual |
Definition at line 503 of file unotext.cxx.
References CheckForOwnMemberMeta(), cInvalidObject, FieldTypeAnnotation, SwNode::FindSttNodeByType(), Footer, Footnote, Frame, GetDoc(), SwPaM::GetNode(), GetStartNode(), Header, SwNode::IsSectionNode(), m_pImpl, PrepareForAttach(), SwNode::StartOfSectionNode(), SwFlyStartNode, SwFooterStartNode, SwFootnoteStartNode, SwHeaderStartNode, SwNormalStartNode, SwTableBoxStartNode, TableText, and sw::XTextRangeToSwPaM().
Referenced by insertTextContentWithProperties().
|
overridevirtual |
Definition at line 679 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), SwXParagraph::attachToText(), SwNode::EndOfSectionNode(), SwTable::FindTable(), GetDoc(), SwFormat::GetDoc(), SwXTextSection::GetFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), SwNode::GetTextNode(), SwXParagraph::IsDescriptor(), and SwPosition::nNode.
|
overridevirtual |
Definition at line 621 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), SwXParagraph::attachToText(), cInvalidObject, SwTable::FindTable(), GetDoc(), SwFormat::GetDoc(), SwXTextSection::GetFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), SwNode::GetTextNode(), SwXParagraph::IsDescriptor(), and SwPosition::nNode.
|
overridevirtual |
Definition at line 1421 of file unotext.cxx.
References SwRewriter::AddRule(), SwDoc::DontExpandFormat(), cppu::getCaughtException(), GetDoc(), INSERT, insertTextContent(), IsValid(), m_pImpl, SwPaM::Start(), SwResId(), UndoArg1, and sw::XTextRangeToSwPaM().
Referenced by appendTextContent().
|
overridevirtual |
Definition at line 1325 of file unotext.cxx.
References aSwMapProvider, CreateCursor(), SwUnoCursorHelper::DocInsertStringSplitCR(), SwXTextCursor::GetCursor(), SwNodeIndex::GetIndex(), SwUnoPropertyMapProvider::GetPropertySet(), INSERT, IsValid(), m_pImpl, NOFORMATATTR, PROPERTY_MAP_TEXT_CURSOR, SwUnoCursorHelper::SelectPam(), SwUnoCursorHelper::SetPropertyValues(), and sMessage.
Referenced by appendTextPortion().
|
protected |
Definition at line 149 of file unotext.cxx.
References m_pImpl.
Referenced by SwXFootnote::Impl::Notify().
|
protected |
Definition at line 144 of file unotext.cxx.
References m_pImpl.
Referenced by convertToTable(), convertToTextFrame(), CreateCursor(), SwXBodyText::createEnumeration(), SwXBodyText::CreateTextCursor(), SwXBodyText::createTextCursorByRange(), getPropertyValue(), SwXBodyText::hasElements(), insertTextContentWithProperties(), and insertTextPortion().
|
privatevirtual |
Definition at line 163 of file unotext.cxx.
Referenced by insertTextContent().
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXHeadFootText, SwXCell, SwXRedline, SwXFootnote, SwXBodyText, and SwXRedlineText.
Definition at line 194 of file unotext.cxx.
Referenced by SwXBodyText::queryAggregation(), SwXRedlineText::queryInterface(), SwXBodyText::queryInterface(), SwXFootnote::queryInterface(), SwXRedline::queryInterface(), SwXCell::queryInterface(), SwXHeadFootText::queryInterface(), and SwXTextFrame::queryInterface().
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1172 of file unotext.cxx.
|
overridevirtual |
Definition at line 839 of file unotext.cxx.
|
overridevirtual |
Definition at line 786 of file unotext.cxx.
References cInvalidObject, IDocumentContentOperations::DelFullPara(), SwNode::EndOfSectionNode(), SwTable::FindTable(), GetDoc(), SwFormat::GetDoc(), SwXTextSection::GetFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), and SwNode::IsTextNode().
|
overridevirtual |
Definition at line 734 of file unotext.cxx.
References cInvalidObject, IDocumentContentOperations::DelFullPara(), SwTable::FindTable(), GetDoc(), SwFormat::GetDoc(), SwXTextSection::GetFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), and SwNode::IsTextNode().
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1188 of file unotext.cxx.
Definition at line 154 of file unotext.cxx.
References m_pImpl.
Referenced by SwXFootnote::attach(), and SwXFootnote::Impl::Invalidate().
|
overridevirtual |
Reimplemented in SwXCell, SwXFootnote, and SwXRedline.
Definition at line 1104 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXCell.
Definition at line 909 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), cInvalidObject, CreateCursor(), END, SwNode::EndOfSectionNode(), IDocumentUndoRedo::EndUndo(), GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), GetStartNode(), m_pImpl, Meta, Section, START, IDocumentUndoRedo::StartUndo(), and Table.
|
private |
Definition at line 57 of file unotext.hxx.
Referenced by CheckForOwnMemberMeta(), compareRegionEnds(), compareRegionStarts(), convertToTable(), convertToTextFrame(), copyText(), CreateCursor(), finishParagraph(), finishParagraphInsert(), GetDoc(), getPropertySetInfo(), getPropertyValue(), insertControlCharacter(), insertString(), insertTextContent(), insertTextContentWithProperties(), insertTextPortion(), Invalidate(), IsValid(), SetDoc(), and setString().