summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2022-11-07 12:47:41 +0100
committerTomaž Vajngerl <quikee@gmail.com>2022-11-08 10:24:19 +0100
commitf627ac6a579b56876ba6b2cc2325e6166a25d07d (patch)
tree73e11c5f40a0898b3bd28817fc017aa91ed6c7cf /svtools
parent0f0fd9c6e35a86f03606361211067c7887c3e0fc (diff)
tdf#151944: error colour export in bmp
4 bits bmp support has been dropped in March 2021 with: a6c6f35ccc78e74cfa76397d649c1b6fc4baad29 "drop 4bpp image formats on a path to simplifying our internal bitmap stuff, aiming to support a smaller set of image formats, but support them in an accelerated fashion. " 1 bit dithered bmp support last remnant has been dropped in April 2020 with: e3cc7b94b13d6cc4e044cfd688e0fcc9dca63987 "loplugin:unusedenumconstants BmpConversion" Change-Id: I958bea6baabb9ef21c5fa71bfc7ff96cba201245 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142375 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/exportdialog.cxx12
-rw-r--r--svtools/source/filter/exportdialog.hxx3
2 files changed, 0 insertions, 15 deletions
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index 142da3354f7a..d2718b533be7 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -525,12 +525,6 @@ sal_uInt32 ExportDialog::GetRawFileSize() const
OUString aEntry(mxLbColorDepth->get_active_text());
if ( ms1BitThreshold == aEntry )
nBitsPerPixel = 1;
- else if ( ms1BitDithered == aEntry )
- nBitsPerPixel = 1;
- else if ( ms4BitGrayscale == aEntry )
- nBitsPerPixel = 4;
- else if ( ms4BitColorPalette == aEntry )
- nBitsPerPixel = 8;
else if ( ms8BitGrayscale == aEntry )
nBitsPerPixel = 8;
else if ( ms8BitColorPalette == aEntry )
@@ -571,9 +565,6 @@ ExportDialog::ExportDialog(FltCallDialogParameter& rPara,
, msEstimatedSizePix2(SvtResId(STR_SVT_ESTIMATED_SIZE_PIX_2))
, msEstimatedSizeVec(SvtResId(STR_SVT_ESTIMATED_SIZE_VEC))
, ms1BitThreshold(SvtResId(STR_SVT_1BIT_THRESHOLD))
- , ms1BitDithered(SvtResId(STR_SVT_1BIT_DITHERED))
- , ms4BitGrayscale(SvtResId(STR_SVT_4BIT_GRAYSCALE))
- , ms4BitColorPalette(SvtResId(STR_SVT_4BIT_COLOR_PALETTE))
, ms8BitGrayscale(SvtResId(STR_SVT_8BIT_GRAYSCALE))
, ms8BitColorPalette(SvtResId(STR_SVT_8BIT_COLOR_PALETTE))
, ms24BitColor(SvtResId(STR_SVT_24BIT_TRUE_COLOR))
@@ -820,9 +811,6 @@ void ExportDialog::createFilterOptions()
else
nColor--;
mxLbColorDepth->append_text( ms1BitThreshold );
- mxLbColorDepth->append_text( ms1BitDithered );
- mxLbColorDepth->append_text( ms4BitGrayscale );
- mxLbColorDepth->append_text( ms4BitColorPalette );
mxLbColorDepth->append_text( ms8BitGrayscale );
mxLbColorDepth->append_text( ms8BitColorPalette );
mxLbColorDepth->append_text( ms24BitColor );
diff --git a/svtools/source/filter/exportdialog.hxx b/svtools/source/filter/exportdialog.hxx
index ffb7fa8e240b..e37b6369eeb2 100644
--- a/svtools/source/filter/exportdialog.hxx
+++ b/svtools/source/filter/exportdialog.hxx
@@ -56,9 +56,6 @@ private:
OUString msEstimatedSizeVec;
OUString ms1BitThreshold;
- OUString ms1BitDithered;
- OUString ms4BitGrayscale;
- OUString ms4BitColorPalette;
OUString ms8BitGrayscale;
OUString ms8BitColorPalette;
OUString ms24BitColor;