summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/app/app.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index d81ce1fc4846..03ad73d2313a 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: app.cxx,v $
*
- * $Revision: 1.181 $
+ * $Revision: 1.182 $
*
- * last change: $Author: obo $ $Date: 2005-07-08 09:30:10 $
+ * last change: $Author: kz $ $Date: 2005-07-12 14:29:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -543,6 +543,8 @@ namespace
: public rtl::Static< String, Version > {};
struct Extension
: public rtl::Static< String, Extension > {};
+ struct XMLFileFormatName
+ : public rtl::Static< String, XMLFileFormatName > {};
struct XMLFileFormatVersion
: public rtl::Static< String, XMLFileFormatVersion > {};
struct WriterCompatibilityVersionOOo11
@@ -559,6 +561,7 @@ void ReplaceStringHookProc( UniString& rStr )
String &rBrandName = BrandName::get();
String &rVersion = Version::get();
String &rExtension = Extension::get();
+ String &rXMLFileFormatName = XMLFileFormatName::get();
String &rXMLFileFormatVersion = XMLFileFormatVersion::get();
if ( !rBrandName.Len() )
@@ -568,6 +571,10 @@ void ReplaceStringHookProc( UniString& rStr )
aRet >>= aTmp;
rBrandName = aTmp;
+ aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTXMLFILEFORMATNAME );
+ aRet >>= aTmp;
+ rXMLFileFormatName = aTmp;
+
aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTXMLFILEFORMATVERSION );
aRet >>= aTmp;
rXMLFileFormatVersion = aTmp;
@@ -588,6 +595,7 @@ void ReplaceStringHookProc( UniString& rStr )
rStr.SearchAndReplaceAllAscii( "%PRODUCTNAME", rBrandName );
rStr.SearchAndReplaceAllAscii( "%PRODUCTVERSION", rVersion );
rStr.SearchAndReplaceAllAscii( "%PRODUCTEXTENSION", rExtension );
+ rStr.SearchAndReplaceAllAscii( "%PRODUCTXMLFILEFORMATNAME", rXMLFileFormatName );
rStr.SearchAndReplaceAllAscii( "%PRODUCTXMLFILEFORMATVERSION", rXMLFileFormatVersion );
}