diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-22 13:03:04 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-24 22:51:14 +0200 |
commit | 30798aa536fb1f0d27bcc3ee42200bc62238c8ca (patch) | |
tree | b2758536be422a2d9af68f8ac9d3165fbd87fc75 /sc/source/filter/html | |
parent | b90a19ce9bd5f1224a5b122dccff1a877899db94 (diff) |
sc html export: Skip all graphic objects at HTML export
Change-Id: I2e7befb46de8bf0ff6e6bc58d0353a8b6ec1c226
Diffstat (limited to 'sc/source/filter/html')
-rw-r--r-- | sc/source/filter/html/htmlexp.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx index 4a960116af6b..eb93bc60932c 100644 --- a/sc/source/filter/html/htmlexp.cxx +++ b/sc/source/filter/html/htmlexp.cxx @@ -217,7 +217,8 @@ ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocume bTabAlignedLeft( false ), bCalcAsShown( pDocP->GetDocOptions().IsCalcAsShown() ), bTableDataWidth( true ), - bTableDataHeight( true ) + bTableDataHeight( true ), + mbSkipImages ( false ) { strcpy( sIndent, sIndentSource ); sIndent[0] = 0; @@ -226,6 +227,12 @@ ScHTMLExport::ScHTMLExport( SvStream& rStrmP, const OUString& rBaseURL, ScDocume SvxHtmlOptions& rHtmlOptions = SvxHtmlOptions::Get(); eDestEnc = (pDoc->IsClipOrUndo() ? RTL_TEXTENCODING_UTF8 : rHtmlOptions.GetTextEncoding()); bCopyLocalFileToINet = rHtmlOptions.IsSaveGraphicsLocal(); + + if (rFilterOptions == "SkipImages") + { + mbSkipImages = true; + } + for ( sal_uInt16 j=0; j < SC_HTML_FONTSIZES; j++ ) { sal_uInt16 nSize = rHtmlOptions.GetFontSize( j ); @@ -798,7 +805,7 @@ void ScHTMLExport::WriteTables() IncIndent(-1); TAG_OFF_LF( OOO_STRING_SVTOOLS_HTML_table ); - if ( bTabHasGraphics ) + if ( bTabHasGraphics && mbSkipImages ) { // the rest that is not in a cell size_t ListSize = aGraphList.size(); |