diff options
author | Bryan Quigley <gquigs@gmail.com> | 2015-12-02 16:01:13 -0500 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-12-04 08:15:38 +0000 |
commit | 2ac0bd278d739382d8e534f5bbae34e55757a844 (patch) | |
tree | bc54483cc90e54feda677a2f30dce7665c68f549 /svtools | |
parent | 5c2f78cd15563389496979e50a38980b65b7f12b (diff) |
tdf#92925 Remove PBM, PGM, and PPM Export
Remove export for all the netpbm formats.
Import still works but these filetypes don't preserve good quality
anyway.
Change-Id: If4b47f749275a9d3d663f61872f448e01112f6b5
Reviewed-on: https://gerrit.libreoffice.org/20361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index 6ab5ab82b7f4..3b303fe4bc4c 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -48,9 +48,6 @@ #define FORMAT_PNG 2 #define FORMAT_BMP 3 #define FORMAT_GIF 4 -#define FORMAT_PBM 5 -#define FORMAT_PGM 6 -#define FORMAT_PPM 7 #define FORMAT_TIF 10 #define FORMAT_WMF 12 #define FORMAT_EMF 13 @@ -80,12 +77,6 @@ static sal_Int16 GetFilterFormat(const OUString& rExt) nFormat = FORMAT_BMP; else if ( rExt == "GIF" ) nFormat = FORMAT_GIF; - else if ( rExt == "PBM" ) - nFormat = FORMAT_PBM; - else if ( rExt == "PGM" ) - nFormat = FORMAT_PGM; - else if ( rExt == "PPM" ) - nFormat = FORMAT_PPM; else if ( rExt == "TIF" ) nFormat = FORMAT_TIF; else if ( rExt == "WMF" ) @@ -278,17 +269,6 @@ uno::Sequence< beans::PropertyValue > ExportDialog::GetFilterData( bool bUpdateC } break; - case FORMAT_PBM : - case FORMAT_PGM : - case FORMAT_PPM : - { - sal_Int32 nFormat = 0; - if ( mpRbText->IsChecked() ) - nFormat++; - pFilterOptions->WriteInt32("FileFormat", nFormat); - } - break; - case FORMAT_EPS : { sal_Int32 nCheck = 0; @@ -815,17 +795,6 @@ void ExportDialog::createFilterOptions() mpCbSaveTransparency->Check(mpFilterOptionsItem->ReadInt32("Translucent", 1) != 0); } break; - case FORMAT_PBM : - case FORMAT_PGM : - case FORMAT_PPM : - { - // RB Binary / Text - mpEncoding->Show(); - sal_Int32 nFormat = mpFilterOptionsItem->ReadInt32("FileFormat", 1); - mpRbBinary->Check( nFormat == 0 ); - mpRbText->Check( nFormat != 0 ); - } - break; case FORMAT_EPS : { mpEPSGrid->Show(); |