diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 18:51:55 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 22:15:38 +0100 |
commit | a0dcf961879ab644a52f801f65466756cb144b72 (patch) | |
tree | f99701fb10d080eb3eb337a0261702394b183077 /sw | |
parent | 316656755caabf4797391c46338c58945908837d (diff) |
Hidden styles: ODF import/export
Change-Id: I1138314eba33dc8cf8d1f60e77ac419b4550bbcc
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/app/docstyle.cxx | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx index cae4c506b10f..c2228dcfd01e 100644 --- a/sw/source/ui/app/docstyle.cxx +++ b/sw/source/ui/app/docstyle.cxx @@ -523,39 +523,36 @@ sal_Bool SwDocStyleSheet::IsHidden( ) const { sal_Bool bRet = sal_False; - if(!bPhysical) + SwFmt* pFmt = 0; + switch(nFamily) { - SwFmt* pFmt = 0; - switch(nFamily) - { - case SFX_STYLE_FAMILY_CHAR: - pFmt = rDoc.FindCharFmtByName( aName ); - bRet = pFmt && pFmt->IsHidden( ); - break; + case SFX_STYLE_FAMILY_CHAR: + pFmt = rDoc.FindCharFmtByName( aName ); + bRet = pFmt && pFmt->IsHidden( ); + break; - case SFX_STYLE_FAMILY_PARA: - pFmt = rDoc.FindTxtFmtCollByName( aName ); - bRet = pFmt && pFmt->IsHidden( ); - break; + case SFX_STYLE_FAMILY_PARA: + pFmt = rDoc.FindTxtFmtCollByName( aName ); + bRet = pFmt && pFmt->IsHidden( ); + break; - case SFX_STYLE_FAMILY_FRAME: - pFmt = rDoc.FindFrmFmtByName( aName ); - bRet = pFmt && pFmt->IsHidden( ); - break; + case SFX_STYLE_FAMILY_FRAME: + pFmt = rDoc.FindFrmFmtByName( aName ); + bRet = pFmt && pFmt->IsHidden( ); + break; - case SFX_STYLE_FAMILY_PAGE: - { - SwPageDesc* pPgDesc = rDoc.FindPageDescByName( aName ); - bRet = pPgDesc && pPgDesc->IsHidden( ); - } - break; - case SFX_STYLE_FAMILY_PSEUDO: - { - SwNumRule* pRule = rDoc.FindNumRulePtr( aName ); - bRet = pRule && pRule->IsHidden( ); - } - default:; - } + case SFX_STYLE_FAMILY_PAGE: + { + SwPageDesc* pPgDesc = rDoc.FindPageDescByName( aName ); + bRet = pPgDesc && pPgDesc->IsHidden( ); + } + break; + case SFX_STYLE_FAMILY_PSEUDO: + { + SwNumRule* pRule = rDoc.FindNumRulePtr( aName ); + bRet = pRule && pRule->IsHidden( ); + } + default:; } return bRet; |