summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-03-02 17:28:16 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-03-02 17:58:40 +0100
commitd9d90b1086f1faee532798a6834ad8219b1e73c7 (patch)
treec264705ff79f7d60d4086845af34ea5b01783463 /writerfilter
parent63518686d37821f7c09443fabed472cf6332094c (diff)
fix indentation
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx54
1 files changed, 27 insertions, 27 deletions
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