From 9b0e09dedc76a3bc4fd7a128a3a115b328727e00 Mon Sep 17 00:00:00 2001 From: László Németh Date: Mon, 23 Mar 2015 16:16:28 +0100 Subject: SkipImages option for document import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option allows images and drawings to be skipped while importing DOC and DOCX, for text-only conversion or indexing. Change-Id: Id4bfbbe48d8a8e970b1cb5922187768bf94dc918 Reviewed-on: https://gerrit.libreoffice.org/14733 Reviewed-by: Németh László Tested-by: Németh László --- sfx2/source/doc/docfile.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sfx2/source/doc/docfile.cxx') diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 41d8097c0294..cd5e90c7d622 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -443,7 +443,6 @@ Reference < XContent > SfxMedium::GetContent() const return pImp->aContent.get(); } - OUString SfxMedium::GetBaseURL( bool bForSaving ) { OUString aBaseURL; @@ -476,6 +475,11 @@ OUString SfxMedium::GetBaseURL( bool bForSaving ) return aBaseURL; } +bool SfxMedium::IsSkipImages() +{ + const SfxStringItem* pSkipImagesItem = static_cast( GetItemSet()->GetItem(SID_FILE_FILTEROPTIONS) ); + return pSkipImagesItem && pSkipImagesItem->GetValue() == "SkipImages"; +} SvStream* SfxMedium::GetInStream() { -- cgit