diff options
author | Sascha Ballach <sab@openoffice.org> | 2001-02-14 16:30:42 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2001-02-14 16:30:42 +0000 |
commit | 920e74384af1379b5e17c7fd26bd01db12fc05d8 (patch) | |
tree | 991a768ffe5b316783296cdac23cb948ba090fca /xmloff/source/style | |
parent | 9a0e8ef75478f6a0eb31d882e5221b17efd7f1a2 (diff) |
set the comment on the number format
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 0f01b37f4e0d..159dd206569a 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlnumfi.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: er $ $Date: 2001-01-26 17:22:23 $ + * last change: $Author: sab $ $Date: 2001-02-14 17:30:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1204,6 +1204,16 @@ void SvXMLNumFormatContext::CreateAndInsert(sal_Bool bOverwrite) nIndex = pFormatter->GetFormatIndex( NF_DATE_DIN_DMMMMYYYY, nFormatLang ); } + if ((nIndex != NUMBERFORMAT_ENTRY_NOT_FOUND) && sFormatTitle.getLength()) + { + SvNumberformat* pFormat = const_cast<SvNumberformat*>(pFormatter->GetEntry( nIndex )); + if (pFormat) + { + String sTitle (sFormatTitle); + pFormat->SetComment(sTitle); + } + } + pData->AddKey( nIndex, GetName() ); nKey = nIndex; |