Tag: cws_dev300_odbmacros3 User: fs Date: 2008-09-09 11:28:32+0000 Modified: dba/dbaccess/source/core/dataaccess/databasedocument.cxx
Log: when notifying the OnSave* events, notify the URL as well File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: databasedocument.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasedocument.cxx?r1=1.40.6.20&r2=1.40.6.21 Delta lines: +7 -7 ------------------- --- databasedocument.cxx 2008-09-09 11:02:04+0000 1.40.6.20 +++ databasedocument.cxx 2008-09-09 11:28:29+0000 1.40.6.21 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: databasedocument.cxx,v $ - * $Revision: 1.40.6.20 $ + * $Revision: 1.40.6.21 $ * * This file is part of OpenOffice.org. * @@ -643,7 +643,7 @@ if ( !bIsInitializationProcess ) { _rGuard.clear(); - m_aEventNotifier.notifyDocumentEvent( _eType == SAVE ? "OnSave" : "OnSaveAs" ); + m_aEventNotifier.notifyDocumentEvent( _eType == SAVE ? "OnSave" : "OnSaveAs", NULL, makeAny( _rURL ) ); _rGuard.reset(); } @@ -696,13 +696,13 @@ { // notify the failure if ( !bIsInitializationProcess ) - m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveFailed" : "OnSaveAsFailed" ); + m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveFailed" : "OnSaveAsFailed", NULL, makeAny( _rURL ) ); throw; } // notify the document event if ( !bIsInitializationProcess ) - m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveDone" : "OnSaveAsDone" ); + m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveDone" : "OnSaveAsDone", NULL, makeAny( _rURL ) ); // reset our "modified" flag, and clear the guard impl_setModified_nothrow( sal_False, _rGuard ); @@ -815,7 +815,7 @@ { aGuard.clear(); - m_aEventNotifier.notifyDocumentEvent( "OnSaveTo" ); + m_aEventNotifier.notifyDocumentEvent( "OnSaveTo", NULL, makeAny( _rURL ) ); aGuard.reset(); } @@ -832,11 +832,11 @@ } catch( const Exception& ) { - m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToFailed" ); + m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToFailed", NULL, makeAny( _rURL ) ); throw; } - m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToDone" ); + m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToDone", NULL, makeAny( _rURL ) ); } // ----------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]