summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-03-23 16:16:28 +0100
committerNémeth László <nemeth@numbertext.org>2015-03-24 07:38:04 +0000
commit9b0e09dedc76a3bc4fd7a128a3a115b328727e00 (patch)
treeea05f0ca70cf559c679f5f3bb0b7d2a107bae443 /sfx2
parent799a7878fd5b3a5a01b59d0a4139a2b0908ccc43 (diff)
SkipImages option for document import
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ó <nemeth@numbertext.org> Tested-by: Németh László <nemeth@numbertext.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx6
1 files changed, 5 insertions, 1 deletions
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<const SfxStringItem*>( GetItemSet()->GetItem(SID_FILE_FILTEROPTIONS) );
+ return pSkipImagesItem && pSkipImagesItem->GetValue() == "SkipImages";
+}
SvStream* SfxMedium::GetInStream()
{