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 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtparae.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -945,6 +945,7 @@ XMLTextParagraphExport::XMLTextParagraphExport( ...@@ -945,6 +945,7 @@ XMLTextParagraphExport::XMLTextParagraphExport(
sRubyText(RTL_CONSTASCII_USTRINGPARAM("RubyText")), sRubyText(RTL_CONSTASCII_USTRINGPARAM("RubyText")),
sRubyAdjust(RTL_CONSTASCII_USTRINGPARAM("RubyAdjust")), sRubyAdjust(RTL_CONSTASCII_USTRINGPARAM("RubyAdjust")),
sRubyCharStyleName(RTL_CONSTASCII_USTRINGPARAM("RubyCharStyleName")), sRubyCharStyleName(RTL_CONSTASCII_USTRINGPARAM("RubyCharStyleName")),
sWidthType( RTL_CONSTASCII_USTRINGPARAM( "WidthType" ) ),
#if SUPD < 628 && !defined( TEST_MIB ) #if SUPD < 628 && !defined( TEST_MIB )
nProgress( nProg ), nProgress( nProg ),
#else #else
...@@ -2121,14 +2122,28 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes( ...@@ -2121,14 +2122,28 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes(
Reference< XPropertySetInfo > xPropSetInfo = rPropSet->getPropertySetInfo(); Reference< XPropertySetInfo > xPropSetInfo = rPropSet->getPropertySetInfo();
// svg:width // svg:width
sal_Int16 nWidthType = SizeType::FIX;
if( xPropSetInfo->hasPropertyByName( sWidthType ) )
{
aAny = rPropSet->getPropertyValue( sWidthType );
aAny >>= nWidthType;
}
if( xPropSetInfo->hasPropertyByName( sWidth ) ) if( xPropSetInfo->hasPropertyByName( sWidth ) )
{ {
sal_Int32 nWidth = 0; sal_Int32 nWidth = 0;
aAny = rPropSet->getPropertyValue( sWidth ); // VAR size will be written as zero min-size
aAny >>= nWidth; if( SizeType::VARIABLE != nWidthType )
{
aAny = rPropSet->getPropertyValue( sWidth );
aAny >>= nWidth;
}
GetExport().GetMM100UnitConverter().convertMeasure( sValue, nWidth ); GetExport().GetMM100UnitConverter().convertMeasure( sValue, nWidth );
GetExport().AddAttribute( XML_NAMESPACE_SVG, XML_WIDTH, if( SizeType::FIX != nWidthType )
sValue.makeStringAndClear() ); GetExport().AddAttribute( XML_NAMESPACE_FO, XML_MIN_WIDTH,
sValue.makeStringAndClear() );
else
GetExport().AddAttribute( XML_NAMESPACE_SVG, XML_WIDTH,
sValue.makeStringAndClear() );
} }
sal_Bool bSyncWidth = sal_False; sal_Bool bSyncWidth = sal_False;
if( xPropSetInfo->hasPropertyByName( sIsSyncWidthToHeight ) ) if( xPropSetInfo->hasPropertyByName( sIsSyncWidthToHeight ) )
...@@ -2177,8 +2192,11 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes( ...@@ -2177,8 +2192,11 @@ sal_Int32 XMLTextParagraphExport::addTextFrameAttributes(
if( xPropSetInfo->hasPropertyByName( sHeight ) ) if( xPropSetInfo->hasPropertyByName( sHeight ) )
{ {
sal_Int32 nHeight = 0; sal_Int32 nHeight = 0;
aAny = rPropSet->getPropertyValue( sHeight ); if( SizeType::VARIABLE != nSizeType )
aAny >>= nHeight; {
aAny = rPropSet->getPropertyValue( sHeight );
aAny >>= nHeight;
}
GetExport().GetMM100UnitConverter().convertMeasure( sValue, GetExport().GetMM100UnitConverter().convertMeasure( sValue,
nHeight ); nHeight );
if( SizeType::FIX != nSizeType && 0==nRelHeight && !bSyncHeight ) 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