summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-10-10 13:46:55 +0200
committerMichael Stahl <mstahl@redhat.com>2012-10-10 14:02:20 +0200
commitbd4727567414d469896d7aaf7ee9a823c987e3d1 (patch)
tree45097d57b2999d1f992cf028d588caf1ec8c151e /filter
parent38968e2963302e650b718e5882ef85ff12f71e40 (diff)
SVGActionWriter::ImplWriteActions: indent that
Change-Id: I6ae6d96f88df813172017bafe1dd883c7b871c9e
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgwriter.cxx61
1 files changed, 32 insertions, 29 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index c80532ba6276..2e7316b8ebcc 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2931,40 +2931,43 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf,
{
try
{
-
- SvXMLElementExport aElem( mrExport, XML_NAMESPACE_NONE, "desc", sal_False, sal_False );
- OUStringBuffer sType;
- sType.append(static_cast<sal_Int32>(nType));
- if( pAction && ( nType == META_COMMENT_ACTION ) )
- {
- sType.append(": ");
- const MetaCommentAction* pA = (const MetaCommentAction*) pAction;
- rtl::OString sComment = pA->GetComment();
- if( !sComment.isEmpty() )
- {
- OUString ssComment = OUString( sComment.getStr(), sComment.getLength(), RTL_TEXTENCODING_UTF8 );
- sType.append(ssComment);
- }
- if( sComment.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN")) )
- {
- sal_uInt8 const*const pData = pA->GetData();
- if( pData && ( pA->GetDataSize() ) )
+ SvXMLElementExport aElem( mrExport,
+ XML_NAMESPACE_NONE, "desc", sal_False, sal_False );
+ OUStringBuffer sType;
+ sType.append(static_cast<sal_Int32>(nType));
+ if (pAction && (nType == META_COMMENT_ACTION))
+ {
+ sType.append(": ");
+ const MetaCommentAction* pA = (const MetaCommentAction*) pAction;
+ rtl::OString sComment = pA->GetComment();
+ if (!sComment.isEmpty())
+ {
+ OUString ssComment = OUString( sComment.getStr(),
+ sComment.getLength(), RTL_TEXTENCODING_UTF8 );
+ sType.append(ssComment);
+ }
+ if (sComment.equalsIgnoreAsciiCaseL(
+ RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN")))
{
- sal_uInt16 sz = (sal_uInt16)( ( pA->GetDataSize() ) / 2 );
- if( sz )
+ sal_uInt8 const*const pData = pA->GetData();
+ if (pData && (pA->GetDataSize()))
{
- sType.append("; ");
- sType.append(
- reinterpret_cast<sal_Unicode const*>(pData),
- sz);
+ sal_uInt16 sz = (sal_uInt16)((pA->GetDataSize()) / 2);
+ if (sz)
+ {
+ sType.append("; ");
+ sType.append(
+ reinterpret_cast<sal_Unicode const*>(pData),
+ sz);
+ }
}
}
}
- }
- if (sType.getLength())
- {
- mrExport.GetDocHandler()->characters(sType.makeStringAndClear());
- }
+ if (sType.getLength())
+ {
+ mrExport.GetDocHandler()->characters(
+ sType.makeStringAndClear());
+ }
}
catch( ... )
{