LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ContentNode Class Reference

#include <editdoc.hxx>

Collaboration diagram for ContentNode:
[legend]

Public Member Functions

 ContentNode (SfxItemPool &rItemPool)
 
 ContentNode (const OUString &rStr, const ContentAttribs &rContentAttribs)
 
 ~ContentNode ()
 
 ContentNode (const ContentNode &)=delete
 
ContentNodeoperator= (const ContentNode &)=delete
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
ContentAttribsGetContentAttribs ()
 
const ContentAttribsGetContentAttribs () const
 
CharAttribListGetCharAttribs ()
 
const CharAttribListGetCharAttribs () const
 
void ExpandAttribs (sal_Int32 nIndex, sal_Int32 nNewChars, SfxItemPool &rItemPool)
 
void CollapseAttribs (sal_Int32 nIndex, sal_Int32 nDelChars, SfxItemPool &rItemPool)
 
void AppendAttribs (ContentNode *pNextNode)
 
void CopyAndCutAttribs (ContentNode *pPrevNode, SfxItemPool &rPool, bool bKeepEndingAttribs)
 
void SetStyleSheet (SfxStyleSheet *pS, bool bRecalcFont=true)
 
void SetStyleSheet (SfxStyleSheet *pS, const SvxFont &rFontFromStyle)
 
SfxStyleSheetGetStyleSheet ()
 
void CreateDefFont ()
 
void EnsureWrongList ()
 
WrongListGetWrongList ()
 
const WrongListGetWrongList () const
 
void SetWrongList (WrongList *p)
 
void CreateWrongList ()
 
void DestroyWrongList ()
 
bool IsFeature (sal_Int32 nPos) const
 
sal_Int32 Len () const
 
const OUString & GetString () const
 
sal_Int32 GetExpandedLen () const
 return length including expanded fields More...
 
OUString GetExpandedText (sal_Int32 nStartPos=0, sal_Int32 nEndPos=-1) const
 return content including expanded fields More...
 
void UnExpandPositions (sal_Int32 &rStartPos, sal_Int32 &rEndPos)
 re-write offsets in the expanded text to string offsets More...
 
void SetChar (sal_Int32 nPos, sal_Unicode c)
 
void Insert (std::u16string_view rStr, sal_Int32 nPos)
 
void Append (std::u16string_view rStr)
 
void Erase (sal_Int32 nPos)
 
void Erase (sal_Int32 nPos, sal_Int32 nCount)
 
OUString Copy (sal_Int32 nPos) const
 
OUString Copy (sal_Int32 nPos, sal_Int32 nCount) const
 
sal_Unicode GetChar (sal_Int32 nPos) const
 

Private Member Functions

void UnExpandPosition (sal_Int32 &rStartPos, bool bBiasStart)
 

Private Attributes

OUString maString
 
ContentAttribs aContentAttribs
 
CharAttribList aCharAttribList
 
std::unique_ptr< WrongListmpWrongList
 

Detailed Description

Definition at line 235 of file editdoc.hxx.

Constructor & Destructor Documentation

◆ ContentNode() [1/3]

ContentNode::ContentNode ( SfxItemPool rItemPool)

Definition at line 1199 of file editdoc.cxx.

◆ ContentNode() [2/3]

ContentNode::ContentNode ( const OUString &  rStr,
const ContentAttribs rContentAttribs 
)

Definition at line 1203 of file editdoc.cxx.

References maString.

◆ ~ContentNode()

ContentNode::~ContentNode ( )

Definition at line 1208 of file editdoc.cxx.

◆ ContentNode() [3/3]

ContentNode::ContentNode ( const ContentNode )
delete

Member Function Documentation

◆ Append()

void ContentNode::Append ( std::u16string_view  rStr)

Definition at line 1741 of file editdoc.cxx.

References maString.

Referenced by EditDoc::ConnectParagraphs().

◆ AppendAttribs()

void ContentNode::AppendAttribs ( ContentNode pNextNode)

◆ CollapseAttribs()

void ContentNode::CollapseAttribs ( sal_Int32  nIndex,
sal_Int32  nDelChars,
SfxItemPool rItemPool 
)

◆ Copy() [1/2]

OUString ContentNode::Copy ( sal_Int32  nPos) const

◆ Copy() [2/2]

OUString ContentNode::Copy ( sal_Int32  nPos,
sal_Int32  nCount 
) const

Definition at line 1761 of file editdoc.cxx.

References maString, nCount, and nPos.

◆ CopyAndCutAttribs()

void ContentNode::CopyAndCutAttribs ( ContentNode pPrevNode,
SfxItemPool rPool,
bool  bKeepEndingAttribs 
)

◆ CreateDefFont()

void ContentNode::CreateDefFont ( )

◆ CreateWrongList()

void ContentNode::CreateWrongList ( )

◆ DestroyWrongList()

void ContentNode::DestroyWrongList ( )

Definition at line 1799 of file editdoc.cxx.

References mpWrongList.

Referenced by EditEngine::SetControlWord().

◆ dumpAsXml()

void ContentNode::dumpAsXml ( xmlTextWriterPtr  pWriter) const

◆ EnsureWrongList()

void ContentNode::EnsureWrongList ( )

Definition at line 1771 of file editdoc.cxx.

References CreateWrongList(), and mpWrongList.

Referenced by ImpEditEngine::DoOnlineSpelling().

◆ Erase() [1/2]

void ContentNode::Erase ( sal_Int32  nPos)

Definition at line 1746 of file editdoc.cxx.

References maString, and nPos.

Referenced by EditDoc::InsertParaBreak(), and EditDoc::RemoveChars().

◆ Erase() [2/2]

void ContentNode::Erase ( sal_Int32  nPos,
sal_Int32  nCount 
)

Definition at line 1751 of file editdoc.cxx.

References maString, nCount, nPos, and u.

◆ ExpandAttribs()

void ContentNode::ExpandAttribs ( sal_Int32  nIndex,
sal_Int32  nNewChars,
SfxItemPool rItemPool 
)

◆ GetChar()

sal_Unicode ContentNode::GetChar ( sal_Int32  nPos) const

◆ GetCharAttribs() [1/2]

CharAttribList & ContentNode::GetCharAttribs ( )
inline

◆ GetCharAttribs() [2/2]

const CharAttribList & ContentNode::GetCharAttribs ( ) const
inline

Definition at line 257 of file editdoc.hxx.

References aCharAttribList.

◆ GetContentAttribs() [1/2]

ContentAttribs & ContentNode::GetContentAttribs ( )
inline

◆ GetContentAttribs() [2/2]

const ContentAttribs & ContentNode::GetContentAttribs ( ) const
inline

Definition at line 255 of file editdoc.hxx.

References aContentAttribs.

◆ GetExpandedLen()

sal_Int32 ContentNode::GetExpandedLen ( ) const

return length including expanded fields

Definition at line 1620 of file editdoc.cxx.

References EE_FEATURE_FIELD(), CharAttribList::GetAttribs(), GetCharAttribs(), maString, and EditCharAttrib::Which().

Referenced by EditDoc::GetTextLen(), and ImpEditEngine::ImpSearch().

◆ GetExpandedText()

OUString ContentNode::GetExpandedText ( sal_Int32  nStartPos = 0,
sal_Int32  nEndPos = -1 
) const

◆ GetString()

const OUString & ContentNode::GetString ( ) const
inline

◆ GetStyleSheet()

SfxStyleSheet * ContentNode::GetStyleSheet ( )
inline

◆ GetWrongList() [1/2]

WrongList * ContentNode::GetWrongList ( )

◆ GetWrongList() [2/2]

const WrongList * ContentNode::GetWrongList ( ) const

Definition at line 1782 of file editdoc.cxx.

References mpWrongList.

◆ Insert()

void ContentNode::Insert ( std::u16string_view  rStr,
sal_Int32  nPos 
)

Definition at line 1736 of file editdoc.cxx.

References maString, and nPos.

Referenced by EditDoc::InsertFeature(), and EditDoc::InsertText().

◆ IsFeature()

bool ContentNode::IsFeature ( sal_Int32  nPos) const

Definition at line 1610 of file editdoc.cxx.

References CH_FEATURE, maString, and nPos.

Referenced by WrongList::ClearWrongs(), ImpEditEngine::CursorEndOfLine(), and ExpandAttribs().

◆ Len()

sal_Int32 ContentNode::Len ( ) const

Definition at line 1615 of file editdoc.cxx.

References maString.

Referenced by EditSelection::Adjust(), ImpEditEngine::ApplyChangedSentence(), EditRTFParser::CallParser(), EditSpellWrapper::CheckSpellTo(), WrongList::ClearWrongs(), CollapseAttribs(), EditDoc::ConnectParagraphs(), ImpEditEngine::Convert(), ImpEditEngine::ConvertSelection(), CopyAndCutAttribs(), ParaPortion::CorrectValuesBehindLastFormattedLine(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), EditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfDoc(), ImpEditEngine::CursorEndOfLine(), ImpEditEngine::CursorEndOfParagraph(), ImpEditEngine::CursorLeft(), ImpEditEngine::CursorMoved(), ImpEditEngine::CursorRight(), ImpEditEngine::CursorVisualLeftRight(), ParaPortion::DbgCheckTextPortions(), EditPaM::DbgIsBuggy(), ImpEditEngine::DeleteLeftOrRight(), ImpEditEngine::DoOnlineSpelling(), ImpEditView::dragGestureRecognized(), EditEngine::DumpData(), ImpEditEngine::EndOfWord(), EditView::ExecuteSpellPopup(), ExpandAttribs(), EditEngine::GetCharacterBounds(), EditDoc::GetEndPaM(), GetExpandedText(), ImpEditView::GetField(), ImpEditEngine::GetI18NScriptType(), ImpEditEngine::GetItemScriptType(), ImpEditEngine::GetLineNumberAtIndex(), EdtAutoCorrDoc::GetPrevPara(), ImpEditEngine::GetRightToLeft(), ImpEditEngine::GetSelected(), EditView::GetSurroundingText(), EditEngine::GetTextLen(), ImpEditEngine::HasSpellErrors(), EditHTMLParser::HasTextInCurrentPara(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImpConnectParagraphs(), ImpEditEngine::ImpDeleteSelection(), ImpEditEngine::ImpFindNextError(), ImpEditView::ImplGetEditCursor(), EditHTMLParser::ImpSetAttribs(), ImpEditEngine::ImpSpell(), ImpEditEngine::InitScriptTypes(), ImpEditEngine::InitWritingDirections(), ImpEditEngine::InsertParagraph(), ImpEditEngine::InsertTextObject(), ImpEditEngine::InvalidateFromParagraph(), EditRTFParser::IsEndPara(), ImpEditEngine::IsScriptChange(), lcl_DoSetSelection(), ImpEditEngine::MouseButtonDown(), ImpEditEngine::Paint(), EditEngine::PostKeyEvent(), EditUndoDelContent::Redo(), EdtAutoCorrDoc::ReplaceRange(), ImpEditEngine::ReplaceTextOnly(), ImpEditEngine::SeekCursor(), ImpEditEngine::SelectParagraph(), ImpEditEngine::SelectSentence(), ImpEditEngine::SelectWord(), EditRTFParser::SetAttrInDoc(), EditRTFParser::SetEndPrevPara(), EditView::SetSelection(), ImpEditEngine::SetStyleSheet(), ImpEditEngine::Spell(), ImpEditEngine::SpellSentence(), ImpEditEngine::StartOfWord(), ImpEditEngine::StartSearchAndReplace(), EditHTMLParser::ThrowAwayBlank(), EditUndoDelContent::Undo(), UnExpandPosition(), ImpEditEngine::UpdateParagraphsWithStyleSheet(), ImpEditEngine::UpdateSelections(), ImpEditEngine::WordLeft(), ImpEditEngine::WordRight(), ImpEditEngine::WriteRTF(), and ImpEditEngine::WriteText().

◆ operator=()

ContentNode & ContentNode::operator= ( const ContentNode )
delete

◆ SetChar()

void ContentNode::SetChar ( sal_Int32  nPos,
sal_Unicode  c 
)

Definition at line 1731 of file editdoc.cxx.

References maString, and nPos.

Referenced by ImpEditEngine::ReplaceTextOnly().

◆ SetStyleSheet() [1/2]

void ContentNode::SetStyleSheet ( SfxStyleSheet pS,
bool  bRecalcFont = true 
)

◆ SetStyleSheet() [2/2]

void ContentNode::SetStyleSheet ( SfxStyleSheet pS,
const SvxFont rFontFromStyle 
)

◆ SetWrongList()

void ContentNode::SetWrongList ( WrongList p)

Definition at line 1787 of file editdoc.cxx.

References mpWrongList, and p.

Referenced by ImpEditEngine::InsertTextObject().

◆ UnExpandPosition()

void ContentNode::UnExpandPosition ( sal_Int32 &  rStartPos,
bool  bBiasStart 
)
private

◆ UnExpandPositions()

void ContentNode::UnExpandPositions ( sal_Int32 &  rStartPos,
sal_Int32 &  rEndPos 
)

re-write offsets in the expanded text to string offsets

Definition at line 1725 of file editdoc.cxx.

References UnExpandPosition().

Referenced by ImpEditEngine::ImpSearch().

Member Data Documentation

◆ aCharAttribList

CharAttribList ContentNode::aCharAttribList
private

◆ aContentAttribs

ContentAttribs ContentNode::aContentAttribs
private

◆ maString

OUString ContentNode::maString
private

◆ mpWrongList

std::unique_ptr<WrongList> ContentNode::mpWrongList
private

The documentation for this class was generated from the following files: