diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 12:08:02 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 12:08:02 +0000 |
commit | 07296a431af11d9c7919fda4dfa8ec4fc0013e15 (patch) | |
tree | a83e8f9d9c13e535c3171d29082fe7d580161515 /xmloff/source/text | |
parent | 898dd782590437aa145185f1ada3efcb460604c9 (diff) |
INTEGRATION: CWS oasisbf2 (1.22.50); FILE MERGED
2004/10/26 15:00:56 mib 1.22.50.1: #i12228#: store default outline styles
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/txtstyli.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx index 4bba5035c054..6a0b4a7b6bd4 100644 --- a/xmloff/source/text/txtstyli.cxx +++ b/xmloff/source/text/txtstyli.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txtstyli.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: rt $ $Date: 2004-08-20 08:16:10 $ + * last change: $Author: rt $ $Date: 2004-11-26 13:08:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -180,6 +180,13 @@ void XMLTextStyleContext::SetAttribute( sal_uInt16 nPrefixKey, { sCategoryVal = rValue; } + else if( IsXMLToken( rLocalName, XML_DEFAULT_OUTLINE_LEVEL ) ) + { + sal_Int32 nTmp; + if( SvXMLUnitConverter::convertNumber( nTmp, rValue ) && + nTmp > 0 && nTmp < 256 ) + nOutlineLevel = static_cast< sal_Int8 >( nTmp ); + } else { XMLPropStyleContext::SetAttribute( nPrefixKey, rLocalName, rValue ); @@ -203,6 +210,7 @@ XMLTextStyleContext::XMLTextStyleContext( SvXMLImport& rImport, bAutoUpdate( sal_False ), bHasMasterPageName( sal_False ), bHasCombinedCharactersLetter( sal_False ), + nOutlineLevel( 0 ), pEventContext( NULL ), sIsAutoUpdate( RTL_CONSTASCII_USTRINGPARAM( "IsAutoUpdate" ) ), sCategory( RTL_CONSTASCII_USTRINGPARAM( "Category" ) ), @@ -300,6 +308,10 @@ void XMLTextStyleContext::CreateAndInsert( sal_Bool bOverwrite ) pEventContext->SetEvents(xEventsSupplier); pEventContext->ReleaseRef(); } + + if( nOutlineLevel > 0 ) + GetImport().GetTextImport()->SetOutlineStyle( nOutlineLevel, + GetDisplayName() ); } void XMLTextStyleContext::SetDefaults( ) |