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

#include <eertfpar.hxx>

Inheritance diagram for EditRTFParser:
[legend]
Collaboration diagram for EditRTFParser:
[legend]

Public Member Functions

 EditRTFParser (SvStream &rIn, EditSelection aCurSel, SfxItemPool &rAttrPool, EditEngine *pEditEngine)
 
virtual ~EditRTFParser () override
 
virtual SvParserState CallParser () override
 
EditPaM const & GetCurPaM () const
 
- Public Member Functions inherited from SvxRTFParser
virtual SvParserState CallParser () override
 
const ColorGetColor (size_t nId) const
 
const vcl::FontGetFont (sal_uInt16 nId)
 
virtual bool IsEndPara (EditNodeIdx *pNd, sal_Int32 nCnt) const =0
 
void SetAttrPool (SfxItemPool *pNewPool)
 
template<class T >
void SetPardMap (TypedWhichId< T > wid, TypedWhichId< T > widTrue)
 
void ReadBorderAttr (int nToken, SfxItemSet &rSet, bool bTableDef=false)
 
void ReadBackgroundAttr (int nToken, SfxItemSet &rSet, bool bTableDef=false)
 
virtual void Continue (int nToken) override
 
const SfxItemSetGetRTFDefaults ()
 
- Public Member Functions inherited from SvRTFParser
 SvRTFParser (SvStream &rIn, sal_uInt8 nStackSize=3)
 
virtual SvParserState CallParser () override
 
virtual void Continue (int nToken) override
 
- Public Member Functions inherited from SvParser< int >
 SvParser (SvStream &rIn, sal_uInt8 nStackSize=3)
 
virtual SvParserState CallParser ()=0
 
SvParserState GetStatus () const
 
sal_uInt32 GetLineNr () const
 
sal_uInt32 GetLinePos () const
 
void IncLineNr ()
 
sal_uInt32 IncLinePos ()
 
void SetLineNr (sal_uInt32 nlNum)
 
void SetLinePos (sal_uInt32 nlPos)
 
sal_uInt32 GetNextChar ()
 
void RereadLookahead ()
 
bool IsParserWorking () const
 
Link< LinkParamNone *, void > GetAsynchCallLink () const
 
void SaveState (T nToken)
 
void RestoreState ()
 
virtual void Continue (T nToken)
 
void SetSrcEncoding (rtl_TextEncoding eSrcEnc)
 
rtl_TextEncoding GetSrcEncoding () const
 
void SetSwitchToUCS2 (bool bSet)
 
bool IsSwitchToUCS2 () const
 
sal_uInt16 GetCharSize () const
 
GetSaveToken () const
 

Private Member Functions

virtual void InsertPara () override
 
virtual void InsertText () override
 
virtual void MovePos (bool bForward=true) override
 
virtual void SetEndPrevPara (std::optional< EditNodeIdx > &rpNodePos, sal_Int32 &rCntPos) override
 
virtual void UnknownAttrToken (int nToken) override
 
virtual void NextToken (int nToken) override
 
virtual void SetAttrInDoc (SvxRTFItemStackType &rSet) override
 
virtual bool IsEndPara (EditNodeIdx *pNd, sal_Int32 nCnt) const override
 
virtual void CalcValue () override
 
void CreateStyleSheets ()
 
SfxStyleSheetCreateStyleSheet (SvxRTFStyleType const *pRTFStyle)
 
SvxRTFStyleTypeFindStyleSheet (std::u16string_view rName)
 
void AddRTFDefaultValues (const EditPaM &rStart, const EditPaM &rEnd)
 
void ReadField ()
 
void SkipGroup ()
 

Private Attributes

EditSelection aCurSel
 
EditEnginempEditEngine
 
MapMode aEditMapMode
 
sal_uInt16 nDefFont
 
bool bLastActionInsertParaBreak
 

Additional Inherited Members

- Protected Member Functions inherited from SvxRTFParser
virtual void InsertPara ()=0
 
virtual void NextToken (int nToken) override
 
void ReadStyleTable ()
 
void ReadColorTable ()
 
void ReadFontTable ()
 
void ReadAttr (int nToken, SfxItemSet *pSet)
 
void ReadTabAttr (int nToken, SfxItemSet &rSet)
 
SfxItemSetGetAttrSet ()
 
bool IsAttrSttPos ()
 
void AttrGroupEnd ()
 
void SetAllAttrOfStk ()
 
virtual void InsertText ()=0
 
virtual void MovePos (bool bForward=true)=0
 
virtual void SetEndPrevPara (std::optional< EditNodeIdx > &rpNodePos, sal_Int32 &rCntPos)=0
 
virtual void SetAttrInDoc (SvxRTFItemStackType &rSet)
 
virtual void UnknownAttrToken (int nToken)
 
virtual void CalcValue ()
 
 SvxRTFParser (SfxItemPool &rAttrPool, SvStream &rIn)
 
virtual ~SvxRTFParser () override
 
void SetNewDoc (bool bFlag)
 
bool IsChkStyleAttr () const
 
void SetChkStyleAttr (bool bFlag)
 
bool IsCalcValue () const
 
void SetCalcValue (bool bFlag)
 
void SetInsPos (const EditPosition &rNew)
 
SvxRTFStyleTblGetStyleTbl ()
 
- Protected Member Functions inherited from SvRTFParser
sal_Unicode GetHexValue ()
 
void ScanText ()
 
void SkipGroup ()
 
virtual int GetNextToken_ () override
 
void ReadUnknownData ()
 
void ReadBitmapData ()
 
virtual ~SvRTFParser () override
 
rtl_TextEncoding GetCodeSet () const
 
void SetEncoding (rtl_TextEncoding eEnc)
 
- Protected Member Functions inherited from SvParser< int >
SkipToken (short nCnt=-1)
 
TokenStackType * GetStackPtr (short nCnt)
 
GetNextToken ()
 
virtual T GetNextToken_ ()=0
 
virtual void NextToken (T nToken)=0
 
virtual ~SvParser () override
 
void ClearTxtConvContext ()
 
- Static Protected Member Functions inherited from SvxRTFParser
static void DelCharAtEnd (OUStringBuffer &rStr, const sal_Unicode cDel)
 
- Protected Attributes inherited from SvParser< int >
SvStreamrInput
 
OUStringBuffer aToken
 
sal_uInt32 nlLineNr
 
sal_uInt32 nlLinePos
 
std::unique_ptr< SvParser_Impl< T > > pImplData
 
tools::Long m_nTokenIndex
 
tools::Long nTokenValue
 
bool bTokenHasValue
 
bool bFuzzing
 
SvParserState eState
 
rtl_TextEncoding eSrcEnc
 
sal_uInt64 nNextChPos
 
sal_uInt32 nNextCh
 
bool bSwitchToUCS2
 
bool bRTF_InTextRead
 

Detailed Description

Definition at line 27 of file eertfpar.hxx.

Constructor & Destructor Documentation

◆ EditRTFParser()

EditRTFParser::EditRTFParser ( SvStream rIn,
EditSelection  aCurSel,
SfxItemPool rAttrPool,
EditEngine pEditEngine 
)

◆ ~EditRTFParser()

EditRTFParser::~EditRTFParser ( )
overridevirtual

Definition at line 78 of file eertfpar.cxx.

Member Function Documentation

◆ AddRTFDefaultValues()

void EditRTFParser::AddRTFDefaultValues ( const EditPaM rStart,
const EditPaM rEnd 
)
private

◆ CalcValue()

void EditRTFParser::CalcValue ( )
overrideprivatevirtual

◆ CallParser()

SvParserState EditRTFParser::CallParser ( )
overridevirtual

◆ CreateStyleSheet()

SfxStyleSheet * EditRTFParser::CreateStyleSheet ( SvxRTFStyleType const *  pRTFStyle)
private

◆ CreateStyleSheets()

void EditRTFParser::CreateStyleSheets ( )
private

◆ FindStyleSheet()

SvxRTFStyleType * EditRTFParser::FindStyleSheet ( std::u16string_view  rName)
private

Definition at line 439 of file eertfpar.cxx.

References SvxRTFParser::GetStyleTbl().

Referenced by CreateStyleSheet().

◆ GetCurPaM()

EditPaM const & EditRTFParser::GetCurPaM ( ) const
inline

Definition at line 61 of file eertfpar.hxx.

References aCurSel, and EditSelection::Max().

◆ InsertPara()

void EditRTFParser::InsertPara ( )
overrideprivatevirtual

◆ InsertText()

void EditRTFParser::InsertText ( )
overrideprivatevirtual

◆ IsEndPara()

bool EditRTFParser::IsEndPara ( EditNodeIdx pNd,
sal_Int32  nCnt 
) const
overrideprivatevirtual

Implements SvxRTFParser.

Definition at line 293 of file eertfpar.cxx.

References EditNodeIdx::GetNode(), and ContentNode::Len().

◆ MovePos()

void EditRTFParser::MovePos ( bool  bForward = true)
overrideprivatevirtual

◆ NextToken()

void EditRTFParser::NextToken ( int  nToken)
overrideprivatevirtual

◆ ReadField()

void EditRTFParser::ReadField ( )
private

◆ SetAttrInDoc()

void EditRTFParser::SetAttrInDoc ( SvxRTFItemStackType rSet)
overrideprivatevirtual

◆ SetEndPrevPara()

void EditRTFParser::SetEndPrevPara ( std::optional< EditNodeIdx > &  rpNodePos,
sal_Int32 &  rCntPos 
)
overrideprivatevirtual

◆ SkipGroup()

void EditRTFParser::SkipGroup ( )
private

◆ UnknownAttrToken()

void EditRTFParser::UnknownAttrToken ( int  nToken)
overrideprivatevirtual

Member Data Documentation

◆ aCurSel

EditSelection EditRTFParser::aCurSel
private

◆ aEditMapMode

MapMode EditRTFParser::aEditMapMode
private

Definition at line 32 of file eertfpar.hxx.

Referenced by CalcValue(), and EditRTFParser().

◆ bLastActionInsertParaBreak

bool EditRTFParser::bLastActionInsertParaBreak
private

Definition at line 35 of file eertfpar.hxx.

Referenced by CallParser(), InsertPara(), InsertText(), and ReadField().

◆ mpEditEngine

EditEngine* EditRTFParser::mpEditEngine
private

◆ nDefFont

sal_uInt16 EditRTFParser::nDefFont
private

Definition at line 34 of file eertfpar.hxx.

Referenced by AddRTFDefaultValues(), and NextToken().


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