Kaydet (Commit) dbd5e800 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS mav32 (1.3.10); FILE MERGED

2008/04/18 15:04:02 mav 1.3.10.1: #i88435# Let the title be updated when the model OnTitleUpdated sends
üst 9cf87a44
......@@ -8,7 +8,7 @@
*
* $RCSfile: titlehelper.cxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
......@@ -208,7 +208,8 @@ void SAL_CALL TitleHelper::titleChanged(const css::frame::TitleChangedEvent& aEv
void SAL_CALL TitleHelper::notifyEvent(const css::document::EventObject& aEvent)
throw (css::uno::RuntimeException)
{
if ( ! aEvent.EventName.equalsIgnoreAsciiCaseAscii ("OnSaveAsDone"))
if ( ! aEvent.EventName.equalsIgnoreAsciiCaseAscii ("OnSaveAsDone")
&& ! aEvent.EventName.equalsIgnoreAsciiCaseAscii ("OnTitleChanged"))
return;
// SYNCHRONIZED ->
......@@ -219,7 +220,8 @@ void SAL_CALL TitleHelper::notifyEvent(const css::document::EventObject& aEvent)
aLock.clear ();
// <- SYNCHRONIZED
if (aEvent.Source != xOwner)
if (aEvent.Source != xOwner
|| aEvent.EventName.equalsIgnoreAsciiCaseAscii ("OnTitleChanged") && !xOwner.is())
return;
impl_updateTitle ();
......@@ -407,7 +409,10 @@ void TitleHelper::impl_updateTitleForModel (const css::uno::Reference< css::fram
// SYNCHRONIZED ->
aLock.reset ();
sal_Bool bChanged = (! m_sTitle.equals(sTitle));
// WORKAROUND: the notification is currently sent always,
// can be changed after shared mode is supported per UNO API
sal_Bool bChanged = sal_True; // (! m_sTitle.equals(sTitle));
m_sTitle = sTitle;
m_nLeasedNumber = nLeasedNumber;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment