diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-05-30 11:55:37 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-05-30 12:34:28 +0200 |
commit | 59db0cb6752f269893e2697bf561643aec92bdf1 (patch) | |
tree | d56b7f82ef9d349f279dcc214ca464ca267128dd /writerfilter/source/dmapper/PageBordersHandler.cxx | |
parent | ef2ad0063a530aee186568579378a368180547a4 (diff) |
bnc#817956 DOCX import of page border shadow
See the comment in SectionPropertyMap::ApplyBorderToPageStyles() on what and
how is mapped. The control flow is like this: BorderHandler::lcl_attribute()
notices w:shadow, then PageBordersHandler::lcl_sprm() gets it, passes it to
SectionPropertyMap::SetBorder(), finally
SectionPropertyMap::ApplyBorderToPageStyles() uses the UNO API.
Change-Id: Ib0aef3245f58c62655769357f1f4dd07eef77f62
Diffstat (limited to 'writerfilter/source/dmapper/PageBordersHandler.cxx')
-rw-r--r-- | writerfilter/source/dmapper/PageBordersHandler.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/PageBordersHandler.cxx b/writerfilter/source/dmapper/PageBordersHandler.cxx index 9ce4269c73ae..471a85a3b0ca 100644 --- a/writerfilter/source/dmapper/PageBordersHandler.cxx +++ b/writerfilter/source/dmapper/PageBordersHandler.cxx @@ -28,7 +28,8 @@ namespace dmapper { _PgBorder::_PgBorder( ) : m_nDistance( 0 ), - m_ePos( BORDER_RIGHT ) + m_ePos( BORDER_RIGHT ), + m_bShadow(false) { } @@ -123,6 +124,7 @@ void PageBordersHandler::lcl_sprm( Sprm& rSprm ) aPgBorder.m_rLine = pBorderHandler->getBorderLine( ); aPgBorder.m_nDistance = pBorderHandler->getLineDistance( ); aPgBorder.m_ePos = ePos; + aPgBorder.m_bShadow = pBorderHandler->getShadow(); m_aBorders.push_back( aPgBorder ); } } @@ -136,7 +138,7 @@ void PageBordersHandler::SetBorders( SectionPropertyMap* pSectContext ) for ( int i = 0, length = m_aBorders.size( ); i < length; i++ ) { _PgBorder aBorder = m_aBorders[i]; - pSectContext->SetBorder( aBorder.m_ePos, aBorder.m_nDistance, aBorder.m_rLine ); + pSectContext->SetBorder( aBorder.m_ePos, aBorder.m_nDistance, aBorder.m_rLine, aBorder.m_bShadow ); } } |