diff options
author | Christian Lippka <cl@openoffice.org> | 2002-03-01 13:11:09 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2002-03-01 13:11:09 +0000 |
commit | 082f3010bed980cf2125b6ffbd011a2df1c7e753 (patch) | |
tree | 3ec01e282c1cbc0e9af28e0d1b2d6adf04072892 /xmloff/source/style/xmlnume.cxx | |
parent | 4db043e1c5887257f29d047df73d57b34b4c7e11 (diff) |
#97649# added support for automatic bullet color
Diffstat (limited to 'xmloff/source/style/xmlnume.cxx')
-rw-r--r-- | xmloff/source/style/xmlnume.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx index 96c961b9d030..a401d8d940c6 100644 --- a/xmloff/source/style/xmlnume.cxx +++ b/xmloff/source/style/xmlnume.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlnume.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: cl $ $Date: 2001-10-17 13:26:13 $ + * last change: $Author: cl $ $Date: 2002-03-01 14:11:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -576,9 +576,16 @@ void SvxXMLNumRuleExport::exportLevelStyle( INT32 nLevel, if( bHasColor ) { const Color aColor( nColor ); - SvXMLUnitConverter::convertColor( sBuffer, aColor ); - GetExport().AddAttribute( XML_NAMESPACE_FO, XML_COLOR, - sBuffer.makeStringAndClear() ); + if( aColor.GetColor() == 0xffffffff ) + { + GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_USE_WINDOW_FONT_COLOR, XML_TRUE ); + } + else + { + SvXMLUnitConverter::convertColor( sBuffer, aColor ); + GetExport().AddAttribute( XML_NAMESPACE_FO, XML_COLOR, + sBuffer.makeStringAndClear() ); + } } // fo:height="...%" |