From e15e3e1a72e13b03a1c09b52ae8313ca0e1158c0 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Wed, 13 Dec 2000 16:26:40 +0000 Subject: [PATCH] #82014#: VERSIONNUMBER --- desktop/source/app/app.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 1d954e91b622..e523de808812 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -2,9 +2,9 @@ * * $RCSfile: app.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mba $ $Date: 2000-12-12 14:20:07 $ + * last change: $Author: mba $ $Date: 2000-12-13 17:26:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,15 +88,21 @@ using namespace ::com::sun::star::lang; void ReplaceStringHookProc( UniString& rStr ) { static String aBrandName; + static String aVersion; if ( !aBrandName.Len() ) { Any aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME ); rtl::OUString aTmp; aRet >>= aTmp; aBrandName = aTmp; + + aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTVERSION ); + aRet >>= aTmp; + aVersion = aTmp; } rStr.SearchAndReplaceAllAscii( "%PRODUCTNAME", aBrandName ); + rStr.SearchAndReplaceAllAscii( "%PRODUCTVERSION", aVersion ); } Desktop aDesktop;