RTF import: split this call into simpler ones
Hopefully with this it's easier to see which is the usual and which one is the exceptional case. Change-Id: Iac1b49b2a4f2b909db46155d1ff10d2ba99fd655
This commit is contained in:
@@ -3209,11 +3209,10 @@ void RTFDocumentImpl::checkUnicode(bool bUnicode, bool bHex)
|
|||||||
}
|
}
|
||||||
if (bHex && !m_aHexBuffer.isEmpty())
|
if (bHex && !m_aHexBuffer.isEmpty())
|
||||||
{
|
{
|
||||||
OUString aString = OStringToOUString(
|
rtl_TextEncoding nEncoding = m_aStates.top().nCurrentEncoding;
|
||||||
m_aHexBuffer.makeStringAndClear(),
|
if (m_aStates.top().eDestination == Destination::FONTENTRY && m_aStates.top().nCurrentEncoding == RTL_TEXTENCODING_SYMBOL)
|
||||||
((m_aStates.top().eDestination == Destination::FONTENTRY
|
nEncoding = RTL_TEXTENCODING_MS_1252;
|
||||||
&& m_aStates.top().nCurrentEncoding == RTL_TEXTENCODING_SYMBOL)
|
OUString aString = OStringToOUString(m_aHexBuffer.makeStringAndClear(), nEncoding);
|
||||||
? RTL_TEXTENCODING_MS_1252 : m_aStates.top().nCurrentEncoding));
|
|
||||||
text(aString);
|
text(aString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -28,11 +28,11 @@ using namespace com::sun::star;
|
|||||||
#if !LIBEPUBGEN_VERSION_SUPPORT
|
#if !LIBEPUBGEN_VERSION_SUPPORT
|
||||||
namespace libepubgen
|
namespace libepubgen
|
||||||
{
|
{
|
||||||
enum EPUBStylesMethod
|
enum EPUBStylesMethod
|
||||||
{
|
{
|
||||||
EPUB_STYLES_METHOD_CSS, //< The styles will be described in a separate CSS file.
|
EPUB_STYLES_METHOD_CSS, //< The styles will be described in a separate CSS file.
|
||||||
EPUB_STYLES_METHOD_INLINE, //< The styles will be described inline.
|
EPUB_STYLES_METHOD_INLINE, //< The styles will be described inline.
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user