LibreOffice Module sfx2 (master) 1
|
#include <sfxhtml.hxx>
Public Member Functions | |
bool | ParseMapOptions (ImageMap *pImageMap) |
bool | ParseAreaOptions (ImageMap *pImageMap, std::u16string_view rBaseURL, SvMacroItemId nEventMouseOver, SvMacroItemId nEventMouseOut) |
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 |
Static Public Member Functions | |
static bool | ParseMapOptions (ImageMap *pImageMap, const HTMLOptions &rOptions) |
static bool | ParseAreaOptions (ImageMap *pImageMap, std::u16string_view rBaseURL, const HTMLOptions &rOptions, SvMacroItemId nEventMouseOver, SvMacroItemId nEventMouseOut) |
static double | GetTableDataOptionsValNum (sal_uInt32 &nNumForm, LanguageType &eNumLang, const OUString &aValStr, std::u16string_view aNumStr, SvNumberFormatter &rFormatter) |
Static Public Member Functions inherited from HTMLParser | |
static void | RemoveSGMLComment (OUString &rString) |
static bool | InternalImgToPrivateURL (OUString &rURL) |
static rtl_TextEncoding | GetEncodingByHttpHeader (SvKeyValueIterator *pHTTPHeader) |
Protected Member Functions | |
SfxHTMLParser (SvStream &rStream, bool bNewDoc, SfxMedium *pMedium) | |
virtual | ~SfxHTMLParser () override |
void | StartFileDownload (const OUString &rURL) |
bool | FinishFileDownload (OUString &rStr) |
bool | ShouldFinishFileDownload () const |
SfxMedium * | GetMedium () |
const SfxMedium * | GetMedium () const |
ScriptType | GetScriptType (SvKeyValueIterator *) const |
const OUString & | GetScriptTypeString (SvKeyValueIterator *) const |
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 | |
SAL_DLLPRIVATE void | GetScriptType_Impl (SvKeyValueIterator *) |
Private Attributes | |
OUString | aScriptType |
SfxMedium * | pMedium |
std::unique_ptr< SfxMedium > | pDLMedium |
ScriptType | eScriptType |
Additional Inherited Members | |
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 sfxhtml.hxx.
Definition at line 61 of file sfxhtml.cxx.
References DBG_ASSERT, SvParser< HtmlTokenId >::GetSrcEncoding(), SvParser< HtmlTokenId >::IsSwitchToUCS2(), SvParser< HtmlTokenId >::SetSwitchToUCS2(), and STARBASIC.
|
overrideprotectedvirtual |
Definition at line 77 of file sfxhtml.cxx.
References DBG_ASSERT, and pDLMedium.
|
protected |
Definition at line 232 of file sfxhtml.cxx.
References DBG_ASSERT, ERRCODE_NONE, pDLMedium, read_uInt8s_ToOUString(), SvStream::Seek(), SvMemoryStream::TellEnd(), and SvStream::WriteStream().
|
inlineprotected |
Definition at line 94 of file sfxhtml.hxx.
|
inlineprotected |
Definition at line 95 of file sfxhtml.hxx.
|
protected |
Definition at line 299 of file sfxhtml.cxx.
References aScriptType, eScriptType, and GetScriptType_Impl().
|
private |
Definition at line 254 of file sfxhtml.cxx.
References aScriptType, eScriptType, EXTENDED_STYPE, SvKeyValueIterator::GetFirst(), SvKeyValue::GetKey(), SvKeyValueIterator::GetNext(), SvKeyValue::GetValue(), JAVASCRIPT, OOO_STRING_SVTOOLS_HTML_LG_javascript, OOO_STRING_SVTOOLS_HTML_LG_starbasic, OOO_STRING_SVTOOLS_HTML_META_content_script_type, STARBASIC, SVX_MACRO_LANGUAGE_JAVASCRIPT, and SVX_MACRO_LANGUAGE_STARBASIC.
Referenced by GetScriptType(), and GetScriptTypeString().
|
protected |
Definition at line 307 of file sfxhtml.cxx.
References aScriptType, and GetScriptType_Impl().
|
static |
Definition at line 316 of file sfxhtml.cxx.
References SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), o3tl::getToken(), comphelper::string::getTokenCount(), SvNumberFormatter::IsNumberFormat(), LANGUAGE_SYSTEM, nType, SvNumberFormatter::PutandConvertEntry(), SvNumberFormatter::PutEntry(), and o3tl::toInt32().
|
static |
Definition at line 102 of file sfxhtml.cxx.
References aAreaShapeOptEnums, aName, convertLineEnd(), DBG_ASSERT, SvxMacroTableDtor::empty(), INetURLObject::GetAbsURL(), HTMLOption::GetEnum(), HTMLOption::GetNumbers(), HTMLOption::GetString(), GetSystemLineEnd(), HTMLOption::GetToken(), i, SvxMacroTableDtor::Insert(), ImageMap::InsertIMapObject(), JAVASCRIPT, nCount, NONE, and STARBASIC.
Referenced by ParseAreaOptions().
|
inline |
Definition at line 102 of file sfxhtml.hxx.
References HTMLParser::GetOptions(), and ParseAreaOptions().
|
inline |
Definition at line 58 of file sfxhtml.hxx.
References HTMLParser::GetOptions().
|
static |
Definition at line 82 of file sfxhtml.cxx.
References aName, DBG_ASSERT, HTMLOption::GetString(), HTMLOption::GetToken(), i, and ImageMap::SetName().
|
inlineprotected |
Definition at line 92 of file sfxhtml.hxx.
|
protected |
Definition at line 222 of file sfxhtml.cxx.
References DBG_ASSERT, pDLMedium, and SFX_STREAM_READONLY.
|
private |
Definition at line 38 of file sfxhtml.hxx.
Referenced by GetScriptType(), GetScriptType_Impl(), and GetScriptTypeString().
|
private |
Definition at line 43 of file sfxhtml.hxx.
Referenced by GetScriptType(), and GetScriptType_Impl().
|
private |
Definition at line 41 of file sfxhtml.hxx.
Referenced by FinishFileDownload(), StartFileDownload(), and ~SfxHTMLParser().
|
private |
Definition at line 40 of file sfxhtml.hxx.