Kaydet (Commit) 43ff7882 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

fix indentation

Change-Id: Ib4460d6ba59dbe22436fb710ee7a108804df0b86
üst b9ac62e1
......@@ -547,11 +547,14 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
TextHorizontalAdjust aTextHorizAdj;
Reference< XIndexReplace > xNumRule;
if( value >>= strValue ) {
if( value >>= strValue )
{
printLevel (level);
fprintf (stderr,"OUString str = \"%s\";\n", USS( strValue ) );
return "Any (str)";
} else if( value >>= strArray ) {
}
else if( value >>= strArray )
{
if (strArray.getLength() == 0)
return "Sequence< OUString >(0)";
......@@ -564,7 +567,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
printLevel (level);
fprintf (stderr,"};\n");
return "createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings )";
} else if( value >>= propArray ) {
}
else if( value >>= propArray )
{
printLevel (level);
fprintf (stderr,"Sequence< PropertyValue > aPropSequence (%" SAL_PRIdINT32 ");\n", propArray.getLength());
for( int i=0; i<propArray.getLength(); i++ ) {
......@@ -579,7 +584,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
}
return "aPropSequence";
} else if( value >>= sizeArray ) {
}
else if( value >>= sizeArray )
{
printLevel (level);
fprintf (stderr, "Sequence< awt::Size > aSizeSequence (%" SAL_PRIdINT32 ");\n", sizeArray.getLength());
for( int i=0; i<sizeArray.getLength(); i++ ) {
......@@ -592,7 +599,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
}
return "aSizeSequence";
} else if( value >>= propArrayArray ) {
}
else if( value >>= propArrayArray )
{
printLevel (level);
fprintf (stderr,"Sequence< Sequence < PropertyValue > > aPropSequenceSequence (%" SAL_PRIdINT32 ");\n", propArrayArray.getLength());
for( int i=0; i<propArrayArray.getLength(); i++ ) {
......@@ -605,13 +614,17 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
}
return "aPropSequenceSequence";
} else if( value >>= anyArray ) {
}
else if( value >>= anyArray )
{
fprintf (stderr,"%s\n", USS(value.getValueTypeName()));
for( int i=0; i<anyArray.getLength(); i++ ) {
fprintf (stderr,"\t\t\t[%3d] (%s) ", i, USS(value.getValueTypeName()) );
lclDumpAnyValue( anyArray[i] );
}
} else if( value >>= adjArray ) {
}
else if( value >>= adjArray )
{
printLevel (level);
fprintf (stderr,"Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (%" SAL_PRIdINT32 ");\n", adjArray.getLength());
for( int i=0; i<adjArray.getLength(); i++ ) {
......@@ -628,7 +641,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
}
return "aAdjSequence";
} else if( value >>= segArray ) {
}
else if( value >>= segArray )
{
if (segArray.getLength() == 0)
return "Sequence< EnhancedCustomShapeSegment >(0)";
......@@ -644,7 +659,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
printLevel (level);
fprintf (stderr,"};\n");
return "createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )";
} else if( value >>= segTextFrame ) {
}
else if( value >>= segTextFrame )
{
printLevel (level);
fprintf (stderr, "Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (%" SAL_PRIdINT32 ");\n", segTextFrame.getLength());
for( int i=0; i<segTextFrame.getLength(); i++ ) {
......@@ -657,7 +674,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
}
return "aTextFrameSeq";
} else if( value >>= ppArray ) {
}
else if( value >>= ppArray )
{
printLevel (level);
if (ppArray.getLength() == 0)
return "Sequence< EnhancedCustomShapeParameterPair >(0)";
......@@ -671,7 +690,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr,"};\n");
return "createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)";
} else if( value >>= segment ) {
}
else if( value >>= segment )
{
printLevel (level);
fprintf (stderr, "EnhancedCustomShapeSegment aSegment;\n");
printLevel (level);
......@@ -680,7 +701,9 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
printLevel (level);
fprintf (stderr, "aSegment.Count = %d;\n", segment.Count);
return "aSegment";
} else if( value >>= textFrame ) {
}
else if( value >>= textFrame )
{
printLevel (level);
fprintf (stderr, "EnhancedCustomShapeTextFrame aTextFrame;\n");
printLevel (level);
......@@ -704,14 +727,18 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr, "}\n");
return "aTextFrame";
} else if( value >>= pp ) {
}
else if( value >>= pp )
{
printLevel (level);
fprintf (stderr, "static const CustomShapeProvider::ParameterPairData aData =\n");
printParameterPairData(level, pp);
fprintf (stderr, ";\n");
return "createParameterPair(&aData)";
} else if( value >>= par ) {
}
else if( value >>= par )
{
printLevel (level);
fprintf (stderr,"EnhancedCustomShapeParameter aParameter;\n");
const char* var = lclDumpAnyValueCode( par.Value, level );
......@@ -721,11 +748,14 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
fprintf (stderr,"aParameter.Type = %s;\n",
lclGetEnhancedParameterType(par.Type));
return "aParameter";
} else if( value >>= longValue ) {
}
else if( value >>= longValue )
{
printLevel (level);
fprintf (stderr,"Any aAny ((sal_Int32) %ld);\n", longValue);
return "aAny";
} else if( value >>= intValue )
}
else if( value >>= intValue )
fprintf (stderr,"%" SAL_PRIdINT32 " (hex: %" SAL_PRIxUINT32 ")\n", intValue, intValue);
else if( value >>= uintValue )
fprintf (stderr,"%" SAL_PRIdINT32 " (hex: %" SAL_PRIxUINT32 ")\n", uintValue, uintValue);
......@@ -740,7 +770,8 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
return "Any ((sal_Bool) sal_True)";
else
return "Any ((sal_Bool) sal_False)";
} else if( value >>= xNumRule ) {
}
else if( value >>= xNumRule ) {
fprintf (stderr, "XIndexReplace\n");
for (int k=0; k<xNumRule->getCount(); k++) {
Sequence< PropertyValue > aBulletPropSeq;
......@@ -752,7 +783,8 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
}
}
}
} else if( value >>= aWritingMode )
}
else if( value >>= aWritingMode )
fprintf (stderr, "%d writing mode\n", aWritingMode);
else if( value >>= aTextVertAdj ) {
const char* s = "unknown";
......@@ -774,7 +806,8 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
break;
}
fprintf (stderr, "%s\n", s);
} else if( value >>= aTextHorizAdj ) {
}
else if( value >>= aTextHorizAdj ) {
const char* s = "unknown";
switch( aTextHorizAdj ) {
case TextHorizontalAdjust_LEFT:
......@@ -794,9 +827,11 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
break;
}
fprintf (stderr, "%s\n", s);
} else if( value >>= spacing ) {
}
else if( value >>= spacing ) {
fprintf (stderr, "mode: %d value: %d\n", spacing.Mode, spacing.Height);
} else if( value >>= rect ) {
}
else if( value >>= rect ) {
printLevel (level);
fprintf (stderr, "awt::Rectangle aRectangle;\n");
printLevel (level);
......@@ -808,7 +843,8 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
printLevel (level);
fprintf (stderr, "aRectangle.Height = %" SAL_PRIdINT32 ";\n", rect.Height);
return "aRectangle";
} else if( value >>= size ) {
}
else if( value >>= size ) {
printLevel (level);
fprintf (stderr, "awt::Size aSize;\n");
printLevel (level);
......@@ -816,7 +852,8 @@ static const char* lclDumpAnyValueCode( Any value, int level = 0)
printLevel (level);
fprintf (stderr, "aSize.Height = %" SAL_PRIdINT32 ";\n", size.Height);
return "aSize";
} else if( value.isExtractableTo(::getCppuType((const sal_Int32*)0))) {
}
else if( value.isExtractableTo(::getCppuType((const sal_Int32*)0))) {
fprintf (stderr,"is extractable to int32\n");
}
else
......
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