summaryrefslogtreecommitdiff
path: root/include/svtools/htmlout.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-04-06 13:22:26 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-04-06 13:51:42 +0200
commite4f53484d255f844169957c411dc3e872af7d3bb (patch)
tree3eda6b7efe197c71d83ba10335fffba479249649 /include/svtools/htmlout.hxx
parent2f4d577e60a934e2845c90e00bac06072351ec65 (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/htmlout.hxx')
-rw-r--r--include/svtools/htmlout.hxx19
1 files changed, 1 insertions, 18 deletions
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 );
};