From d9d90b1086f1faee532798a6834ad8219b1e73c7 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 2 Mar 2011 17:28:16 +0100 Subject: fix indentation --- writerfilter/source/dmapper/DomainMapper.cxx | 54 ++++++++++++++-------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index dcd4e070bad2..7997f145bf6d 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -981,10 +981,10 @@ void DomainMapper::attribute(Id nName, Value & val) if (m_pImpl->GetTopContext()) m_pImpl->GetTopContext()->Insert(PROP_CHAR_FONT_NAME_ASIAN, true, uno::makeAny( sStringValue )); break; - case NS_ooxml::LN_CT_Fonts_eastAsiaTheme: - if (m_pImpl->GetTopContext()) - m_pImpl->GetTopContext()->Insert(PROP_CHAR_FONT_NAME_COMPLEX, true, uno::makeAny( m_pImpl->GetThemeTable()->getFontNameForTheme(nIntValue) ) ); - break; + case NS_ooxml::LN_CT_Fonts_eastAsiaTheme: + if (m_pImpl->GetTopContext()) + m_pImpl->GetTopContext()->Insert(PROP_CHAR_FONT_NAME_COMPLEX, true, uno::makeAny( m_pImpl->GetThemeTable()->getFontNameForTheme(nIntValue) ) ); + break; case NS_ooxml::LN_CT_Fonts_cs: if (m_pImpl->GetTopContext()) m_pImpl->GetTopContext()->Insert(PROP_CHAR_FONT_NAME_COMPLEX, true, uno::makeAny( sStringValue )); @@ -1371,36 +1371,36 @@ void DomainMapper::attribute(Id nName, Value & val) case NS_ooxml::LN_CT_Color_themeShade: //unsupported break; - case NS_ooxml::LN_endtrackchange: - m_pImpl->RemoveCurrentRedline( ); - break; - case NS_ooxml::LN_CT_DocGrid_linePitch: + case NS_ooxml::LN_endtrackchange: + m_pImpl->RemoveCurrentRedline( ); + break; + case NS_ooxml::LN_CT_DocGrid_linePitch: + { + //see SwWW8ImplReader::SetDocumentGrid + OSL_ENSURE(pSectionContext, "SectionContext unavailable!"); + if(pSectionContext) { - //see SwWW8ImplReader::SetDocumentGrid - OSL_ENSURE(pSectionContext, "SectionContext unavailable!"); - if(pSectionContext) - { - pSectionContext->SetGridLinePitch( ConversionHelper::convertTwipToMM100( nIntValue ) ); - } + pSectionContext->SetGridLinePitch( ConversionHelper::convertTwipToMM100( nIntValue ) ); } + } break; - case NS_ooxml::LN_CT_DocGrid_charSpace: + case NS_ooxml::LN_CT_DocGrid_charSpace: + { + OSL_ENSURE(pSectionContext, "SectionContext unavailable!"); + if(pSectionContext) { - OSL_ENSURE(pSectionContext, "SectionContext unavailable!"); - if(pSectionContext) - { - pSectionContext->SetDxtCharSpace( nIntValue ); - } + pSectionContext->SetDxtCharSpace( nIntValue ); } - break; - case NS_ooxml::LN_CT_DocGrid_type: + } + break; + case NS_ooxml::LN_CT_DocGrid_type: + { + if (pSectionContext != NULL) { - if (pSectionContext != NULL) - { - pSectionContext->SetGridType(nIntValue); - } + pSectionContext->SetGridType(nIntValue); } - break; + } + break; default: { #if OSL_DEBUG_LEVEL > 0 -- cgit