diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-06 13:22:26 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-06 13:51:42 +0200 |
commit | e4f53484d255f844169957c411dc3e872af7d3bb (patch) | |
tree | 3eda6b7efe197c71d83ba10335fffba479249649 /include/svtools | |
parent | 2f4d577e60a934e2845c90e00bac06072351ec65 (diff) |
tdf#148413: Drop HTML export encoding configuration; use UTF-8
Anything else is just a joke today.
Change-Id: Ie6a0cec1edcd257cbadef702018e6a919e6a0b44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132628
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/htmlcfg.hxx | 4 | ||||
-rw-r--r-- | include/svtools/htmlout.hxx | 19 |
2 files changed, 1 insertions, 22 deletions
diff --git a/include/svtools/htmlcfg.hxx b/include/svtools/htmlcfg.hxx index 19baf09e656d..1ed542867ef0 100644 --- a/include/svtools/htmlcfg.hxx +++ b/include/svtools/htmlcfg.hxx @@ -38,10 +38,6 @@ SVT_DLLPUBLIC sal_uInt16 GetFontSize(sal_uInt16 nPos); SVT_DLLPUBLIC sal_uInt16 GetExportMode(); SVT_DLLPUBLIC bool IsPrintLayoutExtension(); - -SVT_DLLPUBLIC bool IsDefaultTextEncoding(); -SVT_DLLPUBLIC rtl_TextEncoding GetTextEncoding(); -SVT_DLLPUBLIC void SetTextEncoding(rtl_TextEncoding); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index 8e87855b527c..4207bcb4d2bc 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -41,29 +41,16 @@ struct HTMLOutEvent SvMacroItemId nEvent; }; -struct SVT_DLLPUBLIC HTMLOutContext -{ - rtl_TextEncoding m_eDestEnc; - rtl_TextToUnicodeConverter m_hConv; - rtl_TextToUnicodeContext m_hContext; - - HTMLOutContext( rtl_TextEncoding eDestEnc ); - ~HTMLOutContext(); -}; - struct HTMLOutFuncs { SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc, - rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars ); SVT_DLLPUBLIC static SvStream& Out_AsciiTag( SvStream&, std::string_view rStr, bool bOn = true); SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_uInt32 cChar, - HTMLOutContext& rContext, OUString *pNonConvertableChars ); SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const OUString&, - rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars = nullptr ); SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uInt32 nHex, sal_uInt8 nLen ); SVT_DLLPUBLIC static SvStream& Out_Color( SvStream&, const Color&, bool bXHTML = false ); @@ -73,9 +60,8 @@ struct HTMLOutFuncs const char *pDelim, const char *pIndentArea, const char *pIndentMap, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = nullptr ); - SVT_DLLPUBLIC static SvStream& FlushToAscii( SvStream&, HTMLOutContext& rContext ); + SVT_DLLPUBLIC static SvStream& FlushToAscii( SvStream& ); SVT_DLLPUBLIC static SvStream& OutScript( SvStream& rStrm, const OUString& rBaseURL, @@ -85,21 +71,18 @@ struct HTMLOutFuncs const OUString& rSrc, const OUString *pSBLibrary, const OUString *pSBModule, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = nullptr ); // the 3rd parameter is an array of HTMLOutEvents which is terminated // by an entry that consists only of 0s SVT_DLLPUBLIC static SvStream& Out_Events( SvStream&, const SvxMacroTableDtor&, const HTMLOutEvent*, bool bOutStarBasic, - rtl_TextEncoding eDestEnc, OUString *pNonConvertableChars ); // <TD SDVAL="..." SDNUM="..."> SVT_DLLPUBLIC static OString CreateTableDataOptionsValNum( bool bValue, double fVal, sal_uInt32 nFormat, SvNumberFormatter& rFormatter, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = nullptr); SVT_DLLPUBLIC static bool PrivateURLToInternalImg( OUString& rURL ); }; |