20#include <osl/thread.h>
33 case SotClipboardFormatId::INET_IMAGE:
45 RTL_TEXTENCODING_UTF8));
47 rOStm.
WriteBytes(sOut.getStr(), sOut.getLength());
48 static const char aEndChar[2] = { 0 };
53 case SotClipboardFormatId::NETSCAPE_IMAGE:
64 case SotClipboardFormatId::INET_IMAGE:
76 bRet = !sINetImg.isEmpty();
80 case SotClipboardFormatId::NETSCAPE_IMAGE:
97 rtl_TextEncoding eSysCSet = osl_getThreadTextEncoding();
98 sal_Int32 nVal, nAnchorOffset, nAltOffset;
101 nFilePos = rIStm.
Tell();
107 rIStm.
SeekRel( 3 *
sizeof( sal_Int32 ) +
sizeof(
int ) );
111 rIStm.
SeekRel(
sizeof(
int ) );
116 rIStm.
Seek( nFilePos + nAltOffset );
122 rIStm.
Seek( nFilePos + nAnchorOffset );
bool Read(SvStream &rIStm, SotClipboardFormatId nFormat)
void Write(SvStream &rOStm, SotClipboardFormatId nFormat) const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
std::size_t WriteBytes(const void *pData, std::size_t nSize)
sal_uInt64 Seek(sal_uInt64 nPos)
SvStream & ReadInt32(sal_Int32 &rInt32)
sal_uInt64 SeekRel(sal_Int64 nPos)
const sal_Unicode TOKEN_SEPARATOR
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
TOOLS_DLLPUBLIC OUString read_zeroTerminated_uInt8s_ToOUString(SvStream &rStrm, rtl_TextEncoding eEnc)