summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-03 12:07:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-03 14:51:41 +0200
commit3fe6a2c11df30f5df843c137403c48153b577859 (patch)
tree5f98e6f33f6e860c314774d235c485414d4cff46 /sw/source
parent16ab6e5b162641e5dc0ba6c0664aa8de50bf8e53 (diff)
Css1FrameSize::AnyHeight is dead
ever since initial import Change-Id: Ifa8346b4f603afde84a1e61fc251137c189e674f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97835 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/html/css1atr.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index 4b91ff051aba..a4a11df97ac6 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -110,7 +110,6 @@ enum class Css1FrameSize {
Width = 0x01,
MinHeight = 0x02,
FixHeight = 0x04,
- AnyHeight = 0x06,
Pixel = 0x10,
};
@@ -2872,44 +2871,6 @@ static Writer& OutCSS1_SwFormatFrameSize( Writer& rWrt, const SfxPoolItem& rHt,
}
}
- if( nMode & Css1FrameSize::AnyHeight )
- {
- bool bOutHeight = false;
- switch( rFSItem.GetHeightSizeType() )
- {
- case SwFrameSize::Fixed:
- bOutHeight = bool(nMode & Css1FrameSize::FixHeight);
- break;
- case SwFrameSize::Minimum:
- bOutHeight = bool(nMode & Css1FrameSize::MinHeight);
- break;
- default:
- OSL_ENSURE( bOutHeight, "Height will not be exported" );
- break;
- }
-
- if( bOutHeight )
- {
- sal_uInt8 nPercentHeight = rFSItem.GetHeightPercent();
- if( nPercentHeight )
- {
- OString sOut(OString::number(nPercentHeight) + "%");
- rHTMLWrt.OutCSS1_PropertyAscii(sCSS1_P_height, sOut);
- }
- else if( nMode & Css1FrameSize::Pixel )
- {
- rHTMLWrt.OutCSS1_PixelProperty( sCSS1_P_height,
- rFSItem.GetSize().Height(),
- true );
- }
- else
- {
- rHTMLWrt.OutCSS1_UnitProperty( sCSS1_P_height,
- rFSItem.GetSize().Height() );
- }
- }
- }
-
return rWrt;
}