Added dumping [property] FillTransparence and ignoring .patch files
Change-Id: I676a811a618b381f4a99010e40fdf1627cea7067
This commit is contained in:
committed by
Markus Mohrhard
parent
9cd748dc55
commit
1ae18926df
@@ -130,3 +130,6 @@ test/user-template/user/psprint/pspfontcache
|
||||
# Somepeople love debugging
|
||||
gdbtrace.log
|
||||
valgrind.log
|
||||
|
||||
#patches
|
||||
*.patch
|
||||
|
||||
@@ -45,6 +45,7 @@ public:
|
||||
private:
|
||||
void dumpFillStyleAsAttribute(com::sun::star::drawing::FillStyle eFillStyle, xmlTextWriterPtr xmlWriter);
|
||||
void dumpFillColorAsAttribute(sal_Int32 aColor, xmlTextWriterPtr xmlWriter);
|
||||
void dumpFillTransparenceAsAttribute(sal_Int32 aTransparence, xmlTextWriterPtr xmlWriter);
|
||||
void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter);
|
||||
void dumpSizeAsAttribute(const com::sun::star::awt::Size& rSize, xmlTextWriterPtr xmlWriter);
|
||||
void dumpShapeDescriptorAsAttribute( com::sun::star::uno::Reference< com::sun::star::drawing::XShapeDescriptor > xDescr, xmlTextWriterPtr xmlWriter );
|
||||
|
||||
@@ -91,6 +91,11 @@ namespace {
|
||||
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("positionX"), "%" SAL_PRIdINT32, aColor);
|
||||
}
|
||||
|
||||
void XShapeDumper::dumpFillTransparenceAsAttribute(sal_Int32 aTransparence, xmlTextWriterPtr xmlWriter)
|
||||
{
|
||||
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("positionX"), "%" SAL_PRIdINT32, aTransparence);
|
||||
}
|
||||
|
||||
void XShapeDumper::dumpPositionAsAttribute(const awt::Point& rPoint, xmlTextWriterPtr xmlWriter)
|
||||
{
|
||||
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("positionX"), "%" SAL_PRIdINT32, rPoint.X);
|
||||
@@ -151,13 +156,18 @@ namespace {
|
||||
if(anotherAny >>= eFillStyle)
|
||||
dumpFillStyleAsAttribute(eFillStyle, xmlWriter);
|
||||
}
|
||||
|
||||
{
|
||||
uno::Any anotherAny = xPropSet->getPropertyValue("FillColor");
|
||||
sal_Int32 aColor;
|
||||
if(anotherAny >>= aColor)
|
||||
dumpFillColorAsAttribute(aColor, xmlWriter);
|
||||
}
|
||||
{
|
||||
uno::Any anotherAny = xPropSet->getPropertyValue("FillTransparence");
|
||||
sal_Int32 aTransparence;
|
||||
if(anotherAny >>= aTransparence)
|
||||
dumpFillColorAsAttribute(aTransparence, xmlWriter);
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG_DUMPER
|
||||
|
||||
Reference in New Issue
Block a user