diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-04-27 17:48:46 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-04-27 17:53:02 +0200 |
commit | 313b59d787357ef3da34e2833fefcf1143b09b5e (patch) | |
tree | f70aada4abd0c1c8113edfee45e0391d543b3651 | |
parent | a55dac47b386cd5485ba1d828316e7695c34769b (diff) |
fix "transparency" of floating tables in docx import (fdo#77723)
Normal tables do not have any fill background on their own, i.e. it's
possible to see e.g. an image in the background, so if we put a table
inside a frame in order to make it floating, make the frame transparent
in order to achieve the same result.
Change-Id: I77b1c8f847af5355c4238bfa089d760dd6121a69
-rw-r--r-- | writerfilter/source/dmapper/TablePositionHandler.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/TablePositionHandler.cxx b/writerfilter/source/dmapper/TablePositionHandler.cxx index 6909f715defd..ca2087589bb2 100644 --- a/writerfilter/source/dmapper/TablePositionHandler.cxx +++ b/writerfilter/source/dmapper/TablePositionHandler.cxx @@ -93,7 +93,7 @@ void TablePositionHandler::lcl_sprm(Sprm& /*rSprm*/) uno::Sequence<beans::PropertyValue> TablePositionHandler::getTablePosition() const { - uno::Sequence< beans::PropertyValue > aFrameProperties(18); + uno::Sequence< beans::PropertyValue > aFrameProperties(19); beans::PropertyValue* pFrameProperties = aFrameProperties.getArray(); pFrameProperties[0].Name = "LeftBorderDistance"; @@ -178,6 +178,8 @@ uno::Sequence<beans::PropertyValue> TablePositionHandler::getTablePosition() con pFrameProperties[16].Value <<= nVertOrientRelation; pFrameProperties[17].Name = "VertOrientPosition"; pFrameProperties[17].Value <<= ConversionHelper::convertTwipToMM100(m_nY); + pFrameProperties[18].Name = "FillTransparence"; + pFrameProperties[18].Value <<= sal_Int32(100); return aFrameProperties; } |