Kaydet (Commit) 794ca1a4 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS swautowidth (1.109.30); FILE MERGED

2004/05/07 14:38:32 dvo 1.109.30.3: #i27203# save frame width/height='VARIABLE' as fo:min-width/fo:min-height="0"
2004/04/27 08:20:36 fme 1.109.30.2: RESYNC: (1.109-1.110); FILE MERGED
2004/04/07 16:40:17 dvo 1.109.30.1: #i27203# load/save fo:min-width
üst 34e69d42
......@@ -2,9 +2,9 @@
*
* $RCSfile: txtparae.cxx,v $
*
* $Revision: 1.110 $
* $Revision: 1.111 $
*
* last change: $Author: rt $ $Date: 2004-03-30 14:31:57 $
* last change: $Author: kz $ $Date: 2004-05-18 15:06:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -945,6 +945,7 @@ XMLTextParagraphExport::XMLTextParagraphExport(
sRubyText(RTL_CONSTASCII_USTRINGPARAM("RubyText")),
sRubyAdjust(RTL_CONSTASCII_USTRINGPARAM("RubyAdjust")),
sRubyCharStyleName(RTL_CONSTASCII_USTRINGPARAM("RubyCharStyleName")),
sWidthType( RTL_CONSTASCII_USTRINGPARAM( "WidthType" ) ),
#if SUPD < 628 && !defined( TEST_MIB )
nProgress( nProg ),
#else
......@@ -2121,12 +2122,26 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes(
Reference< XPropertySetInfo > xPropSetInfo = rPropSet->getPropertySetInfo();
// svg:width
sal_Int16 nWidthType = SizeType::FIX;
if( xPropSetInfo->hasPropertyByName( sWidthType ) )
{
aAny = rPropSet->getPropertyValue( sWidthType );
aAny >>= nWidthType;
}
if( xPropSetInfo->hasPropertyByName( sWidth ) )
{
sal_Int32 nWidth = 0;
// VAR size will be written as zero min-size
if( SizeType::VARIABLE != nWidthType )
{
aAny = rPropSet->getPropertyValue( sWidth );
aAny >>= nWidth;
}
GetExport().GetMM100UnitConverter().convertMeasure( sValue, nWidth );
if( SizeType::FIX != nWidthType )
GetExport().AddAttribute( XML_NAMESPACE_FO, XML_MIN_WIDTH,
sValue.makeStringAndClear() );
else
GetExport().AddAttribute( XML_NAMESPACE_SVG, XML_WIDTH,
sValue.makeStringAndClear() );
}
......@@ -2177,8 +2192,11 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes(
if( xPropSetInfo->hasPropertyByName( sHeight ) )
{
sal_Int32 nHeight = 0;
if( SizeType::VARIABLE != nSizeType )
{
aAny = rPropSet->getPropertyValue( sHeight );
aAny >>= nHeight;
}
GetExport().GetMM100UnitConverter().convertMeasure( sValue,
nHeight );
if( SizeType::FIX != nSizeType && 0==nRelHeight && !bSyncHeight )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment