diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-11-17 09:14:58 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-11-17 09:14:58 +0000 |
commit | 54c20b3c42d009f60db5ea910a7513e16cd67e58 (patch) | |
tree | 06d9a7c02a123d5a0307942cc4fb172f86a121bf /framework/source/services/backingcomp.cxx | |
parent | 6354f30664c030dd7afb4a3e79102802b560e271 (diff) |
INTEGRATION: CWS mav11 (1.12.36); FILE MERGED
2004/11/01 07:20:37 as 1.12.36.1: #i35708# show right title
Diffstat (limited to 'framework/source/services/backingcomp.cxx')
-rw-r--r-- | framework/source/services/backingcomp.cxx | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx index f3915dd64731..49c2d8124b59 100644 --- a/framework/source/services/backingcomp.cxx +++ b/framework/source/services/backingcomp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: backingcomp.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: as $ $Date: 2004-09-24 09:18:07 $ + * last change: $Author: obo $ $Date: 2004-11-17 10:14:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -92,6 +92,10 @@ #include <targets.h> #endif +#ifndef __FRAMEWORK_PROPERTIES_H_ +#include <properties.h> +#endif + #ifndef __FRAMEWORK_SERVICES_H_ #include <services.h> #endif @@ -186,6 +190,14 @@ #include <osl/file.hxx> #endif +#ifndef _UTL_CONFIGMGR_HXX_ +#include <unotools/configmgr.hxx> +#endif + +#ifndef _UTL_BOOTSTRAP_HXX_ +#include <unotools/bootstrap.hxx> +#endif + namespace framework { @@ -627,9 +639,19 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f css::uno::Reference< css::beans::XPropertySet > xPropSet(m_xFrame, css::uno::UNO_QUERY); if (xPropSet.is()) { - css::uno::Any aTitle; - aTitle <<= ::rtl::OUString(Application::GetDisplayName()); - xPropSet->setPropertyValue(DECLARE_ASCII("Title"), aTitle); + ::rtl::OUString sProductName; + ::utl::ConfigManager::GetDirectConfigProperty(::utl::ConfigManager::PRODUCTNAME) >>= sProductName; + + ::rtl::OUStringBuffer sTitle; + sTitle.append(sProductName); +#ifndef PRODUCT + sTitle.appendAscii(" [" ); + sTitle.append (utl::Bootstrap::getBuildIdData(::rtl::OUString())); + sTitle.appendAscii("]" ); +#endif + xPropSet->setPropertyValue( + FRAME_PROPNAME_TITLE, + css::uno::makeAny(sTitle.makeStringAndClear())); } // create the menu bar for the backing component |