summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Shetye <shetyeakash@gmail.com>2013-08-30 19:49:20 +0530
committerAkash Shetye <shetyeakash@gmail.com>2013-08-30 19:49:20 +0530
commit1bf44abe54c2c2f7d0deeb08ad6280021893fb65 (patch)
tree3a85012fd05a8e2a387d91e845da00f3c660b1bd
parent219738ee4deee6204ed19c9681cde6c7579297c1 (diff)
Table (DB Range) style export now considers stripe size
Change-Id: Ifed63e1c3534ec880a4bcc5acb0ee4ea7809a26f
-rw-r--r--sc/source/filter/excel/xestyle.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index c52ff30c9a0e..d1615b65447e 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -3164,31 +3164,31 @@ XclExpTableStyle::XclExpTableStyle( const XclExpRoot& rRoot, ScDBDataFormatting&
//Keep adding table style elements
OUString aStyleString;
OUString aElementType;
- int aiDxfId;
+ sal_Int32 nDxfId;
if( !(aStyleString = maTableStyle.GetFirstRowStripeStyle()).isEmpty() )
{
//Resolve this string style sheet name to a dxf id
- aiDxfId = rDxfs.GetDxfId( aStyleString );
+ nDxfId = rDxfs.GetDxfId( aStyleString );
aElementType = "firstRowStripe";
- maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, 1, aiDxfId ) );
+ maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, maTableStyle.GetFirstRowStripeSize(), nDxfId ) );
}
if( !(aStyleString = maTableStyle.GetSecondRowStripeStyle()).isEmpty() )
{
- aiDxfId = rDxfs.GetDxfId( aStyleString );
+ nDxfId = rDxfs.GetDxfId( aStyleString );
aElementType = "secondRowStripe";
- maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, 1, aiDxfId ) );
+ maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, maTableStyle.GetSecondRowStripeSize(), nDxfId ) );
}
if( !(aStyleString = maTableStyle.GetFirstColStripeStyle()).isEmpty() )
{
- aiDxfId = rDxfs.GetDxfId( aStyleString );
+ nDxfId = rDxfs.GetDxfId( aStyleString );
aElementType = "firstColumnStripe";
- maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, 1, aiDxfId ) );
+ maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, maTableStyle.GetFirstColStripeSize(), nDxfId ) );
}
if( !(aStyleString = maTableStyle.GetSecondColStripeStyle()).isEmpty() )
{
- aiDxfId = rDxfs.GetDxfId( aStyleString );
+ nDxfId = rDxfs.GetDxfId( aStyleString );
aElementType = "secondColumnStripe";
- maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, 1, aiDxfId ) );
+ maStyleElementContainer.push_back( new XclExpTableStyleElement( rRoot, aElementType, maTableStyle.GetSecondColStripeSize(), nDxfId ) );
}
miCount = maStyleElementContainer.size();
}