|
LibreOffice Module editeng (master) 1
|
#include <eehtml.hxx>
Public Member Functions | |
| EditHTMLParser (SvStream &rIn, OUString aBaseURL, SvKeyValueIterator *pHTTPHeaderAttrs) | |
| virtual | ~EditHTMLParser () override |
| SvParserState | CallParser (EditEngine *pEE, const EditPaM &rPaM) |
| const EditSelection & | GetCurSelection () const |
Public Member Functions inherited from HTMLParser | |
| HTMLParser (SvStream &rIn, bool bReadNewDoc=true) | |
| virtual SvParserState | CallParser () override |
| bool | IsNewDoc () const |
| bool | IsInHeader () const |
| bool | IsReadListing () const |
| bool | IsReadXMP () const |
| bool | IsReadPRE () const |
| bool | IsReadScript () const |
| bool | IsReadStyle () const |
| void | StartPRE () |
| void | FinishPRE () |
| HtmlTokenId | FilterPRE (HtmlTokenId nToken) |
| void | StartListing () |
| void | FinishListing () |
| HtmlTokenId | FilterListing (HtmlTokenId nToken) |
| void | StartXMP () |
| void | FinishXMP () |
| HtmlTokenId | FilterXMP (HtmlTokenId nToken) |
| void | FinishTextArea () |
| void | FinishPREListingXMP () |
| HtmlTokenId | FilterToken (HtmlTokenId nToken) |
| void | ReadRawData (const OUString &rEndToken) |
| void | UnescapeToken () |
| const HTMLOptions & | GetOptions (HtmlOptionId const *pNoConvertToken=nullptr) |
| virtual void | Continue (HtmlTokenId nToken) override |
| virtual bool | ParseMetaOptions (const css::uno::Reference< css::document::XDocumentProperties > &, SvKeyValueIterator *) |
| void | ParseScriptOptions (OUString &rLangString, std::u16string_view rBaseURL, HTMLScriptLanguage &rLang, OUString &rSrc, OUString &rLibrary, OUString &rModule) |
| bool | SetEncodingByHTTPHeader (SvKeyValueIterator *pHTTPHeader) |
Public Member Functions inherited from SvParser< HtmlTokenId > | |
| 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 |
| T | GetSaveToken () const |
Protected Member Functions | |
| virtual void | NextToken (HtmlTokenId nToken) override |
Protected Member Functions inherited from HTMLParser | |
| HtmlTokenId | ScanText (const sal_Unicode cBreak=0U) |
| HtmlTokenId | GetNextRawToken () |
| virtual HtmlTokenId | GetNextToken_ () override |
| virtual | ~HTMLParser () override |
| void | FinishHeader () |
| void | SetNamespace (std::u16string_view rNamespace) |
| virtual void | AddMetaUserDefined (OUString const &i_rMetaName) |
Protected Member Functions inherited from SvParser< HtmlTokenId > | |
| T | SkipToken (short nCnt=-1) |
| TokenStackType * | GetStackPtr (short nCnt) |
| T | GetNextToken () |
| virtual T | GetNextToken_ ()=0 |
| virtual void | NextToken (T nToken)=0 |
| virtual | ~SvParser () override |
| void | ClearTxtConvContext () |
Private Member Functions | |
| void | StartPara (bool bReal) |
| void | EndPara () |
| void | AnchorStart () |
| void | AnchorEnd () |
| void | HeadingStart (HtmlTokenId nToken) |
| void | HeadingEnd () |
| void | SkipGroup (HtmlTokenId nEndToken) |
| bool | ThrowAwayBlank () |
| bool | HasTextInCurrentPara () |
| void | ImpInsertParaBreak () |
| void | ImpInsertText (const OUString &rText) |
| void | ImpSetAttribs (const SfxItemSet &rItems) |
| void | ImpSetStyleSheet (sal_uInt16 nHeadingLevel) |
| virtual SvParserState | CallParser () override |
Private Attributes | |
| OUStringBuffer | maStyleSource |
| EditSelection | aCurSel |
| OUString | aBaseURL |
| EditEngine * | mpEditEngine |
| std::optional< AnchorInfo > | moCurAnchor |
| bool | bInPara:1 |
| bool | bWasInPara:1 |
| bool | bFieldsInserted:1 |
| bool | bInTitle:1 |
| sal_uInt8 | nInTable |
| sal_uInt8 | nInCell |
| sal_uInt8 | nDefListLevel |
Additional Inherited Members | |
Static Public Member Functions inherited from HTMLParser | |
| static void | RemoveSGMLComment (OUString &rString) |
| static bool | InternalImgToPrivateURL (OUString &rURL) |
| static rtl_TextEncoding | GetEncodingByHttpHeader (SvKeyValueIterator *pHTTPHeader) |
Static Protected Member Functions inherited from HTMLParser | |
| static rtl_TextEncoding | GetEncodingByMIME (const OUString &rMime) |
Protected Attributes inherited from HTMLParser | |
| OUString | sSaveToken |
Protected Attributes inherited from SvParser< HtmlTokenId > | |
| SvStream & | rInput |
| 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 |
Definition at line 36 of file eehtml.hxx.
| EditHTMLParser::EditHTMLParser | ( | SvStream & | rIn, |
| OUString | aBaseURL, | ||
| SvKeyValueIterator * | pHTTPHeaderAttrs | ||
| ) |
Definition at line 38 of file eehtml.cxx.
References DBG_ASSERT, GetExtendedCompatibilityTextEncoding(), SvParser< HtmlTokenId >::IsSwitchToUCS2(), HTMLParser::SetEncodingByHTTPHeader(), SvParser< HtmlTokenId >::SetSrcEncoding(), and SvParser< HtmlTokenId >::SetSwitchToUCS2().
|
overridevirtual |
Definition at line 63 of file eehtml.cxx.
|
private |
Definition at line 769 of file eehtml.cxx.
References aCurSel, bFieldsInserted, EditEngine::CallHtmlImportHandler(), EditEngine::CreateESelection(), EE_FEATURE_FIELD(), InsertField, EditEngine::InsertField(), EditEngine::IsHtmlImportHandlerSet(), moCurAnchor, mpEditEngine, and Repr.
Referenced by NextToken().
|
private |
Definition at line 739 of file eehtml.cxx.
References aBaseURL, aTargetURL, aURL, INetURLObject::GetNewAbsURL(), HTMLParser::GetOptions(), moCurAnchor, and INetURLObject::ToIUri.
Referenced by NextToken().
|
privatevirtual |
Reimplemented from HTMLParser.
| SvParserState EditHTMLParser::CallParser | ( | EditEngine * | pEE, |
| const EditPaM & | rPaM | ||
| ) |
Definition at line 67 of file eehtml.cxx.
References aCurSel, bFieldsInserted, EditEngine::CallHtmlImportHandler(), HTMLParser::CallParser(), EditEngine::CreateESelection(), DBG_ASSERT, End, ImpSetStyleSheet(), EditEngine::IsHtmlImportHandlerSet(), mpEditEngine, Start, and EditEngine::UpdateFieldsOnly().
|
private |
Definition at line 715 of file eehtml.cxx.
References bInPara, HasTextInCurrentPara(), and ImpInsertParaBreak().
Referenced by HeadingEnd(), and NextToken().
|
inline |
Definition at line 79 of file eehtml.hxx.
References aCurSel.
|
private |
Definition at line 734 of file eehtml.cxx.
References aCurSel, EditPaM::GetNode(), ContentNode::Len(), and EditSelection::Max().
Referenced by EndPara(), HeadingStart(), and NextToken().
|
private |
Definition at line 801 of file eehtml.cxx.
References bInPara, bWasInPara, EndPara(), and ImpSetStyleSheet().
Referenced by NextToken().
|
private |
Definition at line 787 of file eehtml.cxx.
References bInPara, bWasInPara, DBG_ASSERT, HasTextInCurrentPara(), ImpInsertParaBreak(), ImpSetStyleSheet(), nId, nToken, and StartPara().
Referenced by NextToken().
|
private |
Definition at line 496 of file eehtml.cxx.
References aCurSel, EditEngine::CallHtmlImportHandler(), EditEngine::CreateESelection(), InsertPara, EditEngine::InsertParaBreak(), EditEngine::IsHtmlImportHandlerSet(), and mpEditEngine.
Referenced by EndPara(), HeadingStart(), and NextToken().
|
private |
Definition at line 647 of file eehtml.cxx.
References aCurSel, HtmlImportInfo::aText, EditEngine::CallHtmlImportHandler(), EditEngine::CreateESelection(), InsertText, EditEngine::InsertText(), EditEngine::IsHtmlImportHandlerSet(), and mpEditEngine.
Referenced by NextToken().
|
private |
Definition at line 506 of file eehtml.cxx.
References aCurSel, EditEngine::CallHtmlImportHandler(), EditEngine::CreateESelection(), DBG_ASSERT, EditEngine::GetBaseParaAttribs(), EditEngine::GetEditDoc(), EditPaM::GetIndex(), EditPaM::GetNode(), EditDoc::GetPos(), EditEngine::IsHtmlImportHandlerSet(), ContentNode::Len(), EditSelection::Max(), EditSelection::Min(), mpEditEngine, SfxItemSet::Put(), SetAttr, EditEngine::SetAttribs(), EditPaM::SetIndex(), and EditEngine::SetParaAttribsOnly().
Referenced by StartPara().
|
private |
Definition at line 552 of file eehtml.cxx.
References aCurSel, SfxItemSet::ClearItem(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_PARA_ULSPACE(), vcl::Font::GetCharSet(), ContentNode::GetContentAttribs(), OutputDevice::GetDefaultFont(), EditEngine::GetEditDoc(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), ContentAttribs::GetItems(), MapMode::GetMapUnit(), EditPaM::GetNode(), vcl::Font::GetPitch(), EditDoc::GetPos(), EditEngine::GetRefMapMode(), LANGUAGE_SYSTEM, OutputDevice::LogicToLogic(), EditSelection::Max(), mpEditEngine, SfxItemSet::Put(), SvxULSpaceItem::SetLower(), EditEngine::SetParaAttribsOnly(), SvxULSpaceItem::SetUpper(), STYLE_PRE, and WEIGHT_BOLD.
Referenced by CallParser(), HeadingEnd(), HeadingStart(), and NextToken().
|
overrideprotectedvirtual |
they land so in the text
Definition at line 98 of file eehtml.cxx.
References aCurSel, AnchorEnd(), AnchorStart(), HtmlImportInfo::aText, SvParser< HtmlTokenId >::aToken, bInPara, bInTitle, EditEngine::CallHtmlImportHandler(), Center, SfxItemSet::ClearItem(), EditEngine::CreateESelection(), DBG_ASSERT, EE_PARA_JUST(), EndPara(), ContentNode::GetContentAttribs(), EditEngine::GetEditDoc(), HTMLParser::GetEncodingByMIME(), ContentAttribs::GetItems(), EditPaM::GetNode(), HTMLParser::GetOptions(), EditDoc::GetPos(), HTMLOption::GetString(), HTMLOption::GetToken(), HasTextInCurrentPara(), HeadingEnd(), HeadingStart(), i, ImpInsertParaBreak(), ImpInsertText(), ImpSetStyleSheet(), EditEngine::IsHtmlImportHandlerSet(), isOffToken(), HTMLParser::IsReadPRE(), HTMLParser::IsReadStyle(), maStyleSource, EditSelection::Max(), moCurAnchor, mpEditEngine, nDefListLevel, NextToken, nInCell, nInTable, nToken, HtmlImportInfo::nToken, SfxItemSet::Put(), EditEngine::SetParaAttribsOnly(), SvParser< HtmlTokenId >::SetSrcEncoding(), SkipGroup(), StartPara(), STYLE_PRE, ThrowAwayBlank(), and u.
|
private |
Definition at line 659 of file eehtml.cxx.
References SvParser< HtmlTokenId >::GetNextToken(), nInCell, and nToken.
Referenced by NextToken().
|
private |
Definition at line 687 of file eehtml.cxx.
References bInPara, Center, EE_PARA_JUST(), EditEngine::GetEmptyItemSet(), HTMLParser::GetOptions(), ImpSetAttribs(), Left, mpEditEngine, OOO_STRING_SVTOOLS_HTML_AL_center, OOO_STRING_SVTOOLS_HTML_AL_middle, OOO_STRING_SVTOOLS_HTML_AL_right, SfxItemSet::Put(), and Right.
Referenced by HeadingStart(), and NextToken().
|
private |
Definition at line 726 of file eehtml.cxx.
References aCurSel, ContentNode::GetChar(), EditPaM::GetNode(), ContentNode::Len(), and EditSelection::Max().
Referenced by NextToken().
|
private |
Definition at line 42 of file eehtml.hxx.
Referenced by AnchorStart().
|
private |
Definition at line 41 of file eehtml.hxx.
Referenced by AnchorEnd(), CallParser(), GetCurSelection(), HasTextInCurrentPara(), ImpInsertParaBreak(), ImpInsertText(), ImpSetAttribs(), ImpSetStyleSheet(), NextToken(), and ThrowAwayBlank().
|
private |
Definition at line 48 of file eehtml.hxx.
Referenced by AnchorEnd(), and CallParser().
|
private |
Definition at line 46 of file eehtml.hxx.
Referenced by EndPara(), HeadingEnd(), HeadingStart(), NextToken(), and StartPara().
|
private |
Definition at line 49 of file eehtml.hxx.
Referenced by NextToken().
|
private |
Definition at line 47 of file eehtml.hxx.
Referenced by HeadingEnd(), and HeadingStart().
|
private |
Definition at line 40 of file eehtml.hxx.
Referenced by NextToken().
|
private |
Definition at line 44 of file eehtml.hxx.
Referenced by AnchorEnd(), AnchorStart(), and NextToken().
|
private |
Definition at line 43 of file eehtml.hxx.
Referenced by AnchorEnd(), CallParser(), ImpInsertParaBreak(), ImpInsertText(), ImpSetAttribs(), ImpSetStyleSheet(), NextToken(), and StartPara().
|
private |
Definition at line 53 of file eehtml.hxx.
Referenced by NextToken().
|
private |
Definition at line 52 of file eehtml.hxx.
Referenced by NextToken(), and SkipGroup().
|
private |
Definition at line 51 of file eehtml.hxx.
Referenced by NextToken().