Hi All,
About this issue78095, by my debugging, I find that the default(directly
"Ctrl+x") pasting
in this case is " Html Formats without
format"(SOT_FORMATSTR_ID_HTML_NO_COMMENT == 123)
Following the reproducing steps, below functions was called.
int SwTransferable::_PasteFileContent(.) sw\source\dochdl\swdtflvr.cxx
{
default:
if( rData.GetSotStorageStream( nFmt, xStrm ) )
{
if( ( SOT_FORMATSTR_ID_HTML_SIMPLE == nFmt ) ||
( SOT_FORMATSTR_ID_HTML_NO_COMMENT == nFmt ) )
{
//kangjch added
if( rData.GetSotStorageStream( SOT_FORMAT_RTF, xStrm ) )
{
pStream = &xStrm;
pRead = ReadRtf;
}
//kangjch added
else
{
pStream = aMSE40ClpObj.IsValid( *xStrm );
pRead = ReadHTML;
pRead->SetReadUTF8( TRUE );
//pRead->SetBaseURL( aMSE40ClpObj.GetBaseURL() );
BOOL bNoComments =
( nFmt == SOT_FORMATSTR_ID_HTML_NO_COMMENT );
pRead->SetIgnoreHTMLComments( bNoComments );
}
}
..
..
}
By adding "//kangjch added"'s codes, the issue can be fixed, but, exactly I
know these classes only a little,
I'm afraid of this modification must have risks. Would you like give me some
suggestion?
Whether does my adding codes have risk or not?
@Stephan: by my investigations, I find that, in SRC680_m215, the file is
also updated from 1.07 to 1.08,
And only "Html format" and "Html whitout format" can not work. Whether do I
need to updated my work area into m215 or not?
BRs
Kang Jingchuan