drawinglayer: sal_Bool->bool

Change-Id: I893d00a61d314926f84fb3e94743aba2ef5622c4
This commit is contained in:
Noel Grandin 2014-04-04 14:58:05 +02:00
parent 8ab93ae45e
commit c2e98d3cc9
4 changed files with 99 additions and 99 deletions

View File

@ -21,7 +21,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
{ {
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Extrusion"); uno::Any anotherAny = xPropSet->getPropertyValue("Extrusion");
sal_Bool bExtrusion = sal_Bool(); bool bExtrusion;
if(anotherAny >>= bExtrusion) if(anotherAny >>= bExtrusion)
dumpExtrusionAsAttribute(bExtrusion); dumpExtrusionAsAttribute(bExtrusion);
} }
@ -51,19 +51,19 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("LightFace"); uno::Any anotherAny = xPropSet->getPropertyValue("LightFace");
sal_Bool bLightFace = sal_Bool(); bool bLightFace;
if(anotherAny >>= bLightFace) if(anotherAny >>= bLightFace)
dumpLightFaceAsAttribute(bLightFace); dumpLightFaceAsAttribute(bLightFace);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("FirstLightHarsh"); uno::Any anotherAny = xPropSet->getPropertyValue("FirstLightHarsh");
sal_Bool bFirstLightHarsh = sal_Bool(); bool bFirstLightHarsh;
if(anotherAny >>= bFirstLightHarsh) if(anotherAny >>= bFirstLightHarsh)
dumpFirstLightHarshAsAttribute(bFirstLightHarsh); dumpFirstLightHarshAsAttribute(bFirstLightHarsh);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("SecondLightHarsh"); uno::Any anotherAny = xPropSet->getPropertyValue("SecondLightHarsh");
sal_Bool bSecondLightHarsh = sal_Bool(); bool bSecondLightHarsh;
if(anotherAny >>= bSecondLightHarsh) if(anotherAny >>= bSecondLightHarsh)
dumpSecondLightHarshAsAttribute(bSecondLightHarsh); dumpSecondLightHarshAsAttribute(bSecondLightHarsh);
} }
@ -93,7 +93,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Metal"); uno::Any anotherAny = xPropSet->getPropertyValue("Metal");
sal_Bool bMetal = sal_Bool(); bool bMetal;
if(anotherAny >>= bMetal) if(anotherAny >>= bMetal)
dumpMetalAsAttribute(bMetal); dumpMetalAsAttribute(bMetal);
} }
@ -153,12 +153,12 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionColor"); uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionColor");
sal_Bool bExtrusionColor = sal_Bool(); bool bExtrusionColor;
if(anotherAny >>= bExtrusionColor) if(anotherAny >>= bExtrusionColor)
dumpExtrusionColorAsAttribute(bExtrusionColor); dumpExtrusionColorAsAttribute(bExtrusionColor);
} }
} }
void EnhancedShapeDumper::dumpExtrusionAsAttribute(sal_Bool bExtrusion) void EnhancedShapeDumper::dumpExtrusionAsAttribute(bool bExtrusion)
{ {
if(bExtrusion) if(bExtrusion)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusion"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusion"), "%s", "true");
@ -202,7 +202,7 @@ void EnhancedShapeDumper::dumpNumberOfLineSegmentsAsAttribute(sal_Int32 aNumberO
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("numberOfLineSegments"), "%" SAL_PRIdINT32, aNumberOfLineSegments); xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("numberOfLineSegments"), "%" SAL_PRIdINT32, aNumberOfLineSegments);
} }
void EnhancedShapeDumper::dumpLightFaceAsAttribute(sal_Bool bLightFace) void EnhancedShapeDumper::dumpLightFaceAsAttribute(bool bLightFace)
{ {
if(bLightFace) if(bLightFace)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lightFace"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lightFace"), "%s", "true");
@ -210,7 +210,7 @@ void EnhancedShapeDumper::dumpLightFaceAsAttribute(sal_Bool bLightFace)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lightFace"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lightFace"), "%s", "false");
} }
void EnhancedShapeDumper::dumpFirstLightHarshAsAttribute(sal_Bool bFirstLightHarsh) void EnhancedShapeDumper::dumpFirstLightHarshAsAttribute(bool bFirstLightHarsh)
{ {
if(bFirstLightHarsh) if(bFirstLightHarsh)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("firstLightHarsh"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("firstLightHarsh"), "%s", "true");
@ -218,7 +218,7 @@ void EnhancedShapeDumper::dumpFirstLightHarshAsAttribute(sal_Bool bFirstLightHar
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("firstLightHarsh"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("firstLightHarsh"), "%s", "false");
} }
void EnhancedShapeDumper::dumpSecondLightHarshAsAttribute(sal_Bool bSecondLightHarsh) void EnhancedShapeDumper::dumpSecondLightHarshAsAttribute(bool bSecondLightHarsh)
{ {
if(bSecondLightHarsh) if(bSecondLightHarsh)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("secondLightHarsh"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("secondLightHarsh"), "%s", "true");
@ -257,7 +257,7 @@ void EnhancedShapeDumper::dumpSecondLightDirectionAsElement(drawing::Direction3D
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void EnhancedShapeDumper::dumpMetalAsAttribute(sal_Bool bMetal) void EnhancedShapeDumper::dumpMetalAsAttribute(bool bMetal)
{ {
if(bMetal) if(bMetal)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("metal"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("metal"), "%s", "true");
@ -348,7 +348,7 @@ void EnhancedShapeDumper::dumpOriginAsElement(drawing::EnhancedCustomShapeParame
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void EnhancedShapeDumper::dumpExtrusionColorAsAttribute(sal_Bool bExtrusionColor) void EnhancedShapeDumper::dumpExtrusionColorAsAttribute(bool bExtrusionColor)
{ {
if(bExtrusionColor) if(bExtrusionColor)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionColor"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionColor"), "%s", "true");
@ -376,13 +376,13 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeGeometryService(uno::Reference<
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("MirroredX"); uno::Any anotherAny = xPropSet->getPropertyValue("MirroredX");
sal_Bool bMirroredX = sal_Bool(); bool bMirroredX;
if(anotherAny >>= bMirroredX) if(anotherAny >>= bMirroredX)
dumpMirroredXAsAttribute(bMirroredX); dumpMirroredXAsAttribute(bMirroredX);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY"); uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY");
sal_Bool bMirroredY = sal_Bool(); bool bMirroredY;
if(anotherAny >>= bMirroredY) if(anotherAny >>= bMirroredY)
dumpMirroredYAsAttribute(bMirroredY); dumpMirroredYAsAttribute(bMirroredY);
} }
@ -445,7 +445,7 @@ void EnhancedShapeDumper::dumpViewBoxAsElement(awt::Rectangle aViewBox)
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void EnhancedShapeDumper::dumpMirroredXAsAttribute(sal_Bool bMirroredX) void EnhancedShapeDumper::dumpMirroredXAsAttribute(bool bMirroredX)
{ {
if(bMirroredX) if(bMirroredX)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredX"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredX"), "%s", "true");
@ -453,7 +453,7 @@ void EnhancedShapeDumper::dumpMirroredXAsAttribute(sal_Bool bMirroredX)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredX"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredX"), "%s", "false");
} }
void EnhancedShapeDumper::dumpMirroredYAsAttribute(sal_Bool bMirroredY) void EnhancedShapeDumper::dumpMirroredYAsAttribute(bool bMirroredY)
{ {
if(bMirroredY) if(bMirroredY)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredY"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredY"), "%s", "true");
@ -477,7 +477,7 @@ void EnhancedShapeDumper::dumpAdjustmentValuesAsElement(uno::Sequence< drawing::
OUString sValue; OUString sValue;
float fValue; float fValue;
sal_Int32 nValue; sal_Int32 nValue;
sal_Bool bValue; bool bValue;
if(aAny >>= sValue) if(aAny >>= sValue)
{ {
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s", xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s",
@ -621,19 +621,19 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
{ {
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("MirroredX"); uno::Any anotherAny = xPropSet->getPropertyValue("MirroredX");
sal_Bool bMirroredX = sal_Bool(); bool bMirroredX;
if(anotherAny >>= bMirroredX) if(anotherAny >>= bMirroredX)
dumpMirroredXAsAttribute(bMirroredX); dumpMirroredXAsAttribute(bMirroredX);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY"); uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY");
sal_Bool bMirroredY = sal_Bool(); bool bMirroredY;
if(anotherAny >>= bMirroredY) if(anotherAny >>= bMirroredY)
dumpMirroredYAsAttribute(bMirroredY); dumpMirroredYAsAttribute(bMirroredY);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Switched"); uno::Any anotherAny = xPropSet->getPropertyValue("Switched");
sal_Bool bSwitched = sal_Bool(); bool bSwitched;
if(anotherAny >>= bSwitched) if(anotherAny >>= bSwitched)
dumpSwitchedAsAttribute(bSwitched); dumpSwitchedAsAttribute(bSwitched);
} }
@ -711,7 +711,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
} }
} }
void EnhancedShapeDumper::dumpSwitchedAsAttribute(sal_Bool bSwitched) void EnhancedShapeDumper::dumpSwitchedAsAttribute(bool bSwitched)
{ {
if(bSwitched) if(bSwitched)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("switched"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("switched"), "%s", "true");
@ -759,7 +759,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeParameter(drawing::EnhancedCust
OUString sValue; OUString sValue;
float fValue; float fValue;
sal_Int32 nValue; sal_Int32 nValue;
sal_Bool bValue; bool bValue;
if(aAny >>= sValue) if(aAny >>= sValue)
{ {
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s", xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s",
@ -879,19 +879,19 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionAllowed"); uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionAllowed");
sal_Bool bExtrusionAllowed = sal_Bool(); bool bExtrusionAllowed;
if(anotherAny >>= bExtrusionAllowed) if(anotherAny >>= bExtrusionAllowed)
dumpExtrusionAllowedAsAttribute(bExtrusionAllowed); dumpExtrusionAllowedAsAttribute(bExtrusionAllowed);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("ConcentricGradientFillAllowed"); uno::Any anotherAny = xPropSet->getPropertyValue("ConcentricGradientFillAllowed");
sal_Bool bConcentricGradientFillAllowed = sal_Bool(); bool bConcentricGradientFillAllowed;
if(anotherAny >>= bConcentricGradientFillAllowed) if(anotherAny >>= bConcentricGradientFillAllowed)
dumpConcentricGradientFillAllowedAsAttribute(bConcentricGradientFillAllowed); dumpConcentricGradientFillAllowedAsAttribute(bConcentricGradientFillAllowed);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextPathAllowed"); uno::Any anotherAny = xPropSet->getPropertyValue("TextPathAllowed");
sal_Bool bTextPathAllowed = sal_Bool(); bool bTextPathAllowed;
if(anotherAny >>= bTextPathAllowed) if(anotherAny >>= bTextPathAllowed)
dumpTextPathAllowedAsAttribute(bTextPathAllowed); dumpTextPathAllowedAsAttribute(bTextPathAllowed);
} }
@ -992,7 +992,7 @@ void EnhancedShapeDumper::dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType)
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("gluePointType"), "%" SAL_PRIdINT32, aGluePointType); xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("gluePointType"), "%" SAL_PRIdINT32, aGluePointType);
} }
void EnhancedShapeDumper::dumpExtrusionAllowedAsAttribute(sal_Bool bExtrusionAllowed) void EnhancedShapeDumper::dumpExtrusionAllowedAsAttribute(bool bExtrusionAllowed)
{ {
if(bExtrusionAllowed) if(bExtrusionAllowed)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "true");
@ -1000,7 +1000,7 @@ void EnhancedShapeDumper::dumpExtrusionAllowedAsAttribute(sal_Bool bExtrusionAll
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "false");
} }
void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(sal_Bool bConcentricGradientFillAllowed) void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(bool bConcentricGradientFillAllowed)
{ {
if(bConcentricGradientFillAllowed) if(bConcentricGradientFillAllowed)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "true");
@ -1008,7 +1008,7 @@ void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(sal_Bool
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "false");
} }
void EnhancedShapeDumper::dumpTextPathAllowedAsAttribute(sal_Bool bTextPathAllowed) void EnhancedShapeDumper::dumpTextPathAllowedAsAttribute(bool bTextPathAllowed)
{ {
if(bTextPathAllowed) if(bTextPathAllowed)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textPathAllowed"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textPathAllowed"), "%s", "true");
@ -1038,7 +1038,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeTextPathService(uno::Reference<
{ {
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextPath"); uno::Any anotherAny = xPropSet->getPropertyValue("TextPath");
sal_Bool bTextPath = sal_Bool(); bool bTextPath;
if(anotherAny >>= bTextPath) if(anotherAny >>= bTextPath)
dumpTextPathAsAttribute(bTextPath); dumpTextPathAsAttribute(bTextPath);
} }
@ -1050,13 +1050,13 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeTextPathService(uno::Reference<
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("ScaleX"); uno::Any anotherAny = xPropSet->getPropertyValue("ScaleX");
sal_Bool bScaleX = sal_Bool(); bool bScaleX;
if(anotherAny >>= bScaleX) if(anotherAny >>= bScaleX)
dumpScaleXAsAttribute(bScaleX); dumpScaleXAsAttribute(bScaleX);
} }
} }
void EnhancedShapeDumper::dumpTextPathAsAttribute(sal_Bool bTextPath) void EnhancedShapeDumper::dumpTextPathAsAttribute(bool bTextPath)
{ {
if(bTextPath) if(bTextPath)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textPath"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textPath"), "%s", "true");
@ -1082,7 +1082,7 @@ void EnhancedShapeDumper::dumpTextPathModeAsAttribute(drawing::EnhancedCustomSha
} }
} }
void EnhancedShapeDumper::dumpScaleXAsAttribute(sal_Bool bScaleX) void EnhancedShapeDumper::dumpScaleXAsAttribute(bool bScaleX)
{ {
if(bScaleX) if(bScaleX)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("scaleX"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("scaleX"), "%s", "true");

View File

@ -49,19 +49,19 @@ public:
// EnhancedCustomShapeExtrusion.idl // EnhancedCustomShapeExtrusion.idl
void dumpEnhancedCustomShapeExtrusionService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpEnhancedCustomShapeExtrusionService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet);
void dumpExtrusionAsAttribute(sal_Bool bExtrusion); void dumpExtrusionAsAttribute(bool bExtrusion);
void dumpBrightnessAsAttribute(double aBrightness); void dumpBrightnessAsAttribute(double aBrightness);
void dumpDepthAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aDepth); void dumpDepthAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aDepth);
void dumpDiffusionAsAttribute(double aDiffusion); void dumpDiffusionAsAttribute(double aDiffusion);
void dumpNumberOfLineSegmentsAsAttribute(sal_Int32 aNumberOfLineSegments); void dumpNumberOfLineSegmentsAsAttribute(sal_Int32 aNumberOfLineSegments);
void dumpLightFaceAsAttribute(sal_Bool bLightFace); void dumpLightFaceAsAttribute(bool bLightFace);
void dumpFirstLightHarshAsAttribute(sal_Bool bFirstLightHarsh); void dumpFirstLightHarshAsAttribute(bool bFirstLightHarsh);
void dumpSecondLightHarshAsAttribute(sal_Bool bSecondLightHarsh); void dumpSecondLightHarshAsAttribute(bool bSecondLightHarsh);
void dumpFirstLightLevelAsAttribute(double aFirstLightLevel); void dumpFirstLightLevelAsAttribute(double aFirstLightLevel);
void dumpSecondLightLevelAsAttribute(double aSecondLightLevel); void dumpSecondLightLevelAsAttribute(double aSecondLightLevel);
void dumpFirstLightDirectionAsElement(com::sun::star::drawing::Direction3D aFirstLightDirection); void dumpFirstLightDirectionAsElement(com::sun::star::drawing::Direction3D aFirstLightDirection);
void dumpSecondLightDirectionAsElement(com::sun::star::drawing::Direction3D aSecondLightDirection); void dumpSecondLightDirectionAsElement(com::sun::star::drawing::Direction3D aSecondLightDirection);
void dumpMetalAsAttribute(sal_Bool bMetal); void dumpMetalAsAttribute(bool bMetal);
void dumpShadeModeAsAttribute(com::sun::star::drawing::ShadeMode eShadeMode); void dumpShadeModeAsAttribute(com::sun::star::drawing::ShadeMode eShadeMode);
void dumpRotateAngleAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aRotateAngle); void dumpRotateAngleAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aRotateAngle);
void dumpRotationCenterAsElement(com::sun::star::drawing::Direction3D aRotationCenter); void dumpRotationCenterAsElement(com::sun::star::drawing::Direction3D aRotationCenter);
@ -71,14 +71,14 @@ public:
void dumpProjectionModeAsAttribute(com::sun::star::drawing::ProjectionMode eProjectionMode); void dumpProjectionModeAsAttribute(com::sun::star::drawing::ProjectionMode eProjectionMode);
void dumpViewPointAsElement(com::sun::star::drawing::Position3D aViewPoint); void dumpViewPointAsElement(com::sun::star::drawing::Position3D aViewPoint);
void dumpOriginAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aOrigin); void dumpOriginAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aOrigin);
void dumpExtrusionColorAsAttribute(sal_Bool bExtrusionColor); void dumpExtrusionColorAsAttribute(bool bExtrusionColor);
// EnhancedCustomShapeGeometry.idl // EnhancedCustomShapeGeometry.idl
void dumpEnhancedCustomShapeGeometryService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpEnhancedCustomShapeGeometryService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet);
void dumpTypeAsAttribute(const OUString& sType); void dumpTypeAsAttribute(const OUString& sType);
void dumpViewBoxAsElement(com::sun::star::awt::Rectangle aViewBox); void dumpViewBoxAsElement(com::sun::star::awt::Rectangle aViewBox);
void dumpMirroredXAsAttribute(sal_Bool bMirroredX); // also used in EnhancedCustomShapeHandle void dumpMirroredXAsAttribute(bool bMirroredX); // also used in EnhancedCustomShapeHandle
void dumpMirroredYAsAttribute(sal_Bool bMirroredY); // also used in EnhancedCustomShapeHandle void dumpMirroredYAsAttribute(bool bMirroredY); // also used in EnhancedCustomShapeHandle
void dumpTextRotateAngleAsAttribute(double aTextRotateAngle); void dumpTextRotateAngleAsAttribute(double aTextRotateAngle);
void dumpAdjustmentValuesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues); void dumpAdjustmentValuesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues);
void dumpExtrusionAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aExtrusion); void dumpExtrusionAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aExtrusion);
@ -89,7 +89,7 @@ public:
// EnhancedCustomShapeHandle.idl // EnhancedCustomShapeHandle.idl
void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet);
void dumpSwitchedAsAttribute(sal_Bool bSwitched); void dumpSwitchedAsAttribute(bool bSwitched);
void dumpPositionAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPosition); void dumpPositionAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPosition);
void dumpPolarAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPolar); void dumpPolarAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPolar);
void dumpRefXAsAttribute(sal_Int32 aRefX); void dumpRefXAsAttribute(sal_Int32 aRefX);
@ -113,16 +113,16 @@ public:
void dumpGluePointsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aGluePoints); void dumpGluePointsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aGluePoints);
void dumpGluePointLeavingDirectionsAsElement(com::sun::star::uno::Sequence< double > aGluePointLeavingDirections); void dumpGluePointLeavingDirectionsAsElement(com::sun::star::uno::Sequence< double > aGluePointLeavingDirections);
void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType); void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType);
void dumpExtrusionAllowedAsAttribute(sal_Bool bExtrusionAllowed); void dumpExtrusionAllowedAsAttribute(bool bExtrusionAllowed);
void dumpConcentricGradientFillAllowedAsAttribute(sal_Bool bConcentricGradientFillAllowed); void dumpConcentricGradientFillAllowedAsAttribute(bool bConcentricGradientFillAllowed);
void dumpTextPathAllowedAsAttribute(sal_Bool bTextPathAllowed); void dumpTextPathAllowedAsAttribute(bool bTextPathAllowed);
void dumpSubViewSizeAsElement(com::sun::star::uno::Sequence< com::sun::star::awt::Size > aSubViewSize); void dumpSubViewSizeAsElement(com::sun::star::uno::Sequence< com::sun::star::awt::Size > aSubViewSize);
// EnhancedCustomShapePath.idl // EnhancedCustomShapePath.idl
void dumpEnhancedCustomShapeTextPathService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpEnhancedCustomShapeTextPathService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet);
void dumpTextPathAsAttribute(sal_Bool bTextPath); void dumpTextPathAsAttribute(bool bTextPath);
void dumpTextPathModeAsAttribute(com::sun::star::drawing::EnhancedCustomShapeTextPathMode eTextPathMode); void dumpTextPathModeAsAttribute(com::sun::star::drawing::EnhancedCustomShapeTextPathMode eTextPathMode);
void dumpScaleXAsAttribute(sal_Bool bScaleX); void dumpScaleXAsAttribute(bool bScaleX);
private: private:
xmlTextWriterPtr xmlWriter; xmlTextWriterPtr xmlWriter;

View File

@ -48,7 +48,7 @@ void dumpFillTransparenceGradientAsElement(com::sun::star::awt::Gradient aTransp
void dumpFillGradientNameAsAttribute(const OUString& sGradName, xmlTextWriterPtr xmlWriter); void dumpFillGradientNameAsAttribute(const OUString& sGradName, xmlTextWriterPtr xmlWriter);
void dumpFillGradientAsElement(com::sun::star::awt::Gradient aGradient, xmlTextWriterPtr xmlWriter); void dumpFillGradientAsElement(com::sun::star::awt::Gradient aGradient, xmlTextWriterPtr xmlWriter);
void dumpFillHatchAsElement(com::sun::star::drawing::Hatch aHatch, xmlTextWriterPtr xmlWriter); void dumpFillHatchAsElement(com::sun::star::drawing::Hatch aHatch, xmlTextWriterPtr xmlWriter);
void dumpFillBackgroundAsAttribute(sal_Bool bBackground, xmlTextWriterPtr xmlWriter); void dumpFillBackgroundAsAttribute(bool bBackground, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapAsElement(com::sun::star::uno::Reference<com::sun::star::awt::XBitmap> xBitmap, xmlTextWriterPtr xmlWriter); void dumpFillBitmapAsElement(com::sun::star::uno::Reference<com::sun::star::awt::XBitmap> xBitmap, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapURLAsAttribute(const OUString& sBitmapURL, xmlTextWriterPtr xmlWriter); void dumpFillBitmapURLAsAttribute(const OUString& sBitmapURL, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapPositionOffsetXAsAttribute(sal_Int32 aBitmapPositionOffsetX, xmlTextWriterPtr xmlWriter); void dumpFillBitmapPositionOffsetXAsAttribute(sal_Int32 aBitmapPositionOffsetX, xmlTextWriterPtr xmlWriter);
@ -56,12 +56,12 @@ void dumpFillBitmapPositionOffsetYAsAttribute(sal_Int32 aBitmapPositionOffsetY,
void dumpFillBitmapOffsetXAsAttribute(sal_Int32 aBitmapOffsetX, xmlTextWriterPtr xmlWriter); void dumpFillBitmapOffsetXAsAttribute(sal_Int32 aBitmapOffsetX, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapOffsetYAsAttribute(sal_Int32 aBitmapOffsetY, xmlTextWriterPtr xmlWriter); void dumpFillBitmapOffsetYAsAttribute(sal_Int32 aBitmapOffsetY, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapRectanglePointAsAttribute(com::sun::star::drawing::RectanglePoint eBitmapRectanglePoint, xmlTextWriterPtr xmlWriter); void dumpFillBitmapRectanglePointAsAttribute(com::sun::star::drawing::RectanglePoint eBitmapRectanglePoint, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapLogicalSizeAsAttribute(sal_Bool bBitmapLogicalSize, xmlTextWriterPtr xmlWriter); void dumpFillBitmapLogicalSizeAsAttribute(bool bBitmapLogicalSize, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapSizeXAsAttribute(sal_Int32 aBitmapSizeX, xmlTextWriterPtr xmlWriter); void dumpFillBitmapSizeXAsAttribute(sal_Int32 aBitmapSizeX, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapSizeYAsAttribute(sal_Int32 aBitmapSizeY, xmlTextWriterPtr xmlWriter); void dumpFillBitmapSizeYAsAttribute(sal_Int32 aBitmapSizeY, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapModeAsAttribute(com::sun::star::drawing::BitmapMode eBitmapMode, xmlTextWriterPtr xmlWriter); void dumpFillBitmapModeAsAttribute(com::sun::star::drawing::BitmapMode eBitmapMode, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapStretchAsAttribute(sal_Bool bBitmapStretch, xmlTextWriterPtr xmlWriter); void dumpFillBitmapStretchAsAttribute(bool bBitmapStretch, xmlTextWriterPtr xmlWriter);
void dumpFillBitmapTileAsAttribute(sal_Bool bBitmapTile, xmlTextWriterPtr xmlWriter); void dumpFillBitmapTileAsAttribute(bool bBitmapTile, xmlTextWriterPtr xmlWriter);
// LineProperties.idl // LineProperties.idl
void dumpLineStyleAsAttribute(com::sun::star::drawing::LineStyle eLineStyle, xmlTextWriterPtr xmlWriter); void dumpLineStyleAsAttribute(com::sun::star::drawing::LineStyle eLineStyle, xmlTextWriterPtr xmlWriter);
@ -75,9 +75,9 @@ void dumpLineStartNameAsAttribute(const OUString& sLineStartName, xmlTextWriterP
void dumpLineEndNameAsAttribute(const OUString& sLineEndName, xmlTextWriterPtr xmlWriter); void dumpLineEndNameAsAttribute(const OUString& sLineEndName, xmlTextWriterPtr xmlWriter);
void dumpLineStartAsElement(com::sun::star::drawing::PolyPolygonBezierCoords aLineStart, xmlTextWriterPtr xmlWriter); void dumpLineStartAsElement(com::sun::star::drawing::PolyPolygonBezierCoords aLineStart, xmlTextWriterPtr xmlWriter);
void dumpLineEndAsElement(com::sun::star::drawing::PolyPolygonBezierCoords aLineEnd, xmlTextWriterPtr xmlWriter); void dumpLineEndAsElement(com::sun::star::drawing::PolyPolygonBezierCoords aLineEnd, xmlTextWriterPtr xmlWriter);
void dumpLineStartCenterAsAttribute(sal_Bool bLineStartCenter, xmlTextWriterPtr xmlWriter); void dumpLineStartCenterAsAttribute(bool bLineStartCenter, xmlTextWriterPtr xmlWriter);
void dumpLineStartWidthAsAttribute(sal_Int32 aLineStartWidth, xmlTextWriterPtr xmlWriter); void dumpLineStartWidthAsAttribute(sal_Int32 aLineStartWidth, xmlTextWriterPtr xmlWriter);
void dumpLineEndCenterAsAttribute(sal_Bool bLineEndCenter, xmlTextWriterPtr xmlWriter); void dumpLineEndCenterAsAttribute(bool bLineEndCenter, xmlTextWriterPtr xmlWriter);
void dumpLineEndWidthAsAttribute(sal_Int32 aLineEndWidth, xmlTextWriterPtr xmlWriter); void dumpLineEndWidthAsAttribute(sal_Int32 aLineEndWidth, xmlTextWriterPtr xmlWriter);
// PolyPolygonDescriptor.idl // PolyPolygonDescriptor.idl
@ -90,10 +90,10 @@ void dumpCharHeightAsAttribute(float fHeight, xmlTextWriterPtr xmlWriter);
void dumpCharColorAsAttribute(sal_Int32 aColor, xmlTextWriterPtr xmlWriter); void dumpCharColorAsAttribute(sal_Int32 aColor, xmlTextWriterPtr xmlWriter);
// TextProperties.idl // TextProperties.idl
void dumpIsNumberingAsAttribute(sal_Bool bIsNumbering, xmlTextWriterPtr xmlWriter); void dumpIsNumberingAsAttribute(bool bIsNumbering, xmlTextWriterPtr xmlWriter);
void dumpTextAutoGrowHeightAsAttribute(sal_Bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter); void dumpTextAutoGrowHeightAsAttribute(bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter);
void dumpTextAutoGrowWidthAsAttribute(sal_Bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter); void dumpTextAutoGrowWidthAsAttribute(bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter);
void dumpTextContourFrameAsAttribute(sal_Bool bTextContourFrame, xmlTextWriterPtr xmlWriter); void dumpTextContourFrameAsAttribute(bool bTextContourFrame, xmlTextWriterPtr xmlWriter);
void dumpTextFitToSizeAsAttribute(com::sun::star::drawing::TextFitToSizeType eTextFitToSize, xmlTextWriterPtr xmlWriter); void dumpTextFitToSizeAsAttribute(com::sun::star::drawing::TextFitToSizeType eTextFitToSize, xmlTextWriterPtr xmlWriter);
void dumpTextHorizontalAdjustAsAttribute(com::sun::star::drawing::TextHorizontalAdjust eTextHorizontalAdjust, xmlTextWriterPtr xmlWriter); void dumpTextHorizontalAdjustAsAttribute(com::sun::star::drawing::TextHorizontalAdjust eTextHorizontalAdjust, xmlTextWriterPtr xmlWriter);
void dumpTextVerticalAdjustAsAttribute(com::sun::star::drawing::TextVerticalAdjust eTextVerticalAdjust, xmlTextWriterPtr xmlWriter); void dumpTextVerticalAdjustAsAttribute(com::sun::star::drawing::TextVerticalAdjust eTextVerticalAdjust, xmlTextWriterPtr xmlWriter);
@ -110,12 +110,12 @@ void dumpTextAnimationCountAsAttribute(sal_Int32 aTextAnimationCount, xmlTextWri
void dumpTextAnimationDelayAsAttribute(sal_Int32 aTextAnimationDelay, xmlTextWriterPtr xmlWriter); void dumpTextAnimationDelayAsAttribute(sal_Int32 aTextAnimationDelay, xmlTextWriterPtr xmlWriter);
void dumpTextAnimationDirectionAsAttribute(com::sun::star::drawing::TextAnimationDirection eTextAnimationDirection, xmlTextWriterPtr xmlWriter); void dumpTextAnimationDirectionAsAttribute(com::sun::star::drawing::TextAnimationDirection eTextAnimationDirection, xmlTextWriterPtr xmlWriter);
void dumpTextAnimationKindAsAttribute(com::sun::star::drawing::TextAnimationKind eTextAnimationKind, xmlTextWriterPtr xmlWriter); void dumpTextAnimationKindAsAttribute(com::sun::star::drawing::TextAnimationKind eTextAnimationKind, xmlTextWriterPtr xmlWriter);
void dumpTextAnimationStartInsideAsAttribute(sal_Bool bTextAnimationStartInside, xmlTextWriterPtr xmlWriter); void dumpTextAnimationStartInsideAsAttribute(bool bTextAnimationStartInside, xmlTextWriterPtr xmlWriter);
void dumpTextAnimationStopInsideAsAttribute(sal_Bool bTextAnimationStopInside, xmlTextWriterPtr xmlWriter); void dumpTextAnimationStopInsideAsAttribute(bool bTextAnimationStopInside, xmlTextWriterPtr xmlWriter);
void dumpTextWritingModeAsAttribute(com::sun::star::text::WritingMode eWritingMode, xmlTextWriterPtr xmlWriter); void dumpTextWritingModeAsAttribute(com::sun::star::text::WritingMode eWritingMode, xmlTextWriterPtr xmlWriter);
// ShadowProperties.idl // ShadowProperties.idl
void dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter); void dumpShadowAsAttribute(bool bShadow, xmlTextWriterPtr xmlWriter);
void dumpShadowColorAsAttribute(sal_Int32 aShadowColor, xmlTextWriterPtr xmlWriter); void dumpShadowColorAsAttribute(sal_Int32 aShadowColor, xmlTextWriterPtr xmlWriter);
void dumpShadowTransparenceAsAttribute(sal_Int32 aShadowTransparence, xmlTextWriterPtr xmlWriter); void dumpShadowTransparenceAsAttribute(sal_Int32 aShadowTransparence, xmlTextWriterPtr xmlWriter);
void dumpShadowXDistanceAsAttribute(sal_Int32 aShadowXDistance, xmlTextWriterPtr xmlWriter); void dumpShadowXDistanceAsAttribute(sal_Int32 aShadowXDistance, xmlTextWriterPtr xmlWriter);
@ -125,11 +125,11 @@ void dumpShadowYDistanceAsAttribute(sal_Int32 aShadowYDistance, xmlTextWriterPtr
void dumpZOrderAsAttribute(sal_Int32 aZOrder, xmlTextWriterPtr xmlWriter); void dumpZOrderAsAttribute(sal_Int32 aZOrder, xmlTextWriterPtr xmlWriter);
void dumpLayerIDAsAttribute(sal_Int32 aLayerID, xmlTextWriterPtr xmlWriter); void dumpLayerIDAsAttribute(sal_Int32 aLayerID, xmlTextWriterPtr xmlWriter);
void dumpLayerNameAsAttribute(const OUString& sLayerName, xmlTextWriterPtr xmlWriter); void dumpLayerNameAsAttribute(const OUString& sLayerName, xmlTextWriterPtr xmlWriter);
void dumpVisibleAsAttribute(sal_Bool bVisible, xmlTextWriterPtr xmlWriter); void dumpVisibleAsAttribute(bool bVisible, xmlTextWriterPtr xmlWriter);
void dumpPrintableAsAttribute(sal_Bool bPrintable, xmlTextWriterPtr xmlWriter); void dumpPrintableAsAttribute(bool bPrintable, xmlTextWriterPtr xmlWriter);
void dumpMoveProtectAsAttribute(sal_Bool bMoveProtect, xmlTextWriterPtr xmlWriter); void dumpMoveProtectAsAttribute(bool bMoveProtect, xmlTextWriterPtr xmlWriter);
void dumpNameAsAttribute(const OUString& sName, xmlTextWriterPtr xmlWriter); void dumpNameAsAttribute(const OUString& sName, xmlTextWriterPtr xmlWriter);
void dumpSizeProtectAsAttribute(sal_Bool bSizeProtect, xmlTextWriterPtr xmlWriter); void dumpSizeProtectAsAttribute(bool bSizeProtect, xmlTextWriterPtr xmlWriter);
void dumpHomogenMatrixLine3(com::sun::star::drawing::HomogenMatrixLine3 aLine, xmlTextWriterPtr xmlWriter); void dumpHomogenMatrixLine3(com::sun::star::drawing::HomogenMatrixLine3 aLine, xmlTextWriterPtr xmlWriter);
void dumpTransformationAsElement(com::sun::star::drawing::HomogenMatrix3 aTransformation, xmlTextWriterPtr xmlWriter); void dumpTransformationAsElement(com::sun::star::drawing::HomogenMatrix3 aTransformation, xmlTextWriterPtr xmlWriter);
void dumpNavigationOrderAsAttribute(sal_Int32 aNavigationOrder, xmlTextWriterPtr xmlWriter); void dumpNavigationOrderAsAttribute(sal_Int32 aNavigationOrder, xmlTextWriterPtr xmlWriter);
@ -297,7 +297,7 @@ void dumpFillHatchAsElement(drawing::Hatch aHatch, xmlTextWriterPtr xmlWriter)
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void dumpFillBackgroundAsAttribute(sal_Bool bBackground, xmlTextWriterPtr xmlWriter) void dumpFillBackgroundAsAttribute(bool bBackground, xmlTextWriterPtr xmlWriter)
{ {
if(bBackground) if(bBackground)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBackground"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBackground"), "%s", "true");
@ -379,7 +379,7 @@ void dumpFillBitmapRectanglePointAsAttribute(drawing::RectanglePoint eBitmapRect
} }
} }
void dumpFillBitmapLogicalSizeAsAttribute(sal_Bool bBitmapLogicalSize, xmlTextWriterPtr xmlWriter) void dumpFillBitmapLogicalSizeAsAttribute(bool bBitmapLogicalSize, xmlTextWriterPtr xmlWriter)
{ {
if(bBitmapLogicalSize) if(bBitmapLogicalSize)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapLogicalSize"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapLogicalSize"), "%s", "true");
@ -415,7 +415,7 @@ void dumpFillBitmapModeAsAttribute(drawing::BitmapMode eBitmapMode, xmlTextWrite
} }
} }
void dumpFillBitmapStretchAsAttribute(sal_Bool bBitmapStretch, xmlTextWriterPtr xmlWriter) void dumpFillBitmapStretchAsAttribute(bool bBitmapStretch, xmlTextWriterPtr xmlWriter)
{ {
if(bBitmapStretch) if(bBitmapStretch)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapStretch"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapStretch"), "%s", "true");
@ -423,7 +423,7 @@ void dumpFillBitmapStretchAsAttribute(sal_Bool bBitmapStretch, xmlTextWriterPtr
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapStretch"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapStretch"), "%s", "false");
} }
void dumpFillBitmapTileAsAttribute(sal_Bool bBitmapTile, xmlTextWriterPtr xmlWriter) void dumpFillBitmapTileAsAttribute(bool bBitmapTile, xmlTextWriterPtr xmlWriter)
{ {
if(bBitmapTile) if(bBitmapTile)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapTile"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("fillBitmapTile"), "%s", "true");
@ -557,7 +557,7 @@ void dumpLineEndAsElement(drawing::PolyPolygonBezierCoords aLineEnd, xmlTextWrit
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void dumpLineStartCenterAsAttribute(sal_Bool bLineStartCenter, xmlTextWriterPtr xmlWriter) void dumpLineStartCenterAsAttribute(bool bLineStartCenter, xmlTextWriterPtr xmlWriter)
{ {
if(bLineStartCenter) if(bLineStartCenter)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lineStartCenter"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lineStartCenter"), "%s", "true");
@ -570,7 +570,7 @@ void dumpLineStartWidthAsAttribute(sal_Int32 aLineStartWidth, xmlTextWriterPtr x
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("lineStartWidth"), "%" SAL_PRIdINT32, aLineStartWidth); xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("lineStartWidth"), "%" SAL_PRIdINT32, aLineStartWidth);
} }
void dumpLineEndCenterAsAttribute(sal_Bool bLineEndCenter, xmlTextWriterPtr xmlWriter) void dumpLineEndCenterAsAttribute(bool bLineEndCenter, xmlTextWriterPtr xmlWriter)
{ {
if(bLineEndCenter) if(bLineEndCenter)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lineEndCenter"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("lineEndCenter"), "%s", "true");
@ -702,7 +702,7 @@ void dumpCharColorAsAttribute(sal_Int32 aColor, xmlTextWriterPtr xmlWriter)
// ---------- TextProperties.idl ---------- // ---------- TextProperties.idl ----------
void dumpIsNumberingAsAttribute(sal_Bool bIsNumbering, xmlTextWriterPtr xmlWriter) void dumpIsNumberingAsAttribute(bool bIsNumbering, xmlTextWriterPtr xmlWriter)
{ {
if(bIsNumbering) if(bIsNumbering)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "true");
@ -710,7 +710,7 @@ void dumpIsNumberingAsAttribute(sal_Bool bIsNumbering, xmlTextWriterPtr xmlWrite
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("isNumbering"), "%s", "false");
} }
void dumpTextAutoGrowHeightAsAttribute(sal_Bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter) void dumpTextAutoGrowHeightAsAttribute(bool bTextAutoGrowHeight, xmlTextWriterPtr xmlWriter)
{ {
if(bTextAutoGrowHeight) if(bTextAutoGrowHeight)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "true");
@ -718,7 +718,7 @@ void dumpTextAutoGrowHeightAsAttribute(sal_Bool bTextAutoGrowHeight, xmlTextWrit
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowHeight"), "%s", "false");
} }
void dumpTextAutoGrowWidthAsAttribute(sal_Bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter) void dumpTextAutoGrowWidthAsAttribute(bool bTextAutoGrowWidth, xmlTextWriterPtr xmlWriter)
{ {
if(bTextAutoGrowWidth) if(bTextAutoGrowWidth)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "true");
@ -726,7 +726,7 @@ void dumpTextAutoGrowWidthAsAttribute(sal_Bool bTextAutoGrowWidth, xmlTextWriter
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAutoGrowWidth"), "%s", "false");
} }
void dumpTextContourFrameAsAttribute(sal_Bool bTextContourFrame, xmlTextWriterPtr xmlWriter) void dumpTextContourFrameAsAttribute(bool bTextContourFrame, xmlTextWriterPtr xmlWriter)
{ {
if(bTextContourFrame) if(bTextContourFrame)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textContourFrame"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textContourFrame"), "%s", "true");
@ -897,7 +897,7 @@ void dumpTextAnimationKindAsAttribute(drawing::TextAnimationKind eTextAnimationK
} }
} }
void dumpTextAnimationStartInsideAsAttribute(sal_Bool bTextAnimationStartInside, xmlTextWriterPtr xmlWriter) void dumpTextAnimationStartInsideAsAttribute(bool bTextAnimationStartInside, xmlTextWriterPtr xmlWriter)
{ {
if(bTextAnimationStartInside) if(bTextAnimationStartInside)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStartInside"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStartInside"), "%s", "true");
@ -905,7 +905,7 @@ void dumpTextAnimationStartInsideAsAttribute(sal_Bool bTextAnimationStartInside,
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStartInside"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStartInside"), "%s", "false");
} }
void dumpTextAnimationStopInsideAsAttribute(sal_Bool bTextAnimationStopInside, xmlTextWriterPtr xmlWriter) void dumpTextAnimationStopInsideAsAttribute(bool bTextAnimationStopInside, xmlTextWriterPtr xmlWriter)
{ {
if(bTextAnimationStopInside) if(bTextAnimationStopInside)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStopInside"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textAnimationStopInside"), "%s", "true");
@ -935,7 +935,7 @@ void dumpTextWritingModeAsAttribute(text::WritingMode eTextWritingMode, xmlTextW
// ---------- ShadowProperties.idl ---------- // ---------- ShadowProperties.idl ----------
void dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter) void dumpShadowAsAttribute(bool bShadow, xmlTextWriterPtr xmlWriter)
{ {
if(bShadow) if(bShadow)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shadow"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shadow"), "%s", "true");
@ -983,7 +983,7 @@ void dumpLayerNameAsAttribute(const OUString& sLayerName, xmlTextWriterPtr xmlWr
OUStringToOString(sLayerName, RTL_TEXTENCODING_UTF8).getStr()); OUStringToOString(sLayerName, RTL_TEXTENCODING_UTF8).getStr());
} }
void dumpVisibleAsAttribute(sal_Bool bVisible, xmlTextWriterPtr xmlWriter) void dumpVisibleAsAttribute(bool bVisible, xmlTextWriterPtr xmlWriter)
{ {
if(bVisible) if(bVisible)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("visible"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("visible"), "%s", "true");
@ -991,7 +991,7 @@ void dumpVisibleAsAttribute(sal_Bool bVisible, xmlTextWriterPtr xmlWriter)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("visible"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("visible"), "%s", "false");
} }
void dumpPrintableAsAttribute(sal_Bool bPrintable, xmlTextWriterPtr xmlWriter) void dumpPrintableAsAttribute(bool bPrintable, xmlTextWriterPtr xmlWriter)
{ {
if(bPrintable) if(bPrintable)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("printable"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("printable"), "%s", "true");
@ -999,7 +999,7 @@ void dumpPrintableAsAttribute(sal_Bool bPrintable, xmlTextWriterPtr xmlWriter)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("printable"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("printable"), "%s", "false");
} }
void dumpMoveProtectAsAttribute(sal_Bool bMoveProtect, xmlTextWriterPtr xmlWriter) void dumpMoveProtectAsAttribute(bool bMoveProtect, xmlTextWriterPtr xmlWriter)
{ {
if(bMoveProtect) if(bMoveProtect)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("moveProtect"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("moveProtect"), "%s", "true");
@ -1016,7 +1016,7 @@ void dumpNameAsAttribute(const OUString& sName, xmlTextWriterPtr xmlWriter)
} }
} }
void dumpSizeProtectAsAttribute(sal_Bool bSizeProtect, xmlTextWriterPtr xmlWriter) void dumpSizeProtectAsAttribute(bool bSizeProtect, xmlTextWriterPtr xmlWriter)
{ {
if(bSizeProtect) if(bSizeProtect)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("sizeProtect"), "%s", "true"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("sizeProtect"), "%s", "true");
@ -1119,7 +1119,7 @@ void dumpPropertyValueAsElement(const beans::PropertyValue& rPropertyValue, xmlT
OUString sValue; OUString sValue;
float fValue; float fValue;
sal_Int32 nValue; sal_Int32 nValue;
sal_Bool bValue; bool bValue;
awt::Rectangle aRectangleValue; awt::Rectangle aRectangleValue;
uno::Sequence< drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues; uno::Sequence< drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues;
uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates; uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates;
@ -1238,25 +1238,25 @@ void dumpTextPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
if(xInfo->hasPropertyByName("IsNumbering")) if(xInfo->hasPropertyByName("IsNumbering"))
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("IsNumbering"); uno::Any anotherAny = xPropSet->getPropertyValue("IsNumbering");
sal_Bool bIsNumbering = sal_Bool(); bool bIsNumbering;
if(anotherAny >>= bIsNumbering) if(anotherAny >>= bIsNumbering)
dumpIsNumberingAsAttribute(bIsNumbering, xmlWriter); dumpIsNumberingAsAttribute(bIsNumbering, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowHeight"); uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowHeight");
sal_Bool bTextAutoGrowHeight = sal_Bool(); bool bTextAutoGrowHeight;
if(anotherAny >>= bTextAutoGrowHeight) if(anotherAny >>= bTextAutoGrowHeight)
dumpTextAutoGrowHeightAsAttribute(bTextAutoGrowHeight, xmlWriter); dumpTextAutoGrowHeightAsAttribute(bTextAutoGrowHeight, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowWidth"); uno::Any anotherAny = xPropSet->getPropertyValue("TextAutoGrowWidth");
sal_Bool bTextAutoGrowWidth = sal_Bool(); bool bTextAutoGrowWidth;
if(anotherAny >>= bTextAutoGrowWidth) if(anotherAny >>= bTextAutoGrowWidth)
dumpTextAutoGrowWidthAsAttribute(bTextAutoGrowWidth, xmlWriter); dumpTextAutoGrowWidthAsAttribute(bTextAutoGrowWidth, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextContourFrame"); uno::Any anotherAny = xPropSet->getPropertyValue("TextContourFrame");
sal_Bool bTextContourFrame = sal_Bool(); bool bTextContourFrame;
if(anotherAny >>= bTextContourFrame) if(anotherAny >>= bTextContourFrame)
dumpTextContourFrameAsAttribute(bTextContourFrame, xmlWriter); dumpTextContourFrameAsAttribute(bTextContourFrame, xmlWriter);
} }
@ -1358,13 +1358,13 @@ void dumpTextPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextAnimationStartInside"); uno::Any anotherAny = xPropSet->getPropertyValue("TextAnimationStartInside");
sal_Bool bTextAnimationStartInside = sal_Bool(); bool bTextAnimationStartInside;
if(anotherAny >>= bTextAnimationStartInside) if(anotherAny >>= bTextAnimationStartInside)
dumpTextAnimationStartInsideAsAttribute(bTextAnimationStartInside, xmlWriter); dumpTextAnimationStartInsideAsAttribute(bTextAnimationStartInside, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("TextAnimationStopInside"); uno::Any anotherAny = xPropSet->getPropertyValue("TextAnimationStopInside");
sal_Bool bTextAnimationStopInside = sal_Bool(); bool bTextAnimationStopInside;
if(anotherAny >>= bTextAnimationStopInside) if(anotherAny >>= bTextAnimationStopInside)
dumpTextAnimationStopInsideAsAttribute(bTextAnimationStopInside, xmlWriter); dumpTextAnimationStopInsideAsAttribute(bTextAnimationStopInside, xmlWriter);
} }
@ -1434,7 +1434,7 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("FillBackground"); uno::Any anotherAny = xPropSet->getPropertyValue("FillBackground");
sal_Bool bFillBackground = sal_Bool(); bool bFillBackground;
if(anotherAny >>= bFillBackground) if(anotherAny >>= bFillBackground)
dumpFillBackgroundAsAttribute(bFillBackground, xmlWriter); dumpFillBackgroundAsAttribute(bFillBackground, xmlWriter);
} }
@ -1488,7 +1488,7 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapLogicalSize"); uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapLogicalSize");
sal_Bool bBitmapLogicalSize = sal_Bool(); bool bBitmapLogicalSize;
if(anotherAny >>= bBitmapLogicalSize) if(anotherAny >>= bBitmapLogicalSize)
dumpFillBitmapLogicalSizeAsAttribute(bBitmapLogicalSize, xmlWriter); dumpFillBitmapLogicalSizeAsAttribute(bBitmapLogicalSize, xmlWriter);
} }
@ -1512,13 +1512,13 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapStretch"); uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapStretch");
sal_Bool bBitmapStretch = sal_Bool(); bool bBitmapStretch;
if(anotherAny >>= bBitmapStretch) if(anotherAny >>= bBitmapStretch)
dumpFillBitmapStretchAsAttribute(bBitmapStretch, xmlWriter); dumpFillBitmapStretchAsAttribute(bBitmapStretch, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapTile"); uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapTile");
sal_Bool bBitmapTile = sal_Bool(); bool bBitmapTile;
if(anotherAny >>= bBitmapTile) if(anotherAny >>= bBitmapTile)
dumpFillBitmapTileAsAttribute(bBitmapTile, xmlWriter); dumpFillBitmapTileAsAttribute(bBitmapTile, xmlWriter);
} }
@ -1594,7 +1594,7 @@ void dumpLinePropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("LineStartCenter"); uno::Any anotherAny = xPropSet->getPropertyValue("LineStartCenter");
sal_Bool bLineStartCenter = sal_Bool(); bool bLineStartCenter;
if(anotherAny >>= bLineStartCenter) if(anotherAny >>= bLineStartCenter)
dumpLineStartCenterAsAttribute(bLineStartCenter, xmlWriter); dumpLineStartCenterAsAttribute(bLineStartCenter, xmlWriter);
} }
@ -1606,7 +1606,7 @@ void dumpLinePropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("LineEndCenter"); uno::Any anotherAny = xPropSet->getPropertyValue("LineEndCenter");
sal_Bool bLineEndCenter = sal_Bool(); bool bLineEndCenter;
if(anotherAny >>= bLineEndCenter) if(anotherAny >>= bLineEndCenter)
dumpLineEndCenterAsAttribute(bLineEndCenter, xmlWriter); dumpLineEndCenterAsAttribute(bLineEndCenter, xmlWriter);
} }
@ -1622,7 +1622,7 @@ void dumpShadowPropertiesService(uno::Reference< beans::XPropertySet > xPropSet,
{ {
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Shadow"); uno::Any anotherAny = xPropSet->getPropertyValue("Shadow");
sal_Bool bShadow = sal_Bool(); bool bShadow;
if(anotherAny >>= bShadow) if(anotherAny >>= bShadow)
dumpShadowAsAttribute(bShadow, xmlWriter); dumpShadowAsAttribute(bShadow, xmlWriter);
} }
@ -1697,19 +1697,19 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Visible"); uno::Any anotherAny = xPropSet->getPropertyValue("Visible");
sal_Bool bVisible = sal_Bool(); bool bVisible;
if(anotherAny >>= bVisible) if(anotherAny >>= bVisible)
dumpVisibleAsAttribute(bVisible, xmlWriter); dumpVisibleAsAttribute(bVisible, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("Printable"); uno::Any anotherAny = xPropSet->getPropertyValue("Printable");
sal_Bool bPrintable = sal_Bool(); bool bPrintable;
if(anotherAny >>= bPrintable) if(anotherAny >>= bPrintable)
dumpPrintableAsAttribute(bPrintable, xmlWriter); dumpPrintableAsAttribute(bPrintable, xmlWriter);
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("MoveProtect"); uno::Any anotherAny = xPropSet->getPropertyValue("MoveProtect");
sal_Bool bMoveProtect = sal_Bool(); bool bMoveProtect;
if(anotherAny >>= bMoveProtect) if(anotherAny >>= bMoveProtect)
dumpMoveProtectAsAttribute(bMoveProtect, xmlWriter); dumpMoveProtectAsAttribute(bMoveProtect, xmlWriter);
} }
@ -1721,7 +1721,7 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
} }
{ {
uno::Any anotherAny = xPropSet->getPropertyValue("SizeProtect"); uno::Any anotherAny = xPropSet->getPropertyValue("SizeProtect");
sal_Bool bSizeProtect = sal_Bool(); bool bSizeProtect;
if(anotherAny >>= bSizeProtect) if(anotherAny >>= bSizeProtect)
dumpSizeProtectAsAttribute(bSizeProtect, xmlWriter); dumpSizeProtectAsAttribute(bSizeProtect, xmlWriter);
} }

View File

@ -135,7 +135,7 @@ namespace drawinglayer
mxExtendedInformation[nExtendedInsert++] = rProp; mxExtendedInformation[nExtendedInsert++] = rProp;
// for performance reasons, also cache content locally // for performance reasons, also cache content locally
sal_Bool bSalBool(false); bool bSalBool(false);
rProp.Value >>= bSalBool; rProp.Value >>= bSalBool;
mbReducedDisplayQuality = bSalBool; mbReducedDisplayQuality = bSalBool;
} }