summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-04-22 13:03:04 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-04-24 22:51:14 +0200
commit30798aa536fb1f0d27bcc3ee42200bc62238c8ca (patch)
treeb2758536be422a2d9af68f8ac9d3165fbd87fc75 /sc
parentb90a19ce9bd5f1224a5b122dccff1a877899db94 (diff)
sc html export: Skip all graphic objects at HTML export
Change-Id: I2e7befb46de8bf0ff6e6bc58d0353a8b6ec1c226
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/html/htmlexp.cxx11
-rw-r--r--sc/source/filter/inc/htmlexp.hxx1
2 files changed, 10 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();
diff --git a/sc/source/filter/inc/htmlexp.hxx b/sc/source/filter/inc/htmlexp.hxx
index 9696e6fad0e0..0c0546397030 100644
--- a/sc/source/filter/inc/htmlexp.hxx
+++ b/sc/source/filter/inc/htmlexp.hxx
@@ -125,6 +125,7 @@ class ScHTMLExport : public ScExportBase
bool bCopyLocalFileToINet;
bool bTableDataWidth;
bool bTableDataHeight;
+ bool mbSkipImages;
const SfxItemSet& PageDefaults( SCTAB nTab );